Hi,
I am a gstreamer newby ! As a test exercise I am trying to convert a mpg file to ts file using this command line pipeline :- gst-launch-0.10 filesrc \ location=/media/hdd/movie/DeanaC.mpg !\ mpegpsdemux ! mpegtsmux ! filesink location=\ /media/hdd/movie/Test.ts The command line output :- Setting pipeline to PAUSED ... Pipeline is PREROLLING ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock Got EOS from element "pipeline0". Execution ended after 143343968000 ns. Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... FREEING pipeline When I play this file in a powerpc linux set top box the video plays - but no audio. What is missing in the pipeline ? I tried to find a tutorial for this without success ! Will be grateful for any advice. ps. I tried with mpegdemux instead of mpegpsdemux - still no audio. Regards, pcd. |
Hi,
Sorry for asking this trivial question ! Got it sorted - after doing some more reading. Thanks again, pcd.
|
Administrator
|
In reply to this post by pcd
On Sun, 2009-05-24 at 01:49 -0700, pcd7 wrote:
> Hi, > > I am a gstreamer newby ! > > As a test exercise I am trying to convert a mpg file to ts file using this > command line pipeline :- > > gst-launch-0.10 filesrc \ > location=/media/hdd/movie/DeanaC.mpg !\ > mpegpsdemux ! mpegtsmux ! filesink location=\ > /media/hdd/movie/Test.ts You're only remuxing one stream in your example... which is why you're only getting the video (and no other streams). Try the following: filesrc location=input.mpg ! mpegpsdemux name=d ! queue ! mpegtsmux name=m ! filesink location=output.ts d. ! queue ! m. Edward > > The command line output :- > > Setting pipeline to PAUSED ... > Pipeline is PREROLLING ... > Pipeline is PREROLLED ... > Setting pipeline to PLAYING ... > New clock: GstSystemClock > Got EOS from element "pipeline0". > Execution ended after 143343968000 ns. > Setting pipeline to PAUSED ... > Setting pipeline to READY ... > Setting pipeline to NULL ... > FREEING pipeline > > When I play this file in a powerpc linux set top box the video plays - but > no audio. > > What is missing in the pipeline ? > > I tried to find a tutorial for this without success ! Will be grateful for > any advice. > > ps. I tried with mpegdemux instead of mpegpsdemux - still no audio. > > Regards, pcd. ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
This post was updated on .
In reply to this post by pcd
Many thanks. I also had it working with this pipeline :-
gst-launch-0.10 -v filesrc\ > location=/media/hdd/movie/input.mpg !\ > mpegdemux name=demux\ > demux.video_00 ! queue !\ > mpegtsmux name=mux !\ > filesink location=\ > /media/hdd/movie/output.ts\ > demux.audio_00 ! queue ! mux. Now the problem is - I am playing the output file in a set top box (satellite receiver). If the file is completed by gstreamer then it plays ok. If I try to play it "on the fly" - the playback does periodic stop and start. Probably the demuxing or muxing processes are slow (only a small powerpc machine). Is it possible in any way to speed up the process a bit ? Regards.
|
Free forum by Nabble | Edit this page |