Log in

View Full Version : D2SRoBa Maximum Average Bitrate


Kivan
7th January 2004, 05:16
I'm getting strange behavior with D2SRoBa's bitrate calculation.Here is what i mean

#1

D2SRoBa v3.0.0
- Author: Tylo
- System: WIN_XP, AutoIt: 3.0.74.0
- 2003-12-21 07:20:43
Settings:
- Output type : SVCD
- CD size : 800
- Number of CD's : ?
- Sample percent : 2.0
- Auto Q. (worst) : 40
- Maximum Q. : 50
- Adjust Q : 0.6
- Sizing pass : on=1 (-3.0 .. 1.0)%
- Audio after video : on=1 (% of video, 10%, min 224 kbps)
- Adjust max br : on=1 (total 2754 kbps)
- Batch prepare : on=0
- Crash recover : No
- Waiting for CCE window ...
- Detected a CCE encode window
- Detected the CCE main movie encode window... trying to kill it.
- Finished shutdown of CCE and D2S
- Movie length : 02:04:53 (179664 frames, 23.976 fps)
- D2S audio setting : (224 + 0) kbps
- D2S video estim. : 1513 kbps, 2 CDs
- Select Ranges : every 750, select 15 frames
- Sample frames : 3600
Calculations:
- 1 CD: video_br=637 (637) audio1_br=224 video_sz=596669419. fill=100.0% cbr=0
- 2 CD: video_br=1513 (1513) audio1_br=224 video_sz=1417206957. fill=100.0% cbr=0
- 3 CD: video_br=2390 (2390) audio1_br=224 video_sz=2238681181. fill=100.0% cbr=1

Computing target number of CDs:
- Using max bitrate=2530 for auto sample (adjusted for 1 CDs)
- Estim. mpv BR : 1267 (Q=50, err=?%, size=1187310542., sample sz=23790620.)
- Number of CDs : 2
- Target mpv BR : 1513 (max 2530) kbps, size=1417206957. bytes
Search for Q:
- Estim. mpv BR : 1463 (Q=41, err=-3.3%, size=1371217607., sample sz=27475640.)
- Estim. mpv BR : 1488 (Q=40, err=-1.7%, size=1394542386., sample sz=27943008.)
- Estim. mpv BR : 1513 (Q=39, err=0.0%, size=1417592878., sample sz=28404880.)
- Determined Q : 38 = round(39 - 0.6 + (0.0)/1.7)
- Number of CDs : 3
- Target mpv BR : 2390 (max 2530) kbps, size=2238681181. bytes

- Selected num CDs : 3 (Q=1)
- Using CBR mode
- Encoding Movie
- 2003-12-21 07:35:21
- Actual mpv file size:
12/21/2003 08:29 AM 2238678888 Encoded_Video_CCE_NTSC.mpv
- OPV pass result: CCE 2.50 speed: 2.32
- Executing: C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe -core( -input "D:\Ripping\The Man With The Golden Gun\Extracted_audio_1.ac3" -output "D:\Ripping\THEMAN~1\Encoded_audio_1.mp2" -logfile "D:\Ripping\THEMAN~1\Encoded_audio_1.log" ) -azid( -L -3db -l 0db -c normal -s surround -g max ) -ota( -d 4 ) -2lame( -e -b 224 -m s )

- Recover:
- 2003-12-21 08:36:14

#2

D2SRoBa v3.0.0
- Author: Tylo
- System: WIN_XP, AutoIt: 3.0.74.0
- 2003-12-05 11:43:20
Settings:
- Output type : SVCD
- CD size : 800
- Number of CD's : auto
- Sample percent : 2.0
- Auto Q. (worst) : 35
- Maximum Q. : 40
- Adjust Q : 0.6
- Sizing pass : on=1 (-2.0 .. 0.0)%
- Audio after video : on=1 (% of video, 10%, min 224 kbps)
- Adjust max br : on=1 (total 2754 kbps)
- Batch prepare : on=0
- Crash recover : Yes
- Waiting for CCE window ...
- Detected a CCE encode window
- Detected a CCE encode window
- Detected the CCE main movie encode window... trying to kill it.
- Finished shutdown of CCE and D2S
- Movie length : 02:06:30 (181991 frames, 23.976 fps)
- D2S audio setting : (224 + 0) kbps
- D2S video estim. : 1486 kbps, 2 CDs
- Select Ranges : every 750, select 15 frames
- Sample frames : 3645
Calculations:
- 1 CD: video_br=623 (623) audio1_br=224 video_sz=591113994. fill=100.0% cbr=0
- 2 CD: video_br=1486 (1486) audio1_br=224 video_sz=1409944455. fill=100.0% cbr=0
- 3 CD: video_br=2230 (2349) audio1_br=224 video_sz=2115865501. fill=95.4% cbr=0
Computing target number of CDs:
- Using max bitrate=2530 for auto sample (adjusted for 2 CDs)
- Estim. mpv BR : 1627 (Q=35, err=?%, size=1543784367., sample sz=30919628.)
- Number of CDs : 3
- Target mpv BR : 2230 (max 2530) kbps, size=2115865501. bytes
Search for Q:
- Estim. mpv BR : 2233 (Q=20, err=0.1%, size=2119024716., sample sz=42440808.)
- Determined Q : 19 = round(20 - 0.6 + (0.1)/1.8)
- Reduced CD size : 765 (fill = 95.4%)
- Encoding Movie
- 2003-12-05 11:53:30
- Actual mpv file size:
12/05/2003 02:49 PM 2109790012 Encoded_Video_CCE_NTSC.mpv
- OPV pass result: 99.7% on target ( 2109790012 / 2115865501.) CCE 2.50 speed: 0.72
- Executing: F:\Temp\DVD2SVCD\BeSweet\BeSweet.exe -core( -input "F:\Temp\DVD2SVCD\Movie\Extracted_audio_1.ac3" -output "F:\Temp\DVD2SVCD\Movie\Encoded_audio_1.mp2" -logfile "F:\Temp\DVD2SVCD\Movie\Encoded_audio_1.log" ) -azid( -L -3db -C 0db -S 0db -c normal -s surround -g max ) -ota( -d -83 ) -2lame( -e -b 224 -m s )

