Answer the question
In order to leave comments, you need to log in
Ffmpeg - 2-pass video encoding, how to do it in the best quality?
There is a task to encode the source video ( sample01 , sample02 ) with a size reduction to 480x384 and a bit rate of 310. To be precise, the parameters of the resulting video should be as follows:
Видео
Размер кадра: 480х384
Кодек: h264
Профиль: Baseline 3.0
ReFrames: 3
Битрейт: 310 Kbps, Переменный
Аудио
Кодек: АСС
Битрейт: 128 к
Частота: 48000
ffmpeg.exe -hide_banner -i sample01.ts -vf scale=480:384 -sws_flags lanczos -vcodec h264 -profile:v baseline -level 3.0 -g 25 -x264opts me=tesa -me_range 32 -subq 9 -deblock 3:2 -b:v 310k -minrate 300k -maxrate 350k -bufsize 4000k -acodec libvo_aacenc -ab 128k -ar 48000 -f mpegts sample01_lq_1p.ts
ffmpeg.exe -hide_banner -i sample01.ts -vf scale=480:384 -sws_flags lanczos -vcodec h264 -profile:v baseline -level 3.0 -g 25 -x264opts me=tesa -me_range 32 -subq 9 -deblock 3:2 -b:v 310k -minrate 300k -maxrate 350k -bufsize 4000k -pass 1 -fastfirstpass 0 -passlogfile stat01 -an -f mpegts -y NUL && ffmpeg.exe -hide_banner -i sample01.ts -vf scale=480:384 -sws_flags lanczos -vcodec h264 -profile:v baseline -level 3.0 -g 25 -x264opts me=tesa -me_range 32 -subq 9 -deblock 3:2 -b:v 310k -minrate 300k -maxrate 350k -bufsize 4000k -pass 2 -passlogfile stat01 -acodec libvo_aacenc -ab 128k -ar 48000 -f mpegts sample01_lq_2p.ts
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question