fmpeg exits due to aac error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

fmpeg exits due to aac error

serge2school
Hi,

I have a very long (24 hour) video stream that I am processing in near
realtime. And after a while, ffmpeg exits with the following error:

[mpegts @ 0000018aa073f740] PES packet size mismatch
[mpegts @ 0000018aa073f740] Packet corrupt (stream = 1, dts = 2733992293).
overread 8
[mpeg2video @ 0000018aa2355dc0] Warning MVs not available
[mpeg2video @ 0000018aa2355dc0] concealing 6030 DC, 6030 AC, 6030 MV errors
in B frame
E:\TVRecData\1ch\taskrec_1ch_20210216_121354.ts: corrupt decoded frame in
stream 0
[aac @ 0000018aa2353dc0] TYPE_FIL: Input buffer exhausted before END element
found
Error while decoding stream #0:1: Invalid data found when processing input
frame=218550 fps= 30 q=-0.0 Lsize=N/A time=02:01:33.51 bitrate=N/A speed=  
1x    
video:114397kB audio:1366210kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: unknown

I am using the following command:

fmpeg -err_detect ignore_err -re -sseof -3 -i 20210216_234639.ts -af
silencedetect=noise=0.001:d=0.4 -f null - > 20210216_234639.txt 2>&1

Note: the overall file is written is a particular format with several
streams, where some streams (EPG, etc)  we cannot read. But, we can play the
file, and focusing on stream 0 and stream 1 we can get the video and audio.
Yet, when reading audio, we get this error.

We see a lot of corrupted packets, but strangely, MediaPlayerClassic has no
problem playing it. So info is definitely there. Video and audio seem to be
ok when playing.


I can replay the whole file (including sound) no problem using
MediaPlayerClassic, VLC, etc...
I am enclosing the whole ffmpeg log for your enjoyment attached to this
post.

I am stuck and really need help.

Thank you!

I am also attaching ffprobe output below:
(note garbled characters is because it is East Asian language)

ffprobe version N-101088-g6f80953554 Copyright (c) 2007-2021 the FFmpeg
developers
  built with gcc 9.3-win32 (GCC) 20200320
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static
--pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64
--target-os=mingw32 --enable-gpl --enable-version3 --disable-debug
--enable-shared --disable-static --disable-w32threads --enable-pthreads
--enable-iconv --enable-zlib --enable-libxml2 --enable-libfreetype
--enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig
--enable-opencl --enable-libvmaf --disable-vulkan --enable-libvorbis
--enable-amf --enable-libaom --enable-avisynth --enable-libdav1d
--enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm --disable-libglslang
--enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus
--enable-libtheora --enable-libvpx --enable-libwebp --enable-libmfx
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2
--enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame
--enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx265
--enable-libxavs2 --enable-libxvid --enable-libzimg
--extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags=
--extra-ldflags=-pthread --extra-libs=-lgomp
  libavutil      56. 65.100 / 56. 65.100
  libavcodec     58.123.100 / 58.123.100
  libavformat    58. 67.100 / 58. 67.100
  libavdevice    58. 11.103 / 58. 11.103
  libavfilter     7.106.100 /  7.106.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
[aac @ 000001d5562aa880] Multiple frames in a packet.
[mpeg2video @ 000001d5561d4140] Invalid frame dimensions 0x0.
    Last message repeated 8 times
