[FFmpeg-trac] #8870(undetermined:new): How to use AVIO_FLAG_DIRECT

FFmpeg trac at avcodec.org
Thu Aug 27 13:00:45 EEST 2020

#8870: How to use AVIO_FLAG_DIRECT
             Reporter:  str          |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
 Summary of the bug:
 I want to reduce buffering overhead when using avio_open2/av_write_frame
 How to reproduce:
 avio_open2(formatContext->pb, "test.avi", AVIO_FLAG_WRITE |
 av_write_frame(formatContext, avPacket); //return -5 if avpack.size >
 I found that is due to line 241 in file.c where this value is set. In line
 425 in file avio.c is this value compared to input size and fails if size
 > 262144. Is there any way to workaround this?
 ffmpeg version
 built on 4.3.1

Ticket URL: <https://trac.ffmpeg.org/ticket/8870>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list