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.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 14th December 2009, 13:50   #21  |  Link
Mixer73
Registered User
 
Join Date: Nov 2007
Posts: 240
Thanks, I was wondering about that.

I've just done a test encode, I gotta say the quality vs speed is stunning. Around 2x realtime on my Q6600, wow.
Mixer73 is offline   Reply With Quote
Old 14th December 2009, 16:52   #22  |  Link
RunningSkittle
Skittle
 
RunningSkittle's Avatar
 
Join Date: Mar 2008
Posts: 539
huh 2x realtime with --preset veryslow ? I dont think so...
RunningSkittle is offline   Reply With Quote
Old 14th December 2009, 17:06   #23  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by RunningSkittle View Post
huh 2x realtime with --preset veryslow ? I dont think so...
Maybe overclocked to 20 GHz
Groucho2004 is offline   Reply With Quote
Old 14th December 2009, 17:27   #24  |  Link
MatLz
I often say "maybe"...
 
MatLz's Avatar
 
Join Date: Jul 2009
Location: France
Posts: 583
I beat him:
Preset veryslow at 6x realtime on my crapold dualcore...
My secret: pointresize(4,4)
MatLz is offline   Reply With Quote
Old 14th December 2009, 22:06   #25  |  Link
Mixer73
Registered User
 
Join Date: Nov 2007
Posts: 240
Quote:
Originally Posted by RunningSkittle View Post
huh 2x realtime with --preset veryslow ? I dont think so...
The whole thing ran at 66FPS. SD resolution. I'm changing GUIs so I at least have all the current settings at hand.

Now that I have more comments about multi pass quality-based encoding and such I will need to spend some time doing some more tests before I can come back with a 'new' setting that people can critique.

Thanks all for your feedback.
Mixer73 is offline   Reply With Quote
Old 14th December 2009, 22:35   #26  |  Link
MatLz
I often say "maybe"...
 
MatLz's Avatar
 
Join Date: Jul 2009
Location: France
Posts: 583
(Return to serious mode)
Quote:
Originally Posted by Mixer73 View Post
multi pass quality-based encoding
After all the explanations you got on this thread...I hope you simply forgot the ' , ' ? Am I right?

Last edited by MatLz; 14th December 2009 at 22:43.
MatLz is offline   Reply With Quote
Old 14th December 2009, 23:05   #27  |  Link
Mixer73
Registered User
 
Join Date: Nov 2007
Posts: 240
Quote:
Originally Posted by MatLz View Post
(Return to serious mode)After all the explanations you got on this thread...I hope you simply forgot the ' , ' ? Am I right?
Well comments = people saying it doesn't work. Xvid4PSP is certainly doing something with its multiple passes, even if its just basically selecting a bitrate for me. Obviously I'm the only freak around using these settings.

Well I'm going to spend some time playing with Staxrip so I can get a feel for the current settings, my previous GUI doesn't seem really relevant to x264 as its currently implemented so if I'm going to use x264 well I need to take Dark Shikari's advice and use the presets rather than re-inventing the wheel.

I think the job for me now is to try single pass quality encoding vs 2pass encoding and see how the results stack up vs filesize.

I'm very encouraged by what I have learned so far so thanks all for your help and I'm sorry I was so far off the page
Mixer73 is offline   Reply With Quote
Old 14th December 2009, 23:15   #28  |  Link
Chengbin
Registered User
 
Join Date: Oct 2007
Posts: 1,060
Quote:
Originally Posted by Mixer73 View Post
Well comments = people saying it doesn't work. Xvid4PSP is certainly doing something with its multiple passes, even if its just basically selecting a bitrate for me. Obviously I'm the only freak around using these settings.

Well I'm going to spend some time playing with Staxrip so I can get a feel for the current settings, my previous GUI doesn't seem really relevant to x264 as its currently implemented so if I'm going to use x264 well I need to take Dark Shikari's advice and use the presets rather than re-inventing the wheel.

I think the job for me now is to try single pass quality encoding vs 2pass encoding and see how the results stack up vs filesize.

I'm very encouraged by what I have learned so far so thanks all for your help and I'm sorry I was so far off the page
Let me make this very clear.

There is ABSOLUTELY NO DIFFERENCE in quality between multi pass and CRF given the same bitrate and settings. You are WASTING TIME if you do 2 pass encoding when you don't care about having a strict final size.

Got that?
Chengbin is offline   Reply With Quote
Old 14th December 2009, 23:19   #29  |  Link
Mixer73
Registered User
 
Join Date: Nov 2007
Posts: 240
Quote:
Originally Posted by Chengbin View Post
There is ABSOLUTELY NO DIFFERENCE in quality between multi pass and CRF given the same bitrate and settings.
I understand this, but I am hoping that by using the quality modes I might be able to achieve smaller files than by setting the bitrate explicitly.

Its my understanding of compression in general that multi pass will let you get a lower bitrate for the same effective quality.

Also quality mode with a higher preset might be a better balance of quality vs time than 2-pass, this is what I want to test.
Mixer73 is offline   Reply With Quote
Old 14th December 2009, 23:23   #30  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by Mixer73 View Post
I understand this, but I am hoping that by using the quality modes I might be able to achieve smaller files than by setting the bitrate explicitly.
That makes no sense. By using 2-Pass mode and setting the target bitrate explicitly, you already define final file size!

file_size = bitrate * duration

If you want a smaller file, simply lower the bitrate accordingly. Yes, it really is that easy

Quote:
Originally Posted by Mixer73 View Post
Its my understanding of compression in general that multi pass will let you get a lower bitrate for the same effective quality.
Wrong. 2-Pass mode gives you the best possible quality for a given target bitrate or a given target file size, but it doesn't generally compress more efficient than CRF mode!

