1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 23:32:26 +00:00
mpv/demux
wm4 180944fe28 stream_lavf/demux_lavf: export/use HTTP MIME type
This is a fix for web radio streams that send raw AAC [1]. libavformat's
AAC demuxer probe is picky enough to request hundreds of KBs data, which
makes for a slow startup. To speed up stream startup, try use the HTTP
MIME type to identify the format. The webstream in question sends an AAC
specific MIME type, for which demux_lavf will force the AAC demuxer,
without probing anything.

ffmpeg/ffplay do the same thing. Note that as of ffmpeg commit 76d851b,
av_probe_input_buffer() does the mapping from MIME type to demuxer. The
actual mapping is not publicly accessible, and can only be used by
calling that function. This will hopefully be rectified, and ideally
ffmpeg would provide a function like find_demuxer_from_mime_type().

[1] http://lr2mp0.latvijasradio.lv:8000
2012-12-11 00:37:54 +01:00
..
asf.h
asfguid.h
asfheader.c
asfheader.h
aviheader.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
aviheader.h stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
aviprint.c
aviprint.h
demux_asf.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
demux_avi.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
demux_cue.c
demux_edl.c
demux_lavf.c stream_lavf/demux_lavf: export/use HTTP MIME type 2012-12-11 00:37:54 +01:00
demux_mf.c demux_mf: allow displaying single image files, various cleanups 2012-11-16 21:21:16 +01:00
demux_mkv.c audio: improve decoder open failure handling 2012-12-03 21:08:52 +01:00
demux_mng.c
demux_mpg.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
demux_packet.h stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
demux_rawaudio.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
demux_rawvideo.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
demux_ts.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
demux_ts.h
demux.c demux_lavf: make minimum probe score customizable, remove lavf_preferred 2012-12-11 00:37:54 +01:00
demux.h demux_lavf: make minimum probe score customizable, remove lavf_preferred 2012-12-11 00:37:54 +01:00
ebml.c
ebml.h
extension.c
matroska.h
mf.c demux_mf: allow displaying single image files, various cleanups 2012-11-16 21:21:16 +01:00
mf.h demux_mf: allow displaying single image files, various cleanups 2012-11-16 21:21:16 +01:00
mp3_hdr.c
mp3_hdr.h
mp_taglists.c
mp_taglists.h
mpeg_hdr.c
mpeg_hdr.h
ms_hdr.h
parse_es.c
parse_es.h
stheader.h
video.c demux_lavf: make minimum probe score customizable, remove lavf_preferred 2012-12-11 00:37:54 +01:00