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

Inaccurate shot detection #10

Closed
hkunzhe opened this issue May 22, 2024 · 4 comments
Closed

Inaccurate shot detection #10

hkunzhe opened this issue May 22, 2024 · 4 comments

Comments

@hkunzhe
Copy link

hkunzhe commented May 22, 2024

In some transitions, the current shot will include partial frames from both the previous shot and the next shot, as in MVq8Q9tKdfU.23_79_485.mp4.

@youthHan
Copy link
Collaborator

@youthHan
Copy link
Collaborator

It seems correct. It would be appreciated if you find any mistake and we can fix it. Thanks.

@hkunzhe
Copy link
Author

hkunzhe commented May 23, 2024

@youthHan, Thanks for your reply! I downloaded original videos from #5 . For MVq8Q9tKdfU.23.mp4, I used the ffmpeg to cut MVq8Q9tKdfU.23_79_485.mp4 and MVq8Q9tKdfU.23_486_531.mp4 according to the start frame index and the end frame index.

ffmpeg -i MVq8Q9tKdfU.23.mp4 -vf "select='between(n\,79\,485)',setpts=PTS-STARTPTS" -af "aselect='between(n\,79\,485)',asetpts=PTS-STARTPTS" -vsync cfr MVq8Q9tKdfU.23_79_485.mp4
ffmpeg -i MVq8Q9tKdfU.23.mp4 -vf "select='between(n\,486\,531)',setpts=PTS-STARTPTS" -af "aselect='between(n\,486\,531)',asetpts=PTS-STARTPTS" -vsync cfr MVq8Q9tKdfU.23_486_531.mp4

As shown in two shot videos below, the current shot will include partial frames from both the previous shot and the next shot.

MVq8Q9tKdfU.23_79_485.mp4
MVq8Q9tKdfU.23_486_531.mp4

@youthHan
Copy link
Collaborator

This sometimes occurs. The frames are original from the videos, during the shot transitioning.

@hkunzhe hkunzhe closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants