v4l2 issues with webcam encoded to H.264





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I am trying to send a H.264 webcam video feed over wifi to another computer using gstreamer. I am using this tutorial as a guide. I am using a Creative Live! Cam Connect HD as my webcam. The website claims that the webcam has on-board H.264 encoder. But when I used v4l2-ctl I get the following:



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


But when I use the --all flag I get a different pixel format.



v4l2-ctl -d 1 --all
Driver Info (not using libv4l2):
Driver name : uvcvideo
Card type : Live! Cam Connect HD VF0750
Bus info : usb-0000:00:14.0-1
Driver version: 3.5.7
Capabilities : 0x04000001
Video Capture
Streaming
Format Video Capture:
Width/Height : 640/360
Pixel Format : 'YUYV'
Field : None
Bytes per Line: 1280
Size Image : 460800
Colorspace : SRGB
...


I am not sure why I am getting two different pixel formats (MJPG and YUYV) but I was expecting to see Pixel Format: 'H264' (compressed) like in the tutorial I linked to.



I am running Ubuntu 12.1 with kernel version 3.5.0 Does anyone have any idea what my problems it? I would like to use H.264 instead on MJPG to save on bandwidth. Any ideas why it does not detect H.264? Thanks.










share|improve this question





























    1















    I am trying to send a H.264 webcam video feed over wifi to another computer using gstreamer. I am using this tutorial as a guide. I am using a Creative Live! Cam Connect HD as my webcam. The website claims that the webcam has on-board H.264 encoder. But when I used v4l2-ctl I get the following:



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


    But when I use the --all flag I get a different pixel format.



    v4l2-ctl -d 1 --all
    Driver Info (not using libv4l2):
    Driver name : uvcvideo
    Card type : Live! Cam Connect HD VF0750
    Bus info : usb-0000:00:14.0-1
    Driver version: 3.5.7
    Capabilities : 0x04000001
    Video Capture
    Streaming
    Format Video Capture:
    Width/Height : 640/360
    Pixel Format : 'YUYV'
    Field : None
    Bytes per Line: 1280
    Size Image : 460800
    Colorspace : SRGB
    ...


    I am not sure why I am getting two different pixel formats (MJPG and YUYV) but I was expecting to see Pixel Format: 'H264' (compressed) like in the tutorial I linked to.



    I am running Ubuntu 12.1 with kernel version 3.5.0 Does anyone have any idea what my problems it? I would like to use H.264 instead on MJPG to save on bandwidth. Any ideas why it does not detect H.264? Thanks.










    share|improve this question

























      1












      1








      1








      I am trying to send a H.264 webcam video feed over wifi to another computer using gstreamer. I am using this tutorial as a guide. I am using a Creative Live! Cam Connect HD as my webcam. The website claims that the webcam has on-board H.264 encoder. But when I used v4l2-ctl I get the following:



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


      But when I use the --all flag I get a different pixel format.



      v4l2-ctl -d 1 --all
      Driver Info (not using libv4l2):
      Driver name : uvcvideo
      Card type : Live! Cam Connect HD VF0750
      Bus info : usb-0000:00:14.0-1
      Driver version: 3.5.7
      Capabilities : 0x04000001
      Video Capture
      Streaming
      Format Video Capture:
      Width/Height : 640/360
      Pixel Format : 'YUYV'
      Field : None
      Bytes per Line: 1280
      Size Image : 460800
      Colorspace : SRGB
      ...


      I am not sure why I am getting two different pixel formats (MJPG and YUYV) but I was expecting to see Pixel Format: 'H264' (compressed) like in the tutorial I linked to.



      I am running Ubuntu 12.1 with kernel version 3.5.0 Does anyone have any idea what my problems it? I would like to use H.264 instead on MJPG to save on bandwidth. Any ideas why it does not detect H.264? Thanks.










      share|improve this question














      I am trying to send a H.264 webcam video feed over wifi to another computer using gstreamer. I am using this tutorial as a guide. I am using a Creative Live! Cam Connect HD as my webcam. The website claims that the webcam has on-board H.264 encoder. But when I used v4l2-ctl I get the following:



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


      But when I use the --all flag I get a different pixel format.



      v4l2-ctl -d 1 --all
      Driver Info (not using libv4l2):
      Driver name : uvcvideo
      Card type : Live! Cam Connect HD VF0750
      Bus info : usb-0000:00:14.0-1
      Driver version: 3.5.7
      Capabilities : 0x04000001
      Video Capture
      Streaming
      Format Video Capture:
      Width/Height : 640/360
      Pixel Format : 'YUYV'
      Field : None
      Bytes per Line: 1280
      Size Image : 460800
      Colorspace : SRGB
      ...


      I am not sure why I am getting two different pixel formats (MJPG and YUYV) but I was expecting to see Pixel Format: 'H264' (compressed) like in the tutorial I linked to.



      I am running Ubuntu 12.1 with kernel version 3.5.0 Does anyone have any idea what my problems it? I would like to use H.264 instead on MJPG to save on bandwidth. Any ideas why it does not detect H.264? Thanks.







      webcam h.264 video-encoding v4l2 gstreamer






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 11 '13 at 0:37









      mashrurmashrur

      613




      613






















          2 Answers
          2






          active

          oldest

          votes


















          0














          I think the issue may be that Creative Live! Connect HD cam only supports UVC1.1 which is quite dated; so perhaps the V4l2 driver doesn't recognize it. See Wikipedia's entry for Native h.264 Supported Webcams






          share|improve this answer


























          • I'm trying both the Creative Live! Cam Connect HD and the Creative Live! Cam Connect HD 1080, and I see the same as mashrur. The message from uvcvideo at connect time says the device is a UVC 1.0 device (not UVC 1.1). This could be causing the difficulty; supposedly H264 was introduced in UVC 1.1.

            – Jeffrey Scofield
            Jul 2 '14 at 21:17



















          -1














          Two different pixel formats (MJPG and YUYV) show that the camera can support these formats. MPEG for encoded packets(usually used to send across network to receiver end) and YUYV for RAW (uncompressed) image which is usually used for Local Preview.
          Howver, your can use H.264 in VIDIOC_S_FMT to get H.264 encoded stream.






          share|improve this answer
























          • Could you provide a link or info detailing how to do this?

            – Silver Quettier
            Feb 26 '13 at 9:30












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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%2fsuperuser.com%2fquestions%2f549314%2fv4l2-issues-with-webcam-encoded-to-h-264%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          I think the issue may be that Creative Live! Connect HD cam only supports UVC1.1 which is quite dated; so perhaps the V4l2 driver doesn't recognize it. See Wikipedia's entry for Native h.264 Supported Webcams






          share|improve this answer


























          • I'm trying both the Creative Live! Cam Connect HD and the Creative Live! Cam Connect HD 1080, and I see the same as mashrur. The message from uvcvideo at connect time says the device is a UVC 1.0 device (not UVC 1.1). This could be causing the difficulty; supposedly H264 was introduced in UVC 1.1.

            – Jeffrey Scofield
            Jul 2 '14 at 21:17
















          0














          I think the issue may be that Creative Live! Connect HD cam only supports UVC1.1 which is quite dated; so perhaps the V4l2 driver doesn't recognize it. See Wikipedia's entry for Native h.264 Supported Webcams






          share|improve this answer


























          • I'm trying both the Creative Live! Cam Connect HD and the Creative Live! Cam Connect HD 1080, and I see the same as mashrur. The message from uvcvideo at connect time says the device is a UVC 1.0 device (not UVC 1.1). This could be causing the difficulty; supposedly H264 was introduced in UVC 1.1.

            – Jeffrey Scofield
            Jul 2 '14 at 21:17














          0












          0








          0







          I think the issue may be that Creative Live! Connect HD cam only supports UVC1.1 which is quite dated; so perhaps the V4l2 driver doesn't recognize it. See Wikipedia's entry for Native h.264 Supported Webcams






          share|improve this answer















          I think the issue may be that Creative Live! Connect HD cam only supports UVC1.1 which is quite dated; so perhaps the V4l2 driver doesn't recognize it. See Wikipedia's entry for Native h.264 Supported Webcams







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 19 '14 at 16:43









          Canadian Luke

          18.1k3092149




          18.1k3092149










          answered Mar 18 '14 at 23:35









          ShakManShakMan

          1




          1













          • I'm trying both the Creative Live! Cam Connect HD and the Creative Live! Cam Connect HD 1080, and I see the same as mashrur. The message from uvcvideo at connect time says the device is a UVC 1.0 device (not UVC 1.1). This could be causing the difficulty; supposedly H264 was introduced in UVC 1.1.

            – Jeffrey Scofield
            Jul 2 '14 at 21:17



















          • I'm trying both the Creative Live! Cam Connect HD and the Creative Live! Cam Connect HD 1080, and I see the same as mashrur. The message from uvcvideo at connect time says the device is a UVC 1.0 device (not UVC 1.1). This could be causing the difficulty; supposedly H264 was introduced in UVC 1.1.

            – Jeffrey Scofield
            Jul 2 '14 at 21:17

















          I'm trying both the Creative Live! Cam Connect HD and the Creative Live! Cam Connect HD 1080, and I see the same as mashrur. The message from uvcvideo at connect time says the device is a UVC 1.0 device (not UVC 1.1). This could be causing the difficulty; supposedly H264 was introduced in UVC 1.1.

          – Jeffrey Scofield
          Jul 2 '14 at 21:17





          I'm trying both the Creative Live! Cam Connect HD and the Creative Live! Cam Connect HD 1080, and I see the same as mashrur. The message from uvcvideo at connect time says the device is a UVC 1.0 device (not UVC 1.1). This could be causing the difficulty; supposedly H264 was introduced in UVC 1.1.

          – Jeffrey Scofield
          Jul 2 '14 at 21:17













          -1














          Two different pixel formats (MJPG and YUYV) show that the camera can support these formats. MPEG for encoded packets(usually used to send across network to receiver end) and YUYV for RAW (uncompressed) image which is usually used for Local Preview.
          Howver, your can use H.264 in VIDIOC_S_FMT to get H.264 encoded stream.






          share|improve this answer
























          • Could you provide a link or info detailing how to do this?

            – Silver Quettier
            Feb 26 '13 at 9:30
















          -1














          Two different pixel formats (MJPG and YUYV) show that the camera can support these formats. MPEG for encoded packets(usually used to send across network to receiver end) and YUYV for RAW (uncompressed) image which is usually used for Local Preview.
          Howver, your can use H.264 in VIDIOC_S_FMT to get H.264 encoded stream.






          share|improve this answer
























          • Could you provide a link or info detailing how to do this?

            – Silver Quettier
            Feb 26 '13 at 9:30














          -1












          -1








          -1







          Two different pixel formats (MJPG and YUYV) show that the camera can support these formats. MPEG for encoded packets(usually used to send across network to receiver end) and YUYV for RAW (uncompressed) image which is usually used for Local Preview.
          Howver, your can use H.264 in VIDIOC_S_FMT to get H.264 encoded stream.






          share|improve this answer













          Two different pixel formats (MJPG and YUYV) show that the camera can support these formats. MPEG for encoded packets(usually used to send across network to receiver end) and YUYV for RAW (uncompressed) image which is usually used for Local Preview.
          Howver, your can use H.264 in VIDIOC_S_FMT to get H.264 encoded stream.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 26 '13 at 8:57









          genuine sudogenuine sudo

          1




          1













          • Could you provide a link or info detailing how to do this?

            – Silver Quettier
            Feb 26 '13 at 9:30



















          • Could you provide a link or info detailing how to do this?

            – Silver Quettier
            Feb 26 '13 at 9:30

















          Could you provide a link or info detailing how to do this?

          – Silver Quettier
          Feb 26 '13 at 9:30





          Could you provide a link or info detailing how to do this?

          – Silver Quettier
          Feb 26 '13 at 9:30


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • 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%2fsuperuser.com%2fquestions%2f549314%2fv4l2-issues-with-webcam-encoded-to-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

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          RAC Tourist Trophy