Skip to content

Video Transcoding

AVCHD -> DVD MPEG2 (PAL Interlaced 16:9)

mencoder FILE.MTS -fps 50 -o FILE.mpg -of mpeg -mpegopts format=dvd:tsaf -vf scale=720:576,harddup -channels 6 -ovc lavc -oac lavc -lavcopts threads=auto:aspect=16/9:vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:vstrict=0:acodec=ac3:abitrate=384:ildct:ilme -ofps 25 -quiet
ffmpeg -i "FILE.MTS" -threads 2 -vcodec mpeg2video -flags +ilme+ildct -s 720x576 -r 25 -bufsize 1835008 -packetsize 2048 -muxrate 10080000 -aspect 16:9 -maxrate 9200k -b 5000k -acodec ac3 -ab 384k -fflags +genpts -shortest -f dvd "FILE.mpg"

Screencast -> DVD MPEG2 (PAL Progressive 4:3)

mencoder FILE.avi -o FILE.mpg  -of mpeg -mpegopts format=dvd:tsaf -vf scale=720:576,harddup -channels 6 -ovc lavc -oac lavc -lavcopts aspect=4/3:vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:vstrict=0:acodec=ac3:abitrate=384 -ofps 25 -quiet

-> Android [G1]

4:3 — 424×318@28,1 ; 16:9 — 480×270@0,25

ffmpeg -i FILE.hlv -i FILE.wav -s 424x318 -vf "pad=480:320:28:1" -threads 2 -vcodec mpeg4 -b 320k -qmin 1 -acodec libfaac -ac 1 -ab 32k -r 25 -ss 3.7 -t 31.3 FILE.mp4

-> H264/AAC

16:9 — 640×360, 854×480, 1280×720

ffmpeg -i FILE.mov -threads 2 -vf "scale=-1:480" -vcodec libx264 -b 640k -qmin 1 -acodec libfaac -ab 128k FILE.mp4
No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS