Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
#1 | Link |
|
Registered User
Join Date: Jul 2002
Posts: 107
|
Good x264 encode command line for AMD Phenom II X6 1045T 2.70 GHZ
I am trying to encode x264 and I have very minimal speeds. Below I will include my batch file and my avs code and I hope someone can help me tweak things for better encoding speed.
Batch file Code:
basic x264 : x264.exe --threads 12 --crf 19 --vbv-bufsize 1450 --vbv-maxrate 1500 --direct auto --level 3.1 --ref 5 --subme 9 --weightp 2 \ --b-adapt 2 --b-pyramid strict --me umh --keyint 300 --min-keyint 30 --aud --output %1.video.mkv %1 Code:
720p x264 : x264.exe --threads 12 --crf 14 --vbv-bufsize 4650 --vbv-maxrate 4700 --direct auto --level 3.1 --ref 5 --subme 9 --weightp 2 \ --b-adapt 2 --b-pyramid strict --me umh --keyint 300 --min-keyint 30 --aud --output %1.video.mkv %1 Basic x264 Code:
LoadPlugin("C:\Users\Owner\Desktop\pack\DG\DGAVCDecode.dll")
Load_STDCall_Plugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll")
DirectShowSource("prelims.ts")
ConvertToYV12()
Yadif(0,1)
Lanczos4Resize(704,400,6,6,-6,-6)
Code:
LoadPlugin("C:\Users\Owner\Desktop\pack\DG\DGAVCDecode.dll")
Load_STDCall_Plugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll")
DirectShowSource("prelims.ts")
ConvertToYV12()
Yadif(0,1)
Lanczos4Resize(1280,720,6,6,-6,-6)
Last edited by Guest; 5th August 2012 at 22:15. Reason: formatting for readability |
|
|
|
|
|
#2 | Link |
|
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,274
|
wcwman18, please fix the title of your thread according to rule #12:
http://forum.doom9.org/forum-rules.htm
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
|
|
|
|
|
#4 | Link | |
|
Registered User
Join Date: Jul 2002
Posts: 107
|
Quote:
|
|
|
|
|
|
|
#7 | Link |
|
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,274
|
Use the "--tune" option that matches the kind of footage you are encoding, pick the slowest "--preset" that you can accept speed-wise and kick out all the other options. It's as easy as that
![]() (In case you are going to author a BluRay disc, you of course have to keep those extra options required for BluRay compatibility)
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
|
|
|
|
|
#9 | Link | |
|
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,274
|
Quote:
In almost any case you will be better off by using the suitable "--preset" instead of trying to mess with the individual options manually. If the encoding speed is too low for your purpose, then use a faster preset. If you want to squish out more quality (at the same bit-rate), then use a slower preset. That's it! There are no "secret" options that will magically make x264 faster without sacrificing quality. It's all a trade-off... (Nonetheless it should be clear that the presets only control the encoding-speed of x264 itself. It will not help if you are bottlenecked by your AVS script!)
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 5th August 2012 at 22:39. |
|
|
|
|
|
|
#10 | Link | |
|
Registered User
Join Date: Jul 2002
Posts: 107
|
Quote:
|
|
|
|
|
|
|
#13 | Link | |||
|
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,274
|
Quote:
![]() If you are using heavy filtering in your AVS script and these filters are multi-threaded, it can easily happen that the total CPU usage reaches 100% while ~90% of the CPU time is spent in Avisynth ![]() What matters is throughput and throughput is measured as FPS. If switching to a faster x264 preset doesn't increase the throughput, you probably are bottlenecked by Avisynth. Otherwise you probably aren't. Quote:
If that is too slow for your requirements, switch to the next faster preset. If that's still too slow, switch to the next faster preset again. And so on... Quote:
![]() Anyway, as long as your friend doesn't encode with the identical Avisynth script and from the identical source file, the numbers aren't really comparable - even if the command-line is identical. See also: http://www.techarp.com/showarticle.a...tno=669&pgno=6
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 5th August 2012 at 23:31. |
|||
|
|
|
|
|
#14 | Link | |
|
Registered User
Join Date: Jul 2002
Posts: 107
|
Quote:
A little detail on my setup. I use a HD PVR to capture my video which records to a .TS file. Then I edit that file in Videoredo and then start my encode with the scripts and command line above. |
|
|
|
|
|
|
#15 | Link | |
|
User of free A/V tools
Join Date: Jul 2006
Location: SK
Posts: 826
|
Quote:
|
|
|
|
|
|
|
#16 | Link | |
|
Registered User
Join Date: Jul 2002
Posts: 107
|
Quote:
AVSMeter v1.21 by Groucho2004 AviSynth 2.58, build ec 22 2008 [08:46:51]Script error: there is no function named "FFMS2Source (fox_x264.avs, line 3) |
|
|
|
|
|
|
#17 | Link | |
|
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,274
|
Quote:
Also, the functions exposed by up-to-date FFMS2 are FFVideoSource() and FFAudioSource(). The FFmpegSource2() function is only a wrapper function defined in some .avsi file...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 6th August 2012 at 15:18. |
|
|
|
|
|
|
#18 | Link |
|
Registered User
Join Date: Jul 2002
Posts: 107
|
LoadPlugin("C:\Users\Owner\Desktop\pack\DG\DGAVCDecode.dll")
Load_STDCall_Plugin("C:\Program Files (x86)\AviSynth 2.5\plugins\yadif.dll") AVCSource("ufcpost.dga") ConvertToYV12() Yadif(0,1) Lanczos4Resize(704,400,6,6,-6,-6) AVSMeter v1.21 by Groucho2004 AviSynth 2.58, build ec 22 2008 [08:46:51]Number of frames: 94856 Length (h:m:s.ms): 00:52:45.029 Frame width: 704 Frame height: 400 Framerate: 29.970 (60000/2002) Progressive: Yes Colorspace: YV12 Hit ESC to exit... Frame 875/94856, fps (min/max/avg): 12.54 | 15.68 | 13.59 |
|
|
|
|
|
#19 | Link | |
|
Registered User
Join Date: Jul 2002
Posts: 107
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|