![]() ![]() Resize the video ffmpeg -y -i input.mkv -filter_complex scale=720:480 output.mp4 map 0:v selects the video streams from the first input (we have only one input file here anyway, marked by 0), while 0:a means the audio streams. Take only video or audio ffmpeg -y -i input.mkv -map 0:v output.mp4 Here, we specify the video and audio codecs with -vcodec and -acodec. ![]() It is common to use FFmpeg to transcode from one codec to another. In addition to these two, FFmpeg supports many other popular multimedia file formats, including MXF, AVI, WAV, M4A, JPG, PNG etc.Ĭodec conversion ffmpeg -y -i input.mkv -vcodec libx264 -acodec flac output.mkv y denotes that we want to overwrite output.mp4 if it already exists. In this simplest example, FFmpeg produces MP4 output from MKV input. Format conversion ffmpeg -y -i input.mkv output.mp4
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |