Log in

View Full Version : RV9 - Error using calcPSNR


FastMike
29th September 2003, 20:13
Hi guys,

I am having problem with the calcPSNR feature in RV9 producer Milestone 6 (included in HPG 1.1.2). I add the necessary line as people have posted before, and then producer says it cannot open or find the audience file.

-----------------------------
<codecProperties type="bag">
...
<calcPSNR type="bool">true</calcPSNR>
...
</codecProperties>
--------------------------------

All I am doing is inserting this one line in the video portion of the audience file, is there something I am doing wrong? Once I remove the calcPSNR line, everything works.

Thanks for any help, I am trying to do some tests with some standard sequences.

Sirber
29th September 2003, 20:16
is it working if you remove the line?

FastMike
29th September 2003, 20:20
Ooops, I forgot to mention that. Once I remove the calcPSNR line, the encoding starts with no errors.

karl_lillevold
29th September 2003, 21:45
You need to insert these 3 lines

<codecProperties type="bag">
<calcPSNR type="bool">true</calcPSNR>
</codecProperties>

unless there already is a codecProperties section. Then you just add the one line with calcPSNR inside this section. The dots were meant to indicate other codecProperties used. These should not be included.
If you still can not get it to work, perhaps you can post your audience file, so we can figure out what the error is.

karl_lillevold
29th September 2003, 21:48
here is a complete example:

<?xml version="1.0"?>
<audience>
<avgBitrate type="uint">1043000</avgBitrate>
<maxBitrate type="uint">2400000</maxBitrate>
<streams>
<videoStream>
<codecProperties type="bag">
<calcPSNR type="bool">true</calcPSNR>
</codecProperties>
<pluginName type="string">rn-videocodec-realvideo</pluginName>
<codecName type="string">rv9</codecName>
<encodingType type="string">vbrBitrate</encodingType>
<quality type="uint">92</quality>
<maxStartupLatency type="double">25</maxStartupLatency>
<maxFrameRate type="double">30</maxFrameRate>
<maxKeyFrameInterval type="double">10</maxKeyFrameInterval>
<enableLossProtection type="bool">false</enableLossProtection>
</videoStream>
</streams>
</audience>

karl_lillevold
29th September 2003, 21:51
finally, here is the registry method to enable calcPSNR, in case it is inconvenient to edit the audience file:
http://www.lillevold.com/files/calcPSNR.reg


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\RealNetworks\RV9]
"calcPSNR"=dword:00000001

FastMike
30th September 2003, 03:23
Thanks guys for the fast reply! Got it working now.

I will post my results for some sequences using RV9, WM9, DIVX 5.1, and some H.264 as soon as I have them.

Sirber
30th September 2003, 18:11
nice :D