[gst-devel] Convert mp4 to mpeg2 transport stream using qtdemux & mpegtsmux

Raymond Tam rtam at 2wire.com
Sun Mar 15 23:45:42 CET 2009


That works! Thank you Ron and Edward (sorry Edward I missed the dot at the end).
Can you explain the meaning of the dot in the pipeline?

Thanks,
Raymond


-----Original Message-----
Date: Sun, 15 Mar 2009 11:01:15 -0700
From: Ron McOuat <rmcouat at smartt.com>
Subject: Re: [gst-devel] Convert mp4 to mpeg2 transport stream using
	qtdemux & mpegtsmux
To: Discussion of the development of GStreamer
	<gstreamer-devel at lists.sourceforge.net>
Message-ID: <49BD426B.3090109 at smartt.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Add a . to the end of the pipeline

gst-launch filesrc location=input_video.mp4 ! qtdemux name=demux demux.video_00 ! queue ! mpegtsmux name=mux ! filesink location=output_video.mpg demux.audio_00 ! queue ! mux.



Raymond Tam wrote:
> Something is still not right with the pipeline. 
>
> When I use the pipeline, it exits immediately complaining not finding the "mux":
>
> [root at BB /]# gst-launch filesrc location=input_video.mp4 ! qtdemux name=demux demux.video_00 ! queue ! mpegtsmux name=mux ! filesink location=output_video.mpg demux.audio_00 ! queue ! mux
> WARNING: erroneous pipeline: no element "mux"
> [root at BB /]#
>
> Any idea?
>
> Thanks,
> Raymond
>
>
> -----Original Message-----
> Date: Sun, 15 Mar 2009 14:25:16 +0100
> From: Edward Hervey <bilboed at gmail.com>
> Subject: Re: [gst-devel] Convert mp4 to mpeg2 transport stream using
> 	qtdemux & mpegtsmux
> To: Discussion of the development of GStreamer
> 	<gstreamer-devel at lists.sourceforge.net>
> Message-ID: <1237123516.5357.2.camel at putamadre>
> Content-Type: text/plain
>
> On Sat, 2009-03-14 at 15:38 -0700, Raymond Tam wrote:
>   
>> Thanks Edward. But it still doesn't quite work.
>>
>> If I do this (with properties added):
>>
>>     gst-launch filesrc location=input_video.mp4 ! qtdemux name=demux
>>  demux.video_00 ! queue ! mpegtsmux ! filesink
>>  location=output_video.mpg demux.audio_00 ! queue ! mpegtsmux
>>     
>
>   There was a mistake in the launch-line, the muxer wasn't used by name.
> it should be:
>
> gst-launch filesrc location=input_video.mp4 ! qtdemux name=demux
> demux.video_00 ! queue ! mpegtsmux name=mux ! filesink
> location=output_video.mpg demux.audio_00 ! queue ! mux.
>
>    Edward
>
>   
>>> then the output file contains audio only.
>>>
>>>
>>> As an experiment, I then try this pipeline:
>>>
>>> gst-launch filesrc location=input_video.mp4 ! qtdemux name=demux demux.video_00 ! mpegtsmux m2ts-mode=FALSE ! filesink location=output_video.mpg
>>>
>>> and the output file contains video only. Using VLC player, I can playback this output file without problem, but of course there's no audio.
>>>
>>>
>>> Can someone please tell me what would be the right pipeline to construct in order to properly perform the conversion?
>>>
>>> Thanks in advance.
>>>
>>> -Raymond




More information about the gstreamer-devel mailing list