[gst-devel] Convert mp4 to mpeg2 transport stream using qtdemux & mpegtsmux
Edward Hervey
bilboed at gmail.com
Sat Mar 14 09:54:37 CET 2009
Hi,
You need to creates links for both your streams, ergo something like
this (without properties for understanding):
filesrc ! qtdemux name=demux demux.video_00 ! queue ! mpegtsmux !
filesink demux.audio_00 ! queue ! mpegtsmux
Edward
On Fri, 2009-03-13 at 15:15 -0700, Raymond Tam wrote:
> Hi all,
>
> I'm trying to convert a mp4 transport stream file (video: H264, audio: AAC) to mpeg-2 transport stream file.
>
>
> If I use the following pipeline:
>
> gst-launch filesrc location=input_video.mp4 ! qtdemux ! mpegtsmux m2ts-mode=FALSE ! filesink location=output_video.mpg
>
> 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
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list