[vlc-devel] [PATCH] TS demux: get time and length

Naohiro KORIYAMA nkoriyama at gmail.com
Mon Sep 26 11:00:19 CEST 2011

2011/9/25 Laurent Aimar <fenrir at elivagar.org>:
>  Otherwise, IMO a good enough solution would be to detect such files and
> simply revert to the seek-per-per-percent method. Detecting such files
> with a good enough accuracy without being too slow could be done by simply
> getting a few PCR throughout the file by reusing you SeekToPcr() in the Open()
> function (for example, for every 10%), and checking if they behave correctly.

It is a good idea, and I can easily implement it.

> An improvment could be to use this coarse PCR tables to improve the Seek()
> function (but that can be added later, no need to make things to complicated
> in the first patch). It could also be used to support the issue (2) if we
> suppose that they aren't too much PCR wraps (again, later).

Yes, Seek() funciton can be improved.

By the way, currently I have a building environment on Mac OSX only,
and have a problem with my patch.
When I play MPEG-TS file on DLNA, I have no problem with playing and seeking.
But when I play the same file on local disks or NAS, too many stream
buffering occurs and playback stops so often.
What is the difference playing file through DLNA (module acess_http)
and local disk(module filesystem)?

I wonder if the issue is only on my Mac or not.

Best Regards,

nkoriyama at gmail.com

More information about the vlc-devel mailing list