Quantcast FFmpeg: K/C/B/M/P/I/etc VCD FFmpeg Presets Collection - digitalFAQ.com Forums [Archives]
  #1  
02-12-2010, 12:38 PM
patchworks patchworks is offline
Free Member
 
Join Date: Feb 2004
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
After discoverting that FFmpeg support custom matrices, I just discovered that it also support external presets files.

Since I can encode as fast as ~160 fps / 6X realtime (FFmpeg64/WinXP64 on E2200 @ 2640 MHz), it would be great to have well-configured presets for 2-pass alternative VCDs implementations.

Here's how a preset (libx264-hq.ffpreset) is configured:
Quote:
coder=1
flags=+loop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partb8x8
me_method=umh
subq=8
me_range=16
g=250
keyint_min=25
sc_threshold=40
i_qfactor=0.71
b_strategy=2
qcomp=0.6
qmin=10
qmax=51
qdiff=4
bf=4
refs=4
directpred=3
trellis=1
flags2=+bpyramid+wpred+mixed_refs+dct8x8+fastpskip
...and here's command-lines for 2 passes:
Quote:
ffmpeg -y -i <input_file> -pass 1 -vcodec libx264 -b <video_bitrate> -g <gop_size> -bf 3 -refs 6 -b_strategy 1 -coder 1 -qmin 10 -qmax 51 -sc_threshold 40 -flags +loop -cmp +chroma -me_range 16 -me_method umh -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -directpred 3 -flags2 +dct8x8+wpred+bpyramid+mixed_refs -trellis 1 -partitions +parti8x8+parti4x4+partp8x8+partp4x4+partb8x8 -acodec libfaac -ab <audio_bitrate> output.mp4

ffmpeg -y -i <input_file> -pass 2 -vcodec libx264 -b <video_bitrate> -g <gop_size> -bf 3 -refs 6 -b_strategy 1 -coder 1 -qmin 10 -qmax 51 -sc_threshold 40 -flags +loop -cmp +chroma -me_range 16 -me_method umh -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -directpred 3 -flags2 +dct8x8+wpred+bpyramid+mixed_refs -trellis 1 -partitions +parti8x8+parti4x4+partp8x8+partp4x4+partb8x8 -acodec libfaac -ab <audio_bitrate> output.mp4
Last but not least, a couple of links that may inspire:
http://rodrigopolo.com/ffmpeg/cheats...Fmpeg_Encoding
http://rob.opendot.cl/index.php/2008...bx264-presets/

Thanks in advice for any help !
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
02-12-2010, 06:45 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Sorry to tell that you are probably the only one nearby using ffmeg. Moreover to encode MPEG1 (not even sure ffmeg encode in it).
I moved to DVD since years and encode everything with HCenc
Reply With Quote
  #3  
02-13-2010, 02:49 AM
patchworks patchworks is offline
Free Member
 
Join Date: Feb 2004
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
Sorry to tell that you are probably the only one nearby using ffmeg. Moreover to encode MPEG1 (not even sure ffmeg encode in it).
I moved to DVD since years and encode everything with HCenc
FFmpeg encodes MPEG1 very fast (160fps) !!!

The quality is OK - assuming that I just wanna match the VHS one - and it supports *mutch* encoding options.

I'm encoding MPEG1 'cause I need to use about 300 blank CDs in some way... so I decided to convert my parents' VHS films collection for their *dated* standalone player.

I'll use HCenc's matrices of course, but I prefer speed over quality (and open over closed solutions). Last but not least HCenc don't support direct input (it requires AviSynth/DGMPGDec wich I honestly hate).
Reply With Quote
  #4  
02-13-2010, 03:22 AM
patchworks patchworks is offline
Free Member
 
Join Date: Feb 2004
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
OK, here's my 1st try (that seems to stop after 250 frames under MediaCoder... ):

Quote:
coder=1
pass=1
target=pal-vcd
f=mpeg
acodec=mp2
ab=96k
vcodec=mpeg1video
s=352x288
r=25
b=950k
g=15
b_strategy=1
trellis=1
intra_matrix=8,9,12,22,26,27,29,34,9,10,14,26,27,2 9,34,37,12,14,18,27,29,34,37,38,22,26,27,31,36,37, 38,40,26,27,29,36,39,38,40,48,27,29,34,37,38,40,48 ,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,7 9
inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,2 6,28,30,32,20,22,24,26,28,30,32,34,22,24,26,30,32, 32,34,36,24,26,28,32,34,34,36,38,26,28,30,32,34,36 ,38,40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,4 2,44
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
FFMPEG: Do ffvfw and mencoder/ffmpeg give the same results? Razorblade2000 Video Encoding and Conversion 4 02-06-2004 04:23 PM
FFMPEG: New script encode2kvcd using ffmpeg/mencoder el_mozo Video Encoding and Conversion 4 11-27-2003 07:25 AM
FFMPEG: Ffmpeg and inter/intra matrices vidar Video Encoding and Conversion 4 10-31-2003 08:48 PM
FFMPEG: Encoding Audio: toolame,mp2enc or ffmpeg Razorblade2000 Video Encoding and Conversion 0 10-18-2003 03:04 PM
FFMPEG: Letterboxing with ffmpeg (aspect ratio) el_mozo Video Encoding and Conversion 16 10-14-2003 03:53 PM

Thread Tools



 
All times are GMT -5. The time now is 07:50 AM  —  vBulletin © Jelsoft Enterprises Ltd