Passing through or transcoding MPEG-4 AAC audio - how?

Graham Leggett minfrin at sharp.fm
Mon Oct 24 12:59:54 UTC 2016


Hi all,

I have a test MPEG transport stream that looks like below.

What I want to do is either

a) pass the MPEG-4 AAC audio through unchanged from tsdemux to mpegtsmux; OR if impossible
b) decode then re-encode the audio stream

When I try to add “aacparse” and “faad” I get the error "failed delayed linking some pad of GstTSDemux named demux to some pad of GstQueue named queue0”, which I am told means “the transport stream does not contain AAC audio”[1].

Can anyone confirm what the right way is to pass through or transcode (anything that works at this point) MPEG-4 AAC audio from tsdemux?

pi at towerofpi9:~$ gst-discoverer-1.0 test.ts 
Analyzing file:///home/pi/test.ts
Done discovering file:///home/pi/test.ts

Topology:
  container: MPEG-2 Transport Stream
    subtitles: DVB subtitles
    audio: MPEG-4 AAC
    audio: MPEG-4 AAC
    video: H.264

Properties:
  Duration: 0:00:05.262017111
  Seekable: yes
  Tags: 
      language code: en
      audio codec: MPEG-4 AAC
      video codec: H.264

pi at towerofpi9:~$ G_DEBUG="fatal-warnings" LD_LIBRARY_PATH=/usr/local/lib gst-launch-1.0 --gst-debug=1,tdttsparse:5,videotag:1,souphttpclientsink:2,pixelsample:1,omxvideodec:1 filesrc location=test.ts ! tsdemux emit-stats=true name=demux ! queue leaky=downstream max-size-time=5000000000 ! aacparse ! faad ! fakesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
WARNING: from element /GstPipeline:pipeline0/GstTSDemux:demux: Delayed linking failed.
Additional debug info:
./grammar.y(506): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstTSDemux:demux:
failed delayed linking some pad of GstTSDemux named demux to some pad of GstQueue named queue0
^Chandling interrupt.
Interrupt: Stopping pipeline ...
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline …

[1] https://bugzilla.gnome.org/show_bug.cgi?id=773357

Regards,
Graham
—


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3240 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161024/636ded0d/attachment.bin>


More information about the gstreamer-devel mailing list