[FFmpeg-trac] #984(avformat:new): avio_alloc_context and callback on write

FFmpeg trac at avcodec.org
Thu Apr 12 21:29:38 CEST 2012

#984: avio_alloc_context and callback on write
             Reporter:  mrdebug      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avformat
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |

Comment (by mrdebug):

 After a lot of time on studying FFmpeg I think there is something that
 not works correctly. In order to produce a file you can use avio_open or
 avio_open_dyn_buf functions. But these functions are used for obtain a
 There is another approach, a callback using avio_alloc_context function.
 me this approach is a lot important but does not works correctly!
 How you can try by using the attached source code you can obtain an avi
 correctly but if you try mp4 or webm the produced files can not be played
 vlc or other.
 With ogg the program goes to crash.
 Is my code wrong or is a problem of FFmpeg?

 See the C source for a quick check.

 I hope you can help me.

Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/984#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list