[FFmpeg-user] ffmpeg stops recording randomly with Error parsing ADTS frame header

Shay Duek | SpotNET shay at spotnet.co.il
Tue Sep 27 23:00:07 EEST 2022


Ffmpeg stops recording and exits after the following error:

ffmpeg error:
[mpegts @ 0x55efcce868c0] PES packet size mismatch:02:06.72 bitrate=5080.7kbits/s speed=1.09x
[mpegts @ 0x55efcce868c0] Packet corrupt (stream = 1, dts = 2430094328).
[aac_adtstoasc @ 0x55efccf34b80] Error parsing ADTS frame header!
[mp4 @ 0x55efcce9a400] Error applying bitstream filters to an output packet for stream #1: Invalid data found when processing input
av_interleaved_write_frame(): Invalid data found when processing input

ffmpeg command :
ffmpeg -timeout 10000000 -vsync 0 -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_on_network_error 1 -reconnect_delay_max 300 -stats -v warning -i http://xx.xx.xx.xx -c:a copy -c:v copy out.mp4

ffmpeg version:
4.4.2-ubuntu

Thank you
Shay



More information about the ffmpeg-user mailing list