[FFmpeg-user] Reordering frames in corrupt GoPro videos

Mark Filipak markfilipak.imdb at gmail.com
Thu Jul 18 01:18:45 EEST 2024


On 17/07/2024 16.54, Vincent Deconinck wrote:
>   On Fri, Jul 12, 2024 at 1:04 AM Mark Filipak <markfilipak.imdb at gmail.com>
> wrote:
> 
>> Try this:
>> -filter_complex "shuffleframes=<pattern>"
>> It's worked for me.
>>
> 
> Hi Mark and Paul,
> 
> 
> Sorry for the delay.
> 
> Thanks very much for the "shuffleframes" filter tip, this seems the right
> tool to use, even if it implies reencoding.
> 
> My tests confirmed it works perfectly when the video starts with a mangled
> 5-frames group:
> Input:   B A E C D - B' A' E' C' D' -  B" A" E" C" D"  => jaggy
> shuffleframes = 1 0 3 4 2
> Output:   A B C D E - A' B' C' D' E' - A" B" C" D" E"  => smooth
> Yay :-)
> 
> In actual files from the GoPro however...

Have you tried appealing to the manufacturer for a repair?

Based on a recent tip, try this command:
ffprobe -flags2 +showall -i ...

You may find that what you think is the first frame is not always the first frame.

Good Luck--Mark.



More information about the ffmpeg-user mailing list