- Recover:
- 2003-12-05 15:11:34

The thing i don't get is why in example #1 cbr was used to fill the CDs 100% at 2390 bitrate and not the same for example #2.As the log shows example #2 uses opv filling the CD's at 95.4% and doesn't provide the 2349 bitrate that would fill the CD's to the brink.It instead stops at 2230 bitrate thus the unfilled CD's.Anyone understand why D2SRoBa behaves in this manner?

r6d2
7th January 2004, 17:06
Originally posted by Kivan
The thing i don't get is why in example #1 cbr was used to fill the CDs 100% at 2390 bitrate and not the same for example #2.As the log shows example #2 uses opv filling the CD's at 95.4% and doesn't provide the 2349 bitrate that would fill the CD's to the brink.It instead stops at 2230 bitrate thus the unfilled CD's.Anyone understand why D2SRoBa behaves in this manner?
When switching to CBR more, that can happen. D2Sroba does it to have equally sized media images as a result.

The "Max Avg offset" determines when to do this.

(I just noticed I should add this explanation to the FAQ) :thanks:

Also, I seem to recall some issues with that version of D2Sroba regarding "?" mode and BR calculation. Please get the latest version and try again.

When in "?" mode, you may look at the corresponding samples in the video folder so choose how many media you prefer. Sometimes CBR is really not needed. You are using a high Worst Q (50), so as you don't look quality oriented you may not be willing to go CBR, ultimately fastest and highest quality mode (at the expense of size).

Kivan
9th January 2004, 08:53
Originally posted by r6d2
[B]
The "Max Avg offset" determines when to do this.




Not sure i fully understand this setting.Considering a setting of 300 was used what should i change it to in order to get 2349 bitrate in example #2.

r6d2
9th January 2004, 12:29
:readfaq: Q6 of Part II is the answer to your question.

Kivan
10th January 2004, 04:19
Originally posted by r6d2
:readfaq: Q6 of Part II is the answer to your question.

I did and still don't understand:( .Mathematically it doesn't add up cause total bitrate 2754 - 300(max average offset)=2454.So from what i understand i should not have got cbr in either example.I just want to know how to fill the CDs for example #2.

Thanks on the help:)

r6d2
10th January 2004, 05:00
2754 = Audio + Video, you have to do this math:

2754 - 224 - 300 = 2230 < 2349

But I insist. If you want that much high BR, you actually don't need D2Sroba, user pure CBR in DVD2SVCD.

Also, if you want filled CDs with CBR, that will not always happen with DVD2SVCD because of the CCE limitation quoted in the FAQ. (And you'll get a last image too short.)

Kivan
10th January 2004, 08:31
Max avg offset: If the video BR(#1 2390/#2 2349) for your movie is greater than the maximum(2754-224 for audio) allowed less this offset(300), the plugin will switch to CBR, using only 1 pass in all cases.

So we have the following calculations:

#1 2754-224-300=2230 < 2390
#2 2754-224-300=2230 < 2349

For #1 everything went well as the log shows
- 3 CD: video_br=2390 (2390) audio1_br=224 video_sz=2238681181. fill=100.0% cbr=1

For #2 things went awry as the log clearly shows
- 3 CD: video_br=2230 (2349) audio1_br=224 video_sz=2115865501. fill=95.4% cbr=0

For #2 it was supposed to switch to CBR at 2349 since 2349 > 2230.Why did it not switch to CBR that's what I still don't get:confused:

r6d2
10th January 2004, 14:40
@Kivan,

Did you try the last version as I suggested?

Also, remember in log #1 you were using "?" mode, so it seems you made the choice for CBR, not the plugin.

Kivan
11th January 2004, 00:05
Originally posted by r6d2
@Kivan,

Did you try the last version as I suggested?


Yes i downloaded and installled D2SRoBa 3.1.2. although did not get the chance to try it yet.I'm having big time troubles getting subtitles to work on a double sided DVD rip with the import external subtitle streams feature of DVD2SVCD.

Originally posted by r6d2
@Also, remember in log #1 you were using "?" mode, so it seems you made the choice for CBR, not the plugin.

Indeed for #1 I made the choice for 3CDs based on the D2SRoBa's calculations.If it's "?" mode that's gonna let me do CBR to fill the CDs at 2231-2530 bitrate than i guess i'll be using it all the time.From my understanding the max average offset feature is only taken into account when OPV is used.It doesn't seem to affect CBR bitrate calculation.

r6d2
11th January 2004, 00:29
Well, as I said before, simplify your life. ;) You don't need D2Sroba if CBR is what you prefer.

Kivan
12th January 2004, 06:39
Originally posted by r6d2
You don't need D2Sroba if CBR is what you prefer.

It's not that I prefer CBR, I just want my CDs filled up,something D2SRoBa refuses to do sometimes for reasons i still don't get.I'll post back if it does it with release 3.1.2

r6d2
12th January 2004, 13:55
Well, I've said this before but I'll repeat is once more. At close to top SVCD BRs, sometimes disks just cannot be filled. That's why D2Sroba reports the % filled.

You will always get filled disks with OPV (+VBR) setting the appropriate thrsholds. Actually, it is very unsusual a movie go above 1 CD per hour, so most movies fit in 2 CDs quite well.