[FFmpeg-user] remove error without reencoding

Richard Bartczak richard.bartczak at gmx.de
Mon May 5 21:24:09 EEST 2025


Hello,

the following error will be indicated by ffmpeg , libx264 of a video :

Input #0, mpegts, from './Lion of the Desert - Löwe der Wüste.ts':
   Duration: 02:40:30.62, start: 0.084000, bitrate: 4880 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
   Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), 
yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 
tbr, 90k tbn
   Stream #0:1[0x101](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 
Hz, stereo, fltp, 192 kb/s
...


frame=201461 fps= 89 q=49.0 size=  394540kB time=02:14:19.24 bitrate= 
401.0kbits/s dup=64 drop=0 speed=3.56x
frame=201500 fps= 89 q=49.0 size=  394540kB time=02:14:20.80 bitrate= 
401.0kbits/s dup=64 drop=0 speed=3.56x
[h264 @ 0x61e9a5366d00] mmco: unref short failure
     Last message repeated 1 times
[h264 @ 0x61e9a5366d00] number of reference frames (0+5) exceeds max (4; 
probably corrupt input), discarding one
[h264 @ 0x61e9a55c6280] mmco: unref short failure
     Last message repeated 1 times
frame=201552 fps= 89 q=40.0 size=  394980kB time=02:14:22.84 bitrate= 
401.3kbits/s dup=108 drop=0 speed=3.56x

VLC or a DLNA Device (e.g.: TV)  play this video without visible 
errors.  Perhaps I did cut the video on a NIDR position.

But after compression of this video :

#!/bin/sh
for f in *.ts; do ffmpeg -y -i "$f" -vcodec libx265 -crf 20 -preset slow 
-vf yadif,nlmeans="1.6:7:5:3:3" -c:a copy "$(basename "$f" .ts).mkv";done

Neither VLC nor the TV via DLNA does play the video without visible errors.

Is it possible to remove errors like that, without reencoding the video 
with ffmpeg.

Best regards

Richard







More information about the ffmpeg-user mailing list