Hi, I am a complete Gstreamer new. Please forgive me if this is a common question. I found many other "audio synchronization" posts on this list-serve but none of the offered answers seems to address my problem.
My pipe line is simply trying to mux an audiotestsrc with a videotestsrc and output to a filesink. videotestsrc num-buffers=150 ! video/x-raw-yuv,width=1920, height=1080 !
timeoverlay ! videorate ! queue ! xvidenc ! avimux name=mux mux. ! filesink sync=true location=new.avi audiotestsrc num-buffers=150 ! queue ! audioconvert ! audiorate ! mux.
What am I missing here? I've tried every combination of sync="" properties, etc.
Thanks very much in advance 250 891 4797 --- Given sufficient thrust pigs fly just fine. _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
No need to use num-buffers property with both the sources, use it only with one source. From: Garth Tissington Sent: 16/04/2012 09:02 To: [hidden email] Subject: Audio rate problems
Hi, I am a complete Gstreamer new. Please forgive me if this is a common question. I found many other "audio synchronization" posts on this list-serve but none of the offered answers seems to address my problem.
My pipe line is simply trying to mux an audiotestsrc with a videotestsrc and output to a filesink. videotestsrc num-buffers=150 ! video/x-raw-yuv,width=1920, height=1080 !
timeoverlay ! videorate ! queue ! xvidenc ! avimux name=mux mux. ! filesink sync=true location=new.avi audiotestsrc num-buffers=150 ! queue ! audioconvert ! audiorate ! mux.
What am I missing here? I've tried every combination of sync="" properties, etc.
Thanks very much in advance 250 891 4797 --- Given sufficient thrust pigs fly just fine. _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hello,
Thank you for your answer. I tried with out using num-buffers on the audio element. If I do this, the pipeline never ends. Gst-launch hangs for ever and nothing is output to to the filesink Any other ideas? Garth |
In reply to this post by gtissington
Il 16/04/2012 07:59, Garth Tissington ha scritto:
the duration for audio and video buffers could be different you cannot assume that an audio buffer has the same duration as a video buffer Nicola
_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thanks for the answer. It doesn't really solve the problem though.
How can I get a sample clip with video test and audio test muxed into the same file where audio and video are the same length? Thanks >the duration for audio and video buffers could be different you can>not >assume that an audio buffer has the same duration as a video buffer Nicola > What am I missing here? I've tried every combination of sync="" > properties, etc. > > Thanks very much in advance > > Garth Tissington > 250 891 4797 > --- > > Given sufficient thrust pigs fly just fine. > > > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Il 17/04/2012 06:46, gtissington ha scritto:
> Thanks for the answer. It doesn't really solve the problem though. > > How can I get a sample clip with video test and audio test muxed into the > same file where audio and video are the same length? remove num-buffers add -e option to gst-launch and hit CTRL+C when you want to stop your "test" pipeline, what are you trying to achive? This seems a test pipeline maybe if you explain better your need you can have better answers Nicola > > Thanks > >> the duration for audio and video buffers could be different you can>not >> assume that an audio buffer has the same duration as a video buffer > Nicola > >> What am I missing here? I've tried every combination of sync="" >> properties, etc. >> >> Thanks very much in advance >> >> Garth Tissington >> 250 891 4797 >> --- >> >> Given sufficient thrust pigs fly just fine. >> >> >> >> _______________________________________________ >> gstreamer-devel mailing list >> gstreamer-devel@.freedesktop >> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > > _______________________________________________ > gstreamer-devel mailing list > gstreamer-devel@.freedesktop > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > > > > -- > View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Audio-rate-problems-tp4560653p4563528.html > Sent from the GStreamer-devel mailing list archive at Nabble.com. > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thanks for your feedback.
Yes, it is a test pipeline. I am very new to gstreamer and I am just trying to understand how it works. I've read all the documentation I have found but I'm afraid I still don't understand the many subtleties. The pipeline seems self explanatory and yet it doesn't behave as I expected. So, I asked why and how to fix it. Of course I have many, many other unresolved issues with gstreamer but this seemed like the most basic place to start to understand it. Ultimately all I'm trying to achieve at the moment is to make a 60 second test file (5 seconds in the sample pipeline) with audio and video muxed together. Your suggestion of using "gst-launch -e" and ctrl-c. I guess in a program I could start a timer and send eos when the interval expires. It seems sort of like a hack though. Anyway, Thanks very much for the suggestion. I'll keep plugging away at it and bring my more "real world" problems to the list-serve when I come across them. Garth videotestsrc num-buffers=150 ! video/x-raw-yuv,width=1920, height=1080 ! timeoverlay ! videorate ! queue ! xvidenc ! avimux name=mux mux. ! filesink sync=true location=new.avi audiotestsrc num-buffers=150 ! queue ! audioconvert ! audiorate ! mux.
|
Free forum by Nabble | Edit this page |