My collection of wrappers for ffmpeg.
File | Description |
---|---|
ffmpeg_check | Checking integrity Audio and Video content |
ffmpeg_cut | Cut from multi-media file |
ffmpeg_info | Show multi-media file information |
ffmpeg_norm_audio | Normalize audio |
ffmpeg_rm_mp3metad | Remove all metadata from MP3 files |
ffmpeg_scaling | Scaling (resizing) video/image |
ffmpeg_to_mp3 | Convert audio file to mp3 |
- Download
ffmpeg-wrappers
:git clone https://github.com/yuravg/ffmpeg-wrappers
or zip-file - Run the installation script, or copy scripts from bin to some your bin directory.
for i in **/*.mp3; do script_name "$i" <arg1> <arg2>; done
for i in *.mp4; do ffmpeg -i "$i" "${i%.*}.mkv" ; done
ffmpeg -i <fname.ape> <fname.flac>
ffmpeg -f concat -i mylist.txt -c copy output
# for absolute path (in mylist.txt):
ffmpeg -f concat -safe 0 -i mylist.txt -c copy output
Where mylist.txt:
# this is a comment
file '/path/to/file1'
file '/path/to/file2'
file '/path/to/file3'
(fix unsupported format issue during playback, for example for: yuv422p10le)
ffmpeg -i input.mp4 -vf format=yuv420p output.mp4
ffmpeg -i <fname.mkv> -c:v libx264 -crf 18 -preset veryslow -c:a copy -o <fname.mp4>
ffmpeg -i input.mp4 -vcodec copy -acodec copy output.mkv
ffmpeg -i input-video.avi -vn -acodec copy output-audio.aac
mkvpropedit mult-10.mkv --delete title
Add to video with ffmpeg:
ffmpeg -i sample_video_ffmpeg.mp4 -vf subtitles=sample_video_subtitle_ffmpeg.srt output_srt.mp4
ffmpeg -i video.mp4 -vf "subtitles=subs.srt:force_style='Fontsize=24,PrimaryColour=&H0000ff&'" -c:a copy output.mp4