1. 08 Jul, 2016 1 commit
    • Martin Storsjö's avatar
      movenc: Add an option for skipping writing the mfra/tfra/mfro trailer · 4f7723cb
      Martin Storsjö authored
      When writing a fragmented file, we by default write an index pointing
      to all the fragments at the end of the file. This causes constantly
      increasing memory usage during the muxing. For live streams, the
      index might not be useful at all.
      
      A similar fragment index is written (but at the start of the file) if
      the global_sidx flag is set. If ism_lookahead is set, we need to keep
      data about the last ism_lookahead+1 fragments.
      
      If no fragment index is to be written, we don't need to store information
      about all fragments, avoiding increasing the memory consumption
      linearly with the muxing runtime.
      
      This fixes out of memory situations with long live mp4 streams.
      Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
      4f7723cb
  2. 28 Jun, 2016 1 commit
  3. 19 May, 2016 3 commits
  4. 18 May, 2016 3 commits
  5. 05 May, 2016 1 commit
  6. 04 May, 2016 1 commit
  7. 03 May, 2016 1 commit
  8. 21 Apr, 2016 1 commit
  9. 19 Apr, 2016 1 commit
  10. 23 Feb, 2016 1 commit
    • Anton Khirnov's avatar
      lavf: replace AVStream.codec with AVStream.codecpar · 9200514a
      Anton Khirnov authored
      Currently, AVStream contains an embedded AVCodecContext instance, which
      is used by demuxers to export stream parameters to the caller and by
      muxers to receive stream parameters from the caller. It is also used
      internally as the codec context that is passed to parsers.
      
      In addition, it is also widely used by the callers as the decoding (when
      demuxer) or encoding (when muxing) context, though this has been
      officially discouraged since Libav 11.
      
      There are multiple important problems with this approach:
          - the fields in AVCodecContext are in general one of
              * stream parameters
              * codec options
              * codec state
            However, it's not clear which ones are which. It is consequently
            unclear which fields are a demuxer allowed to set or a muxer allowed to
            read. This leads to erratic behaviour depending on whether decoding or
            encoding is being performed or not (and whether it uses the AVStream
            embedded codec context).
          - various synchronization issues arising from the fact that the same
            context is used by several different APIs (muxers/demuxers,
            parsers, bitstream filters and encoders/decoders) simultaneously, with
            there being no clear rules for who can modify what and the different
            processes being typically delayed with respect to each other.
          - avformat_find_stream_info() making it necessary to support opening
            and closing a single codec context multiple times, thus
            complicating the semantics of freeing various allocated objects in the
            codec context.
      
      Those problems are resolved by replacing the AVStream embedded codec
      context with a newly added AVCodecParameters instance, which stores only
      the stream parameters exported by the demuxers or read by the muxers.
      9200514a
  11. 24 Jan, 2016 1 commit
    • Anton Khirnov's avatar
      lavf: allow custom IO for all files · 9f61abc8
      Anton Khirnov authored
      Some (de)muxers open additional files beyond the main IO context.
      Currently, they call avio_open() directly, which prevents the caller
      from using custom IO for such streams.
      
      This commit adds callbacks to AVFormatContext that default to
      avio_open2()/avio_close(), but can be overridden by the caller. All
      muxers and demuxers using AVIO are switched to using those callbacks
      instead of calling avio_open()/avio_close() directly.
      
      (de)muxers that use the URLProtocol layer directly instead of AVIO
      remain unconverted for now. This should be fixed in later commits.
      9f61abc8
  12. 06 Dec, 2015 1 commit
  13. 18 Nov, 2015 1 commit
    • John Stebbins's avatar
      movenc: add fallback audio track tref support · ca489564
      John Stebbins authored
      This feature allows making associations between audio tracks
      that apple players recognize.  E.g. when an ac3 track has a
      tref that points to an aac track, devices that don't support
      ac3 will automatically fall back to the aac track.
      
      Apple used to *guess* these associations, but new products
      (AppleTV 4) no longer guess and this association can only
      be made explicitly now using the "fall" tref.
      Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
      ca489564
  14. 11 Nov, 2015 2 commits
  15. 10 Nov, 2015 1 commit
  16. 23 Oct, 2015 1 commit
  17. 12 Aug, 2015 1 commit
    • Martin Storsjö's avatar
      movenc: Add a new flag for writing global sidx indexes for dash · 26ac22e5
      Martin Storsjö authored
      The double meaning of the faststart flag (moving a moov atom
      to the start of files, making them streamable, for non-fragmented
      files, vs inserting a global sidx index at the start of files
      for fragmented files) is confusing - see 40ed1cbf for
      explanation of its origins.
      
      Since the second meaning of the flag hasn't been part of any
      libav release yet, just rename it to get rid of the confusion
      without any extra deprecation (which wouldn't get rid of the
      potential confusion, of users adding -movflags faststart
      even for fragmented files, where it isn't needed for making
      them "streamable").
      
      This gets back the old behaviour, where -movflags faststart
      doesn't have any effect for fragmented files.
      Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
      26ac22e5
  18. 10 Aug, 2015 3 commits
  19. 27 Jul, 2015 1 commit
  20. 30 Jun, 2015 1 commit
  21. 10 Jun, 2015 1 commit
  22. 23 Mar, 2015 1 commit
  23. 19 Mar, 2015 7 commits
  24. 16 Mar, 2015 2 commits
  25. 10 Mar, 2015 2 commits