Optimizirani video objekti
Početni video: 1920x1080, 24fps, 00:00:10.29
h264 mp4:
4923 kb/s; 6,3MB
Varijacije:
ffmpeg -i w.mp4 -f lavfi -i color=gray:s=1920x1080 -f lavfi -i color=black:s=1920x1080 -f lavfi -i color=white:s=1920x1080 -preset veryslow -crf 23 -filter_complex threshold w-bwt_vslow_crf23.mp4
6977 kb/s; 9,0MB
ffmpeg -i w.mp4 -f lavfi -i color=gray:s=1920x1080 -f lavfi -i color=black:s=1920x1080 -f lavfi -i color=white:s=1920x1080 -preset veryslow -crf 51 -filter_complex threshold w-bwt_vslow_crf51.mp4
297 kb/s; 383kB
vp9 webm:
ffmpeg -i w.mp4 -c:v libvpx-vp9 -an -b:v 1M -pass 1 -f webm /dev/null && ffmpeg -i w.mp4 -c:v libvpx-vp9 -b:v 1M -g 9999 -aq-mode 0 -pass 2 w.webm
1233 kb/s, 1,6MB
Varijacije:
ffmpeg -i w-bwt_vslow_crf0.mp4 -c:v libvpx-vp9 -an -b:v 1M -pass 1 -f webm /dev/null && ffmpeg -i w-bwt_vslow_crf0.mp4 -c:v libvpx-vp9 -b:v 1M -g 9999 -aq-mode 0 -pass 2 w-bwt.webm
1445 kb/s, 1,9MB
Trajanje | Veličina | Boja | Zvuk | Spremnik | Kodek | kb/s | kb |
1920x1080 | kolor | ne | mp4 | h264 | |||
1920x1080 | monokrom | ne | mp4 | h264 | |||
1920x1080 | 1bit | ne | mp4 | h264 |
Reference:
- What is Video Encoding or Transcoding – Complete Guide: https://ottverse.com/what-is-video-encoding-transcoding-codecs-compression/
- CRF Guide: https://slhck.info/video/2017/02/24/crf-guide.html
- FFMPEG - convert video to Black & White with threshold?: https://video.stackexchange.com/questions/28758/ffmpeg-convert-video-to-black-white-with-threshold/28759#28759