Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: missing samples due to out-of-sync indices #666

Merged
merged 4 commits into from
Jan 30, 2024
Merged

Conversation

ptpt
Copy link
Member

@ptpt ptpt commented Jan 30, 2024

Problem

Seems that for some videos, we ask ffmpeg to extract a sequence of A,B,C frames but it extracts B,C,D frames, and we only take B and C. A hence is disregard mistakenly.

Solution

We ask ffmpeg to specify A,B,C frames, and ask it to index them by sequential number (i.e. IMG_1.JGP, IMG_2.JPG, IMG_3.JPG) by disabling -frame_pts 0, and then find these samples by mapping A -> 1, B -> 2, C -> 3

we ask ffmpeg to extract A,B,C frames but it extracts X,Y,Z frames
@ptpt ptpt merged commit 5b39288 into main Jan 30, 2024
13 checks passed
@ptpt ptpt deleted the fix-ffmpeg-sample-index branch January 30, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants