Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
Each YouTube video has 4 generated images. They are predictably formatted as follows: | |
http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg | |
http://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg | |
http://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg | |
http://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg | |
The first one in the list is a full size image and others are thumbnail images. The default thumbnail image (ie. one of 1.jpg, 2.jpg, 3.jpg) is: | |
http://img.youtube.com/vi/<insert-youtube-video-id-here>/default.jpg |
brew install ImageMagick
ffmpeg -ss 14:55 -i video.mkv -t 5 -s 480x270 -f image2 %04d.png
$ rsync -avE --progress /source/ /destination
create initial video offset
ffmpeg -ss 0:00 -t 0:00 -i input.mp4 output.mp4
exctract audio from new output.mp4
ffmpeg -i output.mp4 -f mp3 -ab 192000 -vn output.mp3
merge the two audio files
ffmpeg -i output.mp3 -i audio2.mp3 -filter_complex amerge -ac 2 -c:a libmp3lame -q:a 4 merged.mp3
$ img2pdf --first-frame-only *.jpg -o document.pdf