how to convert .mp4 to .ts use gst-launch-1.x

Jesper Larsen knorr.jesper at gmail.com
Tue Mar 24 02:02:42 PDT 2015


Hello,

In this pipeline

*gst-launch-1.0 filesrc location=why.mp4 ! qtdemux name=dec ! queue !
avdec_h264 ! queue ! x264enc ! mpegtsmux name=mux ! filesink location=1.ts
dec. ! queue ! audioconvert ! avenc_aac ! mux.*

you are not actually decoding the audio before you try to re-encode it.
audioconvert only converts between raw audio formats.

Any particular reason why you want to re-encode audio and video? You should
be able to make the transport stream without transcoding.

Something like

gst-launch-1.0 filesrc location=why.mp4 ! qtdemux name=d ! queue !
h264parse ! mpegtsmux name=mux ! filesink location=1.ts d. ! queue !
aacparse ! mux.

The start time at 3600 is a fixed offset used in mpegtsmux to give some
slack.

Best Regards
Jesper

On Mon, Mar 23, 2015 at 2:13 AM, gang <jiazaihaibian at hotmail.com> wrote:

> os platform:CentOS 7.0
>
> so,who can help me ?
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/how-to-convert-mp4-to-ts-use-gst-launch-1-x-tp4671263p4671265.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150324/fbea5580/attachment.html>


More information about the gstreamer-devel mailing list