After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 352624 - The process for encoding video with xvidenc and camera device?
The process for encoding video with xvidenc and camera device?
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
0.10.9
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-24 00:41 UTC by junghak kim
Modified: 2006-09-22 02:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description junghak kim 2006-08-24 00:41:07 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:
Comment 1 Tim-Philipp Müller 2006-09-21 12:17:21 UTC
 - 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.