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

Incorrect starting frame when using -ss #{startt} #45

Open
ToshY opened this issue Feb 20, 2019 · 2 comments
Open

Incorrect starting frame when using -ss #{startt} #45

ToshY opened this issue Feb 20, 2019 · 2 comments

Comments

@ToshY
Copy link

ToshY commented Feb 20, 2019

I'm using the following expression to get a part of the video (24000/1001 fps)

"#{encbin}" -ss #{startt} -sn -an -i "#{inpath}\#{input}" -vframes #{lenf} -c:v libx264 -r 24000/1001 "#{prefix}/#{output}[#{startf}-#{endf}].mp4"

With the following values
#{encbin} = ffmpeg; #{startf} = 10655; #{endf} = 10720; #{lenf} = 65; #{startt} = 444.38

#{startt} is inaccurate. It is taken from the line of the starting frame instead of being calculated using the video's framerate. The actual time for the starting frame should be
10655 / (24000 / 10001) = 444.4022916667.

Would be nice if this could be fixed.

@CoffeeFlux
Copy link
Member

I think I know the cause, but I'm out of town at the moment. I'll sort this out in a few days.

@ToshY
Copy link
Author

ToshY commented Feb 21, 2019

I think I know the cause, but I'm out of town at the moment. I'll sort this out in a few days.

No rush ;)

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