Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - clausv

Pages: [1] 2
1
H.264/AVC / Re: x264 timecode input possible bug?
« on: December 15, 2010, 02:43:45 PM »
Encoded in Lagarith, muxed with timecode
http://38.108.124.213/x264/Sample-Source.mkv

Otherwise, timecode also available here:
http://38.108.124.213/x264/Sample.tmc

Sorry for the delay.

2
H.264/AVC / Re: x264 timecode input possible bug?
« on: December 14, 2010, 10:48:15 AM »
Sorry if I didn't make the problem clear.

I have a clip in the following sequence (A,B,C,D,E,F as completely different frames, _ as duplicates)

Original Clip in CFR is in the form:
Quote
A_________________________B_______________________C________________________D_______________________E______F
After 2Pass Avisynth Dedup:
Quote
ABCDEF

The frames are completely different and each frame would need around 220KB to encode at quantizer 11 (i-frame).

If encoding in x264 without timecode, the bitrate across these 6 frames would be 220KB*6/0.25sec = 43Mbps, far exceeding the set vbv limit of 20Mbps, and the quality would take a hit.

Perhaps the frame duration was too long and x264 couldn't decide what quantizer to use, so it gave the frames a quantizer of 51?

Sample (PNG):
.png]http://38.108.124.213/x264/03.mkv_snapshot_00.17_[2010.12.15_01.25.16].png
.png]http://38.108.124.213/x264/03.mkv_snapshot_00.17_[2010.12.15_01.25.22].png
.png]http://38.108.124.213/x264/03.mkv_snapshot_00.35_[2010.12.15_01.26.00].png
.png]http://38.108.124.213/x264/03.mkv_snapshot_00.37_[2010.12.15_01.26.05].png
.png]http://38.108.124.213/x264/03.mkv_snapshot_00.40_[2010.12.15_01.26.15].png
.png]http://38.108.124.213/x264/03.mkv_snapshot_00.43_[2010.12.15_01.26.22].png
.png]http://38.108.124.213/x264/03.mkv_snapshot_00.47_[2010.12.15_01.26.40].png

Sample (MKV)
http://38.108.124.213/x264/Sample-x264-001.mkv

3
H.264/AVC / Re: x264 timecode input possible bug?
« on: December 13, 2010, 10:11:36 PM »
Actually I found the problem. Somehow the "corrupted" frames were given a frame mean quantizer of 48 which obviously looks terrible.

So giving x264 a timecode file doesn't change the vbv behaviour?

I prepared a sample but don't think it is needed?

4
H.264/AVC / x264 timecode input possible bug?
« on: December 13, 2010, 12:38:54 PM »
Lately I started using tc-input for some of my encoding (e.g. Bakemonogatari). There are many scenes that are 10-60 frames apart like a slideshow so I wanted to make x264 rate control to be aware of the VFR (with scenes as low as ~0.1FPS).

And so I realized half of my encoded files are plagued with corrupted frames. I'm aware of a bug with timecode in 1806 but I don't think that is related to this issue.

My encoding setting is:
Quote
C:\x264-64\x264-1804-x64.exe --stdin y4m - --crf 13.5 --fullrange "on" --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --keyint 240 --min-keyint 24 --ref 16 --no-fast-pskip --bframes 6 --b-adapt 2 --b-pyramid normal --deblock -2:-2 --subme 10 --trellis 2 --psy-rd 0.6:0.0 --me umh --merange 32 --threads 1 --thread-input --vbv-maxrate 20000 --vbv-bufsize 20000 --qcomp 0.86 --aq-strength 0.18 --no-dct-decimate --psnr --ssim

While avisynth sometimes does spit out some crap frame (< 3% of encodings) but since I've started using x264 with timecode input I get significantly more broken encodes.

I'm reverting back to not giving x264 the timecode file and also removed the vbv limit as a workaround and see if it improves.

