Webcam Device Driver to support H.264












3














I have a Creative Live Cam Connect HD (id: 041e:4093) and this webcam has an on-board H.264 encoder. Unfortunately v4l2 only inputs the feed as MJPG.



$ v4l2-ctl --list-formats
ioctl: VIDIOC_ENUM_FMT
...
Index : 1
Type : Video Capture
Pixel Format: 'MJPG' (compressed)
Name : MJPEG


Basically I need to use this webcam to get a H.264 feed. Is there a different driver that I can use to use the on-board encoder instead of having to use Gstreamer to encode the feed on my machine?



Since there are no pre-built drivers to do what I want, I am trying to write my own driver. I found lots of recourses for writing linux drivers but not specifically for webcams. Can you point me to some resources or provide an outline of what I need to do? I never wrote a driver before.










share|improve this question
















bumped to the homepage by Community 7 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    3














    I have a Creative Live Cam Connect HD (id: 041e:4093) and this webcam has an on-board H.264 encoder. Unfortunately v4l2 only inputs the feed as MJPG.



    $ v4l2-ctl --list-formats
    ioctl: VIDIOC_ENUM_FMT
    ...
    Index : 1
    Type : Video Capture
    Pixel Format: 'MJPG' (compressed)
    Name : MJPEG


    Basically I need to use this webcam to get a H.264 feed. Is there a different driver that I can use to use the on-board encoder instead of having to use Gstreamer to encode the feed on my machine?



    Since there are no pre-built drivers to do what I want, I am trying to write my own driver. I found lots of recourses for writing linux drivers but not specifically for webcams. Can you point me to some resources or provide an outline of what I need to do? I never wrote a driver before.










    share|improve this question
















    bumped to the homepage by Community 7 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      3












      3








      3







      I have a Creative Live Cam Connect HD (id: 041e:4093) and this webcam has an on-board H.264 encoder. Unfortunately v4l2 only inputs the feed as MJPG.



      $ v4l2-ctl --list-formats
      ioctl: VIDIOC_ENUM_FMT
      ...
      Index : 1
      Type : Video Capture
      Pixel Format: 'MJPG' (compressed)
      Name : MJPEG


      Basically I need to use this webcam to get a H.264 feed. Is there a different driver that I can use to use the on-board encoder instead of having to use Gstreamer to encode the feed on my machine?



      Since there are no pre-built drivers to do what I want, I am trying to write my own driver. I found lots of recourses for writing linux drivers but not specifically for webcams. Can you point me to some resources or provide an outline of what I need to do? I never wrote a driver before.










      share|improve this question















      I have a Creative Live Cam Connect HD (id: 041e:4093) and this webcam has an on-board H.264 encoder. Unfortunately v4l2 only inputs the feed as MJPG.



      $ v4l2-ctl --list-formats
      ioctl: VIDIOC_ENUM_FMT
      ...
      Index : 1
      Type : Video Capture
      Pixel Format: 'MJPG' (compressed)
      Name : MJPEG


      Basically I need to use this webcam to get a H.264 feed. Is there a different driver that I can use to use the on-board encoder instead of having to use Gstreamer to encode the feed on my machine?



      Since there are no pre-built drivers to do what I want, I am trying to write my own driver. I found lots of recourses for writing linux drivers but not specifically for webcams. Can you point me to some resources or provide an outline of what I need to do? I never wrote a driver before.







      drivers devices camera video-encoding






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 14 '13 at 15:47









      Bernhard

      7,64534067




      7,64534067










      asked Mar 14 '13 at 15:14









      mashrurmashrur

      162




      162





      bumped to the homepage by Community 7 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 7 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          From: http://sourceforge.net/p/linux-uvc/mailman/linux-uvc-devel/?viewmonth=201303 (~80%)



          What kernel version are you on ?



          As far as I remember, since 3.2 (or was it 3.3?) the h264 support in uvc driver should be there.



          If v4l2-ctl doesn't list anything other than MJPG, it's probably because the camera itself doesn't support H264 raw stream, but only supports H264 embedded in MJPG frames (which is what skype/windows uses for h264 encoding cameras).



          I suggest you give it a try with the uvch64_src (see
          http://kakaroto.homelinux.net/2012/09/uvc-h264-encoding-cameras-support-in-gstreamer/)



          If it supports h264, it should be able to work with it (I never tested that
          camera though).






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2funix.stackexchange.com%2fquestions%2f67933%2fwebcam-device-driver-to-support-h-264%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














            From: http://sourceforge.net/p/linux-uvc/mailman/linux-uvc-devel/?viewmonth=201303 (~80%)



            What kernel version are you on ?



            As far as I remember, since 3.2 (or was it 3.3?) the h264 support in uvc driver should be there.



            If v4l2-ctl doesn't list anything other than MJPG, it's probably because the camera itself doesn't support H264 raw stream, but only supports H264 embedded in MJPG frames (which is what skype/windows uses for h264 encoding cameras).



            I suggest you give it a try with the uvch64_src (see
            http://kakaroto.homelinux.net/2012/09/uvc-h264-encoding-cameras-support-in-gstreamer/)



            If it supports h264, it should be able to work with it (I never tested that
            camera though).






            share|improve this answer




























              0














              From: http://sourceforge.net/p/linux-uvc/mailman/linux-uvc-devel/?viewmonth=201303 (~80%)



              What kernel version are you on ?



              As far as I remember, since 3.2 (or was it 3.3?) the h264 support in uvc driver should be there.



              If v4l2-ctl doesn't list anything other than MJPG, it's probably because the camera itself doesn't support H264 raw stream, but only supports H264 embedded in MJPG frames (which is what skype/windows uses for h264 encoding cameras).



              I suggest you give it a try with the uvch64_src (see
              http://kakaroto.homelinux.net/2012/09/uvc-h264-encoding-cameras-support-in-gstreamer/)



              If it supports h264, it should be able to work with it (I never tested that
              camera though).






              share|improve this answer


























                0












                0








                0






                From: http://sourceforge.net/p/linux-uvc/mailman/linux-uvc-devel/?viewmonth=201303 (~80%)



                What kernel version are you on ?



                As far as I remember, since 3.2 (or was it 3.3?) the h264 support in uvc driver should be there.



                If v4l2-ctl doesn't list anything other than MJPG, it's probably because the camera itself doesn't support H264 raw stream, but only supports H264 embedded in MJPG frames (which is what skype/windows uses for h264 encoding cameras).



                I suggest you give it a try with the uvch64_src (see
                http://kakaroto.homelinux.net/2012/09/uvc-h264-encoding-cameras-support-in-gstreamer/)



                If it supports h264, it should be able to work with it (I never tested that
                camera though).






                share|improve this answer














                From: http://sourceforge.net/p/linux-uvc/mailman/linux-uvc-devel/?viewmonth=201303 (~80%)



                What kernel version are you on ?



                As far as I remember, since 3.2 (or was it 3.3?) the h264 support in uvc driver should be there.



                If v4l2-ctl doesn't list anything other than MJPG, it's probably because the camera itself doesn't support H264 raw stream, but only supports H264 embedded in MJPG frames (which is what skype/windows uses for h264 encoding cameras).



                I suggest you give it a try with the uvch64_src (see
                http://kakaroto.homelinux.net/2012/09/uvc-h264-encoding-cameras-support-in-gstreamer/)



                If it supports h264, it should be able to work with it (I never tested that
                camera though).







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited May 28 '16 at 13:55

























                answered Aug 10 '15 at 13:01









                Alex StragiesAlex Stragies

                3,2751637




                3,2751637






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2funix.stackexchange.com%2fquestions%2f67933%2fwebcam-device-driver-to-support-h-264%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

                    CARDNET

                    Boot-repair Failure: Unable to locate package grub-common:i386

                    濃尾地震