GNOME Bugzilla – Bug 352624
The process for encoding video with xvidenc and camera device?
Last modified: 2006-09-22 02:53:41 UTC
Please describe the problem: I'm trying to encode video using xvidenc plugin and camera device on v4lsrc plugin. The below command is for it. gst-launch v4lsrc device=/dev/video0 ! 'video/x-raw-yuv,width=352,height=288' ! xvidenc ! queue ! avimux ! filesink location=test.avi But, The created file don't have any contents. If i'm in a wrong experimentation, please recommend me the right one. Thanks. Steps to reproduce: 1. I verified that the camera device is working well by using the below command. gst-launch v4lsrc device=/dev/video0 ! video/x-raw-yuv,width=352,height=288' ! sdlvideosink 2. And I tried the video encoding with the below command but it has some problems as i described. gst-launch v4lsrc device=/dev/video0 ! 'video/x-raw-yuv,width=352,height=288' ! xvidenc ! queue ! avimux ! filesink location=test.avi 3. Actual results: Expected results: Does this happen every time? Yes Other information:
- you might need an ffmpegcolorspace between the source/capsfilter and xvidenc (your xvidenc might support different YUV formats than sdlvideosink) - you might need a videorate element before xvidenc, converting the incoming stream to a stream with a fixed framerate (avi requires this) - you do not need a queue element here Also see the recent discussion on gstreamer-devel about v4lsrc and avimux and framerates etc.