Transmuxing a TS stream to a matroska mux not possible

Sebastian Dröge sebastian at centricular.com
Thu Jun 26 00:17:11 PDT 2014


On Mi, 2014-06-25 at 00:32 +0200, Peter Maersk-Moller wrote:
> Hi.
> 
> Using GStreamer 1.3.3 it seems impossible to transmux a TS stream with
> H264/AAC to a matroska stream. Can that really be true?
> 
> I think the problem is that the tsdemuxer reports the audio stream to be
> MPEG-2 ADTS although it is muxed as
> 'mpeg/audio,mpegversion=4,streamformat=raw', but I believe the tsmuxer
> might convert it to ADTS as I believe a TS muxed stream can only be ADTS
> inside and not raw. That the demuxer finds ADTS stream-format might make
> sense, but finding mpeg/audio mpegversion=2 does not make sense I think. Is
> this an error?
> 
> The pipeline tried used for transmuxing is this
> 
> gst-launch-1.0 -v \
>         udpsrc port=8000
> caps='application/x-rtp,media=video,clock-rate=90000,encoding-name=MP2T,payload=96'
> do-timestamp=false do-timestamp=true !\
>         queue                   !\
>         rtpmp2tdepay            !\
>         queue                   !\
>         tsparse                 !\
>         queue                   !\
>         tsdemux name=demux      !\
>         queue                   !\
>         identity silent=false !\
>         aacparse                !\
>         queue                   !\
>         mux. demux.         !\
>         queue                   !\
>         h264parse               !\
>         queue                   !\
>         matroskamux name=mux streamable=true !\
>         queue                   !\
>         tcpserversink host=0.0.0.0 port=5020 sync-method=2
> recover-policy=keyframe
> 
> But this pipeline hangs as the aacparse can not generate what matrooskamux
> needs from what aacparse receives as input.

What do you mean with that? Are there any error messages or error output
on the terminal?

Can you file a bug about that with a sample source file?

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140626/c05e9ee3/attachment.sig>


More information about the gstreamer-devel mailing list