Based on the previous discussions, I'm trying to get the H264
encoding to work in the simplest of cases. In this light, I'm trying to just grab some data and encode it. I have two pipeline setups with different encoders. One works and the other just stalls. Why would this one work gst-launch -v v4l2src num-buffers=200 ! 'video/x-raw-yuv,width=720,height=480' ! \ TIVidenc1 codecName=h264enc engineName=codecServer ! filesink location=/tmp/test.h264 and this one stall? gst-launch -v v4l2src num-buffers=200 ! 'video/x-raw-yuv,width=720,height=480,format=(fourcc)UYVY' ! \ ffmpegcolorspace ! 'video/x-raw-yuv,width=720,height=480,format=(fourcc)I420' ! x264enc ! filesink location=/tmp/hold.h264 I checked and there is [plenty of] definitely data going into x264enc Note: the extra ffmpegcolorspace step is there to massage the data format since my sensor can only do UYVY, but x264enc can only handle I420. These components are all from the latest released versions. n.b. I was told to ask on IRC, but that's not really an option for me, so this mailing list is my access. Thanks -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
> and this one stall?
> >gst-launch -v v4l2src num-buffers=200 ! > 'video/x-raw-yuv,width=720,height=480,format=(fourcc)UYVY' ! > \ ffmpegcolorspace ! > 'video/x-raw-yuv,width=720,height=480,format=(fourcc)I420' ! > x264enc ! filesink location=/tmp/hold.h264 I would suggest to try the following. Run your pipeline with increased debug level, i.e. GST_DEBUG=3 gst-launch ... and search for any relevant messages which might give you the hint about what is going wrong. In addition, I remember some strange behavior got fixed by explicitly mentioning the framerate. In your case, for example, in caps filter right after v4l2src add framerate=30/1 or whatever is appropriate frame rate for your camera. In addition, since you are using gstreamer on TI platform, you can consider asking the question also here: https://gstreamer.ti.com/gf/project/gstreamer_ti/forum/?action=ForumBrowse&forum_id=187 Regards, Andrey. ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
On 09/21/2010 02:43 AM, Andrey Nechypurenko wrote:
>> and this one stall? >> >> gst-launch -v v4l2src num-buffers=200 ! >> 'video/x-raw-yuv,width=720,height=480,format=(fourcc)UYVY' ! >> \ ffmpegcolorspace ! >> 'video/x-raw-yuv,width=720,height=480,format=(fourcc)I420' ! >> x264enc ! filesink location=/tmp/hold.h264 > > I would suggest to try the following. Run your pipeline with > increased debug level, i.e. GST_DEBUG=3 gst-launch ... and search > for any relevant messages which might give you the hint about > what is going wrong. In addition, I remember some strange > behavior got fixed by explicitly mentioning the framerate. In > your case, for example, in caps filter right after v4l2src add > framerate=30/1 or whatever is appropriate frame rate for your > camera. I sure don't see anything, perhaps someone that understands this better can. I put a level 4 dump of this at http://pastebin.com/iDDVuHgv > > In addition, since you are using gstreamer on TI platform, you > can consider asking the question also here: > https://gstreamer.ti.com/gf/project/gstreamer_ti/forum/?action=ForumBrowse&forum_id=187 Except that my problem is not with any of the TI components - it's only the off-the-shelf encoder that stalls. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |