[Gstreamer-openmax] Regarding camcoder exit using gst-launch

Felipe Contreras felipe.contreras at gmail.com
Fri Nov 28 05:14:23 PST 2008


On Fri, Nov 28, 2008 at 8:28 AM, Manish Sharma <manishsharma13 at gmail.com> wrote:
> 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.}

First of all, {} are old style, then, it's 'channels', not 'channel',
also, it would be better if you specify the YUV format, queues should
be before the muxer AFAIK, and last, maybe you should try first
without the xvimagesink

gst-launch-0.10 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,channels=2'
! omx_aacenc ! queue ! mux. \
v4l2src queue-size=16 !
'video/x-raw-yuv,framerate=20/1,width=640,height=480,format=(fourcc)I420'
! omx_mpeg4enc ! queue ! mux.

How does that works?

> It works fine but when I press ctrl+C, the v4l2 and alsa src are closed
> properly.

I guess you meant "aren't closed properly".

-- 
Felipe Contreras




More information about the Gstreamer-openmax mailing list