5
H.264/AVC / Re: Settings affecting usage of reference frames?
« on: December 04, 2010, 09:56:33 PM »
I meant x264 settings so that I could make that sample encode as fast as possible without affecting the selection of refs. Thanks for the script anyway, I was thinking about using something on the lines of that :)

Wouldn't the faster setting make x264 not able to use reference frame because it didn't try hard enough?

6
I don't even know there is a pause function that works!

Personally when I encode a series of anime, say 26 episodes, I run 13 copies of avs2avi/x264 across a few machines with each thread doing 2 episodes each, and I use --threads=1 for 720p (avisynth + x264 roughly use 36% CPU on a quad core, so 3 of them just about fill the cpu) or lower and --threads=2 for 1080p.

Without actually seeing the script it seems to me it is going to be single process.

But even on a single machine, split the job to say 8+9+9 episodes across 4 cores would use the CPU more effectively than a high number of threads on x264, not to mention avisynth bottlenecking the whole chain.

I know you have good intention but I think it is a better idea to modify MeGUI to do something similar, stripping off the bulk of stuff that is not needed for batch processing, like avs previewing, and as well as making use of the worker processes.

7
H.264/AVC / Re: AQ strenght and psy-rd configuration
« on: September 08, 2010, 08:49:19 PM »
AQ and psy-rd still make a huge difference in grain and dithering retention even in the CRF 12-15 range. For such sources, bumping those up some from the --tune animation settings is usually a lot more efficient than lowering CRF.

I usually remove all the grains very carefully so grain retention rarely matters. My x264 setting is quite close to placebo so tuning it to animation won't make a difference.

8
H.264/AVC / Re: AQ strenght and psy-rd configuration
« on: September 08, 2010, 04:28:55 AM »
Depends on what bitrate / crf you are encoding at, I leave AQ on at a very minimal value and just switch psy-trellis off, as I use CRF12-15 for my encodes (anime)

From what I heard psy-rd is not suitable on anime (not sure if your animation = anime, or the Hollywood stuff). If you encode at a very high quality then it wouldn't matter, you won't be able to see any difference.

9
H.264/AVC / Re: Measuring dither quality with x264 SSIM
« on: September 08, 2010, 04:25:10 AM »
You add the dither prior to feeding the source into x264, so you should just compare how good is the dither in avisynth, with something like interleave(clip1,clip2).

Then the SSIM in x264 will then tell you how much of those dither is lost in compression.

10
H.264/AVC / Re: x264: What value of --crf XX is equal to xvid q=2?
« on: August 29, 2010, 01:59:07 PM »
Thank you for your replies.

Yes, I ment "capable of producing similar, on average, quality".
That's what I want to achieve.

I've tryed this, but honestly it's hard to me to see the difference. I'll do it again with --crf 16,17,18. Hopefully I'll see some this time.

It is quite easy to see the difference if you use crf 16~18, but if you go down to crf 12-15 it takes avisynth levels to increase the difference by 10 times to actually see the difference (which is minimal).

Though 95% of the time I encode anime rather than real life content.

11
Quite a late reply but I finally managed to do a proper comparative test.

The following setting is used:
Quote
"C:\x264-1649.exe" --crf 13 --fullrange "on" --colorprim "smpte170m" --transfer "smpte170m" --colormatrix "smpte170m" --keyint 240 --min-keyint24 --ref 16 --no-fast-pskip --bframes 6 --b-adapt 2 --b-pyramid normal --deblock -2:-2 --subme 10 --trellis 2 --psy-rd 0.6:0.0 --partitions all --me umh --merange 32 --threads 1 --thread-input --qcomp 0.84 --aq-strength 0.3 --no-dct-decimate --psnr --ssim --vbv-maxrate 15000 --vbv-bufsize 15000

