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

Set framerate (change video speed) #40

Open
sturmen opened this issue Oct 18, 2018 · 1 comment
Open

Set framerate (change video speed) #40

sturmen opened this issue Oct 18, 2018 · 1 comment

Comments

@sturmen
Copy link

sturmen commented Oct 18, 2018

Hi! I have a habit of watching a lot of YouTube videos on 2x speed, and I've built myself a pipeline using youtube-dl & ffmpeg to download offline copies of videos, and re-encode them to save file size AND turn 24fps content into 48 fps content by playing it back twice as fast. Here's the filter chain I use:

-filter_complex "[0:v]subtitles='subtitles.vtt':force_style='FontName=Roboto',setpts=0.5*PTS[v];[0:a]atempo=2.0[a]" -map "[v]" -map "[a]"

Would it be possible to add a slider (or even a checkbox) to add the setpts & atempo filters to my filter change in boram? Thank you!

@Kagami Kagami changed the title [feature request] increase playback speed before encoding Change video/audio speed Jan 8, 2019
@Kagami Kagami changed the title Change video/audio speed Set framerate (change video speed) May 3, 2020
@Kagami Kagami pinned this issue May 3, 2020
@Kagami
Copy link
Owner

Kagami commented May 3, 2020

Seems like a lot of users request this feature.

As a workaround, if FPS of your video is 24:

  • To speedup 2 times: -vf "setpts=PTS/2" -r 48
  • To slowdown 2 times: -vf "minterpolate=48,setpts=PTS*2"
  • To slowdown 2 times without interpolation: -vf "setpts=PTS*2" -r 12

If you're cutting some fragment you need to specify the duration with -t option as well (two times lower for speedup or bigger for slowdown respectfully).

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