Last active
December 2, 2023 01:45
-
-
Save mort3za/12e5561870af35307f62280cf70a1dd9 to your computer and use it in GitHub Desktop.
Convert video to mp4 acc with ffmpeg, https://bit.ly/m3ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install ffmpeg on windows machines: http://www.wikihow.com/Install-FFmpeg-on-Windows | |
ffmpeg -i inputfile.mp4 -r 24 -crf 18 -vcodec h264 -acodec aac outputfile.mp4 | |
To extract frames of video as jpg file:
ffmpeg -i inputfile.mp4 -r 1/1 $filename%03d.jpg
You can use another extensions, e.g. bmp
or png
ffmpeg
tutorial: https://itsfoss.com/ffmpeg/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can change
-crf 18
to-crf 25
for lossy convertion.A lower crf means a higher bit rate.