[vlc-devel] Re: How to integrate HW video decoder with high latency and output available in realtime?

Laurent Aimar fenrir at via.ecp.fr
Fri Jun 8 21:07:39 CEST 2007


On Fri, Jun 08, 2007, Michael wrote:
> I'm adding support for a hardware MPEG4-ASP,MPEG4-AVC,MPEG2,VC1 video 
> decoder to VLC. For the purposes of this email I am decoding a HiDef 
> MPEG4-ASP AVI movie (XVid with VBR audio), and my code is based on VLC 
> 0.8.6b running on Win32.
> 
> I've gotten fairly far along, I have the decoder running but have hit an 
> issue with how VLC handles the timestamping of video.
> 
> The problem I have is that none of the frames from my decoder get 
> displayed, because by the time the video renderer gets them they are too 
> late.
> 
> The hardware decoding process delays everything by about 800ms, but VLC 
> maps the timestamps from AVI to the system clock _before_ they are 
> passed to the decoder. So by the time packets have traversed the 
> hardware it's all too late, and the DTS on the p_block is in the past.
> 
> Any suggestions on the best way to handle this?
 If you are decoding from a file try using --file-caching 1000 (800+something
not too small)

-- 
fenrir

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list