Created
July 21, 2018 19:38
-
-
Save elklein96/bc8be1e065f92c9b6c0f9fb7e477b129 to your computer and use it in GitHub Desktop.
Various ffmpeg commands for converting video and audio files.
This file contains hidden or 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
# This script contains examples for converting media files between various encodings. | |
## Copy a media file with the same codec | |
ffmpeg -i input.mkv -c copy output.mp4 | |
## Combine a video and audio file into one file | |
ffmpeg -i video.mp4 -i audio.mp3 -c copy output.mkv | |
## Extract the audio from a video file | |
ffmpeg -i input.mp4 -q:a 0 -map a output.mp3 | |
## Convert a video file from AVI format to Makostra file with libx264 video and libvorbis audio encoding. | |
ffmpeg -i input.avi -f matroska -vcodec libx264 -acodec libvorbis output.mkv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment