linux – How to use ffmpeg to encode a file with possible error?

I have a video file, which contains some error. The file is readable, but possible some blocks are wrong during some disk operation. So while playing the video, a few seconds will no be displayed correctly. Most media player will let me play this file without crash.

Now I want to use ffmpeg to encode the file into some other format. But the re-encode process is blocked by that error.

I want to know if there’s anyway to let ffmpeg to ignore that error, just like the media players. It can just ignore/skip that few seconds, and continue working on the rest.

  • The player might have different error concealment methods. To my knowledge, there’s no such option. If the stream is incorrectly parsed, FFmpeg will rather quit than produce garbage. Can you add the full output log of such a conversion you’re trying?

The simple solution I found, is to use the -ss option to skip the place that have errors.

https://superuser.com/questions/556192/how-to-use-ffmpeg-to-encode-a-file-with-possible-error

linux – How to use ffmpeg to encode a file with possible error? was last modified: September 7th, 2019 by Jovan Stosic

Leave a Reply