This post was updated on .
CONTENTS DELETED
The author has deleted this message.
|
I figured out how to extract the caps. When using /dev/video1 (saa713x card) the "default" Buffer caps: video/x-raw-gray, bpp=(int)8, framerate=(fraction)30000/1001, width=(int)704, height=(int)480 When uisng /dev/video2 (the 950Q USB device) Buffer caps: video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, framerate=(fraction)30000/1001, width=(int)720, height=(int)480 But this doesn't give me any clues as to why ffmpegcolor space can't convert the rgb caps to the yuv or grey caps I'd prefer to use. |
Wally,
Theres other parts to the negotiation besides color space. Framerate and size are also considered. You may want to make it resemble: gst-launch v4l2src device=/dev/video1 ! ffmpegcolorspace ! videoscale ! videorate ! video/x-raw-yuv, framerate=\(fraction\)30000/1001, width=640, height=480 ! ffmpegcolorspace ! xvimagesink I don't think the second ffmpegcolorspace is needed either. If you run this with GST_DEBUG=GST_CAPS:3, you will see the logs of the negotiations and you can hopefully decipher whats happening. Hope this helps. Tim On Fri, Dec 10, 2010 at 12:13 PM, wally_bkg <[hidden email]> wrote:
------------------------------------------------------------------------------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Thanks, adding videoscale was all that was required, and you are correct the second ffmpegcolorspace is not needed. This one works: gst-launch v4l2src device=/dev/video2 ! ffmpegcolorspace ! videoscale ! video/x-raw-yuv, framerate=\(fraction\)30000/1001, width=640, height=480 ! xvimagesink The PCI cards all can do a yuv format, but apparently the USB Hauppauge 950Q can only do rgb formats (I'm using only the S-video or Composite SD TV inputs it has). The second ffmpegcolorspace element is only needed if I want to use raw-gray. Which brings up another question is it more effecient to pass yuv buffers around that contain 50% more data than will be used (intensity only algorithm) or have a second ffmpegcolorspace in the pipeline? |
Free forum by Nabble | Edit this page |