How to find out whether a codec supports hardware-acceleration on Android?












5















Using Android's MediaCodec API, I can get a list of codecs registered in the system.



All the things I can get from this API are the name, supported media types and whether it is an encoder or decoder.



But how can I figure out whether a codec supports hardware-acceleration?










share|improve this question























  • I guess that all provided codecs by the API are hardware ones. Why do you need this info?

    – user2399321
    Oct 19 '13 at 10:52











  • @user2399321 Why do you need this info

    – san
    Jan 1 '14 at 23:20











  • @san The knowledge if some codec "really hw" looks useless because of resolving some tasks: - task 1. regular developer want to decode A encoded video. What should the app do if A is not hw accelerated? - task 2. regular developer want to decode A and decode it to B. What should the app do if A and B are not hw accelerated? Ok, probably B is not fixed and there's will be C on the device which is "hw", for example it will be uploaded to some server which can support C, but there always will be some next device with D which is not supported by the server.

    – user2399321
    Jan 3 '14 at 10:20













  • @san task 3. not android developer[?] want to collect stats about hw codecs on different devices. In this case I believe that the guy probably will get more info somewhere at grepcode or elsewhere like this. Best Regards.

    – user2399321
    Jan 3 '14 at 10:21











  • @user2399321 Bottomline is, if you know the answer you can just answer and move on, without questioning user2885276's motives and being presumptuous. Unless what you are asking for helps compose a better answer, which I doubt.

    – san
    Jan 3 '14 at 19:28
















5















Using Android's MediaCodec API, I can get a list of codecs registered in the system.



All the things I can get from this API are the name, supported media types and whether it is an encoder or decoder.



But how can I figure out whether a codec supports hardware-acceleration?










share|improve this question























  • I guess that all provided codecs by the API are hardware ones. Why do you need this info?

    – user2399321
    Oct 19 '13 at 10:52











  • @user2399321 Why do you need this info

    – san
    Jan 1 '14 at 23:20











  • @san The knowledge if some codec "really hw" looks useless because of resolving some tasks: - task 1. regular developer want to decode A encoded video. What should the app do if A is not hw accelerated? - task 2. regular developer want to decode A and decode it to B. What should the app do if A and B are not hw accelerated? Ok, probably B is not fixed and there's will be C on the device which is "hw", for example it will be uploaded to some server which can support C, but there always will be some next device with D which is not supported by the server.

    – user2399321
    Jan 3 '14 at 10:20













  • @san task 3. not android developer[?] want to collect stats about hw codecs on different devices. In this case I believe that the guy probably will get more info somewhere at grepcode or elsewhere like this. Best Regards.

    – user2399321
    Jan 3 '14 at 10:21











  • @user2399321 Bottomline is, if you know the answer you can just answer and move on, without questioning user2885276's motives and being presumptuous. Unless what you are asking for helps compose a better answer, which I doubt.

    – san
    Jan 3 '14 at 19:28














5












5








5








Using Android's MediaCodec API, I can get a list of codecs registered in the system.



All the things I can get from this API are the name, supported media types and whether it is an encoder or decoder.



But how can I figure out whether a codec supports hardware-acceleration?










share|improve this question














Using Android's MediaCodec API, I can get a list of codecs registered in the system.



All the things I can get from this API are the name, supported media types and whether it is an encoder or decoder.



But how can I figure out whether a codec supports hardware-acceleration?







android






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 16 '13 at 7:03









fyraimarfyraimar

584




584













  • I guess that all provided codecs by the API are hardware ones. Why do you need this info?

    – user2399321
    Oct 19 '13 at 10:52











  • @user2399321 Why do you need this info

    – san
    Jan 1 '14 at 23:20











  • @san The knowledge if some codec "really hw" looks useless because of resolving some tasks: - task 1. regular developer want to decode A encoded video. What should the app do if A is not hw accelerated? - task 2. regular developer want to decode A and decode it to B. What should the app do if A and B are not hw accelerated? Ok, probably B is not fixed and there's will be C on the device which is "hw", for example it will be uploaded to some server which can support C, but there always will be some next device with D which is not supported by the server.

    – user2399321
    Jan 3 '14 at 10:20













  • @san task 3. not android developer[?] want to collect stats about hw codecs on different devices. In this case I believe that the guy probably will get more info somewhere at grepcode or elsewhere like this. Best Regards.

    – user2399321
    Jan 3 '14 at 10:21











  • @user2399321 Bottomline is, if you know the answer you can just answer and move on, without questioning user2885276's motives and being presumptuous. Unless what you are asking for helps compose a better answer, which I doubt.

    – san
    Jan 3 '14 at 19:28



















  • I guess that all provided codecs by the API are hardware ones. Why do you need this info?

    – user2399321
    Oct 19 '13 at 10:52











  • @user2399321 Why do you need this info

    – san
    Jan 1 '14 at 23:20











  • @san The knowledge if some codec "really hw" looks useless because of resolving some tasks: - task 1. regular developer want to decode A encoded video. What should the app do if A is not hw accelerated? - task 2. regular developer want to decode A and decode it to B. What should the app do if A and B are not hw accelerated? Ok, probably B is not fixed and there's will be C on the device which is "hw", for example it will be uploaded to some server which can support C, but there always will be some next device with D which is not supported by the server.

    – user2399321
    Jan 3 '14 at 10:20













  • @san task 3. not android developer[?] want to collect stats about hw codecs on different devices. In this case I believe that the guy probably will get more info somewhere at grepcode or elsewhere like this. Best Regards.

    – user2399321
    Jan 3 '14 at 10:21











  • @user2399321 Bottomline is, if you know the answer you can just answer and move on, without questioning user2885276's motives and being presumptuous. Unless what you are asking for helps compose a better answer, which I doubt.

    – san
    Jan 3 '14 at 19:28

















I guess that all provided codecs by the API are hardware ones. Why do you need this info?

– user2399321
Oct 19 '13 at 10:52





I guess that all provided codecs by the API are hardware ones. Why do you need this info?

– user2399321
Oct 19 '13 at 10:52













@user2399321 Why do you need this info

– san
Jan 1 '14 at 23:20





@user2399321 Why do you need this info

– san
Jan 1 '14 at 23:20













@san The knowledge if some codec "really hw" looks useless because of resolving some tasks: - task 1. regular developer want to decode A encoded video. What should the app do if A is not hw accelerated? - task 2. regular developer want to decode A and decode it to B. What should the app do if A and B are not hw accelerated? Ok, probably B is not fixed and there's will be C on the device which is "hw", for example it will be uploaded to some server which can support C, but there always will be some next device with D which is not supported by the server.

– user2399321
Jan 3 '14 at 10:20







@san The knowledge if some codec "really hw" looks useless because of resolving some tasks: - task 1. regular developer want to decode A encoded video. What should the app do if A is not hw accelerated? - task 2. regular developer want to decode A and decode it to B. What should the app do if A and B are not hw accelerated? Ok, probably B is not fixed and there's will be C on the device which is "hw", for example it will be uploaded to some server which can support C, but there always will be some next device with D which is not supported by the server.

– user2399321
Jan 3 '14 at 10:20















@san task 3. not android developer[?] want to collect stats about hw codecs on different devices. In this case I believe that the guy probably will get more info somewhere at grepcode or elsewhere like this. Best Regards.

– user2399321
Jan 3 '14 at 10:21





@san task 3. not android developer[?] want to collect stats about hw codecs on different devices. In this case I believe that the guy probably will get more info somewhere at grepcode or elsewhere like this. Best Regards.

– user2399321
Jan 3 '14 at 10:21













@user2399321 Bottomline is, if you know the answer you can just answer and move on, without questioning user2885276's motives and being presumptuous. Unless what you are asking for helps compose a better answer, which I doubt.

– san
Jan 3 '14 at 19:28





@user2399321 Bottomline is, if you know the answer you can just answer and move on, without questioning user2885276's motives and being presumptuous. Unless what you are asking for helps compose a better answer, which I doubt.

– san
Jan 3 '14 at 19:28












1 Answer
1






active

oldest

votes


















0














My smartphone has the Qualcomm Snapdragon 425 (MSM8917) SoC, and using the MediaCodecInfo app I see two encoding alternatives for the AVC(H264) codec:




  • OMX.qcom.video.encoder.avc

  • OMX.google.h264.encoder


As far as I know, you get access to the hardware encoding/decoding through the "qcom" package (Qualcomm), in my case, and the google one is just a software based alternative that comes with Android in case no hardware acceleration is available.



A more experienced person could confirm this.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f19397125%2fhow-to-find-out-whether-a-codec-supports-hardware-acceleration-on-android%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    My smartphone has the Qualcomm Snapdragon 425 (MSM8917) SoC, and using the MediaCodecInfo app I see two encoding alternatives for the AVC(H264) codec:




    • OMX.qcom.video.encoder.avc

    • OMX.google.h264.encoder


    As far as I know, you get access to the hardware encoding/decoding through the "qcom" package (Qualcomm), in my case, and the google one is just a software based alternative that comes with Android in case no hardware acceleration is available.



    A more experienced person could confirm this.






    share|improve this answer




























      0














      My smartphone has the Qualcomm Snapdragon 425 (MSM8917) SoC, and using the MediaCodecInfo app I see two encoding alternatives for the AVC(H264) codec:




      • OMX.qcom.video.encoder.avc

      • OMX.google.h264.encoder


      As far as I know, you get access to the hardware encoding/decoding through the "qcom" package (Qualcomm), in my case, and the google one is just a software based alternative that comes with Android in case no hardware acceleration is available.



      A more experienced person could confirm this.






      share|improve this answer


























        0












        0








        0







        My smartphone has the Qualcomm Snapdragon 425 (MSM8917) SoC, and using the MediaCodecInfo app I see two encoding alternatives for the AVC(H264) codec:




        • OMX.qcom.video.encoder.avc

        • OMX.google.h264.encoder


        As far as I know, you get access to the hardware encoding/decoding through the "qcom" package (Qualcomm), in my case, and the google one is just a software based alternative that comes with Android in case no hardware acceleration is available.



        A more experienced person could confirm this.






        share|improve this answer













        My smartphone has the Qualcomm Snapdragon 425 (MSM8917) SoC, and using the MediaCodecInfo app I see two encoding alternatives for the AVC(H264) codec:




        • OMX.qcom.video.encoder.avc

        • OMX.google.h264.encoder


        As far as I know, you get access to the hardware encoding/decoding through the "qcom" package (Qualcomm), in my case, and the google one is just a software based alternative that comes with Android in case no hardware acceleration is available.



        A more experienced person could confirm this.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 15 '18 at 0:51









        EduardoEduardo

        112




        112
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f19397125%2fhow-to-find-out-whether-a-codec-supports-hardware-acceleration-on-android%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Florida Star v. B. J. F.

            Error while running script in elastic search , gateway timeout

            Adding quotations to stringified JSON object values