[FFmpeg-user] write time and date to error message

Jonathan Baecker jonbae77 at gmail.com
Sun Nov 13 12:11:42 EET 2016


Hello Everybody,

I have a Livestream here, what produce sometimes errors and warning from 
udp input:

[mpeg2video @ 0x2a321e0] concealing 1215 DC, 1215 AC, 1215 MV errors in B frame
[mpegts @ 0x2a28680] PES packet size mismatch
[mp2 @ 0x2a31680] Header missing
Error while decoding stream #0:1: Invalid data found when processing input
[mpeg2video @ 0x2a321e0] 00 motion_type at 2 24
[mpeg2video @ 0x2a321e0] 00 motion_type at 4 25
[mpeg2video @ 0x2a321e0] 00 motion_type at 29 26
[mpeg2video @ 0x2a321e0] 00 motion_type at 4 27
[mpeg2video @ 0x2a321e0] 00 motion_type at 4 28
[mpeg2video @ 0x2a321e0] ac-tex damaged at 7 29
[mpeg2video @ 0x2a321e0] slice mismatch
[mpeg2video @ 0x2a321e0] 00 motion_type at 3 31

The errors you can ignore, I know that the most of them a not important 
and the stream work stabile. But sometimes i get a crack in the audio 
line, so I would like to have more options for debugging.

Is there a way to write the date and time to the process info, like this:

2016-11-13 08:55:02 [mpeg2video @ 0x37acb40] 00 motion_type at 1 28
2016-11-13 08:55:02 [mpeg2video @ 0x37acb40] ac-tex damaged at 0 29
2016-11-13 08:55:02 [mpeg2video @ 0x37acb40] ac-tex damaged at 0 30
2016-11-13 08:55:02 [mpeg2video @ 0x37acb40] 00 motion_type at 7 31
2016-11-13 08:55:02 [mpeg2video @ 0x37acb40] ac-tex damaged at 0 32
2016-11-13 08:55:02 [mpeg2video @ 0x37acb40] 00 motion_type at 1 33
2016-11-13 08:55:02 [mpeg2video @ 0x37acb40] 00 motion_type at 3 34
2016-11-13 08:55:02 [mpeg2video @ 0x37acb40] ac-tex damaged at 0 35
2016-11-13 08:55:02 [mpeg2video @ 0x37acb40] Warning MVs not available
2016-11-13 08:55:02 [mpeg2video @ 0x37acb40] concealing 990 DC, 990 AC, 
990 MV errors in P frame
2016-11-13 08:55:02 [mpeg2video @ 0x37acb40] ac-tex damaged at 5 5
2016-11-13 08:55:02 [mpeg2video @ 0x37acb40] Warning MVs not available
2016-11-13 08:55:02 [mpeg2video @ 0x37acb40] concealing 315 DC, 315 AC, 
315 MV errors in I frame
2016-11-13 08:55:02 [mp2 @ 0x39e4d40] Header missing
2016-11-13 08:55:02 Error while decoding stream #0:1: Invalid data found 
when processing input
2016-11-13 08:55:02 [mpeg2video @ 0x37acb40] Warning MVs not available
2016-11-13 08:55:02 [mpeg2video @ 0x37acb40] concealing 0 DC, 0 AC, 0 MV 
errors in P frame

I try it with sed, but this don't work in real time. (sed 
"s/^\[mp/$(date +"%Y-%m-%d %T") \[mp/g"). Have ffmpeg a option for this? 
Or have you a other idea?


Regards

Jonathan





More information about the ffmpeg-user mailing list