pliers icon indicating copy to clipboard operation
pliers copied to clipboard

FrameSamplingFilter shows same frame for last 1/2 of frames.

Open adelavega opened this issue 7 years ago • 6 comments

A weird bug that is likely taking place moviepy or ffmpeg.

I ran a movie through FrameSamplingFilter and the last half of the frames were actually the same frame, with different onsets.

When I transcoded the movie clip, the issue went away, leading me to think its a weird issue with the codec.

adelavega avatar Apr 27 '18 00:04 adelavega

I think the sense from @qmac is that this is a bug in ffmpeg or moviepy (or reflects the interaction between the two). Will leave it open in case other people run into this, but short of a moviepy fix, there's probably not much we can do.

tyarkoni avatar May 10 '18 18:05 tyarkoni

Yes, and it is worth noting that this issue is completely independent of pliers and the FrameSamplingFilter. This happens when iterating over the frames of the moviepy clip, and seems to be a result of ffmpeg misreading the codec information and moviepy subsequently skipping too many frames as a result of this block of code

qmac avatar May 11 '18 20:05 qmac

@adelavega do you know if this is still a problem?

tyarkoni avatar Mar 14 '19 16:03 tyarkoni

I'm not sure, it was only an issue with a specific codec. I'll see if I can test on the same file if I can find it...

adelavega avatar Mar 14 '19 16:03 adelavega

Looks like it, but not quite as bad. The last 2000 frames were the same out of 20000

adelavega avatar Mar 14 '19 22:03 adelavega

Okay, will continue to leave this open. Thanks for checking!

tyarkoni avatar Mar 14 '19 22:03 tyarkoni