<div><font style="BACKGROUND-COLOR: #c0c0c0">Hi All,</font></div>
<div><font style="BACKGROUND-COLOR: #c0c0c0"></font> </div>
<div><font style="BACKGROUND-COLOR: #c0c0c0">I am using following camcoder gst-pipeline on my board with gst-launch application.</font></div>
<div> </div>
<div>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.}</div>
<div> </div>
<div> </div>
<div>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:</div>
<div> </div>
<div>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.}</div>
<div> </div>
<div>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.</div>
<div>Is there any altenate way to acheive EOS?</div>
<div> </div>
<div>Thanks and Regards,</div>
<div>Manish</div>
<div> </div>
<div> </div>