Source is Anime DVD with 32232 Frames. 19385 Frames remaining after dedup. (Typically the drop rate % is around 15-25%, although I've seen as high as 67% on Ichizon) 
Both versions are TTempsmoothed in the last stage of processing at (maxr=7,strength=8,fp=true)
A masked merge with a motion mask is used to "restore" artifacts created by fp=true.

A couple of soft tricks were used to "tune" dedup and TTempsmooth to work better on anime content with low noise using very low thresholds. The filtered source is very clean in static sections. Motion parts won't be dedupped so the source will be the same for those parts.

Deduped Result:
Quote
avs [info]: 720x480p 0:0 @ 24000/1001 fps (cfr)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [info]: profile High, level 4.0
x264 [info]: frame I:184   Avg QP:11.27  size: 57289  PSNR Mean Y:54.48 U:57.76 V:57.31 Avg:55.23 Global:54.86
x264 [info]: frame P:5103  Avg QP:14.09  size: 16076  PSNR Mean Y:52.03 U:55.38 V:55.08 Avg:52.83 Global:52.25
x264 [info]: frame B:14098 Avg QP:15.79  size:  8948  PSNR Mean Y:51.28 U:54.79 V:54.57 Avg:52.13 Global:51.52
x264 [info]: consecutive B-frames:  4.6%  4.5% 10.5% 27.9% 22.4% 19.7% 10.3%
x264 [info]: mb I  I16..4: 18.7% 33.3% 48.1%
x264 [info]: mb P  I16..4:  3.0%  3.3%  2.9%  P16..4: 30.0% 12.7%  5.3%  1.1%  0.6%    skip:41.1%
x264 [info]: mb B  I16..4:  0.4%  0.3%  0.4%  B16..8: 19.9%  8.9%  4.0%  direct: 6.3%  skip:59.8%  L0:44.6% L1:40.7% BI:14.7%
x264 [info]: 8x8 transform intra:33.3% inter:29.8%
x264 [info]: coded y,uvDC,uvAC intra: 45.2% 55.5% 43.1% inter: 18.5% 19.8% 9.1%
x264 [info]: i16 v,h,dc,p: 60% 24%  7%  9%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 14% 32%  5%  5%  5%  5%  5%  6%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 12% 13%  7%  8%  9%  6%  7%  6%
x264 [info]: i8c dc,h,v,p: 49% 20% 24%  7%
x264 [info]: Weighted P-Frames: Y:3.6%
x264 [info]: ref P L0: 50.8%  3.3% 11.9%  6.6%  4.4%  4.4%  3.1%  2.5%  2.0%  2.1%  1.8%  2.3%  1.4%  1.4%  1.1%  1.1%
x264 [info]: ref B L0: 58.9% 12.8%  6.3%  4.3%  2.9%  2.7%  2.2%  1.7%  1.4%  1.5%  1.4%  1.9%  1.2%  0.6%  0.3%
x264 [info]: ref B L1: 91.0%  9.0%
x264 [info]: SSIM Mean Y:0.9972241 (25.566db)
x264 [info]: PSNR Mean Y:51.511 U:54.975 V:54.729 Avg:52.347 Global:51.720 kb/s:2164.20

encoded 19385 frames, 3.58 fps, 2164.21 kb/s

Without Dedup:
Quote
avs [info]: 720x480p 0:0 @ 24000/1001 fps (cfr)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [info]: profile High, level 4.0
x264 [info]: frame I:222   Avg QP:11.13  size: 57396  PSNR Mean Y:54.77 U:58.10 V:57.72 Avg:55.52 Global:55.07
x264 [info]: frame P:11702 Avg QP:14.07  size:  9181  PSNR Mean Y:52.49 U:56.03 V:55.77 Avg:53.31 Global:52.55
x264 [info]: frame B:20308 Avg QP:15.69  size:  5762  PSNR Mean Y:51.33 U:54.83 V:54.67 Avg:52.18 Global:51.66
x264 [info]: consecutive B-frames: 15.9%  5.9%  7.9% 35.5% 16.5% 12.8%  5.4%
x264 [info]: mb I  I16..4: 20.4% 32.3% 47.3%
x264 [info]: mb P  I16..4:  1.5%  1.6%  1.3%  P16..4: 21.4%  7.2%  3.5%  0.7%  0.4%    skip:62.4%
x264 [info]: mb B  I16..4:  0.2%  0.2%  0.2%  B16..8: 17.7%  5.6%  2.3%  direct: 4.7%  skip:69.2%  L0:42.7% L1:44.7% BI:12.6%
x264 [info]: 8x8 transform intra:34.3% inter:29.8%
x264 [info]: coded y,uvDC,uvAC intra: 44.1% 54.5% 43.0% inter: 12.5% 13.6% 6.9%
x264 [info]: i16 v,h,dc,p: 61% 23%  7%  9%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 13% 34%  5%  5%  5%  5%  5%  6%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 12% 14%  7%  8%  9%  6%  7%  6%
x264 [info]: i8c dc,h,v,p: 50% 20% 24%  6%
x264 [info]: Weighted P-Frames: Y:1.6%
x264 [info]: ref P L0: 56.6%  2.8% 10.0%  5.3%  3.4%  3.5%  2.5%  2.1%  2.0%  2.5%  2.0%  2.3%  1.5%  1.3%  1.1%  1.0%
x264 [info]: ref B L0: 62.1% 11.8%  5.5%  3.7%  2.2%  2.0%  1.7%  1.7%  1.3%  1.7%  1.6%  2.3%  1.1%  0.7%  0.5%
x264 [info]: ref B L1: 93.9%  6.1%
x264 [info]: SSIM Mean Y:0.9973853 (25.826db)
x264 [info]: PSNR Mean Y:51.774 U:55.290 V:55.089 Avg:52.616 Global:51.983 kb/s:1411.58

encoded 32232 frames, 3.95 fps, 1411.58 kb/s

Final file size:
VFR 218,870,440 bytes
CFR 237,442,955 bytes (+8.5%)

Saving of about 18MB. Scale it up to 1080P it would be 106M, bang on what I said before. However loosing 0.25~0.3db of SSIM/PSNR is probably where some of the saving is coming from.

12
H.264/AVC / Re: I Need Some Help Please
« on: August 06, 2010, 04:49:52 PM »
The AVI container is fine for video except it does not support soft subtitle nor vfr, and the audio support is not very good.

Remuxing AVI to MKV is perfectly fine as the video stream is identical regardless of .264, avi, mkv or mp4.

13
I think the valid way of testing the effect of deduping is probably encode with constant quantizer mode. (Which btw is what I used until joining Doom10!). Although I have to say the compression saving (or not) is highly influenced by the filters used after dedup and obviously the source.

14
H.264/AVC / Re: Need help with x264 cli + .vob input
« on: July 18, 2010, 05:29:40 AM »
Best is to open the avs file in virtualdub and see if it really need deinterlacing. If it really doesn't, then don't need to do deinterlace.
Avisynth doesn't crop unless you ask it to.

15
H.264/AVC / Re: Need help with x264 cli + .vob input
« on: July 17, 2010, 12:40:31 AM »
Download TDeint and put it in your avisynth plugin folder, then stick the following in a notepad
Code: [Select]
MPEG2Source("yourd2vpath.d2v",cpu=4)
TDeint

and save it to an .avs file somewhere, use that avs as the input file for x264

Use the 32bit x264. The 64bit x264 require some extra programs and modification to the cli command to run.

This is really no significant different from what handbrake is already doing. If you are intended to start more professional in encoding then do the Avisynth way. Otherwise you are just wasting your own time doing what all the GUI does in a long-winded way. Avisynth filters need hours if not hundreds of hours to master.

16
H.264/AVC / Re: Need help with x264 cli + .vob input
« on: July 15, 2010, 07:46:42 PM »
Or... You can use DgIndex, which accomplishes EXACTLY what you need it to do and isn't EXACTLY like MeGUI (i.e. StaxRip). Not that I've ever used StaxRip, but I've heard bad things about it from a certain encoder who shall not be named.

I mean, if you have one tool that can do exactly what you need, why would you also want to install a buggy GUI that comes with a bunch of other useless stuff that's only included to make it buggier?

Judging from the fact that Frost wanted to encode directly from a .vob he would not have enough knowledge to deal with a dgindex+avisynth+mkvmerge/mp4box setup, and naturally the best alternative solution would be to recommend a GUI. Apologize if I underestimated though.

MeGUI is bulky, in terms of memory consumption, but is a decent enough GUI with automatic update which is a big plus. For a 1.8GB vob file it won't be 720p/1080p which means memory won't be a problem.

Personally I don't use MeGUI for x264 encoding anymore but the way it interfaces with besweet makes it the most suitable tool for audio handling (splitting).

17
H.264/AVC / Re: Need help with x264 cli + .vob input
« on: July 14, 2010, 03:25:28 AM »
Since x264 doesn't handle audio at all, you will need to remux after encoding. The vob also need some processing, like deinterlacing.

Try something like this http://www.digital-digest.com/articles/MeGUI_H.264_Conversion_Guide_page1.html

18
You're looking at Dup (Avisynth filter). The main problem I see is that there are no filters that I know of that can re-duplicate frames.
Subtitle wise, limiting the number of dropped frames to say 5 is enough for subtitle to be rendered without perceptible delay.

Back to the compression benefit. You're right that temporal denoising have the most effect. But there are some subtle effect in 12FPS/8FPS complex scenes, where the first frame of the duplicates always have the worst quality. These frames can't get cleaned and the best way to keep quality is to dedup it out rather than doing any filtering. Get rid of those frames and your source will look much better and of course easier to compress. Those "bad" frames can cost like 50KB+ extra to encode each (still depends on what quantizer you use).

19
TTempsmooth works on a pixel level so strong mosquito noise are usually not filtered by ttempsmooth unless you have a high threshold. The temporal range is also limited, which means the result you get from averaging (N-7 to N+7) current frame, is NOT the same as (N-6 to N+8) next frame. That small difference wastes bits. I guess that also depends on your x264 setting, as a wild guess perhaps dct decimation?

On the other hand Dedup detection is on a block level so it can deal with some strong noise, particular with trigger2, threshold2 and range2. If you temporal denoise after Dedup you effectively get a larger temporal radius.

Dedup is helping the denoiser, as well as helping the x264 encoder to make better use of reference frames.

20
Thanks for the responses everyone.
And sorry for the confusion, I was referring to using VFR as a way to reduce file size (dedup), not VFR for sources which are VFR.

@clausv: that difference seems very surprising.  I guess it's possible if the frames you're dropping also drop noise movements, though that itself can be rather weird (ie noise moves at different rates across the video).  If you're denoising before hand, or using a fairly noiseless source (most animated content should be like this) then dropping that much in size seems surprising.
If we consider an average anime to be 23 minutes @ 23.976fps (33087 frames) then dropping 2000-16000 frames per episode is like 6 - 49% of the entire video (for the latter, I'd guess that's mostly a 12fps show?).  The figures seem reasonable from what I've seen, though more towards the lower end.
Though the amount saved per frame seems really surprising.  Taking an average of the two figures, say 3.5KB per frame, which equals about 671Kbps (@23.976fps) on just duplicate frames.  Surely duplicate frames don't consume that much?  Even with a low crf, that seems very surprising.
Note that I'm assuming that you're not really dropping details from the video when you dedup (ie, given a noiseless source the original and dedup'd version should produce identical video).

Anyway, perhaps I'm wrong with my suspicions, but either case, thanks again for the response :)

You'll find that lip-syncing in anime is done mostly at 8fps, and when the characters are not speaking it can go below 1fps. I've seen some clips with like 10 seconds of still scene, and I wish I can get Dedup to get more than 19 dropped frames without resorting to an additional pass.

Using TTempsmooth on literally everything is a no-brainer. But then even if you max out the ttempsmooth's range and strength there are always some noise that it can't get rid of (macroblock edges, impulse noises in particular MPEG2). Setting the noise threshold too high is never a good idea.

Moving clouds, star field, characters with very tiny mouth movements, dust effect and food steam are just some prime example how dedup can't deal with subtle detail changes.

My typical dedup settings (some pre-filtering applied before DupMC)
threshold = 0.08~0.13
threshold2 = 0.17~0.28
range2 = 3 <---Very important
trigger2 = 20~40

What we needed for even better anime compression is bigger block size, even more reference frames, ttempsmooth with even bigger range and possibly able to "jump" through frames that did not get past the noise threshold (e.g. people walking along a street), and more than 20 maxcopies in dedup.

21
Duplicate frames are compressed to zero (after CABAC, they use ~1byte/frame). VFR is a hack; it is not a compression tool.

Unless you have the original source before any artificial noise/grains are added, the "duplicate" frames are never compressed to zero. Even with quite heavy temporal smoothing I still get somewhere in the range of 200 bytes to 7kb per "duplicate" frame.

There are two types of VFR, one is mixing clips with different base rate, the other one is to have all sort of different rates as low as 1.2FPS (1Pass Dedup). I personally find that Deduping (probably a better word than VFR which confuses with the other type) saves between 2000-16000 frames per episode of anime. Most samples I've tried the bitrate saving is as high as 3 CRF. The preset is not so much the issue, the key part really is --ref 16 unless you want your encoding to be DXVA compatible which you're stuck with whatever the resolution allows.

The saving comes from the reduced number of i-frames, better use of reference frames and from temporal smoothing.

The main problem with Dedup is unless you come up with some really good hack (assisting dedup to identify what is detail and what is noise), you're going to drop a lot of details from your clip. Noise could be as high as 0.9% but a small mouth movement or a moving cloud will only register 0.3%. Set the dedup threshold too low you don't drop enough duplicates to benefit from it and setting it too high your encoding will be jerky.

Depends on how resource-intensive is your Dedup hack if you have one and your x264 setting, you might actually see your encoding time increases. I also frequently see dedup skipping so much frames that dgavc is giving decoding error on h264 sources, essentially requiring lossless pass prior to dedup().

Seekability is NOT affected because any given frame is still only as far away to the keyframe as the interval. I couldn't see the point of using Dedup on live action because there is hardly anything that is 100% still.

22
H.264/AVC / Re: Optimizing Setting for Zooming?
« on: July 03, 2010, 08:19:17 AM »
Slow encoding is not a problem, as VFRing using Dedup save 10~60% of frames, and masked temporal filtering with avisynth is equally slow. The usual file size coming out of it is 3-6Mbps for 1080P when the source does not have much (if any) zooming. The low quantizer only get used in still scene and extreme action capped by vbv. Pretty happy with my current setting normally hitting an average SSIM of 0.991~0.9965.

If there aren't any way to "optimize" for zooming then I guess I'll just use a higher CRF. Thank you.

23
H.264/AVC / Re: Optimizing Setting for Zooming?
« on: July 02, 2010, 06:57:30 PM »
What settings are you using when you say "encoding it normally"?

--crf 13 --ref 16 --no-fast-pskip --bframes 6 --b-adapt 2 --b-pyramid normal --deblock -2:-2 --subme 10 --trellis 2 --psy-rd 0.6:0.0 --partitions all --me umh --merange 32 --threads 1 --thread-input --qcomp 0.84 --aq-strength 0.3 --no-dct-decimate --psnr --ssim --qpmin 10

The above profile is the one I use for anime normally.

24
H.264/AVC / Optimizing Setting for Zooming?
« on: July 02, 2010, 02:37:38 PM »
I have some clips that are pictorial drama with still images zooming in/out and/or moving in vertical and horizontal direction. The clip is pretty clean and have a lot of details.

Is there any setting of x264 that is tuned for this kind of "video"? Tried encoding it normally and a single 1080p slow-zooming image is using up 100MB over a duration of 1000 frames not to mention running at insanely low FPS.

25
H.264/AVC / Re: Is deblocking recommended at very low CRF?
« on: June 25, 2010, 10:38:23 AM »
Hi!

I usually encode with the default profile at CRF 15 and was wondering: If blocking primarily occurs in frames not receiving enough bits, does that mean it would be best to disable deblocking at something like CRF 15?

Other modifications you would suggest to the default settings at CRF 15? I just want one good general setting to use, hard drive space obviously is not the biggest concern.

The actual quantizer used for each given block is depending on qcomp, aq and mbtree. While you set CRF 15 there could be a lot of blocks could have a quantizer of over 22, which you definitely need some deblocking.

If space is not the biggest concern then just use the standard profile. If not then use something like --preset "veryslow" or even "placebo". I usually use -2:-2 for all contents. For animation I use CRF 12 for SD, CRF 13 for 720P, CRF 14 for 1080P, add 3 for non-animation footage, in conjunction with settings somewhere between veryslow and placebo.


26
H.264/AVC / Re: x264.exe crash
« on: June 24, 2010, 09:08:13 PM »
Sound like you have not set the input resolution to x264 correctly when using avs2yuv. The "flowing from the side" and the missing frames suggested so.

Post your whole command line including the avs2yuv part, the clip info (from vdub) and the x264 encoding log.

27
H.264/AVC / Re: x264.exe crash
« on: June 19, 2010, 04:23:22 PM »
Hm, ok, but why doesn't the problem appear to VirtualDubMod ? If the whole thing would be so memory consuming, VDM should also quit working and complaining about the lack of free mem ...

Another thing:
basically it's 5 single scripts that produce me the clips and one that "merges" them. So I assume the moment I open the main script, all other get loaded into memory which eventually might cause the hassle ... Is it possible to drop the instance after it's been processed to free som mem for the next part ?

If you are planning to use mkv as the final container, you can just encode the 5 parts separately and merge them later with mkvmerge.

Personally I find that manually setting SetMemoryMax does not work very well. If I set something too low the script stalls to like 0.02FPS. If I set it too high it just waste ram.

Encoding to a lossless pass then encode allow you to use the 64bit x264 (unless you use 64bit avisynth plugins only, which is highly unlikely). Don't know if Huffyuv has 64bit version, but Lagarith certainly does :)

28
Newbies / Re: Weird blended chroma?
« on: June 07, 2010, 06:21:36 PM »
It was just TFM wasn't sensitive enough and treating the frame as progressive.

I think reducing the cthresh alone will solve it. Check by setting display=true.

29
Newbies / Re: IVTC works ok except for moving titles
« on: June 07, 2010, 06:19:14 PM »
Depends on your DVD, you may need to deinterlace instead of IVTC.

The safe bet is usually do

srcclip = MPEG2Source(whatever)
deintclip = srcclip.TDeint()
ivtcclip = srcclip.TFM(pp=7,clip2=deintclip).TDecimate()

Could replace the pp=7 to pp=4 if there is still a problem, or adjust the cthresh value higher or lower.
There is not much point doing VFR encoding here, if you make the section 30P the scene will be jerky, if you make it 24P the moving text will be jerky and there is no easy way of fixing it.

30
H.264/AVC / Re: x264 options efficacy speed results
« on: June 07, 2010, 05:59:13 PM »
I guess you just have to separate the tests so that one set have psy on and one set have psy off, since the SSIM for both sets can't compare directly.
Perhaps do a 2Pass so that you can remove the effect of small change in bitrate. Then comparing SSIM should be valid.

From my own encoding psy looked to me the bitrate cost and quality gain is roughly equivalent to reducing the crf by 1-4 (effect is less at very low crf). The SSIM (for my encoding) does dive from about 0.999 to 0.995 but my pre-processing made more loss than the x264 SSIM anyway.

The reference point should be a maximum compression efficiency setting (placebo or something very close to it), then selectively disable / decrease some options and see the effect from there which reduce the inter-dependencies.


Pages: [1] 2