Skip to main content

Optimizacija video objekta

Početni video: 1920x1080, 24fps, 00:00:10.29, yuv420p

h264 mp4:

4923 kb/s; 6300kB

Varijacije:

ffmpeg -i w.mp4 -vf "hue=s=0" -color_range 2 w-bw.mp4

3400 kb/s; 4300kB

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; 9000kB

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

h264 dithered via bpm

created with a shell script by crash-stop

ffmpeg -i w_480x270_crf1-dither_crf51.mp4 -s 1920x1080 -crf 1 w_1920
x1080_crf1-1.51.mp4

 

ffmpeg -i w_480x270_crf1-dither_crf51.mp4 -s 1920x1080 -crf 1 w_1920
x1080_crf1-51.1.mp4

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, 1600kB

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, 1900kB

ffmpeg -i w-bwt_vslow_crf23.mp4 -c:v libvpx-vp9 -an -b:v 1M -pass 1 -f webm /dev/null && ffmpeg -i w-bwt_vslow_crf23.mp4 -c:v libvpx-vp9 -b:v 1M -g 9999 -aq-mode 0 -pass 2 w-bwt_ex23.webm

1402 kb/s, 1800kB