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

ffmpeg: cheat on changing FPS #223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ffmpeg
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ ffmpeg -i input_video.mp4 -acodec copy -vcodec copy -f mov output_video.mov
# To convert mov to mp4
ffmpeg -i input_video.mov -vcodec copy -acodec copy output_video.mp4

# Change INPUT's FPS to 30 and save as OUTPUT (https://trac.ffmpeg.org/wiki/ChangingFrameRate)
ffmpeg -i input_video.ext -filter:v fps=fps=30 output_video.ext
Comment on lines +29 to +30
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Change INPUT's FPS to 30 and save as OUTPUT (https://trac.ffmpeg.org/wiki/ChangingFrameRate)
ffmpeg -i input_video.ext -filter:v fps=fps=30 output_video.ext
# To change INPUT's FPS to 30 and save as OUTPUT (https://trac.ffmpeg.org/wiki/ChangingFrameRate):
ffmpeg -i <in-video.ext> -filter:v fps=fps=30 <out-video.ext>

Optional fix: To can be used for consistency.
Optional fix: trailing colon can be added.
Optional fix: placeholders for input and output files can be used.
Optional fix: placeholder content can use in- and out- prefixes for input and output files respectively.


# Listen to 10 seconds of audio from a video file
#
# -ss : start time
Expand Down