I've been playing around getting a feel for what gstreamer can do using
gst-launch. I don't have any problems if I just want to process audio or video separately (to separate files, or to alsasink/ximagesink), but I'm confused by what I need to do to mux the streams back together using, say avimux. This gst-launch-0.10 filesrc location=MVI_2034.AVI ! decodebin name=dec \ dec. ! queue ! audioconvert ! 'audio/x-raw-int,rate=44100,channels=1' ! queue ! mux. \ dec. ! queue ! videoflip 1 ! ffmpegcolorspace ! jpegenc ! queue ! mux. \ avimux name=mux ! filesink location=out.avi just outputs Setting pipeline to PAUSED ... Pipeline is PREROLLING ... and then stalls indefinitely. Variations I've tried with less 'queues', (which I'm a little unclear on the need for) do the same. What's the trick ? Thanks for any help Tim (gstreamer newbie, on Debian/Squeeze) ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi ,
Set properties for jpegenc (mimetype, image width and height, blocksize , foarmat , framerate etc ). On Tue, Jun 15, 2010 at 3:48 PM, Tim Day <[hidden email]> wrote: I've been playing around getting a feel for what gstreamer can do using -- Regards, Sudarshan Bisht ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
On Tue, 2010-06-15 at 16:24 +0300, sudarshan bisht wrote:
> Set properties for jpegenc (mimetype, image width and height, > blocksize , foarmat , framerate etc ). I've taken jpegenc out of the picture. Here's a better statement of the problem: This works as expected: gst-launch-0.10 \ videotestsrc ! ffmpegcolorspace ! 'video/x-raw-yuv' ! mux. \ audiotestsrc ! audioconvert ! 'audio/x-raw-int,rate=44100,channels=1' ! mux. \ avimux name=mux ! filesink location=gst.avi ...let it run for a while, kill it, and totem gst.avi gives you a nice test card with tone. This doesn't: gst-launch-0.10 \ filesrc location=MVI_2034.AVI ! decodebin name=dec \ dec. ! ffmpegcolorspace ! 'video/x-raw-yuv' ! mux. \ dec. ! audioconvert ! 'audio/x-raw-int,rate=44100,channels=1' ! mux. \ avimux name=mux ! filesink location=gst.avi ...does the endless "Pipeline is PREROLLING ..." On the face of it, avimux is getting the same thing flung at it in either case. Running gst-launch with -vm all looks sensible sizes, framerate etc. Which suggests the problem is more to do with decodebin. Any ideas how to get the latter case above rolling ? Tim ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
On Tue, 2010-06-15 at 22:00 +0100, Tim Day wrote:
> gst-launch-0.10 \ > filesrc location=MVI_2034.AVI ! decodebin name=dec \ > dec. ! ffmpegcolorspace ! 'video/x-raw-yuv' ! mux. \ > dec. ! audioconvert ! 'audio/x-raw-int,rate=44100,channels=1' ! mux. \ > avimux name=mux ! filesink location=gst.avi > ...does the endless "Pipeline is PREROLLING ..." OK cracked it... this does what I want: gst-launch-0.10 \ filesrc location=MVI_2034.AVI ! decodebin name=dec \ dec. ! queue ! ffmpegcolorspace ! 'video/x-raw-yuv' ! queue ! mux. \ dec. ! queue ! audioconvert ! 'audio/x-raw-int,channels=1' ! audioresample ! 'audio/x-raw-int,rate=44100' ! queue ! mux. \ avimux name=mux ! filesink location=gst.avi The queue elements (both leading and trailing) appear to be crucial. Further experiments adding things like videoflip or videorate !'video/x-raw-yuv,framerate=25/1' into the video part of the pipeline all work as expected. Tim ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |