• Martin Storsjö's avatar
    avio: Allow custom IO users to get labels for the output bytestream · db7968bf
    Martin Storsjö authored
    This allows callers with avio write callbacks to get the bytestream
    positions that correspond to keyframes, suitable for live streaming.
    
    In the simplest form, a caller could expect that a header is written
    to the bytestream during the avformat_write_header, and the data
    output to the avio context during e.g. av_write_frame corresponds
    exactly to the current packet passed in.
    
    When combined with av_interleaved_write_frame, and with muxers that
    do buffering (most muxers that do some sort of fragmenting or
    clustering), the mapping from input data to bytestream positions
    is nontrivial.
    
    This allows callers to get directly information about what part
    of the bytestream is what, without having to resort to assumptions
    about the muxer behaviour.
    
    One keyframe/fragment/block can still be split into multiple (if
    they are larger than the aviocontext buffer), which would call
    the callback with e.g. AVIO_DATA_MARKER_SYNC_POINT, followed by
    AVIO_DATA_MARKER_UNKNOWN for the second time it is called with
    the following data.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    db7968bf
Name
Last commit
Last update
..
doxy Loading commit data...
examples Loading commit data...
.gitignore Loading commit data...
APIchanges Loading commit data...
Doxyfile Loading commit data...
Makefile Loading commit data...
RELEASE_NOTES Loading commit data...
avconv.texi Loading commit data...
avplay.texi Loading commit data...
avprobe.texi Loading commit data...
avtools-common-opts.texi Loading commit data...
avutil.txt Loading commit data...
bitstream_filters.texi Loading commit data...
build_system.txt Loading commit data...
decoders.texi Loading commit data...
demuxers.texi Loading commit data...
developer.texi Loading commit data...
doxy-wrapper.sh Loading commit data...
encoders.texi Loading commit data...
eval.texi Loading commit data...
faq.texi Loading commit data...
fate.texi Loading commit data...
filters.texi Loading commit data...
general.texi Loading commit data...
git-howto.texi Loading commit data...
git-howto.txt Loading commit data...
indevs.texi Loading commit data...
libavfilter.texi Loading commit data...
metadata.texi Loading commit data...
multithreading.txt Loading commit data...
muxers.texi Loading commit data...
nut.texi Loading commit data...
optimization.txt Loading commit data...
outdevs.texi Loading commit data...
platform.texi Loading commit data...
print_options.c Loading commit data...
protocols.texi Loading commit data...
rate_distortion.txt Loading commit data...
soc.txt Loading commit data...
swscale.txt Loading commit data...
t2h.init Loading commit data...
tablegen.txt Loading commit data...
texi2pod.pl Loading commit data...
viterbi.txt Loading commit data...