[gst-devel] Video Recording

Pavan Kumar Patale pavanpatale at hotmail.com
Wed Sep 6 16:50:18 CEST 2006


Hi Zaheer,

Thanks for the reply. It was infact detailed explanation.  Two quick 
questions

1.  So, if i have to put in mp4 container which element should i use ?
2.  What is the difference between v4lsrc and v4l2src ?

Thanks,
Pavan.

>Hi Pavan
>
>You have just saved raw mpeg4 video to a file, this will not be
>playable by any player because it is not in a container such as
>mp4/iso/qt or asf or avi.
>
>We have an avi muxer in GStreamer so change your pipeline to something 
>like:
>
>v4l2src ! ffmpegcolorspace ! ffenc_mpeg4 ! avimux ! filesink location=a.avi
>
>However I recommend you to use Ogg/Theora, and you will get more
>support from GStreamer devs if you do because it's more used and
>tested by us.  To encode in Ogg Theora, do:
>
>gst-launch-0.10 v4l2src ! ffmpegcolorspace ! theoraenc ! oggmux !
>filesink location=a.ogg
>
>If you want to add audio from the sound card do:
>
>gst-launch-0.10 oggmux name=mux ! filesink location=a.ogg v4l2src !
>ffmpegcolorspace ! theoraenc ! queue ! mux. alsasrc ! audioconvert !
>vorbisenc ! mux.
>
>Zaheer






More information about the gstreamer-devel mailing list