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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th March 2010, 18:08   #201  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Quote:
Originally Posted by mp3dom View Post
I'll investigate tonight, but I had a buffer underflow in Scenarist today in a clip of 3 mins (it stops after 6 seconds of mux) with an avg bitrate of 25 Mbps (which is quite 'standard') and only one audio (DD at 640Kbps). It could be the vbv-bufsize set to 30.000 so tonight I'll try with a more conservative value.
What exact settings you use for buffer and max rate? I discovered in past (on earlier HRD patches aslo) that if use buffer different that max rate, scenarist discover potential buffer uder/overflow and stop muxing. I found if i set VBV 30000/30000 or 15000/15000 or anything same for buffer and maxrate scenarist mux flawlessy. IIRC CBP removal delay should be always 0.9, i don't know is that same as x264 VBV-Int option, which i try to adjust, to achieve that delay, but without success, i even get VBV errors durring encode . I read somewhere in scenarist documentation that delay should be always near 0.9. Other encoders (Cinevision, MC, Elecard) keep that on 0.7-1.0 nevemind i set for buffer/maxrate, while with x264 can be anything, for example if i set 30000/40000 it will be around 0.5-0.6, if buffer is higer will be over 1.0 and around 1.80

Last edited by shon3i; 5th March 2010 at 18:14.
shon3i is offline   Reply With Quote
Old 5th March 2010, 21:05   #202  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,136
I have used 30.000 for vbv-bufsize and 40.000 for vbv-maxrate which, if I'm not mistaken, are also the standard values. I haven't tried the CBP delay, nice suggestion, I'm trying it!
mp3dom is offline   Reply With Quote
Old 5th March 2010, 21:40   #203  |  Link
kieranrk
Registered User
 
Join Date: Jun 2009
Location: London, United Kingdom
Posts: 707
Can you upload the encoded clip somewhere (or send it to me privately) so I can see if it's a real buffer underflow or Scenarist being wrong.
kieranrk is offline   Reply With Quote
Old 5th March 2010, 22:13   #204  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,136
You have a PM.
mp3dom is offline   Reply With Quote
Old 5th March 2010, 23:18   #205  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Quote:
Originally Posted by mp3dom
I have used 30.000 for vbv-bufsize and 40.000 for vbv-maxrate which, if I'm not mistaken, are also the standard values.
Exactly, but removal delay will be 0.6 in that case which is maybe not recommended.

Quote:
Originally Posted by kieranrk
Can you upload the encoded clip somewhere (or send it to me privately) so I can see if it's a real buffer underflow or Scenarist being wrong.
You not find any underflows in stream itself, its problem in VBV delay that must be some constant value. I will post some examples, of different encoders
shon3i is offline   Reply With Quote
Old 5th March 2010, 23:24   #206  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,136
Anyway it's kinda strange that I've encoded full Elephants Dream with even higher settings (same vbv_bufsize/vbv_maxrate but avg bitrate raised from 25Mbps to 30Mbps) without any problem (and it's a 10min clip where the clip that fail to mux is only 3 minutes and scenarist fail after 2 seconds!)
mp3dom is offline   Reply With Quote
Old 5th March 2010, 23:40   #207  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Quote:
Originally Posted by mp3dom View Post
Anyway it's kinda strange that I've encoded full Elephants Dream with even higher settings (same vbv_bufsize/vbv_maxrate but avg bitrate raised from 25Mbps to 30Mbps) without any problem (and it's a 10min clip where the clip that fail to mux is only 3 minutes and scenarist fail after 2 seconds!)
What exactly settings? you use?
shon3i is offline   Reply With Quote
Old 5th March 2010, 23:53   #208  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,136
keyint at 24, min keyint at 2, bpyramid, 4 reference, 3 bframes, 4 slices, 30 mbps of bitrate, aq 1, all partitions, weight prediction at 2 and so trellis
mp3dom is offline   Reply With Quote
Old 6th March 2010, 00:01   #209  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
I mean VBV
shon3i is offline   Reply With Quote
Old 6th March 2010, 00:02   #210  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,136
Ah, sorry ^^; I'm using always 40K and 30K for maxrate and buffersize respectively.
mp3dom is offline   Reply With Quote
Old 6th March 2010, 00:07   #211  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Quote:
Originally Posted by mp3dom View Post
Ah, sorry ^^; I'm using always 40K and 30K for maxrate and buffersize respectively.
Can you try with 30K for both max rate and buffer, you will not loose any quality anyway. Just for test. Because CBP removal will be then 0.9
shon3i is offline   Reply With Quote
Old 6th March 2010, 01:09   #212  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,136
Tested with both vbv values at 30K and Scenarist always throws a buffer underflow...
mp3dom is offline   Reply With Quote
Old 6th March 2010, 09:04   #213  |  Link
kieranrk
Registered User
 
Join Date: Jun 2009
Location: London, United Kingdom
Posts: 707
Well the file you sent me is valid. The H.264 spec only specifies a cap for the initial_cbp_removal_delay in VBR mode.
kieranrk is offline   Reply With Quote
Old 6th March 2010, 15:45   #214  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,136
So is Scenarist wrong or there's really a underflow? It complains at about 2 secs.
mp3dom is offline   Reply With Quote
Old 6th March 2010, 16:52   #215  |  Link
kieranrk
Registered User
 
Join Date: Jun 2009
Location: London, United Kingdom
Posts: 707
Quote:
Originally Posted by mp3dom View Post
So is Scenarist wrong or there's really a underflow? It complains at about 2 secs.
There's definitely no underflow.
kieranrk is offline   Reply With Quote
Old 6th March 2010, 17:06   #216  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,136
From a certain point of view I'm glad, from the other I'm a bit sad because I can't find a way to let Scenarist accept that footage encoded with x264. Anyway, thank you very much for the patience
mp3dom is offline   Reply With Quote
Old 6th March 2010, 17:18   #217  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
mp3dom can you send me source and encoded clip, for testing on PM?
shon3i is offline   Reply With Quote
Old 6th March 2010, 20:25   #218  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,136
The original clip is too huge for my adsl line (we are speaking of 2.7GiB of a YV12 video already compressed in lossless way, also is a working project so I can not redistribute it). I can send the portion that I've already sent to kieranrk and it's about 5 sec of video but I doubt that it's possible to reproduce the underflow (or the problem) with few seconds...
mp3dom is offline   Reply With Quote
Old 6th March 2010, 21:22   #219  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Ok, can send then 5 sec of source and encoded video which fail to mux?
shon3i is offline   Reply With Quote
Old 6th March 2010, 22:01   #220  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Btw i found rule about VBV Buffer in Cinevision manual.

Quote:
Bitrate buffer specifies the size of the virtual buffer verifier in bytes or bits. This value
should be adjusted to bitrate (Constant Bitrate) or to maximum bitrate (Variable Bitrate), to
avoid DTS/PTS underflows during muxing.
So if stream itself not contain any underflow, scenarist can detect possible underflow that not exist, but can result incorrect playback on SAP.
shon3i is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:22.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.