# this is a comment
file '/path/to/file1'
file '/path/to/file2'
file '/path/to/file3'
ffmpeg -f concat -safe 0 -i mylist.txt -c copy output
ffmpeg -i input_from_concat -c:v libx264 -preset slow -crf 22 -c:a copy output.mkv
заметный выигрыш, то да
Two-Pass
This method is generally used if you are targeting a specific output file size and output quality from frame to frame is of less importance. This is best explained with an example. Your video is 10 minutes (600 seconds) long and an output of 50 MB is desired. Since bitrate = file size / duration
ffmpeg -y -i input -c:v libx264 -preset medium -b:v 555k -pass 1 -c:a libfdk_aac -b:a 128k -f mp4 /dev/null && \
ffmpeg -i input -c:v libx264 -preset medium -b:v 555k -pass 2 -c:a libfdk_aac -b:a 128k output.mp4
-pass 2
-f mp4
указывать нужно если твой input хреново распознался ffmpeg-oм ffmpeg -i input_file -c:v libx264 -t 15 output.mp4
ffmpeg -i audio.xxx -c:a flac audio.flac
а потом накручивать настройкиavconv -y -i "${i}"-c:a libvorbis -f ogg "${i}.oga"
sudo apt-get purge ffmpeg
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install libav-tools