[DVDnav-discuss] dvdnav patches from handbrake project

Alexander Roalter alex at roalter.it
Sat May 29 18:07:10 CEST 2010


On 05/29/2010 01:13 PM, Alexander Roalter wrote:
> On 05/29/2010 02:52 AM, John Stebbins wrote:
>>
>> * nav-forward-seek.patch
>> This patch guarantees that a request to seek forward always results in
>> the new position being moved forward.
>> libdvdnav has a problem in that it is difficult to gracefully recover
>> from a read error and continue on to subsequent blocks on the disc.  An
>> application would like to seek forward past the current block after
>> getting a read error in order to attempt to get past the bad block(s).
>> But dvdnav_sector_search() does not guarantee that a requested forward
>> seek will actually move the current position forward.  It truncates down
>> to the nearest VOBU which will almost always cause a forward seek
>> request by a single block (or a small number of blocks) to move the
>> current position backward.  This behaviour puts the application into a
>> loop of: read failure, attempted forward seek (which results in backward
>> seek), read failure ...
>>
> 
> I have found this behavior to be a major nuisance, seeking forward on
> certain positions always seeks nearer and nearer to a specific position
> in a certain chapter, there's no way of seeking beyond this position
> with the 10-seconds skip, skipping by a minute mostly works (but at
> times also not) and 10 minutes forward is simply too much.
> 
> 
> Just a question in the mean time: did someone else experience audio
> playback glitches on chapter breaks with dvdnav? This seems to have gone
> with current SVN.
I was wrong, it is still there...

in the console, the output is the following at a jerky chapter break:

A:2218.6 V:2218.6 A-V:  0.018 ct: 93.659 2318/2318 263%  4% 84.0% 0 0
[ac3 @ 0xd97660]incomplete frame: 99.218 5655/5655 114%  2% 36.6% 0 0
[ac3 @ 0xd97660]frame sync errort: 99.222   0/  0 ??% ??% ??,?% 0 0
A:2402.5 V:2402.5 A-V:  0.012 ct:101.396 1259/1259 527%  9% 168.1% 0 0


-- 
Cheers,
Alex


More information about the DVDnav-discuss mailing list