[streaming] file-caching

Petar Bogdanovic p+netbsd at 2005.smokva.net
Wed Jun 14 02:57:09 CEST 2006


Hello,

I have a small problem related to the option '--file-caching'. It 
doesn't matter how high I set this value (in ms), I always just get N 
bytes in 10 seconds:

(...) debug: received first data for our buffer
(...) debug: pre-buffering done 360448 bytes in 10s - 32 kbytes/s

Please let me explain why I need some proper caching: In this case, vlc 
gets his input from stdin - generated by mencoder. Unfortunately, the 
mpeg-muxer of mencoder 'bursts' X Megabytes every few seconds and there 
is no way to change this behavior (at least some mplayer-devs told me 
that). It makes sense, that vlc can't handle this without using a cache.

To prove the use of a 'larger' cache, I did a small 'cacher' in c which 
'takes' this bursts and converts them into a 'fine-grained' stream. That 
worked much better than piping it directly to vlc, but its not accurate 
resp. the stream breaks not that often, but it still breaks. (The 
cache-handling of my 'cacher' simply depends on size. I never know how 
many seconds of the stream are located in the cache. That's why I think 
that this is the main reason, why my cacher doesn't really work.)

So, if somebody has more informations about '--file-caching', I would 
appreciate it, if he could share it.. :)


Thank you & with kind regards,

Petar Bogdanovic

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



More information about the streaming mailing list