PDA

View Full Version : RealVideo Alt. Curve Scaler v1.1


Dark-Cracker
14th July 2004, 18:32
hi,

i have write a little *alternative* curve scaler for the realvideo .pass file. (not linear scaling)

http://dark.pluridis.org/ScaleCurve_v1.1.zip

NB :
RV10 internal curve scaling work very nice, but sometimes alternative solution can give better results :) and it was funny to develop a such tool to use a bit the rv10 pass file structure.

HOW does it work :
------------------
- it work like the Alt. CC in the xvid 0.9 codec :

=> get the high and low % from average bitrate in analysing the .pass file.

once it have these values it use a *medium agressif* preset to find the better scaling using a strenght variation = 50% .

the overflow redistribution is made using a payback bias with a delay of 250 frames (window used to redistribute the bits).
the max overflow improvement/degradation is 60 % .

use foxer overflow for smaller frame preserve agains excessive huge/low bitate.


Bye.

DarkNite
15th July 2004, 08:49
Thanks, good work. Worked great for the initial test file, which had always come up oversized before.

bond
15th July 2004, 20:32
arent rv .pass files simply the same as xvid .pass files?

Dark-Cracker
15th July 2004, 23:50
yes there are the same than the xvid pass except u can add your scaling value at the next column to override the codec calculation.
(and if i right remember there is no scaler tool for .pass file since xvid have stop to use external .pass file).

my scaling tool calculate the high and low % from average in the .pass file using some homemade threshold :) and scale the curve using the same way than the old xvid 0.9 alt CC . current settings are equal at medium agressiveness and strenght = 50 % . i will surely allow the user to change this settings later.

this give me better results :) when there is a lot of scene switches beetween hight/low motion than the actual internal 2 pass scaling.

Bye.

gavo
16th July 2004, 21:29
if I want to use the curve scaler, What settings do I select just to make the first pass and then encode the second. As you have to do them seperately. What is the point exactly of the dscaler?

Dark-Cracker
17th July 2004, 19:48
hi,

wait a few hours i will release a new version with a bugfix for the b frame scaling.

i will also release a special build of autorv10 with this options to made the tests more easy.

++

avih
17th July 2004, 21:37
@gavo:
would u be kind to replace your signature image to something more 'subtle' pls? it's quite annoying to watch this flashing nintendo stuff. pls make your signature as minimal as u can (prefferably without an image).

thx
avih

Dark-Cracker
18th July 2004, 00:01
v1.1 released :

- improved Minimum I/P/B frame size formulas.
- fix a possible problems with B frames.

for the more lazy guy u can use this modified autorv10.exe file here :

http://dark.pluridis.org/AutoRV10_AltCC.zip

1) extract it in your autorv10 folder.
2) on the "output" panel check "Alt. CC"
3) ONLY WORK FOR 1 job

u can find PSNR result in the file tmp_PSNR_log_xx.txt and in the c:\ the file realvideo.pass and realvideo.log (scaling frame information) (warning these 2 files are overwrited for each new job).

Rumbah
18th July 2004, 00:26
I tried you program version 1.1, but after it runs for 2 to 3 minutes, I get the following error:

Laufzeitfehler '6':
Überlauf

in English:

run time error 6
Overflow

Rumbah

Dark-Cracker
18th July 2004, 01:34
oups sorry i have forget to clean an old var :(
i have fixed this and uploaded the new fixed version (same link).

i have also upload some random screenshots of the trailer "swordfish".

2 pass mode : PSNR 44.94 db
alt CC mode : PSNR 45.33 db

filesize are approximatively 30 mb (+0.06 % mb for the scaled file).

screenshot : http://dark.pluridis.org/blindtest/

Bye.

Rumbah
18th July 2004, 02:39
I tried the new version, and it ran through, but the pass file was not written. When it is done, it shows me the calculated size, but no file is created.

Dark-Cracker
18th July 2004, 02:47
bug fixed it was a problems with the isfileexist function.
plz redownload the archive :) once it show u the scaled size msgbox u have to wait until it create the new .pass file (todo : keep the comments at the start of the file) once it have finish it will show u a msgbox.

++

Rumbah
18th July 2004, 23:50
Now it works :)

gavo
19th July 2004, 03:42
I'm sorry Dark-Cracker but I a little confused on your tool. Does it do a better job working with the new rate control, with motion going high and low. Would you suggest using it for all media?

Dark-Cracker
19th July 2004, 08:23
hi,

it depend of the source input, but generaly it give better result thant the usual rv10 internal scaling.
i suggest to use when there is a lot of motion change.
i suggest also to use it when u have a avg bitrate > 900 kbps else perhaps the foxer overflow redistribution could limit the size of lower frame and give a less detailled result.

++

gavo
19th July 2004, 10:56
Thank you that was a great explanation.

gavo
23rd July 2004, 02:56
althrough I do love your autoreal I would also like to try it in other encoders but when I just encode a 1 pass and put it in say helix it won't encode to second. same with ermp.:confused: Also just curious does your size really matter? Should I try to equal the bitrate of the size you put down?

Dark-Cracker
23rd July 2004, 08:31
hum i think ermp use the activeX which is not always updated, there is 2 solutions , first the activeX doesn't support external scaled pass file, or more surely when i write the new .pass file i skip the 4 commentary lines, perhaps it doesn't like this :) try to made a copy/paste of the commentary lines (start with the char : # ) in the new scaled .pass file and redo a test.

PS : think to post the result i will try to post a fixed version.

++

bond
23rd July 2004, 16:52
Dark-Cracker, can you plz add some nice "info display" functions, like it was done with the old xvid .stats files analyser tools? afaik there exists no tool being able to display infos about the first pass .pass file comparable to the tools existing for .stats till now

Dark-Cracker
23rd July 2004, 17:28
@bond

hum i think the java xvid statsviewer tool already disply all the interesting info for the .pass files :

http://forum.doom9.org/showthread.php?s=&threadid=67639

bugsan have made a really nice work :) , is it what u was asking or perhaps i have misunderstand your post, if it's the case, fell free to re-explain me :)

Bye.

RadicalEd
23rd July 2004, 20:17
The scaler works fine for me with ERMP.

bond
23rd July 2004, 21:00
Originally posted by Dark-Cracker
hum i think the java xvid statsviewer tool already disply all the interesting info for the .pass files :

http://forum.doom9.org/showthread.php?s=&threadid=67639

bugsan have made a really nice work :) , is it what u was asking or perhaps i have misunderstand your post, if it's the case, fell free to re-explain mecool thanks, somehow i missed it :)

Sirber
25th July 2004, 04:16
the java viewer is slow to start. is there an alternative?

gavo
3rd October 2004, 21:19
I still cant get the scaler to work in ermp. I almost giveing up. WHen i make just a 1 pass i get a null file?

iwod
3rd October 2004, 21:56
Originally posted by Sirber
the java viewer is slow to start. is there an alternative?

Install Java RE 5.0

E-Male
4th October 2004, 22:37
question:
to compare the result of normal 2pass to 2nd pass modified with this tool, can i just run a 2pass encode with ERMP, then tune the pass-file with the ACS and run an other 2nd pass (without another 1st one)?

thx e-male

Sirber
5th October 2004, 04:57
dunno. never tryed EMP. Sure thing, I'm gonn add this engine to RealAnime once it's sources are avalible :D

Dark-Cracker
5th October 2004, 09:23
hi,

@E-Male
if u want to made a compare i will give u the fastest way (u need to use my tool to do it but i think u can do it manually later if u want to use another tools).

- install AutoRV10
- open your sample , crop resize, 2 pass, and select the final size.
- in the codec panel click on "advanced settings" choose the "Linear Curve" to use the internal rv10 scaling.
- click on "Add job" in the output panel.
- return in the codec panel advanced and select "Alternative scaling" and click again on addjob.
- start the encode and once it finish u will have 2 file sample_Curve.log and sample_1_Curve.log will correspond at the scaling values.
- use this tool (http://forum.doom9.org/showthread.php?s=&threadid=82882) to open these 2 files and u will have a chart and the values for each frames in the excel worksheet.

PS : u can compare multiple file with this tool so u can made multiple tests with the different preset for the AltCC value.(i suggest to use to auto cal at medium and the agressivity on fast).

++

E-Male
22nd October 2004, 14:11
i have a suggestion for additional features
(if these would be better as a seperate program i'll make a new thread)

would it be possible to add relative and absolute changes to certain parts of the movie (like the zones in xvid)?

so i could for example say:
encode the titles at 50% of the bitrate
and/or
encode the credits at a constant very low bitrate
and ofcource give the saved space to the rest of the movie

each zone (if you wanna keep that name) would need a start frame, end frame and a percenatge ot bitrate
everything not in a zone would be "the rest"

i hope this will be possible
thx in advance
E-Male

Dark-Cracker
23rd October 2004, 18:36
hi,

yes this could be a nice feature but i have add a HD crash the previous week and i have lost the source of the scaler and the source of the curve analyzer using excel :( and i am actually trying to update the autorv10 tool (my previous backup was old of more than 3 weeks :( ).

i will try later to remade this tool. sorry.

++

E-Male
25th October 2004, 01:51
oh, damn, that's really bad luck

gavo
7th November 2004, 05:46
hey does the scaler also work well with the old rate control.

Dark-Cracker
7th November 2004, 14:34
@gavo
the old RC doesn't use the .pass file so the scaler can't work with the old RC.

++