[mpegts @ 000001d5561ce540] Packet corrupt (stream = 1, dts = 8545228101).
[mpegts @ 000001d5561ce540] Stream #14: not enough frames to estimate rate;
consider increasing probesize
[mpegts @ 000001d5561ce540] start time for stream 0 is not set in
estimate_timings_from_pts
[mpegts @ 000001d5561ce540] start time for stream 3 is not set in
estimate_timings_from_pts
[mpegts @ 000001d5561ce540] start time for stream 4 is not set in
estimate_timings_from_pts
[mpegts @ 000001d5561ce540] start time for stream 14 is not set in
estimate_timings_from_pts
[mpegts @ 000001d5561ce540] start time for stream 15 is not set in
estimate_timings_from_pts
[mpegts @ 000001d5561ce540] start time for stream 16 is not set in
estimate_timings_from_pts
[mpegts @ 000001d5561ce540] PES packet size mismatch
[mpegts @ 000001d5561ce540] Packet corrupt (stream = 2, dts = 3294556565).
[mpegts @ 000001d5561ce540] stream 14 : no TS found at start of file,
duration not set
[mpegts @ 000001d5561ce540] stream 15 : no TS found at start of file,
duration not set
[mpegts @ 000001d5561ce540] Could not find codec parameters for stream 5
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
[mpegts @ 000001d5561ce540] Could not find codec parameters for stream 6
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
[mpegts @ 000001d5561ce540] Could not find codec parameters for stream 7
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
[mpegts @ 000001d5561ce540] Could not find codec parameters for stream 8
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
[mpegts @ 000001d5561ce540] Could not find codec parameters for stream 9
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
[mpegts @ 000001d5561ce540] Could not find codec parameters for stream 10
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
[mpegts @ 000001d5561ce540] Could not find codec parameters for stream 11
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
[mpegts @ 000001d5561ce540] Could not find codec parameters for stream 12
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
[mpegts @ 000001d5561ce540] Could not find codec parameters for stream 13
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
[mpegts @ 000001d5561ce540] Could not find codec parameters for stream 14
(Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
[mpegts @ 000001d5561ce540] Could not find codec parameters for stream 15
(Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
[mpegts @ 000001d5561ce540] Could not find codec parameters for stream 17
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
[mpegts @ 000001d5561ce540] Could not find codec parameters for stream 18
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
[mpegts @ 000001d5561ce540] Could not find codec parameters for stream 19
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
[mpegts @ 000001d5561ce540] Could not find codec parameters for stream 20
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
Input #0, mpegts, from '20210216_200422.ts':
  Duration: 10:18:26.39, start: 94943.917744, bitrate: 9736 kb/s
  Program 1040
    Metadata:
      service_name    : F|%F%l?1
      service_provider:
  Stream #0:1[0x111]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv, bt709, top first), 1440x1080 [SAR 4:3 DAR 16:9], 29.97 fps,
29.97 tbr, 90k tbn, 59.94 tbc
    Side data:
      cpb: bitrate max/min/avg: 20000000/0/0 buffer size: 9781248 vbv_delay:
N/A
  Stream #0:2[0x112]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp, 255 kb/s
  Stream #0:3[0x116]: Subtitle: arib_caption (Profile A) ([6][0][0][0] /
0x0006)
  Stream #0:4[0x117]: Data: bin_data ([6][0][0][0] / 0x0006)
  Stream #0:5[0x511]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:6[0x512]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:7[0x513]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:8[0x51f]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:9[0x711]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:10[0x611]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:11[0x612]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:12[0x613]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:13[0x61f]: Unknown: none ([13][0][0][0] / 0x000D)
  Program 1041
    Metadata:
      service_name    : F|%F%l?2
      service_provider:
  Stream #0:1[0x111]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv, bt709, top first), 1440x1080 [SAR 4:3 DAR 16:9], 29.97 fps,
29.97 tbr, 90k tbn, 59.94 tbc
    Side data:
      cpb: bitrate max/min/avg: 20000000/0/0 buffer size: 9781248 vbv_delay:
N/A
  Stream #0:2[0x112]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp, 255 kb/s
  Stream #0:3[0x116]: Subtitle: arib_caption (Profile A) ([6][0][0][0] /
0x0006)
  Stream #0:4[0x117]: Data: bin_data ([6][0][0][0] / 0x0006)
  Stream #0:5[0x511]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:6[0x512]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:7[0x513]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:8[0x51f]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:9[0x711]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:10[0x611]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:11[0x612]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:12[0x613]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:13[0x61f]: Unknown: none ([13][0][0][0] / 0x000D)
  Program 1424
    Metadata:
      service_name    : F|K\?|ニ・
      service_provider:
  Stream #0:14[0x151]: Video: h264 ([27][0][0][0] / 0x001B), none, 90k tbr,
90k tbn
  Stream #0:15[0x152]: Audio: aac ([15][0][0][0] / 0x000F), 0 channels
  Stream #0:16[0x156]: Subtitle: arib_caption (Profile C) ([6][0][0][0] /
0x0006)
  Stream #0:17[0x551]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:18[0x552]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:19[0x553]: Unknown: none ([13][0][0][0] / 0x000D)
  Stream #0:20[0x554]: Unknown: none ([13][0][0][0] / 0x000D)
  Program 1044
    Metadata:
      service_name    : F|%F%lNW;~
      service_provider:
  Stream #0:0[0x12]: Data: epg
Unsupported codec with id 98306 for input stream 0
Unsupported codec with id 96272 for input stream 3
Unsupported codec with id 100359 for input stream 4
Unsupported codec with id 0 for input stream 5
Unsupported codec with id 0 for input stream 6
Unsupported codec with id 0 for input stream 7
Unsupported codec with id 0 for input stream 8
Unsupported codec with id 0 for input stream 9
Unsupported codec with id 0 for input stream 10
Unsupported codec with id 0 for input stream 11
Unsupported codec with id 0 for input stream 12
Unsupported codec with id 0 for input stream 13
Unsupported codec with id 96272 for input stream 16
Unsupported codec with id 0 for input stream 17
Unsupported codec with id 0 for input stream 18
Unsupported codec with id 0 for input stream 19
Unsupported codec with id 0 for input stream 20



--
Sent from: http://ffmpeg-users.933282.n4.nabble.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: fmpeg exits due to aac error

Carl Eugen Hoyos-2


> Am 17.02.2021 um 01:46 schrieb serge2school <[hidden email]>:
>
> I am also attaching ffprobe output below

Generally, this is not useful, required is the output of your ffmpeg command.

Anyway, please either provide the whole input file or cut it with dd as long (or actually short) as the issue is still reproducible and upload that file.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".