Changes between Version 4 and Version 5 of DirectShow


Ignore:
Timestamp:
Dec 19, 2012, 12:01:13 AM (4 years ago)
Author:
rogerdpack
Comment:

note buffering behavior

Legend:

Unmodified
Added
Removed
Modified
  • DirectShow

    v4 v5  
    6767See [http://ffmpeg.org/ffmpeg.html#dshow here] for a list of more dshow options you can specify, for instance you can decrease latency on audio devices, specify a video by "index" if 2 have the same name displayed, etc. 
    6868 
     69== Buffering == 
     70 
     71By default FFmpeg captures frames from the input, and then (does whatever you told it to do, for instance, re-encoding them and saving them to an output file).  By default if it receives a frame "too early" (while the previous frame isn't finished yet), it will discard that frame, so that it can keep up the the real time input.  You can adjust this by setting the "-rtbufsize" parameter, though note that if your encoding process can't keep up, eventually you'll still start losing frames just the same (and using it at all can introduce a bit of latency).  It may be helpful to still specify some buffer, however, otherwise frames may be needlessly dropped. 
     72 
     73See [[StreamingGuide]] for some tips on tweaking encoding (sections latency and cpu usage).  For instance, you could save it to a very fast codec, then re-encode it later. 
     74 
    6975== !TroubleShooting == 
    7076