In fact a video encoded with 2-Pass mode will have (almost) identical quality compared to a video encoded with 1-Pass CRF mode -- given that both videos have the same average bitrate (file size).

The difference is that with CRF mode the final file size is completely unpredictable, while the final size is known in advance when using 2-Pass mode

Conclusion: If you need to hit a specific file size or a specific bitrate, then go with 2-Pass mode. But if you want to hit a specific level of quality and don't care about filesize, then use CRF mode.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 14th December 2009 at 23:41.
LoRd_MuldeR is offline   Reply With Quote
Old 15th December 2009, 01:09   #31  |  Link
qyqgpower
Registered User
 
Join Date: Jul 2005
Posts: 108
I think there're still some features working better in multi-pass than crf mode, like --direct auto.
But since the frame decision is done in 1st pass, unless one uses high precision 1st pass settings,
they would obtain worse decision with fast 1st pass+slow 2nd pass than simply slow crf mode.
qyqgpower is offline   Reply With Quote
Old 15th December 2009, 01:36   #32  |  Link
ajp_anton
Registered User
 
ajp_anton's Avatar
 
Join Date: Aug 2006
Location: Stockholm/Helsinki
Posts: 805
Simplified:
CRF: You choose a quality, x264 will encode.
2-pass: You choose a bitrate (filesize). On the 1st pass x264 finds out what quality will fit into that size, and the 2nd pass it encodes with that quality.
ajp_anton is offline   Reply With Quote
Old 15th December 2009, 01:48   #33  |  Link
Chengbin
Registered User
 
Join Date: Oct 2007
Posts: 1,060
Quote:
Originally Posted by qyqgpower View Post
I think there're still some features working better in multi-pass than crf mode, like --direct auto.
You get such a negligible increase in quality you can probably say you don't get any.
Chengbin is offline   Reply With Quote
Old 15th December 2009, 08:33   #34  |  Link
zamwow
Registered User
 
Join Date: Nov 2009
Posts: 4
Quote:
Originally Posted by Dark Shikari View Post
1. Your commandlines won't even work. You can't use multi-pass with CRF.
Anyone mind giving me the list of things that doesn't work with CRF?
zamwow is offline   Reply With Quote
Old 15th December 2009, 08:37   #35  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by zamwow View Post
Anyone mind giving me the list of things that doesn't work with CRF?
--pass > 1
--bitrate
Dark Shikari is offline   Reply With Quote
Old 15th December 2009, 08:51   #36  |  Link
zamwow
Registered User
 
Join Date: Nov 2009
Posts: 4
Quote:
Originally Posted by Dark Shikari View Post
--pass > 1
--bitrate
oops, thought the things in bold needed more than 1 pass to work. My mistake.
zamwow is offline   Reply With Quote
Old 15th December 2009, 14:31   #37  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,368
Ok i dont know if this is x264 related or dgindexnv but will try here first, I am using the latest x264 from x264.nl (at this time 1373) and i am using

D:\>x264.exe --profile high --level 4.1 --preset veryslow --tune film --pass 1 --bitrate 9132 --stats "stats" --slow-firstpass --thread-input --b-adapt 2 --ref 4 --partitions all --me umh --direct auto -o gran.torino.mkv gran.torino.avs

But it seems like x264 is stalling, the cpu useage is at 0%, CUVIDServer is running (used to pipe the dgv to avisynth) can anyone see anything wrong with the above?

Thanks, if this isnt a x264 issue i will post in nvtools thread
__________________
The Internet: where men are men, women are men, and children are FBI Agents

Last edited by Carpo; 15th December 2009 at 14:50.
Carpo is offline   Reply With Quote
Old 15th December 2009, 15:00   #38  |  Link
J_Darnley
Registered User
 
J_Darnley's Avatar
 
Join Date: May 2006
Posts: 957
I have experienced this a few times and after using VDub and avs2yuv. Make sure that there is not another instance of a script using DGSource. Close it if there is. If not, try restarting the cuvid server then running x264 again.
__________________
x264 log explained || x264 deblocking how-to
preset -> tune -> user set options -> fast first pass -> profile -> level
Doom10 - Of course it's better, it's one more.
J_Darnley is offline   Reply With Quote
Old 15th December 2009, 15:02   #39  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Well, if you open the very same AVS file in VirtualDub, can you play it up to the point where x264 freezes and beyond that point?
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 15th December 2009, 15:18   #40  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,368
Quote:
Originally Posted by LoRd_MuldeR View Post
Well, if you open the very same AVS file in VirtualDub, can you play it up to the point where x264 freezes and beyond that point?
Yes plays fine, thing is it seems random, i started the encode last night, woke up this morning and it said 32% - 0% cpu usage, i thought the CUVIDServer had stopped but it was still there so i started the encode again, it stopped on 7.3% this time.

I wondering if its something in the above line that is causing x264 to kick out, and therefore i will need to correct it, or if its a dgindexnv issue

Quote:
Originally Posted by J_Darnley View Post
I have experienced this a few times and after using VDub and avs2yuv. Make sure that there is not another instance of a script using DGSource. Close it if there is. If not, try restarting the cuvid server then running x264 again.
only things running are the server avisynth and x264 and the only things that are in the avs file is:

loadplugin("D:\dgdecnv200b6\DGDecodeNV.dll")
dgsource("D:\gran.torino.dgv", resize_w=1280, resize_h=720)
__________________
The Internet: where men are men, women are men, and children are FBI Agents

Last edited by Carpo; 15th December 2009 at 15:42.
Carpo is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:05.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.