mpv/common
wm4 e7e06a47a0 demux: support for some kinds of timed metadata
This makes ICY title changes show up at approximately the correct time,
even if the demuxer buffer is huge. (It'll still be wrong if the stream
byte cache contains a meaningful amount of data.)

It should have the same effect for mid-stream metadata changes in e.g.
OGG (untested).

This is still somewhat fishy, but in parts due to ICY being fishy, and
FFmpeg's metadata change API being somewhat fishy. For example, what
happens if you seek? With FFmpeg AVFMT_EVENT_FLAG_METADATA_UPDATED and
AVSTREAM_EVENT_FLAG_METADATA_UPDATED we hope that FFmpeg will correctly
restore the correct metadata when the first packet is returned.

If you seke with ICY, we're out of luck, and some audio will be
associated with the wrong tag until we get a new title through ICY
metadata update at an essentially random point (it's mostly inherent to
ICY). Then the tags will switch back and forth, and this behavior will
stick with the data stored in the demuxer cache. Fortunately, this can
happen only if the HTTP stream is actually seekable, which it usually is
not for ICY things. Seeking doesn't even make sense with ICY, since you
can't know the exact metadata location. Basically ICY metsdata sucks.

Some complexity is due to a microoptimization: I didn't want additional
atomic accesses for each packet if no timed metadata is used. (It
probably doesn't matter at all.)
2018-04-18 01:17:42 +03:00
..
av_common.c av_common: cosmetic simplification to ffmpeg component iteration loops 2018-04-03 20:08:15 +03:00
av_common.h mp_image: replace rude function with less rude FFmpeg upstream function 2018-03-03 02:38:01 +02:00
av_log.c f_lavfi: use new libavfilter iteration API 2018-04-03 20:08:15 +03:00
av_log.h player: fatal error if linked and compiled FFmpeg versions mismatch 2016-07-01 20:56:59 +02:00
codecs.c codecs: remove unused family field 2018-02-01 10:21:55 +01:00
codecs.h codecs: remove unused family field 2018-02-01 10:21:55 +01:00
common.c video: rewrite filtering glue code 2018-01-30 03:10:27 -08:00
common.h audio: move to decoder wrapper 2018-01-30 03:10:27 -08:00
encode.h encode: implement --oset-metadata, and --oremove-metadata 2017-12-26 03:33:19 -07:00
encode_lavc.c Fix recent FFmpeg deprecations 2018-02-13 17:45:29 -08:00
encode_lavc.h encode_lavc: move from GPL 2+ to LGPL 2.1+. 2017-06-13 14:22:15 -04:00
global.h m_config: introduce basic mechanism to synchronize global option updates 2016-09-02 15:50:40 +02:00
msg.c msg: bump up log level of --log-file 2017-12-15 22:28:47 -08:00
msg.h msg.c/h: partially change license to LGPL 2017-05-05 06:53:23 +02:00
msg_control.h player: make sure version information is always included in --log-file 2017-05-22 18:31:39 +02:00
playlist.c
playlist.h
recorder.c Fix various typos in log messages 2017-12-03 21:24:18 +01:00
recorder.h player: add experimental stream recording feature 2017-02-07 17:05:17 +01:00
tags.c demux: support for some kinds of timed metadata 2018-04-18 01:17:42 +03:00
tags.h demux: support for some kinds of timed metadata 2018-04-18 01:17:42 +03:00
version.c build: move copyright statement to a shared location 2018-01-01 21:05:09 +00:00