[FFmpeg-user] How to re encode broken mp4s
Gyan
ffmpeg at gyani.pro
Tue Jan 29 12:59:33 EET 2019
On 29-01-2019 03:35 PM, Gabriele Greco wrote:
> I've some hundreds of broken h264 mp4s that have been encoded with nvenc
> ffmpeg encoder with conflicting options (-vprofile baseline -bf3), these
> files pretends to be baseline but they really have some B frames inside,
> but those B frames are marked by the container as P, so that VLC and ffmpeg
> fails to decode them and keep the previous I frame.
>
> The files are reported by ffprobe as: I - P - P - P - P - P - P - I - P - P
> - P - P - P - P - I ... but they are really I - B - B - B - B - B - B - I -
> B - B - B - B - B - B - I ...
Can't reproduce. With ffprobe on your sample, I get
I B B B P B B B P B B B P ...
Gyan
More information about the ffmpeg-user
mailing list