Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have this MJPEG stream. When I open it with VLC or with Chrome, it works perfectly, and in both cases the stream starts instantly (or atleast within one second). However, with MPlayer, I get this message about 1000 times: Cache not filling, consider increasing -cache and/or -cache-min! ... and then, years later, I might get a stream.

With OpenCV and its captureFromFile, it times out on the analyze duration, but then I get an erratic and lagged stream.

What makes VLC and Chrome succeed here, while MPlayer and OpenCV fail horribly? I tried running VLC with -v, but there is no telling what it does from that.

share|improve this question
    
Different CODECs? –  Ƭᴇcʜιᴇ007 Apr 3 '13 at 19:39

2 Answers 2

VLC has all the CODEC embeded and does not share them with the OS. MPlayer and others rely on CODEC that the OS has.

share|improve this answer
    
Is there a way of outputting whta CODEC VLC uses? –  Christian Jonassen Apr 3 '13 at 23:38
    
I found it, but MPlayer gets the cache failure (and the long startup delay) no matter what settings I use. –  Christian Jonassen Apr 3 '13 at 23:55
    
@cybernard: What about Chrome? –  Karan Apr 4 '13 at 14:48

Try to increase the cache value -cache=4096 for example... also try to inrease the -cache-min=80 (increase by 80%)

share|improve this answer
1  
Can you explain why this is a solution. –  ChrisF Sep 22 '13 at 11:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.