Skip to content

Instantly share code, notes, and snippets.

@justdoit0823
Last active August 13, 2023 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justdoit0823/bfa5bc9ddb7b0a459ca919440b193990 to your computer and use it in GitHub Desktop.
Save justdoit0823/bfa5bc9ddb7b0a459ca919440b193990 to your computer and use it in GitHub Desktop.
ffmpeg video and audio transformation examples.
# make video with pictures
ffmpeg.exe -framerate 0.375 -i .\photos\%d.png -i .\audio_3886dab2976147ad8046875a45f5b8cc.wav -c:v libx264 -pix_fmt yuv420p -c:a aac -strict experimental -b:a 192k output-1.mp4
# extract audio from video
ffmpeg.exe -i input.mp4 -vn -acodec copy output.aac
# audio aac to mp3
ffmpeg.exe -i output1.aac -c:a libmp3lame -ar 16000 -q:a 2 output1.mp3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment