[FFmpeg-trac] #2059(avformat:new): There is no way to define a protocol outside of ffmpeg

FFmpeg trac at avcodec.org
Mon Dec 24 16:16:15 CET 2012


#2059: There is no way to define a protocol outside of ffmpeg
------------------------------------+------------------------------------
             Reporter:  mustrumr    |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by reimar):

 That file will no longer be installed.
 I think we are generally open to adding it back (that change originated
 from Libav), but you might consider just using avio_alloc_context and use
 that to set the pb field of the AVFormatContext.
 See e.g. MPlayer's demux_lavf.c. It should result in simpler code than
 providing your own protocol.
 Of course it's not impossible that you have some other use case where this
 is not a possible workaround?
 Another example for its usage is in MPlayer's stream/stream_ffmpeg.c, but
 that is the case when you want to use FFmpeg's protocols, not when you
 want to write your own protocols, so it might not be interesting (but it
 demonstrates one way to use AVIO_FLAG_DIRECT, which avoids issues due to
 the buffering that using the new API forces onto you).

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2059#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list