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. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#242 | Link |
|
Registered User
Join Date: Dec 2008
Posts: 589
|
deadrats, bitrate is not really a good indication of quality of some material.
It depends on the compression technology, the features the codec has and lots of other things. For example, I could capture a 1 hour video at 720p or 1080p of me typing something on my desktop or playing a game like Transport Tycoon Deluxe (which has plenty of repetitive textures and is 2D) and then I could get great results encoding lossless this at about 100-200kbps using Camtasia's Screen Codec or anything else designed for this, but I would probably be upset with the quality of h264 at 500 kbps. I could also film 2 hours of a presentation or a speech, and I could get away with 2mbps at 720p because it's just a person speaking on stage and not much movement, so h264 could really shine.... on the other hand if it's a football match then yes, you would need plenty of bitrate. You're saying 720x480p MPEG2 was at 9 mbps - this is an old codec, with some features that would bring more quality per bitrate restricted and with other features limited, due to the DVD specification. I think that you'd agree with me that were you to encode this 720x480 content with plain old MPEG, you'd probably need 15-35 mbps to retain the quality. So if the bitrate went down from 15-35 to about 10 when going from MPEG to MPEG2, why is it so hard to believe you can encode 30% more at 50% less bitrate and get great quality, from the h264 codec? 720p at 4 mbps can give you excellent quality, if those videos are encoded using quality settings and a decent encoder, which isn't hampered by settings to decode fast (cavlc vs cabac), to lower buffering time and so on. For example, Youtube's quality could be way better at the bitrates they use, but they try to design their encoding presets so that a 720p or an 1080p can be decoded on various game consoles, telephones and low performance pcs. |
|
|
|
|
|
#243 | Link | ||
|
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,407
|
Continuation of "Beating a Dead Horse" ....
Quote:
Perhaps you're not fully aware of the technicals behind. It is not that encoding per GPU would be inherently fast because GPUs are oh so fast and oh so parallel. Fact is that GPUs can do certain operations at extraordinary speeds .... most of which, alas, do not apply to video encoding. The *major* reason why GPU encoders are as fast as they are is: usage of very simple algorithms. If you do only very few computations, then you can compute very fast. THAT is what CUDA encoder is doing. And that's what the result is looking like. Take a 2600K, and let x264 encode some 720p with "--superfast". You'll surely get more than 150fps. Well possible that you might see 200fps. And it will still look better than a CUDA encode. Yes, it will. And surely it will not look worse than QuickSync. Probably still better. (Yes, the last paragraph is pure speculation. But you can call me back on this by the time when the real tests will come up. With pleasure.) ![]() Quote:
Extension to the above flip-flop: ![]() And this took roughly 4 times longer to encode than x264? Interesting!
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
||
|
|
|
|
|
#245 | Link | ||||
|
Banned
Join Date: Oct 2010
Posts: 119
|
perhaps you're a sadomasochist with a bestiality fetish, i believe they have a cure for that now.
Quote:
Quote:
concentrating on just the gt200 chip, it has 32 double pumped alu's per warp with 2 to 8 warps per chip (i'm doing this from memory, forgive me if i'm slightly off). each alu is capable of executing one thread at a time and threads are coalesced implicitly within each warp. any operation that can be executed by a cpu alu can be executed by a gpu alu, including boolean evaluations, such as the ones used in AI. dx9 gpu's are fully programmable and are used to perform such complex tasks as blast dna sequencing, seti, encryption/decryption, virus scanning, fast fourier transforms, discrete and inverse discrete cosine transform, collision detection, 3d matrices, the list goes on. the thought that gpu's are incapable of performing complex calculations is laughable to the extreme and easily disproven by looking at all the types of application accelerated by gpu's. in fact, video encoding requires some of the least mathematically intensive calculations to perform, a fact born out by the reality that x264 uses mostly 8 bit integer operations, and few bigger than 16 bit integer operations (this comes straight from DS, in this very thread). lastly, the claims you made concerning gpu accelerated encoders is easily disproven by the fact that gpu powered encoders exist in many forms: open cl based (there is an mpeg-2 encoder for the mac), dx9 based mpeg-2 encoders (a modified version of ffmpeg, that violates the gpl by not releasing the source code, that uses the vfw framework) and at least 4 separate cuda based encoders: main concept's cuda encoder (i'm almost positive this is the one tmpg uses), mc also has an open cl encoder, the adobe "mercury" engine (i believe developed by elemental, also licensed by cyberlink), sony's gpu avc (slow as hell, very poorly optimized). Quote:
your claim however is one constantly used by the x264 faithful, but they conveniently ignore 2 things: 1) comparing a top of the line cpu to a midrange gpu is hardly fair, the proper comparison would be to a top of the line gpu. 2) a faster cpu would also benefit the gpu encoding times as it would be able to "push" the gpu harder, it could feed data and instructions to it faster (the cpu has a master/slave relationship with other processors in a system, same thing occurs with 2 or more cpu's, cpu 0 is master and the rest are slaves). given how much faster cuda was in my tests, i have trouble believing that there is any fair scenario in which x264 could out speed a properly coded cuda powered encoder. Quote:
|
||||
|
|
|
|
|
#247 | Link | |||
|
x264
Join Date: Dec 2009
Location: Serbia
Posts: 50
|
Quote:
for cuda, for vp8 and now for sb.... Quote:
![]() i alrady told you Find topic where 10+ people did x264 vs cuda and if u dont see big differencethen u are blind if u cant find just say i will post picture here for you And dont complaine about low bitrate... There is no point comparing 720p@10+mbit like u want Quote:
what ? He need to lie and glorifie cuda becouse same comapny who use cuda licence x264 softwre ?...( x264 is not his (DS) like u said ) ... Last edited by weasel_; 14th January 2011 at 04:48. |
|||
|
|
|
|
|
#248 | Link |
|
Registered User
Join Date: Oct 2008
Posts: 19
|
Wow, I have finally finished reading this entire thread over 2 nights, very impressive discussion.
Couple thoughts regarding deadrats arguments: 1) When compressing content, it seems to me you have to take into account the player. For example, when DVD's first came out, the hardware required to decode them was expensive and complex. As computer technology advanced, and process shrinks took place, the hardware required to decode the same DVD got cheaper and easier to make. Now a cell phone can decode a full bit-rate DVD. Blu-ray is no different, and I think most of these hardware encoders are great for on the fly trans-coding of your media as you are about to leave on a plane to a device that has a small screen and low processing power. You can quickly re-size your 1080p blu-ray to iPad specs at 150 fps and get out the door and gone. You don't care about quality much, you just want the content. Now take something like your wedding film; do you really care if it is 150 fps or 5 fps? I doubt it and you will surely let your computer run overnight if you have to so you get the absolute best quality in a format that might be able to fit on a regular CD or DVD (blu-ray burners are not that popular). You could keep it in the original format, but x264 lets you shrink it down to a smaller size while keeping almost all that quality in place, and certainly more than the 150 fps encoder would do. Back to the beginning of this random thought; the hardware required to view my encodes is much higher than the hardware required to view the trans-coded work (meant for iPhone, iPad, Android...), so it is really not suitable to use it at extreme qualities for those platforms as you have to worry about battery life as well as how long it takes to encode. But if you want to sit down on your sofa and use your HTC to watch a film, you surely don't care about how much power your HTC is using, you only care about quality, and that is what x264 lets you do, and do so in a reasonably small file size that requires much greater hardware to view than to watch that regular blu-ray rip. 2) You mentioned hard drives are cheap so why care about using low bit-rate. This makes no sense. Yes they are cheap, but you will just fill them up that much quicker. I upgraded my machine (more on that below, stay tuned), and it had 8 sata ports available, but my case only has 4 drive bays. Yes I could fill it up with 2 TiB drives for a total of 8, then if i run out because my encodes are so big i can just start daisy chaining devices to the USB and so on... Or, take longer for my encodes and keep the size down so I can fit more movies on my drives. Just because something is cheap doesn't mean it should be wasted. 3) Lastly, what DS and his believers seem to be saying, is that hardware is limited by the hardware used. If quicksync is a hardware encoder that is fixed function, it can do somethings and it can do them very well, but if a new technique is found, or a new algorithm that does something better, that can't be programmed into the hardware. Cuda and openCL have a better shot since they are programmable, but it seems that if you want the quality, the speedup is not worth it, and not to mention what happens when the next batch of cards come out and you have to go ahead and optimize again. The beauty of software is it will run on a pentium 4, AMD Turion, or a Core i7 2600k; same quality same options, just different speeds. And when the next Intel chip comes out, x264 will benefit from whatever architecture improvements they put in to handle more threads, increase IPC or access memory more quickly. If he started from scratch and made a brand new encoder on Cuda to take advantage of a new video card, he will be closing the door on all the people that don't have that brand of card and won't get the benefits of his work. You say software encoding is dead, but software encoding is really the only one that will last and survive. Hardware changes and encoders will have to be re-written each time, but x264 will still continue to run, and improve as people work on it. QS is what it is, and what it does not is all it will do in 2 years on the same chip. x264 in 2 years running on my new CPU will still be better than it is today, but QS will be the same). My upgraded machine is a Core i7 2600k with lots of RAM on an ASUS P8P67, all at stock but this thing is turboing up to 3.8 ghz all the time. I got this specifically for my encoding with x264. I also have a GeForce 460 and am waiting for Badaboom to enable support for my card with 2.0 so I can try it out. Anyway, I just grabbed a file from the special features of Alice in Wonderland and ran it through with these settings via StaxRip (all 1080p@23.976): The source file was 194,446,939 (after removing audio and whatever else was in there) bytes "x264.exe" --preset ultrafast --tune film --crf 22 --output "00588_Output.h264" "00588.avs" output was 172,483,260 encoded 2085 frames, 75.27 fps, 10649.66 kb/s Dropping --crf to 23 yielded a file of 157,477,596 bytes, and encoded 2085 frames, 79.09 fps, 9225.78 kb/s Using these settings gave me around 48 FPS: "x264.exe" --profile baseline --crf 22 --level 3 --vbv-bufsize 10000 --vbv-maxrate 10000 --output ..." This is the iPod preset on medium, with size 65,827,267 Now, I will try to get seriously high speed at 720p (all times given are just the encode, not the re-size): x264.exe" --preset superfast --tune film --crf 22 ... a disappointing encoded 2085 frames, 57.06 fps, 4843.12 kb/s It appears resizing is making it slow, as my CPU was only 25% in use during that one. Something interesting now: x264.exe" --preset superfast --tune film --crf 18 --output... encoded 2085 frames, 57.34 fps, 7735.73 kb/s Seem to have hit the limit on how fast this can go when resizing. To be thorough I was using: x264>x264 --help x264 core:105 r1724 b02df7b Wow, long post, but after reading these posts for hours, I had a lot to say. Wanted to take notes while reading. Hope there isn't a post length limit. Any other tests anyone would like run on this CPU (I know the above quick tests are hardly conclusive, but 150 FPS seems tough, would love some info on how to maybe achieve that)? |
|
|
|
|
|
#249 | Link |
|
User of free A/V tools
Join Date: Jul 2006
Location: SK
Posts: 826
|
@SeeManRun: thanks for your test results. I think though that for the most optimal results you should upgrade your x264 to latest revision, r1867 that is.
You also didn't specify where the resizing occurs: Avisynth? If yes then which method was used - Spline, Bicubic, Lanczos? Last but not least: which source filter have you used? FFMS2, DGDecNV, DirectShow? All these conditions may have big influence on overall encoding performance observed... Please post your full AVS script and Avisynth version used and all above questions will be answered. |
|
|
|
|
|
#250 | Link |
|
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,001
|
Quote:
in terms of Speed/Quality/Power Consumption/Complexity (+ subme 2 you can give it a tad more quality on lower bitrates and create a new profile between superfast and fast) i love it and that's why i really would like to know how QuickSync holds up (especialy as it seems to be tuned in most of the Encoding applications for speed and could be more tuned for quality) to from the first looks of Anandtech you can see it heavily blurs on the frames he chose though as always we know nothing about the test and no samples are released so its bogus and we need someone from doom9 doing the visual evaluation of it vs x264 ![]() Heck we don't know if it even uses somekind of AQ (Nvidias Encoder uses that) yet with Anandtechs results i would say nope but those could be I-frames vs P-frames or whatnot
__________________
all my compares are riddles so please try to decipher them yourselves :) It is about Time Join the Revolution NOW before it is to Late ! http://forum.doom9.org/showthread.php?t=168004 Last edited by CruNcher; 14th January 2011 at 12:40. |
|
|
|
|
|
#251 | Link | |
|
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,869
|
Quote:
![]() Andrew |
|
|
|
|
|
|
#252 | Link | |
|
Registered User
Join Date: Oct 2008
Posts: 19
|
Quote:
Let me know what else I can adjust. |
|
|
|
|
|
|
#255 | Link |
|
Registered User
Join Date: Jan 2002
Posts: 333
|
Hi, here is a little test ( in french) :x264 VS MediaEspresso et Quick Sync Video with the new SB i5 2300 and i7 2600k
http://www.pcinpact.com/articles/int...ideo/415-1.htm |
|
|
|
|
|
#256 | Link | ||||
|
BluRay Maniac
Join Date: Dec 2005
Posts: 2,419
|
Here's my little contribution
source: park_joy_1080p.y4m avs script: Quote:
Settings: Mainconcept ![]() ![]() ![]() ![]() ![]() ![]() x264: preset: superfast, tunings: none, ABR Quote:
Encoding logs: Mainconcept Quote:
Quote:
Mainconcept - http://www.mediafire.com/?5c9a4geg809bnyu x264 - http://www.mediafire.com/?95zzd5338q2rnnx Enjoy. |
||||
|
|
|
|
|
#257 | Link | |
|
Registered User
Join Date: Sep 2007
Posts: 5,669
|
Quote:
Thanks, Maybe something was lost in the Google translation, but it looks on their tests x264 was actually faster on the "ultra fast" preset, and about the same speed on "very fast preset ?" But it was 1/2 the filesize with better quality ? But - the rollover screenshots aren't of the same frame. They have a zip file, I'll have a look at that |
|
|
|
|
|
|
#258 | Link | ||
|
Registered User
Join Date: Sep 2007
Posts: 5,669
|
Quote:
Quote:
|
||
|
|
|
|
|
#259 | Link | |
|
Registered User
Join Date: Sep 2007
Posts: 5,669
|
Quote:
No surprise, not looking too good for the Mainconcept CUDA encoder... What were your system specs shon3i ? CPU and GPU ? |
|
|
|
|
|
|
#260 | Link |
|
Registered User
Join Date: Jul 2003
Location: Italy
Posts: 1,136
|
The settings for both encoders are near the same?
Comparing the CUDA settings vs. x264 settings seems that CUDA uses only 1 B-frames (3 on x264), that CUDA can potentially have I frame every frame (x264 at least every 23), CUDA cannot reference B frames and doesn't have pyramid Bframe (both options enabled in x264). Probably doesn't change anything at the end anyway. |
|
|
|
![]() |
| Tags |
| media engine, x.264 |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|