1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00
mpv/stream
wm4 7a06095dc3 Add support for playing video from streaming sites with libquvi
This enables playing URLs from libquvi supported streaming sites
directly, e.g. "mplayer http://www.youtube.com/watch?v=...."

Anything opened with mplayer is checked with libquvi. If it looks like
a URL of a supported streaming site, libquvi is used to extract the
media URL, which is then passed to the lower level mplayer code
instead of the HTML URL. Hopefully the libquvi URL checker works well
enough that it doesn't cause any problems with normal URLs, files, or
whatever else mplayer's stream layer accepts.

Add the --libquvi-format option. the option value is directly passed to
libquvi as requested format. The only values that seem to work for any
streaming site seem to be "best" (best quality) and "default" (lowest
quality). The mplayer option defaults to "best" (overriding libquvi's
default).

Outstanding issues:
- Does libquvi checking every opened file really not cause problems?
  Should there be a runtime option to disable libquvi use?
  (Probably not an issue.)
- Should we check/set the supported protocol? By default libquvi has
  support for all protocols enabled. In the worst case, it might return
  an URL using a protocol not supported by mplayer, even though it
  could extract URLs with other protocols too.
  (Probably not an issue.)
- Somehow export metadata (like media title) to the mplayer frontend?
2012-07-28 22:05:34 +02:00
..
freesdp cleanup: shut up more warnings 2011-05-06 18:33:16 +03:00
librtsp cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
realrtsp build: switch to libavutil bswap.h and intreadwrite.h 2012-02-01 22:46:27 +02:00
ai_alsa1x.c cleanup: remove more warnings 2011-05-02 00:46:48 +03:00
ai_oss.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
asf_mmst_streaming.c cleanup: shut up more warnings 2011-05-06 18:33:16 +03: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 build: switch to libavutil bswap.h and intreadwrite.h 2012-02-01 22:46:27 +02:00
audio_in.c cleanup: don't check for NULL before free() 2010-11-08 18:05:12 +02: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 build: remove OS/2 support 2012-04-06 17:45:56 +03:00
cache2.h terminal output: show cache fill changes in "PAUSED" message 2011-02-15 18:35:34 +02:00
cdd.h stream_cddb: move structs to the file they're used in 2010-11-02 04:11:07 +02:00
cdinfo.c cleanup: don't check for NULL before free() 2010-11-08 18:05:12 +02:00
cookies.c windows support: unicode filenames 2012-03-09 20:48:54 +02:00
cookies.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
dvb_tune.c cleanup: shut up more warnings 2011-05-06 18:33:16 +03: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 configure, build: require at least Libav 0.7 2011-12-22 01:27:45 +02:00
http.h stream/: delete base64_encode(), use libavutil av_base64_encode() 2010-12-16 05:16:50 +02:00
network.c configure, build: remove --disable-libav support 2011-12-11 07:48:26 +02:00
network.h stream: http: Allow setting custom http header 2011-04-13 03:17:05 +03:00
open.c Add support for playing video from streaming sites with libquvi 2012-07-28 22:05:34 +02:00
pnm.c build: switch to libavutil bswap.h and intreadwrite.h 2012-02-01 22:46:27 +02:00
pnm.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
pvr.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
rtp.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
rtp.h stream/rtp.h appears not to originate from dvbstream. 2010-01-30 21:38:05 +00:00
stream_bluray.c stream_bluray: switch to new libbluray API 2011-07-10 11:30:06 +03:00
stream_cdda.c stream_cdda: print CDTEXT if available 2012-04-28 03:25:04 +03:00
stream_cddb.c build: remove OS/2 support 2012-04-06 17:45:56 +03:00
stream_cue.c stream_cue: Avoid probing empty filename in cue_find_bin() 2011-07-06 08:56:37 +03:00
stream_dvb.c cleanup: don't check for NULL before free() 2010-11-08 18:05:12 +02:00
stream_dvd_common.c build: switch to libavutil bswap.h and intreadwrite.h 2012-02-01 22:46:27 +02: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 dvd_get_current_time() 2011-07-06 13:01:07 +03:00
stream_dvd.h options: change -alang and -slang to use string list type 2011-04-20 04:22:42 +03:00
stream_dvdnav.c cosmetics: stream_dvdnav.c: Remove pointless () 2011-07-06 13:01:07 +03:00
stream_dvdnav.h options: change -alang and -slang to use string list type 2011-04-20 04:22:42 +03:00
stream_ffmpeg.c stream_ffmpeg: fix broken line from 30afc64532 2012-04-18 01:27:55 +03:00
stream_file.c Merge remote-tracking branch 'origin/master' into my_master 2012-03-16 19:14:44 +01:00
stream_ftp.c cleanup: don't check for NULL before free() 2010-11-08 18:05:12 +02:00
stream_live555.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
stream_mf.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
stream_nemesi.c cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00
stream_netstream.c cleanup: don't check for NULL before free() 2010-11-08 18:05:12 +02:00
stream_netstream.h stream: Use MSG_NOSIGNAL flag if available for send(). 2010-11-02 04:11:43 +02: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 stream_pvr: fix field size / snprintf size mismatch 2012-04-11 03:56:30 +03:00
stream_radio.c cleanup: don't check for NULL before free() 2010-11-08 18:05:12 +02:00
stream_radio.h Drop pointless _st suffix from 'struct stream'. 2010-05-27 20:38:25 +00:00
stream_rtp.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
stream_rtsp.c Drop pointless _st suffix from 'struct stream'. 2010-05-27 20:38:25 +00:00
stream_smb.c Merge branch 'mplayer1_changes' 2011-05-02 00:46:03 +03:00
stream_tv.c Fix warning "missing braces around initializer". 2010-02-27 23:23:34 +00:00
stream_udp.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
stream_vcd.c build: remove OS/2 support 2012-04-06 17:45:56 +03:00
stream_vstream.c stream_vstream: fix vstream_error format string 2012-04-01 17:35:01 +03:00
stream.c build: switch to libavutil bswap.h and intreadwrite.h 2012-02-01 22:46:27 +02:00
stream.h stream: show negative seek position value in error message 2011-07-06 09:30:04 +03:00
tcp.c stream/tcp.c: Prefer the use of inet_ntop over inet_ntoa 2010-11-02 04:11:07 +02:00
tcp.h Use standard license headers with standard formatting. 2008-05-14 17:20:42 +00:00
tv.c demux, vd_ffmpeg: fix demux keyframe flag, set AV_PKT_FLAG_KEY 2012-07-25 01:10:30 +03:00
tv.h stream/tv: move new_handle() function from header to tv.c 2010-11-02 04:16:55 +02:00
tvi_bsdbt848.c stream/tv: move new_handle() function from header to tv.c 2010-11-02 04:16:55 +02:00
tvi_def.h stream/tv: move new_handle() function from header to tv.c 2010-11-02 04:16:55 +02:00
tvi_dshow.c cleanup: tvi_dshow: add "static", fix printf format 2011-07-06 13:01:07 +03:00
tvi_dshow.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
tvi_dummy.c stream/tv: move new_handle() function from header to tv.c 2010-11-02 04:16:55 +02:00
tvi_v4l2.c stream/tvi_v4l[2]: fix calculation of free RAM for buffers 2011-07-06 13:01:08 +03:00
tvi_v4l.c stream/tvi_v4l[2]: fix calculation of free RAM for buffers 2011-07-06 13:01:08 +03:00
udp.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
udp.h Use standard license headers with standard formatting. 2008-05-14 17:20:42 +00:00
url.c stream/url.c: escape characters >= 127 in URLs 2011-02-15 18:47:55 +02:00
url.h stream/http: Add support for login/password in http_proxy env variable 2010-12-16 05:19:17 +02:00
vcd_read_darwin.h cleanup: Make vcd_seek_to_track() static in more files 2011-06-29 09:26:00 +03:00
vcd_read_fbsd.h build: switch to libavutil bswap.h and intreadwrite.h 2012-02-01 22:46:27 +02:00
vcd_read_win32.h cleanup: Make vcd_seek_to_track() static in more files 2011-06-29 09:26:00 +03:00
vcd_read.h build: switch to libavutil bswap.h and intreadwrite.h 2012-02-01 22:46:27 +02:00