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. |
27th December 2004, 01:35 | #81 | Link |
Registered User
Join Date: Nov 2001
Posts: 9,770
|
my findings:
- RC matches the desired bitrate very accurately (missed by 1kbps in my samples) - quality very good (comparable to xvid, if not better) - deblocking seems to be good, but smooths too much in fast moving background+still foreground scenes (eg matrix1: neo in front of the weaponshelf) - not sure if b-frames help quality atm, will have to check that more closely - mencoder outputted two frames too much (mpeg4ip's avi2raw tool reports two zero lenght frames too) there seems to be the correct framenumber in the .log files - when setting 2 consecutive b-frames they are not adaptively set, but i assume thats the expected behaviour - pretty fast, mencoder displayed 4fps encoding speed with b-frames, cabac and deblocking enabled with my pentium3 866mhz all in all: very nice!
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau) I know, that I know nothing (Socrates) MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide) Ogg Theora | Ogg Vorbis use WM9 today and get Micro$oft controlling the A/V market tomorrow for free |
27th December 2004, 04:26 | #82 | Link |
Registered User
Join Date: Oct 2001
Location: Melbourne, Australia
Posts: 2,171
|
Older builds all used the same generic libx264.a, in newer builds the XP version got an XP optimised libx264.a and xvidcore.a as did the P4 version (optimised for P4 that is). That would probably explain the Athlon-XP version crashing on a P3.
|
27th December 2004, 09:13 | #83 | Link | ||||
x264 developer
Join Date: Sep 2004
Posts: 2,392
|
Quote:
Quote:
I don't consider B-frames to be usable yet: scenecut detection doesn't work correctly with them (i.e. it will insert I-frames but not IDR, so no seeking). This will be fixed at the same time as I add adaptive B-frames, because it's really the same problem. But aside from that, they do sometimes help compression. Even without adaptiveness, I've seen as much as +.4 dB psnr improvement for some videos, (and as low as -.5 dB for others). I also haven't finished subpel motion refinement for B-frames. subq=5 is unaffected, but anything less is suboptimal quality. Quote:
Quote:
Last edited by akupenguin; 27th December 2004 at 09:21. |
||||
27th December 2004, 15:53 | #84 | Link | |||||
Registered User
Join Date: Nov 2001
Posts: 9,770
|
Quote:
Quote:
i noticed that the described behaviour is worse with deblocking, as streams with disabled deblocking didnt show the smoothing that strongly Quote:
Quote:
Quote:
also can you plz describe how to enable exactly the different macroblock types via commandline also is it necessary to guess the constant quant for the firstpass or is it possible to use something like pass=1:bitrate=650 instead? to get a better speed is it still possible to use different subq values for 1st and 2nd pass? if yes how big do you think can the difference be (eg for subq=5)? also where exactly can i find the latest x264 sources? where do you upload them? mplayer cvs/svn, videolan cvs/svn...? thx and keep up the good work
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau) I know, that I know nothing (Socrates) MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide) Ogg Theora | Ogg Vorbis use WM9 today and get Micro$oft controlling the A/V market tomorrow for free Last edited by bond; 27th December 2004 at 16:32. |
|||||
27th December 2004, 16:30 | #85 | Link |
Registered User
Join Date: Oct 2001
Location: Melbourne, Australia
Posts: 2,171
|
Well I guess I will put a P3 build up. Probably won't be till tomorrow though. Other option is to compile it yourself or grab the latest from mplayerhq, that is assuming that it is compiled with x264 enabled.
|
27th December 2004, 16:40 | #86 | Link | ||
Registered User
Join Date: Nov 2001
Posts: 9,770
|
Quote:
Quote:
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau) I know, that I know nothing (Socrates) MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide) Ogg Theora | Ogg Vorbis use WM9 today and get Micro$oft controlling the A/V market tomorrow for free |
||
27th December 2004, 19:39 | #87 | Link |
Registered User
Join Date: Nov 2001
Posts: 9,770
|
ok i now did more quality tests:
- x264 introduced some green color all over the picture (which isnt there when encoding with xvid). it also doesnt seem to be decoder related, as both ffdshow (ffmpeg) and vssh's decoder show this greenish picture - there seems to be a lot of "movement" in the background, which makes the picture look not really "quiet" - comparing the detail preservation/sharpness, i would say that x264 is already clearly sharper than xvid in most scenes - an exception is the already described still-foreground/moving-background smoothing, that xvid (as one of the few codecs existing) is able to handle in a very nice way - when doing frame-by-frame comparisons, b-frames seem to introduce fluctuating quality (once more details than xvid, once less. i assume depending on whether you look at a b- or i/p-frame) - in high(medium-high) motion scenes x264 blocks more and shows less details than xvid (even more with b-frames enabled), good seeable in the lobbyshootout (especially the flying wall-parts) - eg the detailed walls in the lobby shootout seem to get encoded less detailed and more blocky in x264 - regarding flat surfaces (eg, walls) x264 tends to block a lot (ugly) in contrary to xvid, which managed to handle walls very nicely beginning with the introduction of its vhq modes (rdo) if i remember it right - fog gets encoded more blocky in x264 than in xvid - x264 shows by far less blocks on "not-flat-surfaces" (eg on edges) especially with deblock, still deblock doesnt seem to visually hurt the details noticably note that i base these findings on the following settings used to encode the matrix1 scenes, doom9 also uses in his tests, at ~650kbps: xvid: 1.01_Lanczos_hvs-best_VHQ4_ChromaMotion_QPel_GMC_Trellis_Bvops-2-default_AdaptivQuant x264: mencoder20041212_Lanczos_Cabac_(no)deblock_alpha-beta:-3,-3_(no)Bvops-2_subq1/5 all in all: highmotion, the background and flat surfaces (walls) need some tuning imho, the rest kicks ass
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau) I know, that I know nothing (Socrates) MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide) Ogg Theora | Ogg Vorbis use WM9 today and get Micro$oft controlling the A/V market tomorrow for free Last edited by bond; 27th December 2004 at 19:46. |
27th December 2004, 20:20 | #88 | Link |
Registered User
Join Date: Nov 2001
Posts: 9,770
|
and if anyone wants to try x264 with 2pass out him/herself, here is a sample commandline similar to the one i use (copy it to a .txt file, adjust the path/filenames, change the extension from .txt to .bat and execute the .bat)
Code:
"C:\path to\mencoder.exe" -ss 00:00:00.400 -frames 1000 -sws 9 -vf crop=720:416:0:82,scale=640:256,harddup "C:\path to\source.vob" -ovc x264 -x264encopts pass=1:qp_constant=22:cabac:deblock:frameref=3:subq=4 -o NUL: -passlogfile "x264_2pass.log" "C:\path to\mencoder.exe" -ss 00:00:00.400 -frames 1000 -sws 9 -vf crop=720:416:0:82,scale=640:256,harddup "C:\path to\source.vob" -ovc x264 -x264encopts pass=2:bitrate=650:cabac:deblock:frameref=3:subq=5 -of avi -ffourcc VSSH -o output.avi -passlogfile "x264_2pass.log" i chose the VSSH fourcc to be able to play streams with b-frames with the videosoft decoder (but ffdshow also knows that fourcc)
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau) I know, that I know nothing (Socrates) MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide) Ogg Theora | Ogg Vorbis use WM9 today and get Micro$oft controlling the A/V market tomorrow for free Last edited by bond; 1st January 2005 at 20:42. |
28th December 2004, 02:18 | #89 | Link | ||||||||||
x264 developer
Join Date: Sep 2004
Posts: 2,392
|
Quote:
Quote:
subq<5 runs part of the motion search algorithm on all block types, then chooses the best type, then finishes the search on just the winner. I haven't implemented the finishing part for B-frames. So subq=1 will use only fullpel motion compensation for B-frames, and subq=3 will use only halfpel. Quote:
Quote:
Other limitations: Non-adaptive direct mode (brute force decision produced about +.1 PSNR in one test encode.) B-frames aren't kept as references. (No idea how much this would help.) No weighted prediction (No idea how much this would help, though Ateme might give you an idea. But even JM doesn't do this well, so maybe not.) Generally non-tuned. I think my fast B_Skip detector is too lenient, but it will take a lot of test encodes and CPU time to tweak it. Quote:
Before (i.e. in your test), b8x8 was disabled. Quote:
Quote:
Quote:
Quote:
Quote:
Bvops at most 1 until I finish adaptive decision. frameref=3 or so on the 2nd pass. (larger numbers help slightly, but not worth the extra time except on anime.) Last edited by akupenguin; 28th December 2004 at 02:44. |
||||||||||
28th December 2004, 11:46 | #90 | Link | |
Registered User
Join Date: Jun 2004
Posts: 577
|
Quote:
i'm on P4 2.4GHz, Windows XP machine, Now i'm downloading the new mplayer2004.12.28P3.7z, but not sure it can work on my machine or not... |
|
28th December 2004, 12:27 | #91 | Link |
Registered User
Join Date: Oct 2001
Location: Melbourne, Australia
Posts: 2,171
|
Looks like there is a problem with all the builds from the 23rd and x264 encoding. I will put up some new builds. Will have the patch that akupenguin was talking about, plus x264r73 anyway.
Last edited by celtic_druid; 28th December 2004 at 12:31. |
28th December 2004, 13:50 | #93 | Link |
Registered User
Join Date: Oct 2001
Location: Melbourne, Australia
Posts: 2,171
|
Ok, new compile seems fine. Think it was a case of an old header. Next issue could be audio output as the cvs appears to be in the middle of a change there. Anyway audio is working fine here both with dsound and win32.
|
28th December 2004, 20:28 | #94 | Link |
Registered User
Join Date: Nov 2001
Posts: 9,770
|
new compiles work fine (except pentium4 one, which crashes in mencoder.exe here)
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau) I know, that I know nothing (Socrates) MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide) Ogg Theora | Ogg Vorbis use WM9 today and get Micro$oft controlling the A/V market tomorrow for free Last edited by bond; 28th December 2004 at 21:27. |
28th December 2004, 20:57 | #95 | Link | ||
Registered User
Join Date: Nov 2001
Posts: 9,770
|
ak, could you reproduce the "greenish picture" problem i reported?
the nero decoder also shows that effect Quote:
Quote:
when opening the file in virtualdub, 999 frames get reported edit: when using the same commandline, but with "-ss 00:00:00.400 -frames 500 -noskip -sws 9 -vf crop=720:416:0:82,scale=640:256", 500 frames got outputted/reported in vd (so not one too few) when extracting the video stream from .avi to raw with mpeg4ip's avi2raw tool, i get the warning "1 zero length frames ignored" and "998 video frames written" on the 500 frames sample i got a "2 zero length frames" -> 498 frames grab the sample here edit: added the 500 frames sample on longer streams i encoded last time (7119 frames), the tool skipped 2 "zero length frames" too (never used b-frames)
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau) I know, that I know nothing (Socrates) MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide) Ogg Theora | Ogg Vorbis use WM9 today and get Micro$oft controlling the A/V market tomorrow for free Last edited by bond; 28th December 2004 at 21:40. |
||
28th December 2004, 21:50 | #96 | Link | ||
x264 developer
Join Date: Sep 2004
Posts: 2,392
|
Quote:
Quote:
|
||
28th December 2004, 22:08 | #97 | Link | |
Registered User
Join Date: Nov 2001
Posts: 9,770
|
so you are sure that there are no "zero length frames" in the two video samples i uploaded, mpeg4ip complains about?
Quote:
grab it here
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau) I know, that I know nothing (Socrates) MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide) Ogg Theora | Ogg Vorbis use WM9 today and get Micro$oft controlling the A/V market tomorrow for free Last edited by bond; 28th December 2004 at 22:12. |
|
28th December 2004, 23:24 | #98 | Link | |
x264 developer
Join Date: Sep 2004
Posts: 2,392
|
Quote:
Last edited by akupenguin; 29th December 2004 at 00:34. |
|
29th December 2004, 00:40 | #99 | Link | ||
Registered User
Join Date: Nov 2001
Posts: 9,770
|
by analysing the raw avc streams with mpeg4ips h264.exe tool, i noticed that it seems as if there are always 1 more reference frame signalled than was used: eg if i set only 1 ref frame it says "num_ref_frames: 2", if i set 3 "num_ref_frames: 4", aso...
Quote:
Quote:
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau) I know, that I know nothing (Socrates) MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide) Ogg Theora | Ogg Vorbis use WM9 today and get Micro$oft controlling the A/V market tomorrow for free |
||
29th December 2004, 02:39 | #100 | Link |
x264 developer
Join Date: Sep 2004
Posts: 2,392
|
oh, I know what's up: it's the mpeg2 decoder delay. The delay is reduced to 1 frame by using "-vfm ffmpeg" (as opposed to libmpeg2. which also has problems seeking (produces garbage for the next B-frame). I don't know why it's still the default).
I didn't notice this problem in my backups before, because I always go through huffyuv (now ffvhuff), which happens to fix it. |
|
|