[gst-devel] Converting mpg file to ts file - no sound
Edward Hervey
bilboed at gmail.com
Mon May 25 19:18:21 CEST 2009
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.
More information about the gstreamer-devel
mailing list