1. 29 Jul, 2012 4 commits
    • Anton Khirnov's avatar
      lavf: deprecate r_frame_rate. · aba232cf
      Anton Khirnov authored
      According to its description, it is supposed to be the LCM of all the
      frame durations. The usability of such a thing is vanishingly small,
      especially since we cannot determine it with any amount of reliability.
      Therefore get rid of it after the next bump.
      
      Replace it with the average framerate where it makes sense.
      
      FATE results for the wtv and xmv demux tests change. In the wtv case
      this is caused by the file being corrupted (or possibly badly cut) and
      containing invalid timestamps. This results in lavf estimating the
      framerate wrong and making up wrong frame durations.
      In the xmv case the file contains pts jumps, so again the estimated
      framerate is far from anything sane and lavf again makes up different
      frame durations.
      
      In some other tests lavf starts making up frame durations from different
      frame.
      aba232cf
    • Anton Khirnov's avatar
      f66eeff1
    • Anton Khirnov's avatar
      lavf: use dts difference instead of AVPacket.duration in find_stream_info() · fe1c1198
      Anton Khirnov authored
      AVPacket.duration is mostly made up and thus completely useless, this is
      especially true for video streams.
      Therefore use dts difference for framerate estimation and
      the max_analyze_duration check.
      
      The asyncts test now needs -analyzeduration, because the default is 5
      seconds and the audio stream in the sample appears at ~10 seconds.
      fe1c1198
    • Luca Barbato's avatar
      avf: introduce nobuffer option · 681ed000
      Luca Barbato authored
      Useful in cases where a significant analyzeduration is
      still needed, while minimizing buffering before output.
      
      An example is processing low-latency streams where all
      media types won't necessarily come in if the
      analyzeduration is small.
      
      Additional changes by Josh Allmann <joshua.allmann@gmail.com>
      Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
      681ed000
  2. 28 Jul, 2012 36 commits