[Bug 719519] New: Remuxing MPEG TS messes up AAC streams

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Nov 28 14:13:55 PST 2013


https://bugzilla.gnome.org/show_bug.cgi?id=719519
  GStreamer | gst-plugins-bad | git

           Summary: Remuxing MPEG TS messes up AAC streams
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: me at andrey-utkin.pp.ua
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Created an attachment (id=263084)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=263084)
Pipeline diagram rendered

Doing
gst-launch-1.0 audiotestsrc ! faac ! mpegtsmux ! tsdemux ! mpegtsmux ! udpsink 
host=225.3.3.3 port=4321 multicast-iface=lo
results in unplayable file, tested playback with both playbin and ffprobe.
Removing spare remuxing makes perfectly playable file.
The same problem happens with AAC streams when original MPEG TS is taken from
outside - after muxing back to MPEG TS, AAC streams are detected wrongly and
played badly.
Rendered diagram of problematic remuxing pipeline is attached.


 $ GST_DEBUG=3 gst-launch-1.0 playbin uri=udp://225.3.3.3:4321
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.037678848 20521       0xad0b70 WARN                 default
descriptions.c:616:format_info_get_desc: Unexpected MPEG-1 layer in audio/mpeg,
mpegversion=(int)1
0:00:00.037746140 20521       0xad0b70 WARN        mpegtspacketizer
mpegtspacketizer.c:2179:mpegts_packetizer_pts_to_ts: Not enough information to
calculate proper timestamp
0:00:00.037766089 20521       0xad0b70 WARN        mpegtspacketizer
mpegtspacketizer.c:2179:mpegts_packetizer_pts_to_ts: Not enough information to
calculate proper timestamp
0:00:00.037780340 20521       0xad0b70 WARN        mpegtspacketizer
mpegtspacketizer.c:2179:mpegts_packetizer_pts_to_ts: Not enough information to
calculate proper timestamp
0:00:00.037797769 20521       0xad0b70 WARN        mpegtspacketizer
mpegtspacketizer.c:2179:mpegts_packetizer_pts_to_ts: Not enough information to
calculate proper timestamp
0:00:00.037807430 20521       0xad0b70 WARN        mpegtspacketizer
mpegtspacketizer.c:2179:mpegts_packetizer_pts_to_ts: Not enough information to
calculate proper timestamp
0:00:00.045273637 20521 0x7f2bc00d6450 WARN          mpegaudioparse
gstmpegaudioparse.c:467:gst_mpeg_audio_parse_head_check:<mpegaudioparse0>
invalid layer: 0x0
0:00:00.045312692 20521 0x7f2bc00d6450 WARN          mpegaudioparse
gstmpegaudioparse.c:467:gst_mpeg_audio_parse_head_check:<mpegaudioparse0>
invalid layer: 0x0
0:00:00.045537307 20521 0x7f2bc00d6450 WARN          mpegaudioparse
gstmpegaudioparse.c:467:gst_mpeg_audio_parse_head_check:<mpegaudioparse0>
invalid layer: 0x0
0:00:00.045561368 20521 0x7f2bc00d6450 WARN          mpegaudioparse
gstmpegaudioparse.c:467:gst_mpeg_audio_parse_head_check:<mpegaudioparse0>
invalid layer: 0x0
0:00:00.045587509 20521 0x7f2bc00d6450 WARN          mpegaudioparse
gstmpegaudioparse.c:467:gst_mpeg_audio_parse_head_check:<mpegaudioparse0>
invalid layer: 0x0
0:00:00.045607770 20521 0x7f2bc00d6450 WARN          mpegaudioparse
gstmpegaudioparse.c:467:gst_mpeg_audio_parse_head_check:<mpegaudioparse0>
invalid layer: 0x0
(last line is produced infinitely)

 $ ffprobe  udp://225.3.3.3:4321?localaddr=127.0.0.1
ffprobe version N-58037-g355cea8 Copyright (c) 2007-2013 the FFmpeg developers
  built on Nov 12 2013 01:29:48 with gcc 4.6.3 (Gentoo 4.6.3 p1.13, pie-0.5.2)
  configuration: --enable-gpl --enable-libx264 --enable-encoder=libx264
--disable-stripping --enable-debug --extra-cflags='-O0 -g -ggdb'
--enable-libvidstab
  libavutil      52. 52.100 / 52. 52.100
  libavcodec     55. 41.100 / 55. 41.100
  libavformat    55. 21.100 / 55. 21.100
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.102 /  3. 90.102
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[mp3 @ 0x1a1e660] Header missing
    Last message repeated 30 times
[mpegts @ 0x19fa1e0] decoding for stream 0 failed
[mpegts @ 0x19fa1e0] Could not find codec parameters for stream 0 (Audio: mp2
([4][0][0][0] / 0x0004), 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
udp://225.3.3.3:4321?localaddr=127.0.0.1: Operation not permitted

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list