Beruflich Dokumente
Kultur Dokumente
In the terminal
1. go to directory of x264
2. ./configure --disable-asm --enable-shared --disable-lavf
3. make
4. make install
Installing FFMPEG
In the terminal
Question 2.
Commands -
These commands are the same for no_emv or no_etra
ESA
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v 352x288 -i foreman_cif.yuv -me_method esa
-threads 4 -r 25 -g 12 -bf 2 -b:v 500k -vstats -psnr -c:v libx264 foreman_esa.mp4
UMH
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v 352x288 -i foreman_cif.yuv -me_method umh
-threads 4 -r 25 -g 12 -bf 2 -b:v 500k -vstats -psnr -c:v libx264 foreman_umh.mp4
HEX
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v 352x288 -i foreman_cif.yuv -me_method hex
-threads 4 -r 25 -g 12 -bf 2 -b:v 500k -vstats -psnr -c:v libx264 foreman_umh.mp4
DIA
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v 352x288 -i foreman_cif.yuv -me_method dia
-threads 4 -r 25 -g 12 -bf 2 -b:v 500k -vstats -psnr -c:v libx264 foreman_umh.mp4
Question 3.
This quesition doesn't require any modifications in the code. Use the original code
as it is
Commands -
CBR
ffmpeg -f image2 -pix_fmt yuv420p -s:v 352x288 -i /home/somasekhar/ED-360-png/
%05d.png -x264-params "nal-hrd=cbr" -threads 4 -r 25 -g 12 -bf 2 -b:v 800k
-minrate 800k -maxrate 800k -bufsize 1600k -vstats -psnr -c:v libx264
/home/somasekhar/cbr_ED.mp4
ABR
ffmpeg -f image2 -pix_fmt yuv420p -s:v 352x288 -i /home/somasekhar/ED-360-png/
%05d.png -threads 4 -r 25 -g 12 -bf 2 -b:v 800k -vstats -psnr -c:v libx264
/home/somasekhar/abr_ED.mp4
CRF
ffmpeg -f image2 -pix_fmt yuv420p -s:v 352x288 -i /home/somasekhar/ED-360-png/
%05d.png -crf 21 -threads 4 -r 25 -g 12 -bf 2 -b:v 800k -vstats -psnr -c:v libx264
/home/somasekhar/crf_ED.mp4
CQP
ffmpeg -f image2 -pix_fmt yuv420p -s:v 352x288 -i /home/somasekhar/ED-360-png/
%05d.png -qp 23 -threads 4 -r 25 -g 12 -bf 2 -b:v 800k -vstats -psnr -c:v libx264
/home/somasekhar/cqp_ED.mp4
Change the value of QP from 0 to 51 to get the results shown in the report. I used
QP = 0, 11, 21, 31, 42, 51
2 pass
ffmpeg -f image2 -pix_fmt yuv420p -s:v 352x288 -i /home/somasekhar/ED-360-png/
%05d.png -pass 1 -threads 4 -r 25 -g 12 -bf 2 -b:v 800k -vstats -psnr -c:v libx264
-f mp4 /dev/null && ffmpeg -f image2 -pix_fmt yuv420p -s:v 352x288 -i
/home/somasekhar/ED-360-png/%05d.png -pass 2 -threads 4 -r 25 -g 12 -bf 2 -b:v
800k -vstats -psnr -c:v libx264 /home/somasekhar/foreman_pass_ED.mp4