Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Ajay, On Friday 09 September 2011 08:44:22 Ajay Bhargav wrote: Hi Srinivas, Patches are attached here... There are more modifications I did to uvc_video to set size of buffer + fid bit toggle after 44 MPEG2-TS packets. Why 44 ? What kind of camera are you using? -- Regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Paulo, On Friday 09 September 2011 16:05:24 Paulo Assis wrote: Well one important thing to notice is the pixel format returned by the driver, will it differentiate between avc and svc streams, or even mpeg2 ? That very much depends on the camera. Facevsion cameras seem to report MPEG2- TS but stream H.264. It then becomes difficult for the driver to know what to expose to userspace. If not maybe then it becomes harder for generic apps to decode it, unless we use a bunch of switch cases for the different cameras (something like this would be best implemented in the driver though) -- Regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
- Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: Hi Ajay, On Friday 09 September 2011 08:44:22 Ajay Bhargav wrote: Hi Srinivas, Patches are attached here... There are more modifications I did to uvc_video to set size of buffer + fid bit toggle after 44 MPEG2-TS packets. Why 44 ? What kind of camera are you using? -- Regards, Laurent Pinchart Hi Laurent, There is nothing specific about it.. Even after one packet FID can be toggled but when doing live streaming using gstreamer, I faced problem in decoding and lot of frames were dropped, so after some iterations I changed it 100 from 44 as of now. Video looks smooth. While capturing video in a file I do not face any problem. Video is captured properly and can be played using VLC or mplayer both. Regards, Ajay Bhargav ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
- Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: Hi Paulo, On Friday 09 September 2011 16:05:24 Paulo Assis wrote: Well one important thing to notice is the pixel format returned by the driver, will it differentiate between avc and svc streams, or even mpeg2 ? That very much depends on the camera. Facevsion cameras seem to report MPEG2- TS but stream H.264. It then becomes difficult for the driver to know what to expose to userspace. If not maybe then it becomes harder for generic apps to decode it, unless we use a bunch of switch cases for the different cameras (something like this would be best implemented in the driver though) -- Regards, Laurent Pinchart I think its better to give raw MPEG2-TS stream to user application later application may decide how to decode that stream. As for my camera I had H.264 AVC stream where as Facevision gives SVC (as per discussion with Robert). and If an MPEG2-TS cam is used for boardcasting application then we can directly use the MPEG2-TS stream what we get from camera. Regards, Ajay Bhargav ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Robert, On Thursday 03 November 2011 12:34:55 Robert Krakora wrote: Hi Guys, I did not see audio in the MPEG2 TS stream that I was able to get out of the FaceVsion camera. I purchased one for Laurent for development purposes. It sounds like he has been working with it some. Yes I've finally started working on it. Thanks for the hardware. I'll post prototype patches to the list. I've been able to get a video stream out of the device, but it looks pretty bad when played in mplayer. I'm not sure who is at fault that. I wish these vendors would come to some kind of consensus on how to expose H.264 via USB interface. The latest version of the UVC 1.1 specification includes an H.264 payload format. Unfortunately Microsoft, Logitech and Skype designed something really horrible, without much input from anyone else. It seems like it would make life easier for the UVC developers such as Laurent. I should come up with my own H.264 UVC payload specification :-) If Laurent needs any more makes/models of H.264 cameras for development, I will accommodate. Thank you. I will first try to finish the Facevsion support. -- Regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
- Ajay Bhargav ajay.bhar...@einfochips.com wrote: - Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: Hi Robert, On Thursday 03 November 2011 12:34:55 Robert Krakora wrote: Hi Guys, I did not see audio in the MPEG2 TS stream that I was able to get out of the FaceVsion camera. I purchased one for Laurent for development purposes. It sounds like he has been working with it some. Yes I've finally started working on it. Thanks for the hardware. I'll post prototype patches to the list. I've been able to get a video stream out of the device, but it looks pretty bad when played in mplayer. I'm not sure who is at fault that. I wish these vendors would come to some kind of consensus on how to expose H.264 via USB interface. The latest version of the UVC 1.1 specification includes an H.264 payload format. Unfortunately Microsoft, Logitech and Skype designed something really horrible, without much input from anyone else. It seems like it would make life easier for the UVC developers such as Laurent. I should come up with my own H.264 UVC payload specification :-) If Laurent needs any more makes/models of H.264 cameras for development, I will accommodate. Thank you. I will first try to finish the Facevsion support. -- Regards, Laurent Pinchart Hi Laurent, Thank you taking charge on the MPEG2-TS support. I was thinking that MPEG2-TS container format may contain video stream encoded differently other than H.264. So is it good to take out the container part and exposing the raw stream? I faced problem when I was storing H.264 stream only using gstreamer. Video was running too fast with no timing information and VLC was unable to play that stream. how did you deal with the FID problem? coz MPEG2-TS does not provide such information. What I did was to count certain number of packets and toggle FID forcefully so that buffer is ready for reading. It looks like you are missing some packets coz of which video is bad. I faced the same problem untill i added that FID hack. I hope this will help you. Please let me know if I can help you in this. Regards, Ajay Bhargav ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel I am attaching my patch for kernel 2.6.34 for MPEG2-TS cam support with FID hack I added for my camera. Hope this is helpful. This is just a hack not really a solution, though we can create a FID_QUIRK to actually support dummy FID toggle for compressed streams or something like that. Regards, Ajay BhargavFrom 5bdbc1eee5e220c25f2fefe3209b04743fa3305e Mon Sep 17 00:00:00 2001 From: Ajay Bhargav ajay.bhar...@einfochips.com Date: Tue, 13 Sep 2011 17:50:29 +0530 Subject: [PATCH 10/11] uvc: Add MPEG2-TS webcam support Signed-off-by: Ajay Bhargav ajay.bhar...@einfochips.com --- drivers/media/video/uvc/uvc_driver.c | 41 ++ drivers/media/video/uvc/uvc_video.c | 21 ++--- drivers/media/video/uvc/uvcvideo.h |3 ++ 3 files changed, 61 insertions(+), 4 deletions(-) diff --git a/drivers/media/video/uvc/uvc_driver.c b/drivers/media/video/uvc/uvc_driver.c index 86ff8c1..74269a5 100644 --- a/drivers/media/video/uvc/uvc_driver.c +++ b/drivers/media/video/uvc/uvc_driver.c @@ -100,6 +100,11 @@ static struct uvc_format_desc uvc_fmts[] = { .guid = UVC_GUID_FORMAT_BY8, .fcc = V4L2_PIX_FMT_SBGGR8, }, + { + .name = MPEG2 TS, + .guid = UVC_GUID_FORMAT_MPEG, + .fcc= V4L2_PIX_FMT_MPEG, + }, }; /* @@ -395,6 +400,33 @@ static int uvc_parse_format(struct uvc_device *dev, break; case UVC_VS_FORMAT_MPEG2TS: + n = dev-uvc_version = 0x0110 ? 23 : 7; + if (buflen n) { + uvc_trace(UVC_TRACE_DESCR, device %d videostreaming +interface %d FORMAT error\n, +dev-udev-devnum, +alts-desc.bInterfaceNumber); + return -EINVAL; + } + + strlcpy(format-name, MPEG2 TS, sizeof format-name); + format-fcc = V4L2_PIX_FMT_MPEG; + format-flags = UVC_FMT_FLAG_COMPRESSED | UVC_FMT_FLAG_STREAM; + format-bpp = 0; + ftype = 0; + + /* Create a dummy frame descriptor. */ + frame = format-frame[0]; + memset(format-frame[0], 0, sizeof format-frame[0]); + frame-bFrameIntervalType = 0; + frame-dwDefaultFrameInterval = 1; + frame-dwFrameInterval = *intervals; + *(*intervals)++ = 1; + *(*intervals)++ = 1000; + *(*intervals)++ = 1; + format-nframes = 1; + break; + case UVC_VS_FORMAT_STREAM_BASED: /* Not supported yet. */ default: @@ -665,6 +697,14 @@ static int uvc_parse_streaming(struct uvc_device *dev, break; case UVC_VS_FORMAT_MPEG2TS: + /* MPEG2TS format has no frame descriptor. We will create a + * dummy frame descriptor with a dummy frame
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi, just remember to also set the -f option to force the use of the specified pixel format (otherwise the camera default one is used). So the two options that need to be set are: -o -f regards, Paulo 2011/9/12 Ajay Bhargav ajay.bhar...@einfochips.com: Hi Paulo, This is good.. thanks I will test it with my camera too.. Regards, Ajay Bhargav - Paulo Assis pj.as...@gmail.com wrote: Hi, see attached a patched capture example, for saving the driver output buffer into raw files (200). I haven't been able to test build it, but the changes are minimal so it should work. You just need to change the resolution, and maybe the pixel format to whatever the driver expects. see lines 495-497. Regards, Paulo 2011/9/9 Robert Krakora rob.krak...@messagenetsystems.com: All, I forgot to tell you that I came up with one more patch for the UVC source in v4l2 to get MPEG2 transport streams to behave correctly. I have attached it to this e-mail. My sincerest apologies. Best Regards, -- Rob Krakora MessageNet Systems 101 East Carmel Dr. Suite 105 Carmel, IN 46032 (317)566-1677 Ext 212 (317)663-0808 Fax On Fri, Sep 9, 2011 at 10:05 AM, Paulo Assis pj.as...@gmail.com wrote: Well one important thing to notice is the pixel format returned by the driver, will it differentiate between avc and svc streams, or even mpeg2 ? If not maybe then it becomes harder for generic apps to decode it, unless we use a bunch of switch cases for the different cameras (something like this would be best implemented in the driver though) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com: Hi Robert, As you know its a development camera... I think my camera need some fixing.. my hardware decoder does not work with H.264 stream directly... I added h264parse element before h264 decoder in gstreamer pipeline to make it work. Regards, Ajay Bhargav - Robert Krakora rob.krak...@messagenetsystems.com wrote: Hi Ajay, The encoder in your camera may be different and produce H.264 AVC instead of SVC. The latest gstreamer-ffmpeg did not work for me for the FaceVsion Touchcam E1. Best Regards, Rob Krakora On Fri, Sep 9, 2011 at 9:18 AM, Ajay Bhargav ajay.bhar...@einfochips.com wrote: Hi Paulo, for me ffdec_h264 worked perfectly... I used current stable release of gstreamer-ffmpeg. It has many more formats... --Ajay Bhargav - Paulo Assis pj.as...@gmail.com wrote: Hi, have you tried the open svc decoder ( http://sourceforge.net/projects/opensvcdecoder/ ) ? It would probably be easier to add as dependency. Regards, Paulo 2011/9/9 Alexey Fisher bug-tr...@fisher-privat.net: Hi Paulo, i have video dump from Robert, not v4l2... The problem with it is codec. It seems to be some SVC variant of h264 and ffmpeg can't play it correctly. Robert say, currently only fluh264dec (flyendo plugin for gstreamer) can play it. Am 09.09.2011 13:23, schrieb Paulo Assis: Hi, I was thinking on using ffmpeg (libavcodec) since this is already a guvcview dependency for enconding the streams, decoding them shouldn't be to hard, I just need to understand how they are handled by the driver. This is the reason I need the raw data, you should be able to use the v4l2 capture example to store the buffer data as delivered by the driver (something like buffer-1.raw,...,buffer-n.raw would be nice), or I can send you some code for doing this if you prefer. Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto:ajay.bhar...@einfochips.com Hi Paulo, I am not having H.264 camera, My camera is similar to Facevision's Touchcam E1. It sends out MPEG2-TS stream encoded with H.264. I have recorded some videos during my testing if that is fine for you I can send across... it would be great if guvcview can show compressed streams :) we can make use of gstreamer to achieve this.. -- Ajay Bhargav - Paulo Assis pj.as...@gmail.com mailto:pj.as...@gmail.com wrote: Hi, I would like to add support for H.264 stream format in guvcview, Could you post some stream info, or even better an example of raw data output (does the capture buffer contains an exact frame like in MJPEG ?) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto:ajay.bhar...@einfochips.com Hi Srinivas, UVC fixes wont be needed for you to get your cam output.. You
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Paulo, This is good.. thanks I will test it with my camera too.. Regards, Ajay Bhargav - Paulo Assis pj.as...@gmail.com wrote: Hi, see attached a patched capture example, for saving the driver output buffer into raw files (200). I haven't been able to test build it, but the changes are minimal so it should work. You just need to change the resolution, and maybe the pixel format to whatever the driver expects. see lines 495-497. Regards, Paulo 2011/9/9 Robert Krakora rob.krak...@messagenetsystems.com: All, I forgot to tell you that I came up with one more patch for the UVC source in v4l2 to get MPEG2 transport streams to behave correctly. I have attached it to this e-mail. My sincerest apologies. Best Regards, -- Rob Krakora MessageNet Systems 101 East Carmel Dr. Suite 105 Carmel, IN 46032 (317)566-1677 Ext 212 (317)663-0808 Fax On Fri, Sep 9, 2011 at 10:05 AM, Paulo Assis pj.as...@gmail.com wrote: Well one important thing to notice is the pixel format returned by the driver, will it differentiate between avc and svc streams, or even mpeg2 ? If not maybe then it becomes harder for generic apps to decode it, unless we use a bunch of switch cases for the different cameras (something like this would be best implemented in the driver though) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com: Hi Robert, As you know its a development camera... I think my camera need some fixing.. my hardware decoder does not work with H.264 stream directly... I added h264parse element before h264 decoder in gstreamer pipeline to make it work. Regards, Ajay Bhargav - Robert Krakora rob.krak...@messagenetsystems.com wrote: Hi Ajay, The encoder in your camera may be different and produce H.264 AVC instead of SVC. The latest gstreamer-ffmpeg did not work for me for the FaceVsion Touchcam E1. Best Regards, Rob Krakora On Fri, Sep 9, 2011 at 9:18 AM, Ajay Bhargav ajay.bhar...@einfochips.com wrote: Hi Paulo, for me ffdec_h264 worked perfectly... I used current stable release of gstreamer-ffmpeg. It has many more formats... --Ajay Bhargav - Paulo Assis pj.as...@gmail.com wrote: Hi, have you tried the open svc decoder ( http://sourceforge.net/projects/opensvcdecoder/ ) ? It would probably be easier to add as dependency. Regards, Paulo 2011/9/9 Alexey Fisher bug-tr...@fisher-privat.net: Hi Paulo, i have video dump from Robert, not v4l2... The problem with it is codec. It seems to be some SVC variant of h264 and ffmpeg can't play it correctly. Robert say, currently only fluh264dec (flyendo plugin for gstreamer) can play it. Am 09.09.2011 13:23, schrieb Paulo Assis: Hi, I was thinking on using ffmpeg (libavcodec) since this is already a guvcview dependency for enconding the streams, decoding them shouldn't be to hard, I just need to understand how they are handled by the driver. This is the reason I need the raw data, you should be able to use the v4l2 capture example to store the buffer data as delivered by the driver (something like buffer-1.raw,...,buffer-n.raw would be nice), or I can send you some code for doing this if you prefer. Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto:ajay.bhar...@einfochips.com Hi Paulo, I am not having H.264 camera, My camera is similar to Facevision's Touchcam E1. It sends out MPEG2-TS stream encoded with H.264. I have recorded some videos during my testing if that is fine for you I can send across... it would be great if guvcview can show compressed streams :) we can make use of gstreamer to achieve this.. -- Ajay Bhargav - Paulo Assis pj.as...@gmail.com mailto:pj.as...@gmail.com wrote: Hi, I would like to add support for H.264 stream format in guvcview, Could you post some stream info, or even better an example of raw data output (does the capture buffer contains an exact frame like in MJPEG ?) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto:ajay.bhar...@einfochips.com Hi Srinivas, UVC fixes wont be needed for you to get your cam output.. You can build gstreamer0.10-ffmpeg to decode H.264 stream, Robert has used fluendo package for decoding. --Ajay - Max Lapshin max.laps...@gmail.com
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Robert, Can you please share you plugins-good patch? Thanks and Regards, Srini --- On Wed, 31/8/11, Ajay Bhargav ajay.bhar...@einfochips.com wrote: From: Ajay Bhargav ajay.bhar...@einfochips.com Subject: Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist To: Robert Krakora rob.krak...@messagenetsystems.com Cc: linux-uvc-devel@lists.berlios.de Date: Wednesday, 31 August, 2011, 6:42 PM #yiv172975403 p {margin:0;} - Robert Krakora rob.krak...@messagenetsystems.com wrote: Hi All, So, to test H.264, I used GStreamer 0.10.35 (+plugins-base 0.10.35) and plugins-good 0.10.30 with the attached patch applied. I also attached the previous patch that I sent you for uvc_video.c for v4l2. Also, I have the Fluendo Codec Bundle installed (www.fluendo.com). GStreamer is available at www.gstreamer.net. To test H.264 from the B990 I used this command line: gst-launch -vvv v4l2src device=/dev/video0 ! video/x-h264, width=1280, height=720, framerate=30/1 ! fluh264dec ! xvimagesink sync=false To test MPEG2 TS from the FaceVsion Touchcam E1 I used this command line: gst-launch -vvv v4l2src device=/dev/video0 ! video/mpegts ! mpegtsdemux ! fluh264dec ! xvimagesink sync=false Best Regards, -- Rob Krakora MessageNet Systems 101 East Carmel Dr. Suite 105 Carmel, IN 46032 (317)566-1677 Ext 212 (317)663-0808 Fax Hi Rob, Thank you so so much I will test and let you know. Regards, Ajay Bhargav -Inline Attachment Follows- ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Srinivas, Patches are attached here... There are more modifications I did to uvc_video to set size of buffer + fid bit toggle after 44 MPEG2-TS packets. What kind of camera are you using? Regards, Ajay Bhargav - Srinivas Mandavilli srinivas.mandavi...@lucivid.com wrote: Hi Robert, Can you please share you plugins-good patch? Thanks and Regards, Srini --- On Wed, 31/8/11, Ajay Bhargav ajay.bhar...@einfochips.com wrote: From: Ajay Bhargav ajay.bhar...@einfochips.com Subject: Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist To: Robert Krakora rob.krak...@messagenetsystems.com Cc: linux-uvc-devel@lists.berlios.de Date: Wednesday, 31 August, 2011, 6:42 PM - Robert Krakora rob.krak...@messagenetsystems.com wrote: Hi All, So, to test H.264, I used GStreamer 0.10.35 (+plugins-base 0.10.35) and plugins-good 0.10.30 with the attached patch applied. I also attached the previous patch that I sent you for uvc_video.c for v4l2. Also, I have the Fluendo Codec Bundle installed ( www.fluendo.com ). GStreamer is available at www.gstreamer.net . To test H.264 from the B990 I used this command line: gst-launch -vvv v4l2src device=/dev/video0 ! video/x-h264, width=1280, height=720, framerate=30/1 ! fluh264dec ! xvimagesink sync=false To test MPEG2 TS from the FaceVsion Touchcam E1 I used this command line: gst-launch -vvv v4l2src device=/dev/video0 ! video/mpegts ! mpegtsdemux ! fluh264dec ! xvimagesink sync=false Best Regards, -- Rob Krakora MessageNet Systems 101 East Carmel Dr. Suite 105 Carmel, IN 46032 (317)566-1677 Ext 212 (317)663-0808 Fax Hi Rob, Thank you so so much I will test and let you know. Regards, Ajay Bhargav -Inline Attachment Follows- ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- This message has been scanned for viruses and dangerous content by Clean Mail Gateway , and is believed to be clean. diff -Naur gst-plugins-good-0.10.30/sys/v4l2/gstv4l2object.c gst-plugins-good-0.10.30-patched/sys/v4l2/gstv4l2object.c --- gst-plugins-good-0.10.30/sys/v4l2/gstv4l2object.c 2011-09-09 12:17:46.297749811 +0530 +++ gst-plugins-good-0.10.30-patched/sys/v4l2/gstv4l2object.c 2011-09-08 12:58:52.558969297 +0530 @@ -41,6 +41,8 @@ #include gst/gst-i18n-plugin.h +#define V4L2_PIX_FMT_H264 v4l2_fourcc('H', '2', '6', '4') /* H264 with start codes */ + /* videodev2.h is not versioned and we can't easily check for the presence * of enum values at compile time, but the V4L2_CAP_VIDEO_OUTPUT_OVERLAY define * was added in the same commit as V4L2_FIELD_INTERLACED_{TB,BT} (b2787845) */ @@ -779,6 +781,7 @@ #endif {V4L2_PIX_FMT_DV, TRUE}, {V4L2_PIX_FMT_MPEG, FALSE}, + {V4L2_PIX_FMT_H264, TRUE}, /* Vendor-specific formats */ {V4L2_PIX_FMT_WNVA, TRUE}, @@ -1254,6 +1257,9 @@ case V4L2_PIX_FMT_MPEG:/* MPEG */ structure = gst_structure_new (video/mpegts, NULL); break; +case V4L2_PIX_FMT_H264:/* H264 */ + structure = gst_structure_new (video/x-h264, NULL); + break; case V4L2_PIX_FMT_WNVA:/* Winnov hw compres */ break; #ifdef V4L2_PIX_FMT_SBGGR8 @@ -1347,6 +1353,8 @@ fourcc = V4L2_PIX_FMT_MPEG; *fps_n = 0; *fps_d = 1; +/* Patch Ajay */ +outsize = 44 * 188; goto done; } @@ -1450,6 +1458,8 @@ fourcc = V4L2_PIX_FMT_DV; } else if (strcmp (mimetype, image/jpeg) == 0) { fourcc = V4L2_PIX_FMT_JPEG; + } else if (strcmp (mimetype, video/x-h264) == 0) { +fourcc = V4L2_PIX_FMT_H264; #ifdef V4L2_PIX_FMT_SBGGR8 } else if (strcmp (mimetype, video/x-raw-bayer) == 0) { fourcc = V4L2_PIX_FMT_SBGGR8; @@ -1725,8 +1735,12 @@ GList *results = NULL; guint32 w, h; +#if 0 if (pixelformat == GST_MAKE_FOURCC ('M', 'P', 'E', 'G')) + { return gst_caps_new_simple (video/mpegts, NULL); + } +#endif memset (size, 0, sizeof (struct v4l2_frmsizeenum)); size.index = 0; @@ -2048,8 +2062,10 @@ GST_V4L2_CHECK_OPEN (v4l2object); GST_V4L2_CHECK_NOT_ACTIVE (v4l2object); +#if 0 if (pixelformat == GST_MAKE_FOURCC ('M', 'P', 'E', 'G')) return TRUE; +#endif memset (format, 0x00, sizeof (struct v4l2_format)); format.type = v4l2object-type; diff -Naur gst-plugins-good-0.10.30/sys/v4l2/gstv4l2src.c gst-plugins-good-0.10.30-patched/sys/v4l2/gstv4l2src.c --- gst-plugins-good-0.10.30/sys/v4l2/gstv4l2src.c 2011-06-14 04:54:13.0 +0530 +++ gst-plugins-good-0.10.30-patched/sys/v4l2/gstv4l2src.c 2011-09-09 12:19:56.902091640 +0530 @@ -908,7 +908,7 @@ size = GST_BUFFER_SIZE (temp); /* if size does not match what we expected, try again */ -if (size != v4l2src-frame_byte_size) { +/* if (size != v4l2src-frame_byte_size) { GST_ELEMENT_WARNING (v4l2src, RESOURCE, READ, (_(Got unexpected frame size of %u
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Thanks Ajay! I just got a B990, and am trying to stream out H264. Srini --- On Fri, 9/9/11, Ajay Bhargav ajay.bhar...@einfochips.com wrote: From: Ajay Bhargav ajay.bhar...@einfochips.com Subject: Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist To: Srinivas Mandavilli srinivas.mandavi...@lucivid.com Cc: linux-uvc-devel@lists.berlios.de, Robert Krakora rob.krak...@messagenetsystems.com Date: Friday, 9 September, 2011, 12:14 PM #yiv1264946079 p {margin:0;}Hi Srinivas, Patches are attached here... There are more modifications I did to uvc_video to set size of buffer + fid bit toggle after 44 MPEG2-TS packets. What kind of camera are you using? Regards, Ajay Bhargav - Srinivas Mandavilli srinivas.mandavi...@lucivid.com wrote: Hi Robert, Can you please share you plugins-good patch? Thanks and Regards, Srini --- On Wed, 31/8/11, Ajay Bhargav ajay.bhar...@einfochips.com wrote: From: Ajay Bhargav ajay.bhar...@einfochips.com Subject: Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist To: Robert Krakora rob.krak...@messagenetsystems.com Cc: linux-uvc-devel@lists.berlios.de Date: Wednesday, 31 August, 2011, 6:42 PM #yiv1264946079 p {margin:0;} - Robert Krakora rob.krak...@messagenetsystems.com wrote: Hi All, So, to test H.264, I used GStreamer 0.10.35 (+plugins-base 0.10.35) and plugins-good 0.10.30 with the attached patch applied. I also attached the previous patch that I sent you for uvc_video.c for v4l2. Also, I have the Fluendo Codec Bundle installed (www.fluendo.com). GStreamer is available at www.gstreamer.net. To test H.264 from the B990 I used this command line: gst-launch -vvv v4l2src device=/dev/video0 ! video/x-h264, width=1280, height=720, framerate=30/1 ! fluh264dec ! xvimagesink sync=false To test MPEG2 TS from the FaceVsion Touchcam E1 I used this command line: gst-launch -vvv v4l2src device=/dev/video0 ! video/mpegts ! mpegtsdemux ! fluh264dec ! xvimagesink sync=false Best Regards, -- Rob Krakora MessageNet Systems 101 East Carmel Dr. Suite 105 Carmel, IN 46032 (317)566-1677 Ext 212 (317)663-0808 Fax Hi Rob, Thank you so so much I will test and let you know. Regards, Ajay Bhargav -Inline Attachment Follows- ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- This message has been scanned for viruses and dangerous content by Clean Mail Gateway, and is believed to be clean. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Srinivas, UVC fixes wont be needed for you to get your cam output.. You can build gstreamer0.10-ffmpeg to decode H.264 stream, Robert has used fluendo package for decoding. --Ajay - Max Lapshin max.laps...@gmail.com wrote: On Fri, Sep 9, 2011 at 11:01 AM, Srinivas Mandavilli srinivas.mandavi...@lucivid.com wrote: Thanks Ajay! I just got a B990, and am trying to stream out H264. Hi, Srinivas. Be so kind: if you will have success with it, write an email: what kernel version are you using? I failed to do it with kernel 3.0.0 -- This message has been scanned for viruses and dangerous content by Clean Mail Gateway , and is believed to be clean. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi, I would like to add support for H.264 stream format in guvcview, Could you post some stream info, or even better an example of raw data output (does the capture buffer contains an exact frame like in MJPEG ?) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com Hi Srinivas, UVC fixes wont be needed for you to get your cam output.. You can build gstreamer0.10-ffmpeg to decode H.264 stream, Robert has used fluendo package for decoding. --Ajay - Max Lapshin max.laps...@gmail.com wrote: On Fri, Sep 9, 2011 at 11:01 AM, Srinivas Mandavilli srinivas.mandavi...@lucivid.com wrote: Thanks Ajay! I just got a B990, and am trying to stream out H264. Hi, Srinivas. Be so kind: if you will have success with it, write an email: what kernel version are you using? I failed to do it with kernel 3.0.0 -- This message has been scanned for viruses and dangerous content by *Clean Mail Gateway*http://www.CleanMailGateway.com/, and is believed to be clean. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Paulo, I am not having H.264 camera, My camera is similar to Facevision's Touchcam E1. It sends out MPEG2-TS stream encoded with H.264. I have recorded some videos during my testing if that is fine for you I can send across... it would be great if guvcview can show compressed streams :) we can make use of gstreamer to achieve this.. -- Ajay Bhargav - Paulo Assis pj.as...@gmail.com wrote: Hi, I would like to add support for H.264 stream format in guvcview, Could you post some stream info, or even better an example of raw data output (does the capture buffer contains an exact frame like in MJPEG ?) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com Hi Srinivas, UVC fixes wont be needed for you to get your cam output.. You can build gstreamer0.10-ffmpeg to decode H.264 stream, Robert has used fluendo package for decoding. --Ajay - Max Lapshin max.laps...@gmail.com wrote: On Fri, Sep 9, 2011 at 11:01 AM, Srinivas Mandavilli srinivas.mandavi...@lucivid.com wrote: Thanks Ajay! I just got a B990, and am trying to stream out H264. Hi, Srinivas. Be so kind: if you will have success with it, write an email: what kernel version are you using? I failed to do it with kernel 3.0.0 -- This message has been scanned for viruses and dangerous content by Clean Mail Gateway , and is believed to be clean. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- This message has been scanned for viruses and dangerous content by Clean Mail Gateway , and is believed to be clean. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi, I was thinking on using ffmpeg (libavcodec) since this is already a guvcview dependency for enconding the streams, decoding them shouldn't be to hard, I just need to understand how they are handled by the driver. This is the reason I need the raw data, you should be able to use the v4l2 capture example to store the buffer data as delivered by the driver (something like buffer-1.raw,...,buffer-n.raw would be nice), or I can send you some code for doing this if you prefer. Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com Hi Paulo, I am not having H.264 camera, My camera is similar to Facevision's Touchcam E1. It sends out MPEG2-TS stream encoded with H.264. I have recorded some videos during my testing if that is fine for you I can send across... it would be great if guvcview can show compressed streams :) we can make use of gstreamer to achieve this.. -- Ajay Bhargav - Paulo Assis pj.as...@gmail.com wrote: Hi, I would like to add support for H.264 stream format in guvcview, Could you post some stream info, or even better an example of raw data output (does the capture buffer contains an exact frame like in MJPEG ?) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com Hi Srinivas, UVC fixes wont be needed for you to get your cam output.. You can build gstreamer0.10-ffmpeg to decode H.264 stream, Robert has used fluendo package for decoding. --Ajay - Max Lapshin max.laps...@gmail.com wrote: On Fri, Sep 9, 2011 at 11:01 AM, Srinivas Mandavilli srinivas.mandavi...@lucivid.com wrote: Thanks Ajay! I just got a B990, and am trying to stream out H264. Hi, Srinivas. Be so kind: if you will have success with it, write an email: what kernel version are you using? I failed to do it with kernel 3.0.0 -- This message has been scanned for viruses and dangerous content by *Clean Mail Gateway*http://www.CleanMailGateway.com/, and is believed to be clean. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- This message has been scanned for viruses and dangerous content by *Clean Mail Gateway*http://www.CleanMailGateway.com/, and is believed to be clean. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi, have you tried the open svc decoder ( http://sourceforge.net/projects/opensvcdecoder/ ) ? It would probably be easier to add as dependency. Regards, Paulo 2011/9/9 Alexey Fisher bug-tr...@fisher-privat.net: Hi Paulo, i have video dump from Robert, not v4l2... The problem with it is codec. It seems to be some SVC variant of h264 and ffmpeg can't play it correctly. Robert say, currently only fluh264dec (flyendo plugin for gstreamer) can play it. Am 09.09.2011 13:23, schrieb Paulo Assis: Hi, I was thinking on using ffmpeg (libavcodec) since this is already a guvcview dependency for enconding the streams, decoding them shouldn't be to hard, I just need to understand how they are handled by the driver. This is the reason I need the raw data, you should be able to use the v4l2 capture example to store the buffer data as delivered by the driver (something like buffer-1.raw,...,buffer-n.raw would be nice), or I can send you some code for doing this if you prefer. Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto:ajay.bhar...@einfochips.com Hi Paulo, I am not having H.264 camera, My camera is similar to Facevision's Touchcam E1. It sends out MPEG2-TS stream encoded with H.264. I have recorded some videos during my testing if that is fine for you I can send across... it would be great if guvcview can show compressed streams :) we can make use of gstreamer to achieve this.. -- Ajay Bhargav - Paulo Assis pj.as...@gmail.com mailto:pj.as...@gmail.com wrote: Hi, I would like to add support for H.264 stream format in guvcview, Could you post some stream info, or even better an example of raw data output (does the capture buffer contains an exact frame like in MJPEG ?) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto:ajay.bhar...@einfochips.com Hi Srinivas, UVC fixes wont be needed for you to get your cam output.. You can build gstreamer0.10-ffmpeg to decode H.264 stream, Robert has used fluendo package for decoding. --Ajay - Max Lapshin max.laps...@gmail.com mailto:max.laps...@gmail.com wrote: On Fri, Sep 9, 2011 at 11:01 AM, Srinivas Mandavilli srinivas.mandavi...@lucivid.com mailto:srinivas.mandavi...@lucivid.com wrote: Thanks Ajay! I just got a B990, and am trying to stream out H264. Hi, Srinivas. Be so kind: if you will have success with it, write an email: what kernel version are you using? I failed to do it with kernel 3.0.0 -- This message has been scanned for viruses and dangerous content by *Clean Mail Gateway* http://www.CleanMailGateway.com/, and is believed to be clean. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de mailto:Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- This message has been scanned for viruses and dangerous content by *Clean Mail Gateway* http://www.CleanMailGateway.com/, and is believed to be clean. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Paulo, for me ffdec_h264 worked perfectly... I used current stable release of gstreamer-ffmpeg. It has many more formats... --Ajay Bhargav - Paulo Assis pj.as...@gmail.com wrote: Hi, have you tried the open svc decoder ( http://sourceforge.net/projects/opensvcdecoder/ ) ? It would probably be easier to add as dependency. Regards, Paulo 2011/9/9 Alexey Fisher bug-tr...@fisher-privat.net: Hi Paulo, i have video dump from Robert, not v4l2... The problem with it is codec. It seems to be some SVC variant of h264 and ffmpeg can't play it correctly. Robert say, currently only fluh264dec (flyendo plugin for gstreamer) can play it. Am 09.09.2011 13:23, schrieb Paulo Assis: Hi, I was thinking on using ffmpeg (libavcodec) since this is already a guvcview dependency for enconding the streams, decoding them shouldn't be to hard, I just need to understand how they are handled by the driver. This is the reason I need the raw data, you should be able to use the v4l2 capture example to store the buffer data as delivered by the driver (something like buffer-1.raw,...,buffer-n.raw would be nice), or I can send you some code for doing this if you prefer. Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto:ajay.bhar...@einfochips.com Hi Paulo, I am not having H.264 camera, My camera is similar to Facevision's Touchcam E1. It sends out MPEG2-TS stream encoded with H.264. I have recorded some videos during my testing if that is fine for you I can send across... it would be great if guvcview can show compressed streams :) we can make use of gstreamer to achieve this.. -- Ajay Bhargav - Paulo Assis pj.as...@gmail.com mailto:pj.as...@gmail.com wrote: Hi, I would like to add support for H.264 stream format in guvcview, Could you post some stream info, or even better an example of raw data output (does the capture buffer contains an exact frame like in MJPEG ?) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto:ajay.bhar...@einfochips.com Hi Srinivas, UVC fixes wont be needed for you to get your cam output.. You can build gstreamer0.10-ffmpeg to decode H.264 stream, Robert has used fluendo package for decoding. --Ajay - Max Lapshin max.laps...@gmail.com mailto:max.laps...@gmail.com wrote: On Fri, Sep 9, 2011 at 11:01 AM, Srinivas Mandavilli srinivas.mandavi...@lucivid.com mailto:srinivas.mandavi...@lucivid.com wrote: Thanks Ajay! I just got a B990, and am trying to stream out H264. Hi, Srinivas. Be so kind: if you will have success with it, write an email: what kernel version are you using? I failed to do it with kernel 3.0.0 -- This message has been scanned for viruses and dangerous content by *Clean Mail Gateway* http://www.CleanMailGateway.com/, and is believed to be clean. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de mailto:Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- This message has been scanned for viruses and dangerous content by *Clean Mail Gateway* http://www.CleanMailGateway.com/, and is believed to be clean. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- This message has been scanned for viruses and dangerous content by Clean Mail Gateway, and is believed to be clean. * einfochips Business Disclaimer : This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Robert, As you know its a development camera... I think my camera need some fixing.. my hardware decoder does not work with H.264 stream directly... I added h264parse element before h264 decoder in gstreamer pipeline to make it work. Regards, Ajay Bhargav - Robert Krakora rob.krak...@messagenetsystems.com wrote: Hi Ajay, The encoder in your camera may be different and produce H.264 AVC instead of SVC. The latest gstreamer-ffmpeg did not work for me for the FaceVsion Touchcam E1. Best Regards, Rob Krakora On Fri, Sep 9, 2011 at 9:18 AM, Ajay Bhargav ajay.bhar...@einfochips.com wrote: Hi Paulo, for me ffdec_h264 worked perfectly... I used current stable release of gstreamer-ffmpeg. It has many more formats... --Ajay Bhargav - Paulo Assis pj.as...@gmail.com wrote: Hi, have you tried the open svc decoder ( http://sourceforge.net/projects/opensvcdecoder/ ) ? It would probably be easier to add as dependency. Regards, Paulo 2011/9/9 Alexey Fisher bug-tr...@fisher-privat.net : Hi Paulo, i have video dump from Robert, not v4l2... The problem with it is codec. It seems to be some SVC variant of h264 and ffmpeg can't play it correctly. Robert say, currently only fluh264dec (flyendo plugin for gstreamer) can play it. Am 09.09.2011 13:23, schrieb Paulo Assis: Hi, I was thinking on using ffmpeg (libavcodec) since this is already a guvcview dependency for enconding the streams, decoding them shouldn't be to hard, I just need to understand how they are handled by the driver. This is the reason I need the raw data, you should be able to use the v4l2 capture example to store the buffer data as delivered by the driver (something like buffer-1.raw,...,buffer-n.raw would be nice), or I can send you some code for doing this if you prefer. Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto: ajay.bhar...@einfochips.com Hi Paulo, I am not having H.264 camera, My camera is similar to Facevision's Touchcam E1. It sends out MPEG2-TS stream encoded with H.264. I have recorded some videos during my testing if that is fine for you I can send across... it would be great if guvcview can show compressed streams :) we can make use of gstreamer to achieve this.. -- Ajay Bhargav - Paulo Assis pj.as...@gmail.com mailto: pj.as...@gmail.com wrote: Hi, I would like to add support for H.264 stream format in guvcview, Could you post some stream info, or even better an example of raw data output (does the capture buffer contains an exact frame like in MJPEG ?) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto: ajay.bhar...@einfochips.com Hi Srinivas, UVC fixes wont be needed for you to get your cam output.. You can build gstreamer0.10-ffmpeg to decode H.264 stream, Robert has used fluendo package for decoding. --Ajay - Max Lapshin max.laps...@gmail.com mailto: max.laps...@gmail.com wrote: On Fri, Sep 9, 2011 at 11:01 AM, Srinivas Mandavilli srinivas.mandavi...@lucivid.com mailto: srinivas.mandavi...@lucivid.com wrote: Thanks Ajay! I just got a B990, and am trying to stream out H264. Hi, Srinivas. Be so kind: if you will have success with it, write an email: what kernel version are you using? I failed to do it with kernel 3.0.0 -- This message has been scanned for viruses and dangerous content by *Clean Mail Gateway* http://www.CleanMailGateway.com/ , and is believed to be clean. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de mailto: Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- This message has been scanned for viruses and dangerous content by *Clean Mail Gateway* http://www.CleanMailGateway.com/ , and is believed to be clean. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- This message has been scanned for viruses and dangerous content by Clean Mail Gateway, and is believed to be clean. * einfochips Business Disclaimer : This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Well one important thing to notice is the pixel format returned by the driver, will it differentiate between avc and svc streams, or even mpeg2 ? If not maybe then it becomes harder for generic apps to decode it, unless we use a bunch of switch cases for the different cameras (something like this would be best implemented in the driver though) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com: Hi Robert, As you know its a development camera... I think my camera need some fixing.. my hardware decoder does not work with H.264 stream directly... I added h264parse element before h264 decoder in gstreamer pipeline to make it work. Regards, Ajay Bhargav - Robert Krakora rob.krak...@messagenetsystems.com wrote: Hi Ajay, The encoder in your camera may be different and produce H.264 AVC instead of SVC. The latest gstreamer-ffmpeg did not work for me for the FaceVsion Touchcam E1. Best Regards, Rob Krakora On Fri, Sep 9, 2011 at 9:18 AM, Ajay Bhargav ajay.bhar...@einfochips.com wrote: Hi Paulo, for me ffdec_h264 worked perfectly... I used current stable release of gstreamer-ffmpeg. It has many more formats... --Ajay Bhargav - Paulo Assis pj.as...@gmail.com wrote: Hi, have you tried the open svc decoder ( http://sourceforge.net/projects/opensvcdecoder/ ) ? It would probably be easier to add as dependency. Regards, Paulo 2011/9/9 Alexey Fisher bug-tr...@fisher-privat.net: Hi Paulo, i have video dump from Robert, not v4l2... The problem with it is codec. It seems to be some SVC variant of h264 and ffmpeg can't play it correctly. Robert say, currently only fluh264dec (flyendo plugin for gstreamer) can play it. Am 09.09.2011 13:23, schrieb Paulo Assis: Hi, I was thinking on using ffmpeg (libavcodec) since this is already a guvcview dependency for enconding the streams, decoding them shouldn't be to hard, I just need to understand how they are handled by the driver. This is the reason I need the raw data, you should be able to use the v4l2 capture example to store the buffer data as delivered by the driver (something like buffer-1.raw,...,buffer-n.raw would be nice), or I can send you some code for doing this if you prefer. Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto:ajay.bhar...@einfochips.com Hi Paulo, I am not having H.264 camera, My camera is similar to Facevision's Touchcam E1. It sends out MPEG2-TS stream encoded with H.264. I have recorded some videos during my testing if that is fine for you I can send across... it would be great if guvcview can show compressed streams :) we can make use of gstreamer to achieve this.. -- Ajay Bhargav - Paulo Assis pj.as...@gmail.com mailto:pj.as...@gmail.com wrote: Hi, I would like to add support for H.264 stream format in guvcview, Could you post some stream info, or even better an example of raw data output (does the capture buffer contains an exact frame like in MJPEG ?) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto:ajay.bhar...@einfochips.com Hi Srinivas, UVC fixes wont be needed for you to get your cam output.. You can build gstreamer0.10-ffmpeg to decode H.264 stream, Robert has used fluendo package for decoding. --Ajay - Max Lapshin max.laps...@gmail.com mailto:max.laps...@gmail.com wrote: On Fri, Sep 9, 2011 at 11:01 AM, Srinivas Mandavilli srinivas.mandavi...@lucivid.com mailto:srinivas.mandavi...@lucivid.com wrote: Thanks Ajay! I just got a B990, and am trying to stream out H264. Hi, Srinivas. Be so kind: if you will have success with it, write an email: what kernel version are you using? I failed to do it with kernel 3.0.0 -- This message has been scanned for viruses and dangerous content by *Clean Mail Gateway* http://www.CleanMailGateway.com/, and is believed to be clean. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de mailto:Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- This message has been scanned for viruses and dangerous content by *Clean Mail Gateway* http://www.CleanMailGateway.com/, and is believed to be clean.
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi, see attached a patched capture example, for saving the driver output buffer into raw files (200). I haven't been able to test build it, but the changes are minimal so it should work. You just need to change the resolution, and maybe the pixel format to whatever the driver expects. see lines 495-497. Regards, Paulo 2011/9/9 Robert Krakora rob.krak...@messagenetsystems.com: All, I forgot to tell you that I came up with one more patch for the UVC source in v4l2 to get MPEG2 transport streams to behave correctly. I have attached it to this e-mail. My sincerest apologies. Best Regards, -- Rob Krakora MessageNet Systems 101 East Carmel Dr. Suite 105 Carmel, IN 46032 (317)566-1677 Ext 212 (317)663-0808 Fax On Fri, Sep 9, 2011 at 10:05 AM, Paulo Assis pj.as...@gmail.com wrote: Well one important thing to notice is the pixel format returned by the driver, will it differentiate between avc and svc streams, or even mpeg2 ? If not maybe then it becomes harder for generic apps to decode it, unless we use a bunch of switch cases for the different cameras (something like this would be best implemented in the driver though) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com: Hi Robert, As you know its a development camera... I think my camera need some fixing.. my hardware decoder does not work with H.264 stream directly... I added h264parse element before h264 decoder in gstreamer pipeline to make it work. Regards, Ajay Bhargav - Robert Krakora rob.krak...@messagenetsystems.com wrote: Hi Ajay, The encoder in your camera may be different and produce H.264 AVC instead of SVC. The latest gstreamer-ffmpeg did not work for me for the FaceVsion Touchcam E1. Best Regards, Rob Krakora On Fri, Sep 9, 2011 at 9:18 AM, Ajay Bhargav ajay.bhar...@einfochips.com wrote: Hi Paulo, for me ffdec_h264 worked perfectly... I used current stable release of gstreamer-ffmpeg. It has many more formats... --Ajay Bhargav - Paulo Assis pj.as...@gmail.com wrote: Hi, have you tried the open svc decoder ( http://sourceforge.net/projects/opensvcdecoder/ ) ? It would probably be easier to add as dependency. Regards, Paulo 2011/9/9 Alexey Fisher bug-tr...@fisher-privat.net: Hi Paulo, i have video dump from Robert, not v4l2... The problem with it is codec. It seems to be some SVC variant of h264 and ffmpeg can't play it correctly. Robert say, currently only fluh264dec (flyendo plugin for gstreamer) can play it. Am 09.09.2011 13:23, schrieb Paulo Assis: Hi, I was thinking on using ffmpeg (libavcodec) since this is already a guvcview dependency for enconding the streams, decoding them shouldn't be to hard, I just need to understand how they are handled by the driver. This is the reason I need the raw data, you should be able to use the v4l2 capture example to store the buffer data as delivered by the driver (something like buffer-1.raw,...,buffer-n.raw would be nice), or I can send you some code for doing this if you prefer. Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto:ajay.bhar...@einfochips.com Hi Paulo, I am not having H.264 camera, My camera is similar to Facevision's Touchcam E1. It sends out MPEG2-TS stream encoded with H.264. I have recorded some videos during my testing if that is fine for you I can send across... it would be great if guvcview can show compressed streams :) we can make use of gstreamer to achieve this.. -- Ajay Bhargav - Paulo Assis pj.as...@gmail.com mailto:pj.as...@gmail.com wrote: Hi, I would like to add support for H.264 stream format in guvcview, Could you post some stream info, or even better an example of raw data output (does the capture buffer contains an exact frame like in MJPEG ?) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto:ajay.bhar...@einfochips.com Hi Srinivas, UVC fixes wont be needed for you to get your cam output.. You can build gstreamer0.10-ffmpeg to decode H.264 stream, Robert has used fluendo package for decoding. --Ajay - Max Lapshin max.laps...@gmail.com mailto:max.laps...@gmail.com wrote: On Fri, Sep 9, 2011 at 11:01 AM, Srinivas Mandavilli srinivas.mandavi...@lucivid.com mailto:srinivas.mandavi...@lucivid.com wrote: Thanks Ajay! I just got a B990, and am trying to stream out H264.
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Just remember to set the -o option when grabbing the frames (the output will be redirected to the files and not stdout as displayed in the help message) These files should allow me to add support for the camera in guvcview. Regards, Paulo 2011/9/9 Robert Krakora rob.krak...@messagenetsystems.com: Thanks Paulo! On Fri, Sep 9, 2011 at 10:50 AM, Paulo Assis pj.as...@gmail.com wrote: Hi, see attached a patched capture example, for saving the driver output buffer into raw files (200). I haven't been able to test build it, but the changes are minimal so it should work. You just need to change the resolution, and maybe the pixel format to whatever the driver expects. see lines 495-497. Regards, Paulo 2011/9/9 Robert Krakora rob.krak...@messagenetsystems.com: All, I forgot to tell you that I came up with one more patch for the UVC source in v4l2 to get MPEG2 transport streams to behave correctly. I have attached it to this e-mail. My sincerest apologies. Best Regards, -- Rob Krakora MessageNet Systems 101 East Carmel Dr. Suite 105 Carmel, IN 46032 (317)566-1677 Ext 212 (317)663-0808 Fax On Fri, Sep 9, 2011 at 10:05 AM, Paulo Assis pj.as...@gmail.com wrote: Well one important thing to notice is the pixel format returned by the driver, will it differentiate between avc and svc streams, or even mpeg2 ? If not maybe then it becomes harder for generic apps to decode it, unless we use a bunch of switch cases for the different cameras (something like this would be best implemented in the driver though) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com: Hi Robert, As you know its a development camera... I think my camera need some fixing.. my hardware decoder does not work with H.264 stream directly... I added h264parse element before h264 decoder in gstreamer pipeline to make it work. Regards, Ajay Bhargav - Robert Krakora rob.krak...@messagenetsystems.com wrote: Hi Ajay, The encoder in your camera may be different and produce H.264 AVC instead of SVC. The latest gstreamer-ffmpeg did not work for me for the FaceVsion Touchcam E1. Best Regards, Rob Krakora On Fri, Sep 9, 2011 at 9:18 AM, Ajay Bhargav ajay.bhar...@einfochips.com wrote: Hi Paulo, for me ffdec_h264 worked perfectly... I used current stable release of gstreamer-ffmpeg. It has many more formats... --Ajay Bhargav - Paulo Assis pj.as...@gmail.com wrote: Hi, have you tried the open svc decoder ( http://sourceforge.net/projects/opensvcdecoder/ ) ? It would probably be easier to add as dependency. Regards, Paulo 2011/9/9 Alexey Fisher bug-tr...@fisher-privat.net: Hi Paulo, i have video dump from Robert, not v4l2... The problem with it is codec. It seems to be some SVC variant of h264 and ffmpeg can't play it correctly. Robert say, currently only fluh264dec (flyendo plugin for gstreamer) can play it. Am 09.09.2011 13:23, schrieb Paulo Assis: Hi, I was thinking on using ffmpeg (libavcodec) since this is already a guvcview dependency for enconding the streams, decoding them shouldn't be to hard, I just need to understand how they are handled by the driver. This is the reason I need the raw data, you should be able to use the v4l2 capture example to store the buffer data as delivered by the driver (something like buffer-1.raw,...,buffer-n.raw would be nice), or I can send you some code for doing this if you prefer. Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto:ajay.bhar...@einfochips.com Hi Paulo, I am not having H.264 camera, My camera is similar to Facevision's Touchcam E1. It sends out MPEG2-TS stream encoded with H.264. I have recorded some videos during my testing if that is fine for you I can send across... it would be great if guvcview can show compressed streams :) we can make use of gstreamer to achieve this.. -- Ajay Bhargav - Paulo Assis pj.as...@gmail.com mailto:pj.as...@gmail.com wrote: Hi, I would like to add support for H.264 stream format in guvcview, Could you post some stream info, or even better an example of raw data output (does the capture buffer contains an exact frame like in MJPEG ?) Regards, Paulo 2011/9/9 Ajay Bhargav ajay.bhar...@einfochips.com mailto:ajay.bhar...@einfochips.com Hi Srinivas, UVC fixes wont be needed for you to get your cam
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Robert Krakora rob.krakora at messagenetsystems.com writes: Hello, I just mentioned in a previous post that I have the B990 streaming H.264 with Stephan's patches for v4l2 and some patches to GStreamer plugins-good for the v4l2src element. There were two additional changes I made beyond Stephan's that I believe are necessary. I have this running on CentOS 6.0 with GStreamer 0.10.35 and GStreamer plugins-good 0.10.30 (patched). Logitech does NOT follow the specification that they co-authored and submitted to USB-IF where H.264 content is multiplexed in the Motion JPEG container. It is merely exposed as another interface in the one and only configuration identified by the H.264 GUID. I posted a question to Logitech about how to gain access to the encoder controls via the XUs but have heard nothing back yet. Best Regards, Rob Krakora rob, i just acquired the B990 as well. would you mind posting links to the patches you mentioned and the additional changes you made? i'm trying to get the B990 running with GStreamer (ultimately on windows, but i think looking at the linux code will help). if i understand you correctly, the B990 delivers the H.264 stream (identified by the H.264 GUID) separately from the MJPG stream? they are not muxed together? so it can deliver either H.264 or MJPG stream, but not both at the same time? thanks, kate ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi, On Wed, Aug 31, 2011 at 1:07 AM, Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: Hi Max, On Saturday 27 August 2011 11:50:55 Max Lapshin wrote: By the way, have you seen document http://www.usb.org/developers/devclass_docs/USB_Video_Class_1_1_052811.zip ? There are some encoder setup options. That's the totally broken spec I don't want to support. Even if it allows Linux users to use Skype with hardware encoding camera ? -- Regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- Pierre Gronlier ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Am 31.08.2011 08:36, schrieb Pierre Gronlier: Hi, On Wed, Aug 31, 2011 at 1:07 AM, Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: Hi Max, On Saturday 27 August 2011 11:50:55 Max Lapshin wrote: By the way, have you seen document http://www.usb.org/developers/devclass_docs/USB_Video_Class_1_1_052811.zip ? There are some encoder setup options. That's the totally broken spec I don't want to support. Even if it allows Linux users to use Skype with hardware encoding camera ? I think the question like to do or not to do is not quiet correct here. If make this webcam work, will do help in some situations... then why not. But it looks like Laurent is only responsible for UVC module and he is right - it is not belong to uvc. But - there are some cam now, what use uvc and notuvc stuff. It will be interesting to use uvcvideo like a library and have some extension part. B990 is one of this. On other side, if logitech will make next month new cam with other H264 specification, it will be work for one cam only. Then automatically will come the question, who will maintain this code. One more question: do h264 part work out of the box with uvc driver on windows? Regards, Alexey ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
On Wed, Aug 31, 2011 at 12:04 PM, Alexey Fisher bug-tr...@fisher-privat.net wrote: But - there are some cam now, what use uvc and notuvc stuff. It will be interesting to use uvcvideo like a library and have some extension part. B990 is one of this. On other side, if logitech will make next month new cam with other H264 specification, it will be work for one cam only. Then automatically will come the question, who will maintain this code. One more question: do h264 part work out of the box with uvc driver on windows? Currently I see other problem: I can't find patchset in mailing list. So it is hard to discuss if B990 is UVC or not UVC. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Robert, On Wednesday 31 August 2011 03:59:18 Robert Krakora wrote: Hi Laurent, The Logitech B990 does not adhere to the USB-IF spec to which you have referred. Multiplexing H.264 in a Motion JPEG container is a bit odd. Stephan's patches from earlier this year and some slight modifications to the GStreamer v4l2src element were sufficient. I can see why you would reject patches for any cameras that adhere to the USB-IF spec, but I don't know why you would not consider accepting Stephan's patches. They seem pretty benign. The FaceVsion E1 exposes H.264 as a MPEG2 transport stream (another one of Stephan's patches), I have this working as well although there seems to be a audio/video synchronization problem. That's something I plan to (at least try to) support. FaceVsion unfortunately ignored all my e-mails when I asked them for a camera sample. -- Regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
- Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: Hi Robert, On Wednesday 31 August 2011 03:59:18 Robert Krakora wrote: Hi Laurent, The Logitech B990 does not adhere to the USB-IF spec to which you have referred. Multiplexing H.264 in a Motion JPEG container is a bit odd. Stephan's patches from earlier this year and some slight modifications to the GStreamer v4l2src element were sufficient. I can see why you would reject patches for any cameras that adhere to the USB-IF spec, but I don't know why you would not consider accepting Stephan's patches. They seem pretty benign. The FaceVsion E1 exposes H.264 as a MPEG2 transport stream (another one of Stephan's patches), I have this working as well although there seems to be a audio/video synchronization problem. That's something I plan to (at least try to) support. FaceVsion unfortunately ignored all my e-mails when I asked them for a camera sample. -- Regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel It would be great if you can add that support.. Even I have a camera with MPEG2TS. Can you point me to Stephan's patches I want can test my cam. Regards, Ajay Bhargav ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
On Wed, Aug 31, 2011 at 3:29 PM, Robert Krakora rob.krak...@messagenetsystems.com wrote: Here are the patches I used for v4l2. I have an additional patch for the v4l2src element for GStreamer that I am going to create and e-mail as well. Many thanks to Stephan for his work on these patches. H264 (Logitech): https://patchwork.kernel.org/patch/515631/ MPEG2 TS (FaceVsion): https://patchwork.kernel.org/patch/515621/ I can hardly understand, what is the problem in 4-lines patch, that looks like other code. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
- Robert Krakora rob.krak...@messagenetsystems.com wrote: Here are the patches I used for v4l2. I have an additional patch for the v4l2src element for GStreamer that I am going to create and e-mail as well. Many thanks to Stephan for his work on these patches. H264 (Logitech): https://patchwork.kernel.org/patch/515631/ MPEG2 TS (FaceVsion): https://patchwork.kernel.org/patch/515621/ On Wed, Aug 31, 2011 at 4:27 AM, Ajay Bhargav ajay.bhar...@einfochips.com wrote: - Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: Hi Robert, On Wednesday 31 August 2011 03:59:18 Robert Krakora wrote: Hi Laurent, The Logitech B990 does not adhere to the USB-IF spec to which you have referred. Multiplexing H.264 in a Motion JPEG container is a bit odd. Stephan's patches from earlier this year and some slight modifications to the GStreamer v4l2src element were sufficient. I can see why you would reject patches for any cameras that adhere to the USB-IF spec, but I don't know why you would not consider accepting Stephan's patches. They seem pretty benign. The FaceVsion E1 exposes H.264 as a MPEG2 transport stream (another one of Stephan's patches), I have this working as well although there seems to be a audio/video synchronization problem. That's something I plan to (at least try to) support. FaceVsion unfortunately ignored all my e-mails when I asked them for a camera sample. -- Regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel It would be great if you can add that support.. Even I have a camera with MPEG2TS. Can you point me to Stephan's patches I want can test my cam. Regards, Ajay Bhargav -- Rob Krakora MessageNet Systems 101 East Carmel Dr. Suite 105 Carmel, IN 46032 (317)566-1677 Ext 212 (317)663-0808 Fax -- This message has been scanned for viruses and dangerous content by Clean Mail Gateway , and is believed to be clean. Hi rob, Thank you so much for links... I already have done the MPEG2 TS patching. I am able to get my cam registered as a video device now. But how do i check it's o/p? I have a uvcgrab application which takes one frame and store it, but it does not work. I added my UVC driver with full tracing and i see that frame rate is way too high.. which is not possible. Please help me with testing my cam. Thanks Regards, Ajay Bhargav ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Max, On Wednesday 31 August 2011 13:44:29 Max Lapshin wrote: On Wed, Aug 31, 2011 at 3:29 PM, Robert Krakora wrote: Here are the patches I used for v4l2. I have an additional patch for the v4l2src element for GStreamer that I am going to create and e-mail as well. Many thanks to Stephan for his work on these patches. H264 (Logitech): https://patchwork.kernel.org/patch/515631/ MPEG2 TS (FaceVsion): https://patchwork.kernel.org/patch/515621/ I can hardly understand, what is the problem in 4-lines patch, that looks like other code. The first patch was rejected back then because H.264 support in the V4L2 API had to be implemented differently. Recent discussions about H.264 and V4L2 resulted in a different position, so I can now apply the patch. I've asked Stephan for his Signed-off-by line and I will push it to v3.2. I still need to review the second patch properly, that's on my TODO list. -- Regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
On Wed, Aug 31, 2011 at 4:35 PM, Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: The first patch was rejected back then because H.264 support in the V4L2 API had to be implemented differently. Recent discussions about H.264 and V4L2 resulted in a different position, so I can now apply the patch. I've asked Stephan for his Signed-off-by line and I will push it to v3.2. Glad to here it. Of course it is good when you can make one interface for different entities, but it is really hard to unify DVB-S capture and UVC. One is MPEG-TS, other is raw stream. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
- Robert Krakora rob.krak...@messagenetsystems.com wrote: Hi All, So, to test H.264, I used GStreamer 0.10.35 (+plugins-base 0.10.35) and plugins-good 0.10.30 with the attached patch applied. I also attached the previous patch that I sent you for uvc_video.c for v4l2. Also, I have the Fluendo Codec Bundle installed ( www.fluendo.com ). GStreamer is available at www.gstreamer.net . To test H.264 from the B990 I used this command line: gst-launch -vvv v4l2src device=/dev/video0 ! video/x-h264, width=1280, height=720, framerate=30/1 ! fluh264dec ! xvimagesink sync=false To test MPEG2 TS from the FaceVsion Touchcam E1 I used this command line: gst-launch -vvv v4l2src device=/dev/video0 ! video/mpegts ! mpegtsdemux ! fluh264dec ! xvimagesink sync=false Best Regards, -- Rob Krakora MessageNet Systems 101 East Carmel Dr. Suite 105 Carmel, IN 46032 (317)566-1677 Ext 212 (317)663-0808 Fax Hi Rob, Thank you so so much I will test and let you know. Regards, Ajay Bhargav ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Yes, Robert, thanks a lot. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Max, On Saturday 27 August 2011 11:09:13 Max Lapshin wrote: Robert, would You kindly tell more: how can I get H264 with UVC api? I'm not using gstreamer, because I capture video directly into my program. I just brought B990 home (how huge is it!) and trying to get compressed stream. should I select something like V4L2_PIX_FMT_H264 ? You can't, at least for now. The uvcvideo driver doesn't support H.264. Stephan's patches might be enough to get very basic H.264 support for some webcams, but I'm not even sure about that. -- Regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
On Wed, Aug 31, 2011 at 2:03 AM, Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: You can't, at least for now. The uvcvideo driver doesn't support H.264. Stephan's patches might be enough to get very basic H.264 support for some webcams, but I'm not even sure about that. Robert showed that there is some result from B990. However, I have a kernel programmer nearby, whom I can hire to add proper support, according to docs on usb.org Should I tell him to point at your repository? These cameras are really cool for my task, so I need them. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Max, On Saturday 27 August 2011 11:50:55 Max Lapshin wrote: By the way, have you seen document http://www.usb.org/developers/devclass_docs/USB_Video_Class_1_1_052811.zip ? There are some encoder setup options. That's the totally broken spec I don't want to support. -- Regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
On Wed, Aug 31, 2011 at 2:07 AM, Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: Hi Max, On Saturday 27 August 2011 11:50:55 Max Lapshin wrote: By the way, have you seen document http://www.usb.org/developers/devclass_docs/USB_Video_Class_1_1_052811.zip ? There are some encoder setup options. That's the totally broken spec I don't want to support. So, this document has nothing to do with the way, that Logitech B990 exchanges H264 via USB? ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Max, On Wednesday 31 August 2011 00:06:20 Max Lapshin wrote: On Wed, Aug 31, 2011 at 2:03 AM, Laurent Pinchart wrote: You can't, at least for now. The uvcvideo driver doesn't support H.264. Stephan's patches might be enough to get very basic H.264 support for some webcams, but I'm not even sure about that. Robert showed that there is some result from B990. However, I have a kernel programmer nearby, whom I can hire to add proper support, according to docs on usb.org Should I tell him to point at your repository? As explained before, I will very likely refuse patches that implement support for that broken spec, unless you somehow manage to make them clean enough (which might be an impossible task). Supporting H.264 cameras that don't conform to the spec will probably be easier. These cameras are really cool for my task, so I need them. -- Regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Max, On Wednesday 31 August 2011 00:12:50 Max Lapshin wrote: On Wed, Aug 31, 2011 at 2:07 AM, Laurent Pinchart wrote: On Saturday 27 August 2011 11:50:55 Max Lapshin wrote: By the way, have you seen document http://www.usb.org/developers/devclass_docs/USB_Video_Class_1_1_052811.z ip ? There are some encoder setup options. That's the totally broken spec I don't want to support. So, this document has nothing to do with the way, that Logitech B990 exchanges H264 via USB? I don't know how H.264 support is implemented in the B990. -- Regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
- Robert Krakora rob.krak...@messagenetsystems.com wrote: Hello, I just mentioned in a previous post that I have the B990 streaming H.264 with Stephan's patches for v4l2 and some patches to GStreamer plugins-good for the v4l2src element. There were two additional changes I made beyond Stephan's that I believe are necessary. I have this running on CentOS 6.0 with GStreamer 0.10.35 and GStreamer plugins-good 0.10.30 (patched). Logitech does NOT follow the specification that they co-authored and submitted to USB-IF where H.264 content is multiplexed in the Motion JPEG container. It is merely exposed as another interface in the one and only configuration identified by the H.264 GUID. I posted a question to Logitech about how to gain access to the encoder controls via the XUs but have heard nothing back yet. Best Regards, Rob Krakora Hi Rob, Can you please provide link to your patches? I want to test it on my camera. Regards, Ajay Bhargav ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Robert, thank you for your response, even if it sound a bit like zombie commercial :) I took a look on the specification and feel like i need to put two bits of doubt concerning this webcam, just in case some one wont to by it. reference to: http://www.logitech.com/en-us/for-business/products/webcams-headsets/devices/b990-hd-webcam - Native 5MP HD sensor - High-definition video in 720p widescreen mode with recommended system - Color depth: 24-bit true color - Frame rate: Up to 30 frames per second streaming video in 720p and VGA mode Doubts: - 24-bit true color - i'm confused here, seems like we can access only 16-bit color over yuv. will it really do 24bit with h264? Even if it will cost more power?... i think it is not true - Even if it has 5MPixel sensor, seems like we have access only to 1MP. According to this http://pastebin.com/9WFgytwY the biggest resolution what it provide is 1280x720, in other words High-definition video in 720p. This is also maximal resolution what can be uncompressed provided with ~15fps over USB2.0 . But it give us actually only 10 fps. JPEG compressed stream seems to be more realistic, it can indeed do 30 fps at HD720p. I guess it will take about 30Mbit/S bandwidth. Now after it sounds more realistic... H264 can reduce it even more (no doubt). In case of hardware encoder, we should be able to dynamically control encoding process, reduce keyframe frequency and be able to force KF if needed to recover the stream, (i guess you currently trying to find it out). And if you use gstreamer then, thelepythy+gstreamer should be able to control it as well. It looks like lots of work and fun. Suddenly i do not have this toy to play with it. I hope it is really worth it. Regards, Alexey. On 27.08.2011 19:47, Robert Krakora wrote: Hi Alexey, As webcam sampling size increases (5MP in the case of the Logitech B990), encoding in the camera becomes important to conserve USB bandwidth, and if you want to transmit content over an Ethernet connection it is even more important. Also, software encoding eats up host processor CPU. We have Intel Atom based mediaports that employ NVidia hardware assisted decoding. The are all equipped with cameras and software encoding would consume a fair amount of the CPU. We push the encoded data around the network. If you have a mid-high end CPU, no problem, use a software encoder if you wish. Just remember though, that your USB host controller + hub aggregate bandwidth will be mostly consumed by the raw data of the camera. At some point we will probably see USB 3.0 webcams to handle raw data from cameras as sampling size increases. I can send you some samples, but as of today I cannot control the encoders parameters, so it is not the highest quality, but still looks really good. Best Regards, Rob Krakora On Sat, Aug 27, 2011 at 2:09 AM, Alexey Fisher bug-tr...@fisher-privat.netwrote: Am 26.08.2011 20:36, schrieb Robert Krakora: Hello, Were you ever able to get H.264 content from the Logitech B990? I was able to using Stephan's patches and a patch to the v4l2src GStreamer element. I have both audio and video. However, I have not figured out how to affect the encoding parameters that I believe are exposed by the XUs. If you are interested, I can make what I have available for you. Best Regards, Rob Krakora I'd really like to know, is it worth to do it. I mean what is the image quality? What kind of H.264 bitstream is created? What is the key frame frequency? Can you grub and send me some sample file? What actual use cases? If i understand correctly, it will be transcoded any way in case of videochat. To record myself i'd prefer software encoder, for better quality. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
- Pierre Gronlier pierre.gronl...@gmail.com wrote: On 26 August 2011 21:36, Robert Krakora rob.krak...@messagenetsystems.com wrote: Hello, Were you ever able to get H.264 content from the Logitech B990? I was able to using Stephan's patches and a patch to the v4l2src GStreamer element. I have both audio and video. However, I have not figured out how to affect the encoding parameters that I believe are exposed by the XUs. If you are interested, I can make what I have available for you. Hello, This is a great news :) If it is possible to send a tarball or links and diffs of the different thing you mention ? then I will try to make it work this my C920 logitech. Best Regards, Best Regards, Rob Krakora ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- Pierre Gronlier ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel Hi Rob, Can you please forward patches for this? Thanks, Ajay Bhargav ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Am 26.08.2011 20:36, schrieb Robert Krakora: Hello, Were you ever able to get H.264 content from the Logitech B990? I was able to using Stephan's patches and a patch to the v4l2src GStreamer element. I have both audio and video. However, I have not figured out how to affect the encoding parameters that I believe are exposed by the XUs. If you are interested, I can make what I have available for you. Best Regards, Rob Krakora I'd really like to know, is it worth to do it. I mean what is the image quality? What kind of H.264 bitstream is created? What is the key frame frequency? Can you grub and send me some sample file? What actual use cases? If i understand correctly, it will be transcoded any way in case of videochat. To record myself i'd prefer software encoder, for better quality. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Robert, would You kindly tell more: how can I get H264 with UVC api? I'm not using gstreamer, because I capture video directly into my program. I just brought B990 home (how huge is it!) and trying to get compressed stream. should I select something like V4L2_PIX_FMT_H264 ? ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
By the way, have you seen document http://www.usb.org/developers/devclass_docs/USB_Video_Class_1_1_052811.zip ? There are some encoder setup options. On Sat, Aug 27, 2011 at 1:09 PM, Max Lapshin max.laps...@gmail.com wrote: Robert, would You kindly tell more: how can I get H264 with UVC api? I'm not using gstreamer, because I capture video directly into my program. I just brought B990 home (how huge is it!) and trying to get compressed stream. should I select something like V4L2_PIX_FMT_H264 ? ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hello, Were you ever able to get H.264 content from the Logitech B990? I was able to using Stephan's patches and a patch to the v4l2src GStreamer element. I have both audio and video. However, I have not figured out how to affect the encoding parameters that I believe are exposed by the XUs. If you are interested, I can make what I have available for you. Best Regards, Rob Krakora ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hello, I just mentioned in a previous post that I have the B990 streaming H.264 with Stephan's patches for v4l2 and some patches to GStreamer plugins-good for the v4l2src element. There were two additional changes I made beyond Stephan's that I believe are necessary. I have this running on CentOS 6.0 with GStreamer 0.10.35 and GStreamer plugins-good 0.10.30 (patched). Logitech does NOT follow the specification that they co-authored and submitted to USB-IF where H.264 content is multiplexed in the Motion JPEG container. It is merely exposed as another interface in the one and only configuration identified by the H.264 GUID. I posted a question to Logitech about how to gain access to the encoder controls via the XUs but have heard nothing back yet. Best Regards, Rob Krakora ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Wow, I'm very interested in this camera. In fact I can send money for UVC authors to buy such a camera. ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
On 26 August 2011 21:36, Robert Krakora rob.krak...@messagenetsystems.com wrote: Hello, Were you ever able to get H.264 content from the Logitech B990? I was able to using Stephan's patches and a patch to the v4l2src GStreamer element. I have both audio and video. However, I have not figured out how to affect the encoding parameters that I believe are exposed by the XUs. If you are interested, I can make what I have available for you. Hello, This is a great news :) If it is possible to send a tarball or links and diffs of the different thing you mention ? then I will try to make it work this my C920 logitech. Best Regards, Best Regards, Rob Krakora ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- Pierre Gronlier ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Laurent Pinchart laurent.pinchart at ideasonboard.com Wed Jun 22 02:51:09 CEST 2011 Hi, The official H.264 UVC specification isn't better. Its only purpose is to support Logitech webcams in Skype under Windows. Its quality is way below what I would expect from a USB-IF specification. I don't plan to implement support for that spec in the uvcvideo driver in the near future. I'll review patches, but I will NAK anything that isn't clean enough. And from reading the spec producing a clean implementation will be pretty difficult. Hi, Has any patch being merged since this last post ? What should be the next step if I want to use the hardware encoding feature of those Logitech webcams ? Regards, -- Pierre Gronlier ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Ajay, On Thursday 23 June 2011 06:39:28 Ajay Bhargav wrote: Hi Laurent, Thanks for your reply. Well I know that H.264 payload is specified in newer UVC 1.1 documentation, but my webcam is not sending H.264 as payload. Its sending MPEG2-TS according to UVC1.0 secifications, i found out during debugging, format descriptor gives 0x0A as Descriptor subtype. As per old archives from mailing list i added MPEG2-TS handling similar to DV format. I am now able to create a /dev/video device on my machine but i have no idea how to add stream support to UVC-v4l2 interface or where to add that support. As there is no frame descriptor V4L2 driver is not able to detect the frame rate etc... Maybe i am getting little confused here? Implementing MPEG2-TS support is onmy TODO list, but I unfortunately don't own any UVC device that implements MPEG2-TS :-S -- Regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Laurent, Thanks for your reply. Well I know that H.264 payload is specified in newer UVC 1.1 documentation, but my webcam is not sending H.264 as payload. Its sending MPEG2-TS according to UVC1.0 secifications, i found out during debugging, format descriptor gives 0x0A as Descriptor subtype. As per old archives from mailing list i added MPEG2-TS handling similar to DV format. I am now able to create a /dev/video device on my machine but i have no idea how to add stream support to UVC-v4l2 interface or where to add that support. As there is no frame descriptor V4L2 driver is not able to detect the frame rate etc... Maybe i am getting little confused here? Regards, Ajay - Original Message - From: Laurent Pinchart laurent.pinch...@ideasonboard.com To: linux-uvc-devel@lists.berlios.de Cc: Ajay Bhargav ajay.bhar...@einfochips.com, Paulo Assis pj.as...@gmail.com, Kofi Jedamzik k...@jedamzik.net Sent: Wednesday, June 22, 2011 6:21:09 AM Subject: Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist Hi, On Thursday 16 June 2011 11:09:51 Ajay Bhargav wrote: Hi Paulo, I have the pdf document of the same. But the thing is my camera is UVC V1.0 and actual format coming from camera is H.264 encoded stream in MPEG2-TS format. So i will have to look for only MPEG2-TS support. I hope i am going in right direction. As per my UVC traces, the video streaming format is 10 which is MPEG2-TS. @Laurent, Please provide me some information so i can move ahead. H.264 UVC payloads have been implemented in various webcams before the official H.264 UVC payload spec got released. Those implementations are not documented, and not supported by the driver. Without documentation from the manufacturer, H.264 encoder parameters won't be supported. The official H.264 UVC specification isn't better. Its only purpose is to support Logitech webcams in Skype under Windows. Its quality is way below what I would expect from a USB-IF specification. I don't plan to implement support for that spec in the uvcvideo driver in the near future. I'll review patches, but I will NAK anything that isn't clean enough. And from reading the spec producing a clean implementation will be pretty difficult. -- Regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi, On Thursday 16 June 2011 11:09:51 Ajay Bhargav wrote: Hi Paulo, I have the pdf document of the same. But the thing is my camera is UVC V1.0 and actual format coming from camera is H.264 encoded stream in MPEG2-TS format. So i will have to look for only MPEG2-TS support. I hope i am going in right direction. As per my UVC traces, the video streaming format is 10 which is MPEG2-TS. @Laurent, Please provide me some information so i can move ahead. H.264 UVC payloads have been implemented in various webcams before the official H.264 UVC payload spec got released. Those implementations are not documented, and not supported by the driver. Without documentation from the manufacturer, H.264 encoder parameters won't be supported. The official H.264 UVC specification isn't better. Its only purpose is to support Logitech webcams in Skype under Windows. Its quality is way below what I would expect from a USB-IF specification. I don't plan to implement support for that spec in the uvcvideo driver in the near future. I'll review patches, but I will NAK anything that isn't clean enough. And from reading the spec producing a clean implementation will be pretty difficult. -- Regards, Laurent Pinchart ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi, Stephan Lachowsky has provided some patches for MPEG-TS and H264 support. https://lists.berlios.de/pipermail/linux-uvc-devel/2011-February/006287.html https://lists.berlios.de/pipermail/linux-uvc-devel/2011-February/006288.html I do not know the current status of this work. May be Laurent can tell some thing about it. Am Donnerstag, den 16.06.2011, 10:26 +0530 schrieb Ajay Bhargav: Hi, as far as i know stream based format are not yet supported in UVC driver. and UVC 1.1 specifications defines the H.264 payload specifications. I dont think they are implemented yet. I have a camera with me which outputs H.264 stream using MPEG2-TS container format. If you have any idea how to add support for MPEG2-TS please let me know. --Ajay - Original Message - From: Alexey Fisher bug-tr...@fisher-privat.net To: Kofi Jedamzik k...@jedamzik.net Cc: linux-uvc-devel@lists.berlios.de Sent: Wednesday, June 15, 2011 8:10:36 PM Subject: Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist Hi, theoretically this should do it: gst-inspect-0.10 v4l2src ! video/x-h264 ! ffdec_h264 ! autovideosink but, if i'm correct, current kernel do not support h264. There was a patch for some time, but im not sure if Laurent applyed it. Am Mittwoch, den 15.06.2011, 16:01 +0200 schrieb Kofi Jedamzik: Hi, ... there is a new Logitech Webcam called B990 HD Webcam with device id 046d:0828 it has an integrated hardware based H264 baseline video encoder This cam is not listed. MJPEG seems to work but I want to get out the H264 stream. Is there anyone who could give me a hint how to do it? Here are som dumps which might be helpful... best regards Kofi #lsusb --verbose -d 046d:0828 (big output) -- http://pastebin.com/9WFgytwY #guvcview --device /dev/video0 --verbose (big output) -- http://pastebin.com/pqmUGYyn #modinfo uvcvideo filename: /lib/modules/2.6.38-8-generic/kernel/drivers/media/video/uvc/uvcvideo.ko version:v1.0.0 #tail /var/log/syslog [11588.664940] usb 1-6: USB disconnect, address 4 [11594.580043] usb 1-6: new high speed USB device using ehci_hcd and address 5 [11594.927759] uvcvideo: Unknown video format 34363248--0010-8000-00aa00389b71 [11594.927786] uvcvideo: Found UVC 1.00 device unnamed (046d:0828) [11595.024093] input: UVC Camera (046d:0828) as /devices/pci:00/:00:12.2/usb1/1-6/1-6:1.0/input/input8 -- Regards, Alexey ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- This message has been scanned for viruses and dangerous content by Clean Mail Gateway, and is believed to be clean. * einfochips Business Disclaimer : This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. * -- Regards, Alexey ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Alexey, Thanks for reply, Well i have already done this before even i saw that patches in mailing list... I am able to add /dev/video0 device on my machine but i am not able to read from that device. Here is the log: uvcvideo 1-1.2:1.0: usb_probe_interface uvcvideo 1-1.2:1.0: usb_probe_interface - got id uvcvideo: Probing generic UVC device 1.2 uvcvideo: Videostreaming interface: 0x0A uvcvideo: Format 10, Desc Size: 7 uvcvideo: Found format MPEG2-TS. uvcvideo: Found a Status endpoint (addr 81). uvcvideo: Found UVC 1.00 device USB Camera Aoni (04a8:0536) uvcvideo: Added control ----0101/2 to device 1.2 entity 5 uvcvideo: Added control ----0101/3 to device 1.2 entity 5 uvcvideo: Added control ----0101/6 to device 1.2 entity 5 uvcvideo: Added control ----0101/7 to device 1.2 entity 5 uvcvideo: Added control ----0101/8 to device 1.2 entity 5 uvcvideo: Added control ----0101/5 to device 1.2 entity 5 uvcvideo: Scanning UVC chain: OT 3 - PU 5 - SU 4 - IT 1 (- XU 6)6uvcvideo: video stream id: 3 uvcvideo: Stream List id: 3, Dev stream id: 3 uvcvideo: Found a valid video chain (1 - 3). uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround. input: USB Camera Aoni as /class/input/input0 usb 1-1.2: link qh1024-0001/ff389200 start 1023 [1/0 us] uvcvideo: UVC device initialized. usb 1-1.2: adding 1-1.2:1.1 (config #1, interface 1) usb 1-1.2:1.1: uevent usb 1-1.2: adding 1-1.2:1.2 (config #1, interface 2) usb 1-1.2:1.2: uevent snd-usb-audio 1-1.2:1.2: usb_probe_interface snd-usb-audio 1-1.2:1.2: usb_probe_interface - got id usb 1-1.2: adding 1-1.2:1.3 (config #1, interface 3) usb 1-1.2:1.3: uevent uvcvideo: uvc_v4l2_open uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYCAP) uvcvideo: uvc_v4l2_ioctl(VIDIOCGCAP) uvcvideo: Trying format 0x4745504d (MPEG): 1x1. uvcvideo: Default cam size: 1x1. uvcvideo: Using default frame interval 0.1 us (1000.0 fps). uvcvideo: uvc_v4l2_release As per this conversation (http://lists.berlios.de/pipermail/linux-uvc-devel/2009-July/005008.html) it looks like there are lot more changes to be done, so that UVC is able to forward proper information to v4l2 layer. --Ajay - Original Message - From: Alexey Fisher bug-tr...@fisher-privat.net To: Ajay Bhargav ajay.bhar...@einfochips.com Cc: linux-uvc-devel@lists.berlios.de, Kofi Jedamzik k...@jedamzik.net Sent: Thursday, June 16, 2011 12:06:02 PM Subject: Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist Hi, Stephan Lachowsky has provided some patches for MPEG-TS and H264 support. https://lists.berlios.de/pipermail/linux-uvc-devel/2011-February/006287.html https://lists.berlios.de/pipermail/linux-uvc-devel/2011-February/006288.html I do not know the current status of this work. May be Laurent can tell some thing about it. Am Donnerstag, den 16.06.2011, 10:26 +0530 schrieb Ajay Bhargav: Hi, as far as i know stream based format are not yet supported in UVC driver. and UVC 1.1 specifications defines the H.264 payload specifications. I dont think they are implemented yet. I have a camera with me which outputs H.264 stream using MPEG2-TS container format. If you have any idea how to add support for MPEG2-TS please let me know. --Ajay - Original Message - From: Alexey Fisher bug-tr...@fisher-privat.net To: Kofi Jedamzik k...@jedamzik.net Cc: linux-uvc-devel@lists.berlios.de Sent: Wednesday, June 15, 2011 8:10:36 PM Subject: Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist Hi, theoretically this should do it: gst-inspect-0.10 v4l2src ! video/x-h264 ! ffdec_h264 ! autovideosink but, if i'm correct, current kernel do not support h264. There was a patch for some time, but im not sure if Laurent applyed it. Am Mittwoch, den 15.06.2011, 16:01 +0200 schrieb Kofi Jedamzik: Hi, ... there is a new Logitech Webcam called B990 HD Webcam with device id 046d:0828 it has an integrated hardware based H264 baseline video encoder This cam is not listed. MJPEG seems to work but I want to get out the H264 stream. Is there anyone who could give me a hint how to do it? Here are som dumps which might be helpful... best regards Kofi #lsusb --verbose -d 046d:0828 (big output) -- http://pastebin.com/9WFgytwY #guvcview --device /dev/video0 --verbose (big output) -- http://pastebin.com/pqmUGYyn #modinfo uvcvideo filename: /lib/modules/2.6.38-8-generic/kernel/drivers/media/video/uvc/uvcvideo.ko version: v1.0.0 #tail /var/log/syslog [11588.664940] usb 1-6: USB disconnect, address 4 [11594.580043] usb 1-6: new high speed USB device using ehci_hcd and address 5 [11594.927759] uvcvideo: Unknown video format
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi, Some documentation on the subject: http://www.quickcamteam.net/uvc-h264 Regards, Paulo 2011/6/16 Ajay Bhargav ajay.bhar...@einfochips.com: Hi Alexey, Thanks for reply, Well i have already done this before even i saw that patches in mailing list... I am able to add /dev/video0 device on my machine but i am not able to read from that device. Here is the log: uvcvideo 1-1.2:1.0: usb_probe_interface uvcvideo 1-1.2:1.0: usb_probe_interface - got id uvcvideo: Probing generic UVC device 1.2 uvcvideo: Videostreaming interface: 0x0A uvcvideo: Format 10, Desc Size: 7 uvcvideo: Found format MPEG2-TS. uvcvideo: Found a Status endpoint (addr 81). uvcvideo: Found UVC 1.00 device USB Camera Aoni (04a8:0536) uvcvideo: Added control ----0101/2 to device 1.2 entity 5 uvcvideo: Added control ----0101/3 to device 1.2 entity 5 uvcvideo: Added control ----0101/6 to device 1.2 entity 5 uvcvideo: Added control ----0101/7 to device 1.2 entity 5 uvcvideo: Added control ----0101/8 to device 1.2 entity 5 uvcvideo: Added control ----0101/5 to device 1.2 entity 5 uvcvideo: Scanning UVC chain: OT 3 - PU 5 - SU 4 - IT 1 (- XU 6)6uvcvideo: video stream id: 3 uvcvideo: Stream List id: 3, Dev stream id: 3 uvcvideo: Found a valid video chain (1 - 3). uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround. input: USB Camera Aoni as /class/input/input0 usb 1-1.2: link qh1024-0001/ff389200 start 1023 [1/0 us] uvcvideo: UVC device initialized. usb 1-1.2: adding 1-1.2:1.1 (config #1, interface 1) usb 1-1.2:1.1: uevent usb 1-1.2: adding 1-1.2:1.2 (config #1, interface 2) usb 1-1.2:1.2: uevent snd-usb-audio 1-1.2:1.2: usb_probe_interface snd-usb-audio 1-1.2:1.2: usb_probe_interface - got id usb 1-1.2: adding 1-1.2:1.3 (config #1, interface 3) usb 1-1.2:1.3: uevent uvcvideo: uvc_v4l2_open uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYCAP) uvcvideo: uvc_v4l2_ioctl(VIDIOCGCAP) uvcvideo: Trying format 0x4745504d (MPEG): 1x1. uvcvideo: Default cam size: 1x1. uvcvideo: Using default frame interval 0.1 us (1000.0 fps). uvcvideo: uvc_v4l2_release As per this conversation (http://lists.berlios.de/pipermail/linux-uvc-devel/2009-July/005008.html) it looks like there are lot more changes to be done, so that UVC is able to forward proper information to v4l2 layer. --Ajay - Original Message - From: Alexey Fisher bug-tr...@fisher-privat.net To: Ajay Bhargav ajay.bhar...@einfochips.com Cc: linux-uvc-devel@lists.berlios.de, Kofi Jedamzik k...@jedamzik.net Sent: Thursday, June 16, 2011 12:06:02 PM Subject: Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist Hi, Stephan Lachowsky has provided some patches for MPEG-TS and H264 support. https://lists.berlios.de/pipermail/linux-uvc-devel/2011-February/006287.html https://lists.berlios.de/pipermail/linux-uvc-devel/2011-February/006288.html I do not know the current status of this work. May be Laurent can tell some thing about it. Am Donnerstag, den 16.06.2011, 10:26 +0530 schrieb Ajay Bhargav: Hi, as far as i know stream based format are not yet supported in UVC driver. and UVC 1.1 specifications defines the H.264 payload specifications. I dont think they are implemented yet. I have a camera with me which outputs H.264 stream using MPEG2-TS container format. If you have any idea how to add support for MPEG2-TS please let me know. --Ajay - Original Message - From: Alexey Fisher bug-tr...@fisher-privat.net To: Kofi Jedamzik k...@jedamzik.net Cc: linux-uvc-devel@lists.berlios.de Sent: Wednesday, June 15, 2011 8:10:36 PM Subject: Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist Hi, theoretically this should do it: gst-inspect-0.10 v4l2src ! video/x-h264 ! ffdec_h264 ! autovideosink but, if i'm correct, current kernel do not support h264. There was a patch for some time, but im not sure if Laurent applyed it. Am Mittwoch, den 15.06.2011, 16:01 +0200 schrieb Kofi Jedamzik: Hi, ... there is a new Logitech Webcam called B990 HD Webcam with device id 046d:0828 it has an integrated hardware based H264 baseline video encoder This cam is not listed. MJPEG seems to work but I want to get out the H264 stream. Is there anyone who could give me a hint how to do it? Here are som dumps which might be helpful... best regards Kofi #lsusb --verbose -d 046d:0828 (big output) -- http://pastebin.com/9WFgytwY #guvcview --device /dev/video0 --verbose (big output) -- http://pastebin.com/pqmUGYyn #modinfo uvcvideo filename: /lib/modules/2.6.38-8-generic/kernel/drivers/media/video/uvc/uvcvideo.ko version: v1.0.0 #tail /var/log/syslog [11588.664940] usb 1-6: USB disconnect, address 4 [11594.580043] usb 1-6: new high
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi Paulo, I have the pdf document of the same. But the thing is my camera is UVC V1.0 and actual format coming from camera is H.264 encoded stream in MPEG2-TS format. So i will have to look for only MPEG2-TS support. I hope i am going in right direction. As per my UVC traces, the video streaming format is 10 which is MPEG2-TS. @Laurent, Please provide me some information so i can move ahead. Regards, Ajay - Original Message - From: Paulo Assis pj.as...@gmail.com To: Ajay Bhargav ajay.bhar...@einfochips.com Cc: Alexey Fisher bug-tr...@fisher-privat.net, Kofi Jedamzik k...@jedamzik.net, linux-uvc-devel@lists.berlios.de Sent: Thursday, June 16, 2011 2:12:08 PM Subject: Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist Hi, Some documentation on the subject: http://www.quickcamteam.net/uvc-h264 Regards, Paulo 2011/6/16 Ajay Bhargav ajay.bhar...@einfochips.com: Hi Alexey, Thanks for reply, Well i have already done this before even i saw that patches in mailing list... I am able to add /dev/video0 device on my machine but i am not able to read from that device. Here is the log: uvcvideo 1-1.2:1.0: usb_probe_interface uvcvideo 1-1.2:1.0: usb_probe_interface - got id uvcvideo: Probing generic UVC device 1.2 uvcvideo: Videostreaming interface: 0x0A uvcvideo: Format 10, Desc Size: 7 uvcvideo: Found format MPEG2-TS. uvcvideo: Found a Status endpoint (addr 81). uvcvideo: Found UVC 1.00 device USB Camera Aoni (04a8:0536) uvcvideo: Added control ----0101/2 to device 1.2 entity 5 uvcvideo: Added control ----0101/3 to device 1.2 entity 5 uvcvideo: Added control ----0101/6 to device 1.2 entity 5 uvcvideo: Added control ----0101/7 to device 1.2 entity 5 uvcvideo: Added control ----0101/8 to device 1.2 entity 5 uvcvideo: Added control ----0101/5 to device 1.2 entity 5 uvcvideo: Scanning UVC chain: OT 3 - PU 5 - SU 4 - IT 1 (- XU 6)6uvcvideo: video stream id: 3 uvcvideo: Stream List id: 3, Dev stream id: 3 uvcvideo: Found a valid video chain (1 - 3). uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround. input: USB Camera Aoni as /class/input/input0 usb 1-1.2: link qh1024-0001/ff389200 start 1023 [1/0 us] uvcvideo: UVC device initialized. usb 1-1.2: adding 1-1.2:1.1 (config #1, interface 1) usb 1-1.2:1.1: uevent usb 1-1.2: adding 1-1.2:1.2 (config #1, interface 2) usb 1-1.2:1.2: uevent snd-usb-audio 1-1.2:1.2: usb_probe_interface snd-usb-audio 1-1.2:1.2: usb_probe_interface - got id usb 1-1.2: adding 1-1.2:1.3 (config #1, interface 3) usb 1-1.2:1.3: uevent uvcvideo: uvc_v4l2_open uvcvideo: uvc_v4l2_ioctl(VIDIOC_QUERYCAP) uvcvideo: uvc_v4l2_ioctl(VIDIOCGCAP) uvcvideo: Trying format 0x4745504d (MPEG): 1x1. uvcvideo: Default cam size: 1x1. uvcvideo: Using default frame interval 0.1 us (1000.0 fps). uvcvideo: uvc_v4l2_release As per this conversation (http://lists.berlios.de/pipermail/linux-uvc-devel/2009-July/005008.html) it looks like there are lot more changes to be done, so that UVC is able to forward proper information to v4l2 layer. --Ajay - Original Message - From: Alexey Fisher bug-tr...@fisher-privat.net To: Ajay Bhargav ajay.bhar...@einfochips.com Cc: linux-uvc-devel@lists.berlios.de, Kofi Jedamzik k...@jedamzik.net Sent: Thursday, June 16, 2011 12:06:02 PM Subject: Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist Hi, Stephan Lachowsky has provided some patches for MPEG-TS and H264 support. https://lists.berlios.de/pipermail/linux-uvc-devel/2011-February/006287.html https://lists.berlios.de/pipermail/linux-uvc-devel/2011-February/006288.html I do not know the current status of this work. May be Laurent can tell some thing about it. Am Donnerstag, den 16.06.2011, 10:26 +0530 schrieb Ajay Bhargav: Hi, as far as i know stream based format are not yet supported in UVC driver. and UVC 1.1 specifications defines the H.264 payload specifications. I dont think they are implemented yet. I have a camera with me which outputs H.264 stream using MPEG2-TS container format. If you have any idea how to add support for MPEG2-TS please let me know. --Ajay - Original Message - From: Alexey Fisher bug-tr...@fisher-privat.net To: Kofi Jedamzik k...@jedamzik.net Cc: linux-uvc-devel@lists.berlios.de Sent: Wednesday, June 15, 2011 8:10:36 PM Subject: Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist Hi, theoretically this should do it: gst-inspect-0.10 v4l2src ! video/x-h264 ! ffdec_h264 ! autovideosink but, if i'm correct, current kernel do not support h264. There was a patch for some time, but im not sure if Laurent applyed
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi, theoretically this should do it: gst-inspect-0.10 v4l2src ! video/x-h264 ! ffdec_h264 ! autovideosink but, if i'm correct, current kernel do not support h264. There was a patch for some time, but im not sure if Laurent applyed it. Am Mittwoch, den 15.06.2011, 16:01 +0200 schrieb Kofi Jedamzik: Hi, ... there is a new Logitech Webcam called B990 HD Webcam with device id 046d:0828 it has an integrated hardware based H264 baseline video encoder This cam is not listed. MJPEG seems to work but I want to get out the H264 stream. Is there anyone who could give me a hint how to do it? Here are som dumps which might be helpful... best regards Kofi #lsusb --verbose -d 046d:0828 (big output) -- http://pastebin.com/9WFgytwY #guvcview --device /dev/video0 --verbose (big output) -- http://pastebin.com/pqmUGYyn #modinfo uvcvideo filename: /lib/modules/2.6.38-8-generic/kernel/drivers/media/video/uvc/uvcvideo.ko version:v1.0.0 #tail /var/log/syslog [11588.664940] usb 1-6: USB disconnect, address 4 [11594.580043] usb 1-6: new high speed USB device using ehci_hcd and address 5 [11594.927759] uvcvideo: Unknown video format 34363248--0010-8000-00aa00389b71 [11594.927786] uvcvideo: Found UVC 1.00 device unnamed (046d:0828) [11595.024093] input: UVC Camera (046d:0828) as /devices/pci:00/:00:12.2/usb1/1-6/1-6:1.0/input/input8 -- Regards, Alexey ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist
Hi, as far as i know stream based format are not yet supported in UVC driver. and UVC 1.1 specifications defines the H.264 payload specifications. I dont think they are implemented yet. I have a camera with me which outputs H.264 stream using MPEG2-TS container format. If you have any idea how to add support for MPEG2-TS please let me know. --Ajay - Original Message - From: Alexey Fisher bug-tr...@fisher-privat.net To: Kofi Jedamzik k...@jedamzik.net Cc: linux-uvc-devel@lists.berlios.de Sent: Wednesday, June 15, 2011 8:10:36 PM Subject: Re: [Linux-uvc-devel] Webcam with H264 encoder not in Devicelist Hi, theoretically this should do it: gst-inspect-0.10 v4l2src ! video/x-h264 ! ffdec_h264 ! autovideosink but, if i'm correct, current kernel do not support h264. There was a patch for some time, but im not sure if Laurent applyed it. Am Mittwoch, den 15.06.2011, 16:01 +0200 schrieb Kofi Jedamzik: Hi, ... there is a new Logitech Webcam called B990 HD Webcam with device id 046d:0828 it has an integrated hardware based H264 baseline video encoder This cam is not listed. MJPEG seems to work but I want to get out the H264 stream. Is there anyone who could give me a hint how to do it? Here are som dumps which might be helpful... best regards Kofi #lsusb --verbose -d 046d:0828 (big output) -- http://pastebin.com/9WFgytwY #guvcview --device /dev/video0 --verbose (big output) -- http://pastebin.com/pqmUGYyn #modinfo uvcvideo filename: /lib/modules/2.6.38-8-generic/kernel/drivers/media/video/uvc/uvcvideo.ko version: v1.0.0 #tail /var/log/syslog [11588.664940] usb 1-6: USB disconnect, address 4 [11594.580043] usb 1-6: new high speed USB device using ehci_hcd and address 5 [11594.927759] uvcvideo: Unknown video format 34363248--0010-8000-00aa00389b71 [11594.927786] uvcvideo: Found UVC 1.00 device unnamed (046d:0828) [11595.024093] input: UVC Camera (046d:0828) as /devices/pci:00/:00:12.2/usb1/1-6/1-6:1.0/input/input8 -- Regards, Alexey ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel -- This message has been scanned for viruses and dangerous content by Clean Mail Gateway, and is believed to be clean. * einfochips Business Disclaimer : This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. * ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel