0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/stream
wm4 4d016a92c8 core: redo how codecs are mapped, remove codecs.conf
Use codec names instead of FourCCs to identify codecs. Rewrite how
codecs are selected and initialized. Now each decoder exports a list
of decoders (and the codec it supports) via add_decoders(). The order
matters, and the first decoder for a given decoder is preferred over
the other decoders. E.g. all ad_mpg123 decoders are preferred over
ad_lavc, because it comes first in the mpcodecs_ad_drivers array.
Likewise, decoders within ad_lavc that are enumerated first by
libavcodec (using av_codec_next()) are preferred. (This is actually
critical to select h264 software decoding by default instead of vdpau.
libavcodec and ffmpeg/avconv use the same method to select decoders by
default, so we hope this is sane.)

The codec names follow libavcodec's codec names as defined by
AVCodecDescriptor.name (see libavcodec/codec_desc.c). Some decoders
have names different from the canonical codec name. The AVCodecDescriptor
API is relatively new, so we need a compatibility layer for older
libavcodec versions for codec names that are referenced internally,
and which are different from the decoder name. (Add a configure check
for that, because checking versions is getting way too messy.)

demux/codec_tags.c is generated from the former codecs.conf (minus
"special" decoders like vdpau, and excluding the mappings that are the
same as the mappings libavformat's exported RIFF tables). It contains
all the mappings from FourCCs to codec name. This is needed for
demux_mkv, demux_mpg, demux_avi and demux_asf. demux_lavf will set the
codec as determined by libavformat, while the other demuxers have to do
this on their own, using the mp_set_audio/video_codec_from_tag()
functions. Note that the sh_audio/video->format members don't uniquely
identify the codec anymore, and sh->codec takes over this role.

Replace the --ac/--vc/--afm/--vfm with new --vd/--ad options, which
provide cover the functionality of the removed switched.

Note: there's no CODECS_FLAG_FLIP flag anymore. This means some obscure
container/video combinations (e.g. the sample Film_200_zygo_pro.mov)
are played flipped. ffplay/avplay doesn't handle this properly either,
so we don't care and blame ffmeg/libav instead.
2013-02-10 17:25:56 +01:00
..
ai_alsa1x.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
ai_oss.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
asf_mmst_streaming.c cache: simplify further 2012-12-03 21:08:51 +01:00
asf_mmst_streaming.h Add header for asf_mmst_streaming_start() instead of forward declaring it. 2010-02-21 23:26:16 +00:00
asf_streaming.c stream: implement some HTTP specific options for stream_lavf 2013-01-24 17:45:13 +01:00
audio_in.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
audio_in.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
cache2.c core: automatically pause on low cache 2012-12-03 21:08:52 +01:00
cache2.h cache: simplify further 2012-12-03 21:08:51 +01:00
cdd.h stream_cddb: move structs to the file they're used in 2010-11-02 04:11:07 +02:00
cdinfo.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
cookies.c stream: implement some HTTP specific options for stream_lavf 2013-01-24 17:45:13 +01:00
cookies.h stream: implement some HTTP specific options for stream_lavf 2013-01-24 17:45:13 +01:00
dvb_tune.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
dvb_tune.h Add header for exported DVB-related functions. 2010-02-21 21:00:08 +00:00
dvbin.h stream/dvbin.h: Use angular brackets for system #includes. 2010-11-02 04:11:07 +02:00
frequencies.c Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
frequencies.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
http.c stream: implement some HTTP specific options for stream_lavf 2013-01-24 17:45:13 +01:00
http.h stream/: delete base64_encode(), use libavutil av_base64_encode() 2010-12-16 05:16:50 +02:00
network.c stream: set default HTTP user agent to "Mozilla/5.0" 2013-01-31 02:01:25 +01:00
network.h stream: implement some HTTP specific options for stream_lavf 2013-01-24 17:45:13 +01:00
pvr.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
stream_avdevice.c demux_lavf: add support for libavdevice 2012-12-03 21:08:51 +01:00
stream_bluray.c stream: fix dvd:// + cache crashing 2012-11-20 18:00:15 +01:00
stream_cdda.c stream_cdda: support latest libcdio version 2013-01-24 12:01:06 +01:00
stream_cddb.c Silence two compiler warnings 2013-01-16 02:03:21 +01:00
stream_dvb.c Check return values of some mp_find_..._config_file function calls for NULL 2013-02-09 00:21:18 +01:00
stream_dvd_common.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_dvd_common.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
stream_dvd.c stream_dvd: fix angle math 2012-12-22 10:00:00 +01:00
stream_dvd.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_file.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream_ftp.c stream_ftp: cleanups 2012-12-03 21:08:52 +01:00
stream_lavf.c build: make it work on somewhat older ffmpeg versions 2013-01-31 17:42:21 +01:00
stream_mf.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_null.c Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
stream_pvr.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_radio.c Remove BSD legacy TV/radio support (BT848 stuff) 2013-02-06 23:03:39 +01:00
stream_radio.h Remove BSD legacy TV/radio support (BT848 stuff) 2013-02-06 23:03:39 +01:00
stream_smb.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream_tv.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_udp.c stream: implement some HTTP specific options for stream_lavf 2013-01-24 17:45:13 +01:00
stream_vcd.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream_vstream.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream.c stream: fix reconnecting on broken network connections 2013-01-24 18:56:02 +01:00
stream.h stream: fix reconnecting on broken network connections 2013-01-24 18:56:02 +01:00
tcp.c Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
tcp.h Use standard license headers with standard formatting. 2008-05-14 17:20:42 +00:00
tv.c core: redo how codecs are mapped, remove codecs.conf 2013-02-10 17:25:56 +01:00
tv.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
tvi_def.h video: decouple internal pixel formats from FourCCs 2013-01-13 20:04:11 +01:00
tvi_dummy.c video: decouple internal pixel formats from FourCCs 2013-01-13 20:04:11 +01:00
tvi_v4l2.c video: decouple internal pixel formats from FourCCs 2013-01-13 20:04:11 +01:00
udp.c Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
udp.h Use standard license headers with standard formatting. 2008-05-14 17:20:42 +00:00
url.c Fix lots of bugs in mp_http URL handling 2013-01-10 14:11:26 +01:00
url.h stream: fix redirection for proxy URLs 2012-10-30 19:50:20 +01:00
vcd_read_darwin.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
vcd_read_fbsd.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
vcd_read_win32.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
vcd_read.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00