[Gstreamer-openmax] Regarding camcoder exit using gst-launch
Manish Sharma
manishsharma13 at gmail.com
Thu Nov 27 22:28:24 PST 2008
Hi All,
I am using following camcoder gst-pipeline on my board with gst-launch
application.
gst-launch avimux name=mux bigfile=true ! filesink location=cam_vga_20.avi {
alsasrc blocksize=4096 !
'audio/x-raw-int,endianness=1234,signed=true,width=16,depth=16,rate=44100,channel=2'
! queue ! omx_aacenc ! mux. } { v4l2src queue-size=16 !
'video/x-raw-yuv,framerate=20/1,width=640,height=480' ! tee name=tvv tvv. !
queue ! xvimagesink tvv. ! queue max-size-buffers=1 ! omx_mpeg4enc ! mux.}
It works fine but when I press ctrl+C, the v4l2 and alsa src are closed
properly. To over come this I have used 'num-buffers' property in v4l2src
and alsasrc. Now the application exits after encoding the mentioned number
of buffers. Following is the command:
gst-launch avimux name=mux bigfile=true ! filesink location=cam_vga_20.avi {
alsasrc blocksize=4096 num-buffers=300 !
'audio/x-raw-int,endianness=1234,signed=true,width=16,depth=16,rate=44100,channel=2'
! queue ! omx_aacenc ! mux. } { v4l2src num-buffers=150 queue-size=16 !
'video/x-raw-yuv,framerate=20/1,width=640,height=480' ! tee name=tvv tvv. !
queue ! xvimagesink tvv. ! queue max-size-buffers=1 ! omx_mpeg4enc ! mux.}
Now the issue is everytime I need to calculate the 'num-buffers' based on
audio and video parameters otherwise the EOS of audio and video will not be
similar and cause problem during playback.
Is there any altenate way to acheive EOS?
Thanks and Regards,
Manish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-openmax/attachments/20081128/d105d5a9/attachment.htm>
More information about the Gstreamer-openmax
mailing list