[FFmpeg-user] Fwd: compression bit rates in todays world

Bhikkhu Mettavihari tv.lists at gmail.com
Wed Sep 3 12:08:24 CEST 2014


Greetings,

We are compressing using ffmpeg and the following is our scripts
I would like to have your recommendations on this.
Technically it works OK, but your suggestions are very welcome.
My interest is to have your input on compression standards since the
world is changing so fast.

In short we have these suggestions

Mpeg2 for backup.
3500K
1024k
512k
268k
130k
038k

with metta
Mettavihari

-----------------------------
#2pass hq ffmpeg mp4 3500k file for Television Broadcast
ffmpeg -i $file1.$ext \
-pass 1 -vcodec libx264 -preset fast -b:v 3500k -minrate 1024k
-maxrate 3500k -bufsize 3500k -threads 0 -f mp4 -an -y /dev/null && \
ffmpeg -i $file1.$ext -pass 2 -acodec libfaac -ab 128k -ac 2 -vcodec libx264 \
-preset fast -b:v 3500k -minrate 3500k -maxrate 3500k -bufsize 3500k
-threads 0 -f mp4 $file1.temp2.mp4

sleep 30
rm *.log*

qt-faststart $file1.temp2.mp4 $file1-3500k.mp4
rm $file1.temp2.mp4


#2pass hq ffmpeg mp4 1024k file For good quality Internet download
ffmpeg -i $file1.$ext \
-pass 1 -vcodec libx264 -preset fast -b:v 1024k -minrate 1024k
-maxrate 1024k -bufsize 1024k -threads 0 -f mp4 -an -y /dev/null && \
ffmpeg -i $file1.$ext -pass 2 -acodec libfaac -ab 128k -ac 2 -vcodec libx264 \
-preset fast -b:v 1024k -minrate 1024k -maxrate 1024k -bufsize 1024k
-threads 0 -f mp4 $file1.temp2.mp4

sleep 30
rm *.log*

qt-faststart $file1.temp2.mp4 $file1-1024k.mp4
rm $file1.temp2.mp4

#2pass hq ffmpeg mp4 512k file for normal quality download
ffmpeg -i $file1.$ext \
-pass 1 -vcodec libx264 -preset fast -b:v 512k -minrate 512k -maxrate
512k -bufsize 512k -threads 0 -f mp4 -an -y /dev/null && \
ffmpeg -i $file1.$ext -pass 2 -acodec libfaac -ab 128k -ac 2 -vcodec libx264 \
-preset fast -b:v 512k -minrate 512k -maxrate 512k -bufsize 512k
-threads 0 -f mp4 $file1.temp.mp4

sleep 30
rm *.log*

qt-faststart $file1.temp.mp4 $file1-512k.mp4
rm $file1.temp.mp4


#dvd-vob a backup version that we keep for later editing if needed.
ffmpeg -i $file1.$ext -target pal-dvd -aspect 4:3 $path1$file1-dvd.vob

sleep 30

#268k-mp4 for streaming in Sri Lanka with a low bandwidth
ffmpeg -i $file1.$ext -b 268k -minrate 268k -maxrate 268k -bufsize
268k -r 24 -s vga  -vcodec libx264 -acodec libfaac -ac 2 -ab 128k -ar
22050 -vol 800  -f mp4  $file1-temp.mp4

qt-faststart $file1-temp.mp4 $file1-268k.mp4
rm $file1-temp.mp4

#130k-mp4 for tablet viewing
ffmpeg -i $file1.$ext  -vlevel 10 -g 25 -b 130k -minrate 130k -maxrate
130k -bufsize 130k -r 10 -s qvga -vcodec libx264 -acodec libfaac -ac 2
-ab 128k -ar 22050 -vol 800 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4
$file1.temp-3q.3gp

qt-faststart $file1.temp-3q.3gp $file1-130k.mp4
rm $file1.temp-3q.3gp

#38k-mp4 for phone viewing.
ffmpeg -i $file1.$ext -vlevel 10 -g 25 -b 38k -minrate 38k -maxrate
38k -bufsize 38k -r 8 -s qcif -vcodec libx264 -acodec libfaac -ac 2
-ab 128k -ar 22050 -vol 800 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4
$file1.temp-2q.3gp

qt-faststart $file1.temp-2q.3gp $file1-38k.mp4
rm $file1.temp-2q.3gp


More information about the ffmpeg-user mailing list