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
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Write an application and create a thread to interact with user input to send eos event to the pipeline. Pipeline will send eos to every source plugin in pipeline.
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
One doubt I am using gst-launch it should also send EOS event to pipeline when ctrl+C is pressed.
On Fri, Nov 28, 2008 at 2:54 PM, Nie Jun <[hidden email]> wrote: Write an application and create a thread to interact with user input to send eos event to the pipeline. Pipeline will send eos to every source plugin in pipeline. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Manish Sharma-5
On Fri, Nov 28, 2008 at 8:28 AM, Manish Sharma <[hidden email]> 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 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
HI Felipe,
First of all, {} are old style, then, it's 'channels', not 'channel', Thank for the above information it works fine. It is playing fine with the media player. How to add the xvimagesink where to put the queue.
Yup it is a mistake... :)
Regards,
Manish ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |