Opened 10 years ago

#4247 new defect

AAC bitstream not in ADTS format and extradata missing [mpegts]

Reported by: BlackDream Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

ffmpeg -re -y  -i "STREAM_URL" -c copy -f mpegts /tmp/test.ts

ffmpeg version 2.5.3 Copyright (c) 2000-2015 the FFmpeg developers
  built on Jan 10 2015 08:04:28 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --prefix=/root/ffmpeg/target --extra-cflags='-I/root/ffmpeg/target/include -static' --extra-ldflags='-L/root/ffmpeg/target/lib -lm -static' --disable-debug --disable-shared --enable-static --extra-cflags=--static --disable-ffplay --disable-ffserver --disable-doc --enable-openssl --enable-gpl --enable-pthreads --enable-postproc --enable-libass --enable-gray --enable-runtime-cpudetect --enable-libfaac --enable-gnutls --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-bzlib --enable-zlib --enable-nonfree --enable-version3 --enable-libvpx --enable-libxavs --disable-devices --enable-librtmp --extra-libs='-lrtmp -lnettle -lhogweed -lgmp -lssl -lcrypto -lz -lc -ldl'
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.102 / 56. 15.102
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mpegts, from '{STREAM_URL}':
  Duration: N/A, start: 9619.031478, bitrate: 89 kb/s
  Program 1
    Metadata:
      service_name    : rik2
      service_provider: IPTV
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 50 fps, 25 tbr, 90k tbn, 100 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 89 kb/s
Output #0, mpegts, to '/tmp/test.ts':
  Metadata:
    encoder         : Lavf56.15.102
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 50 fps, 90k tbn, 50 tbc
    Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, 89 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x37aade0] PES packet size mismatchme=00:00:49.89 bitrate= 634.9kbits/s
[mpegts @ 0x37d0c20] AAC bitstream not in ADTS format and extradata missing
av_interleaved_write_frame(): Invalid data found when processing input
frame= 1101 fps= 22 q=-1.0 Lsize=    3915kB time=00:00:50.09 bitrate= 640.3kbits/s
video:2934kB audio:557kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 12.153324%
Conversion failed!

It must be mention that exactly the same stream in FFmpeg 2.4.x branch works PERFECTLY so it must be a bug.

I think it has to do something with this ticket i created as well ( https://trac.ffmpeg.org/ticket/4243 )

When i get that error PES Packet size mismatch always a problem appears whereas in FFmpeg 2.4.x there wasn't any problem with this nor with the stream i'm testing as well.

IMPORTANT NOTE 1

It appears that WITHOUT -re argument i don't get this error.

Change History (0)

Note: See TracTickets for help on using tickets.