Skip to content

Instantly share code, notes, and snippets.

@scsskid
Last active April 15, 2021 16:56
Show Gist options
  • Save scsskid/df1cbcde93108b62ee078216012f2de8 to your computer and use it in GitHub Desktop.
Save scsskid/df1cbcde93108b62ee078216012f2de8 to your computer and use it in GitHub Desktop.
[ffmpeg cookbook] #bash #ffmpeg
# https://stackoverflow.com/a/53269551
ffmpeg -f concat -safe 0 -i <(for f in ./*.mp4; do echo "file '$PWD/$f'"; done) -c copy output.mp4
# convert .mov to .mp4
# https://mrcoles.com/convert-mov-mp4-ffmpeg/
ffmpeg -i videoName.mov -vcodec h264 -acodec mp2 videoName.mp4
ffmpeg -i input.flv -vcodec libx264 -acodec aac output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment