aboutsummaryrefslogtreecommitdiffhomepage
path: root/player/lua
Commit message (Collapse)AuthorAge
* stats: show file formatGravatar wm42018-10-01
| | | | Useful in particular with ytdl, where you never know what you get.
* ytdl_hook: fix audio not being picked up for some sitesGravatar Ricardo Constantino2018-09-26
|
* ytdl_hook: always load ytdl:// links with ytdl_hook firstGravatar Ricardo Constantino2018-08-17
| | | | Suggested in IRC by sfan5.
* stats: remove superfluous line breaksGravatar Julian2018-06-09
| | | | | Those accidentally slipped in with 9975835bdeec3f2b04b136ef40c70b02487bb0e6 due to bad copy & paste.
* osc: fix accidentally skipping files when seeking with sliderGravatar fatalis2018-06-04
| | | | | | | When seeking near the end of the file and the next file loads, seeking continues on the next file at the same position and then immediately the file after that. This patch stops slider seeking when a new file is loaded, which is the standard behavior of many other players.
* stats: show sample format of audio trackGravatar sfan52018-05-17
|
* ytdl_hook: try to set video track first if availableGravatar Ricardo Constantino2018-05-03
| | | | | | | Fixes `--ytdl-format="dash-fastly_skyfire-video-363357330+dash-fastly_skyfire_sep-audio-363357330" https://vimeo.com/108650530` This happened because the video track also had audio available and after adding it expecting an audio-only track, there were no more tracks with video.
* ytdl_hook: don't log error when loading is abortedGravatar wm42018-04-15
|
* config: replace config dir lua-settings/ with dir script-opts/Gravatar Avi Halachmi (:avih)2018-04-07
| | | | lua-settings/ is still supported, with deprecation warning.
* client API: add a first class hook API, and deprecate old APIGravatar wm42018-03-26
| | | | | | | | | | | | | | | As it turns out, there are multiple libmpv users who saw a need to use the hook API. The API is kind of shitty and was never meant to be actually public (it was mostly a hack for the ytdl script). Introduce a proper API and deprecate the old one. The old one will probably continue to work for a few releases, but will be removed eventually. There are some slight changes to the old API, but if a user followed the manual properly, it won't break. Mostly untested. Appears to work with ytdl_hook.
* stats: print section titles independentlyGravatar Julian2018-03-25
| | | | | | | Previously, section titles (File/Video/Audio) were printed as suffix of a property that was assumed to always exist. However, with e.g. lavi-complex this is not the case, therfore, print them without being dependent on a property.
* stats: improve video/audio detectionGravatar Julian2018-03-25
| | | | | | | | | Switch from audio|video to audio|video-out-params properties as per recommendation in #5670. These properties are tables and include information explicitly queried later, so switch to using these tables and reduce the amount of queried properties. Fixes #5670
* ytdl_hook: add ytdl:// prefix again for non-youtube playlistsGravatar Ricardo Constantino2018-02-11
| | | | | | | | Only youtube playlists return ID-only urls. Other extractors may return "<extractor>:<ID>" so those still need the ytdl:// prefix. Reproduced with http://www.cbc.ca/burdenoftruth/videos/trailers-promos/burden-of-truth-returns
* ytdl_hook: add script opt for using manifest URLsGravatar Ricardo Constantino2018-02-11
| | | | | | | | | | | Disable by default. This feature was added in 7eb342757, which allowed stream selection in runtime. Problem with this atm is that FFmpeg will try to demux every first packet of every track leading to noticeable delay opening the URL. This option can be changed to enabled by default or removed when HLS/DASH demuxers are improved upstream.
* ytdl_hook: parse youtube playlist urls to set start indexGravatar Ricardo Constantino2018-02-11
| | | | | | | | | | | | | | Still needs `--ytdl-raw-option=yes-playlist=` because this only works for youtube. This was requested in a few issues: https://github.com/mpv-player/mpv/issues/1400 https://github.com/mpv-player/mpv/issues/2592 https://github.com/mpv-player/mpv/issues/3024 For #1400 to be completely implemented would need ytdl_hook to re-request the same playlist with the last video's ID for the mix to continue indefinitely which would probably too hackish to work reliably.
* ytdl_hook: exit early, save an indentation levelGravatar Ricardo Constantino2018-02-11
|
* ytdl_hook: various nitGravatar Ricardo Constantino2018-02-11
| | | | | | | | Remove obsolete comment about FFmpeg ignoring non-http proxies which was repeated in ytdl_hook before the feature was added. Remove unnecessary conditions for not nil. Lua tables will always return nil for non-existent keys.
* ytdl_hook: whitelist subtitle URLs as wellGravatar Ricardo Constantino2018-02-11
| | | | | This was overlooked when doing the whitelisting for video and audio to fix #5456.
* ytdl_hook: use fallback if there's no demuxer-lavf-list propGravatar Ricardo Constantino2018-02-11
| | | | | | | This is important if backporting by grabbing the latest version of the script without backporting the commit that added the property: 828bd2963cd10a851e0a977809687aed4d377dc3
* ytdl_hook: pass http proxy to ffmpegGravatar Ricardo Constantino2018-01-30
| | | | | | | | | | | | | | FFmpeg only suppports http proxies and ignores it if the resulting url is https. Also, no SOCKS. Use it like `--ytdl-raw-options=proxy=[http://127.0.0.1:3128]` so it doesn't confuse mpv because of the colons. You need to pass it as an option because youtube-dl doesn't give us the proxy. Or just set `http_proxy` environment variable as recommended before. Added example using -append, which doesn't need escaping.
* ytdl_hook: pre-append id-only playlist items with shortened youtube URLGravatar Ricardo Constantino2018-01-29
|
* ytdl_hook: whitelist segmented DASH and HLS for the manifests codeGravatar Ricardo Constantino2018-01-27
| | | | Close #5453
* ytdl_hook: prefer hls/dash manifest if availableGravatar Ricardo Constantino2018-01-26
| | | | | | | This makes all the video/audio variants available for selection. Might break with non-hls/dash, or even with dash if FFmpeg wasn't compiled with the demuxer.
* ytdl_hook: fix safe url checking with EDL urlsGravatar Ricardo Constantino2018-01-26
|
* ytdl_hook: move url_is_safe earlier in codeGravatar Ricardo Constantino2018-01-26
| | | | lua isn't javascript.
* ytdl_hook: whitelist protocols from urls retrieved from youtube-dlGravatar Ricardo Constantino2018-01-26
| | | | | | Not very clean since there's a lot of potential unsafe urls that youtube-dl can give us, depending on whether it's a single url, split tracks, playlists, segmented dash, etc.
* ytdl_hook: support native dash demuxer, if presentGravatar Ricardo Constantino2018-01-15
| | | | | | Uses track tbr instead of track disposition id for dash selection Works just as expected because youtube-dl also takes tbr from the manifests.
* osc: leave only demuxer cache duration and limit its refresh rateGravatar Ricardo Constantino2018-01-14
| | | | Sorta requested in #5390
* ytdl_hook: look for the right ytdl binary according to systemGravatar Ricardo Constantino2018-01-12
| | | | | | | | package.config is available in 5.1, 5.2, 5.3 and luajit, so should be fine. The first character is the path separator, so it's '\' on windows and '/' on *nix. This should also prevent cases where users download the wrong binary.
* ytdl_hook: be more informative when youtube-dl failsGravatar Ricardo Constantino2018-01-12
|
* ytdl_hook: don't try to use webpage_url if non-existentGravatar Ricardo Constantino2018-01-11
|
* ytdl_hook: actually use the script option from 87d3af6Gravatar Ricardo Constantino2018-01-07
|
* ytdl_hook: add script option to revert to trying youtube-dl firstGravatar Ricardo Constantino2018-01-07
| | | | | Should only make a difference if most of the URLs you open need youtube-dl parsing.
* ytdl_hook: check for possible infinite loop in playlist generationGravatar Ricardo Constantino2018-01-06
|
* ytdl_hook: add additional check for comedycentral urlsGravatar Ricardo Constantino2018-01-06
| | | | | | | If this breaks another site again, remove this whole if and just leave them as separate playlist items. Close #5364
* ytdl_hook: update obsolete warning about retrying URL if failedGravatar Ricardo Constantino2018-01-04
|
* osc: add seekbarkeyframes as a user optionGravatar dudemanguy2018-01-03
|
* player: add on_load_fail hookGravatar Ricardo Constantino2018-01-02
|
* osc: check if demuxer cache has not reached eofGravatar Ricardo Constantino2018-01-02
| | | | Avoids flickering stream cache status while filling the demuxer cache.
* ytdl_hook: fix single-entry playlistsGravatar Ricardo Constantino2018-01-02
| | | | Close #5313
* osc: hide cache if not forced for local filesGravatar Ricardo Constantino2017-12-26
| | | | | Also hide cache if 'cache-used' is 0 (usually means video fits entirely within demuxer-cache-duration or stream cache is disabled).
* stats: enhance cache statsGravatar Julian2017-12-26
| | | | | | Show total cache as well as demuxer cache separately. This adjusts the presented values to be consistent with status line and OSC modifications made in https://github.com/mpv-player/mpv/pull/5250
* lua: implement mp_utils.format_bytes_humanizedGravatar Julian2017-12-26
|
* osc: make seek ranges rendering optionalGravatar pavelxdd2017-12-26
| | | | | This commit adds a new osc setting `seekranges` to control the seek ranges visibility.
* ytdl_hook: use table concat for playlist buildingGravatar Ricardo Constantino2017-12-24
| | | | Faster and more efficient than string concat with large playlists.
* ytdl_hook: don't preappend ytdl:// to non-youtube links in playlistsGravatar Ricardo Constantino2017-12-24
| | | | Close #5003
* osc: show demuxer cache buffered amount in bytesGravatar wm42017-12-23
| | | | | | | | Same as previous commit, but for the OSC. (A bit of a waste to request demuxer-cache-state at least twice per frame, but the OSC queries so many properties it probably doesn't matter anymore.)
* lua: implement mp.msg.traceGravatar Niklas Haas2017-12-15
|
* msg: reinterpret a bunch of message levelsGravatar Niklas Haas2017-12-15
| | | | | | | | | | | | | | | | | | | | | | I've decided that MP_TRACE means “noisy spam per frame”, whereas MP_DBG just means “more verbose debugging messages than MSGL_V”. Basically, MSGL_DBG shouldn't create spam per frame like it currently does, and MSGL_V should make sense to the end-user and provide mostly additional informational output. MP_DBG is basically what I want to make the new default for --log-file, so the cut-off point for MP_DBG is if we probably want to know if for debugging purposes but the user most likely doesn't care about on the terminal. Also, the debug callbacks for libass and ffmpeg got bumped in their verbosity levels slightly, because being external components they're a bit less relevant to mpv debugging, and a bit too over-eager in what they consider to be relevant information. I exclusively used the "try it on my machine and remove messages from MSGL_* until it does what I want it to" approach of refactoring, so YMMV.
* Revert "ytdl: handle HLS with FFmpeg"Gravatar Kevin Mitchell2017-12-07
| | | | | | Apparently, this breaks youtube live and possibly other things. This reverts commit 06519aae5837312437b07e8bfef10c025ec2f688.