aboutsummaryrefslogtreecommitdiffhomepage
path: root/TOOLS
Commit message (Collapse)AuthorAge
* TOOLS: add a lua script for a -stay on top only during playback- modeGravatar Patrick Hipp2015-03-23
| | | | Signed-off-by: wm4 <wm4@nowhere>
* TOOLS: remove youtube-dl_mpv.shGravatar wm42015-03-13
| | | | It lost all reason to exist, since mpv includes ytdl_hook.lua by default.
* demux_mkv: make matroska.pl script output deterministicGravatar wm42015-03-11
| | | | | | Work around the randomized Perl hashtables by sorting the elements. Fixes #1673.
* w32_common: support the "window-minimized" propertyGravatar James Ross-Gowan2015-03-09
|
* cocoa: support the "window-minimized" propertyGravatar Jaime Marquínez Ferrándiz2015-03-08
| | | | Signed-off-by: Stefano Pigozzi <stefano.pigozzi@gmail.com>
* osxbundle: config file special case isn't needed anymoreGravatar wm42015-02-15
| | | | | | The previous commit effectively fixes the mess caused by 'config' vs. 'mpv.conf', and the hack introduced by commit e01a6dac and extended by commit db167cd4 isn't needed anymore.
* ao_coreaudio: add support for hotplug notificationsGravatar Stefano Pigozzi2015-02-14
| | | | | | | | | | This commit adds notifications for hot plugging of devices. It also extends the old behaviour of the `audio-out-detected-device` property which is now backed by the hotplugging code. This allows clients to be notified when the actual audio output device changes. Maybe hotplugging should be supported for ao_coreaudio_exclusive too, but it's device selection code is a bit fragile.
* player: deprecate 'config' files (use mpv.conf), warn against clashesGravatar wm42015-02-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently there's at least one distro which ships a /etc/mpv/mpv.conf file (mpv doesn't install such a file). This breaks config files named 'config' located in the user's mpv config directory, because mpv first loads files named 'config' and then 'mpv.conf'. There is no mechanism for putting files with different names into the same config path order. (Even worse, that mpv.conf file only set an option to the default value. Why do distros always do very stupid things?) Print a warning on collisions. Although using 'config' was well-supported, supporting both names is starting to become messy, so deprecate 'config' and print a warning if one is found. At least we will be able to remove the whole mess once 'config' files are ignored... This also affects the osx-bundle, which intentionally used these not-so- optimal semantics. Solve it in a different way. (Unfortunately with an ifdef - it's not required, but having to explain everyone why mpv tries to load a osx-bundle.mpv file on Linux and Windows would consume energy.) Closes #1569.
* audio: add device change notification for hotpluggingGravatar wm42015-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | Not very important for the command line player; but GUI applications will want to know about this. This only adds the internal API; support for specific audio outputs comes later. This reuses the ao struct as context for the hotplug event listener, similar to how the "old" device listing API did. This is probably a bit unclean and confusing. One argument got reusing it is that otherwise rewriting parts of ao_pulse would be required (because the PulseAudio API requires so damn much boilerplate). Another is that --ao-defaults is applied to the hotplug dummy ao struct, which automatically applies such defaults even to the hotplug context. Notification works through the property observation mechanism in the client API. The notification chain is a bit complicated: the AO notifies the player, which in turn notifies the clients, which in turn will actually retrieve the device list. (It still has the advantage that it's slightly cleaner, since the AO stuff doesn't need to know about client API issues.) The weird handling of atomic flags in ao.c is because we still don't require real atomics from the compiler. Otherwise we'd just use atomic bitwise operations.
* osxbundle: don't try to package PythonGravatar Stefano Pigozzi2015-02-02
| | | | | | | | This fixes usage when the bundle is used on the same machine that Python/Cython was compiled on. It doesn't fix the harder problem of packaging a full Python installation in the mpv app bundle (and I'm not sure we actually want that). Fixes #1549
* TOOLS/stats-conv: change unit of X-axis to secondsGravatar wm42015-02-01
| | | | ...instead of milliseconds.
* youtube-dl_mpv.sh: unquote ${video_url}Gravatar Vítor Galvão2015-01-23
|
* youtube-dl_mpv.sh: use curly braces and double quotes consistentlyGravatar Vítor Galvão2015-01-22
|
* TOOLS/zsh.pl: complete options based on typesGravatar Philip Sequeira2015-01-06
| | | | | | | | | | No more equals signs for options that don't take values. Complete values for options with preset choices. Complete --no-whatever where applicable. Fixes #997.
* TOOLS/lua/observe-all: add a warningGravatar wm42015-01-03
| | | | This is just natural, but it's also not that obvious.
* TOOLS/lua/autoload: fix behavior with network URLsGravatar wm42015-01-03
| | | | | readdir() fails if the directory is an URL, so just exit instead of letting the Lua script fail.
* TOOLS/stats-conv: more improvementsGravatar wm42015-01-03
| | | | | | | | | | Add an explicit "signal" event type, because the implicit one was confusing. Don't rescale the Y axis of the second graph, it was nonsense. Make the legend for the second graph separate (and cleanup the code creating the graphs).
* TOOLS/stas-conv: add timed value event typeGravatar wm42015-01-02
|
* TOOLS/stats-conv: better outputGravatar wm42015-01-02
| | | | | | Sort the legend by the used y value of binary events/signals, add a way to filter branches (although that requires editing the script), and use the full screen if the second subplot is not used.
* osxbundle: fix cascading config loadingGravatar Stefano Pigozzi2014-12-26
| | | | | | | | | | | | | | | | | mpv does 'cascading' configs by overriding options as the config become more important (bundle -> system level -> user level). Unfortunately mpv also loads two sets of configs files one after the other [1]. First it looks for 'config', then for 'mpv.conf'. For this reason a mpv.conf in ANY location will override ANY config files named config (even if the mpv.conf is in a system path and config in a user path). [1]: Relevant code in player/configfiles.c load_all_cfgfiles(mpctx, section, "config"); load_all_cfgfiles(mpctx, section, "mpv.conf"); Fixes: #1361
* options: deprecate 'lua' based options/dirs for 'script'Gravatar Avi Halachmi (:avih)2014-12-15
| | | | | | | | | | | | - --lua and --lua-opts change to --script and --script-opts - 'lua' default script dirs change to 'scripts' - DOCS updated - 'lua-settings' dir was _not_ modified The old lua-based names/dirs still work, but display a warning. Signed-off-by: wm4 <wm4@nowhere>
* osxbundle: don't use sed but pure pythonGravatar Mihai Moldovan2014-12-13
| | | | | | | | GNU sed and BSD sed don't share the same options for editing files in-place, so a workaround is needed. The most simple way is to use a pure python implementation of applying the changes.
* cocoa: bundle: use idle=onceGravatar Stefano Pigozzi2014-12-07
|
* cocoa: use --idle when running inside bundleGravatar Stefano Pigozzi2014-12-06
| | | | | Previously when using the bundle we used a custom bizarro thing to wait for events. Just use `--idle` and greatly simplify the code.
* cocoa: save screenshots to desktop when using app bundleGravatar Stefano Pigozzi2014-12-05
| | | Fixes #947
* video: remove internal QP passingGravatar wm42014-12-03
| | | | | | | | | | | This was required by vf_pp, which was just removed. vf_dlopen has this stuff in its API. This API is considered stable, so the related fields are not removed from it. But the fields are always 0 now, so there's no point in keeping the example program around. vf_pullup.c did some extremely awkward passthrough of this information, but didn't actually use it.
* cocoa: add https:// url scheme to bundle's plistGravatar Stefano Pigozzi2014-12-02
|
* cocoa: add mk3d UTI to bundle's plistGravatar Nyx0uf2014-12-02
| | | | | | This should allow lauching a mk3d file directly from the Finder. Fixes #1311
* cocoa: split mkv/webm for imported UTI in plistGravatar Nyx0uf2014-12-01
|
* lua: add a function that formats Lua values as stringsGravatar wm42014-11-29
| | | | | | | | Yep, Lua is so crappy that the stdlib doesn't provide anything like this. Repurposes the undocumented mp.format_table() function and moves it to mp.utils.
* TOOLS/lua: add script that pauses playback when minimizing the windowGravatar wm42014-11-29
| | | | | | Uses functionality that was added a month ago for exactly this purpose. Fixes #1237.
* TOOLS/idet.sh: Adjust for changes in FFmpeg.Gravatar Rudolf Polzer2014-11-22
| | | | Compatibility to older idet is preserved.
* umpv: update comment for the new FIFO locationGravatar Ben Boeckel2014-11-15
|
* demux_mkv: read CueRelativePosition/CueDuration elementsGravatar wm42014-11-05
| | | | | | | | Nothing is done with them yet. This is preparation for the following commit. CueRelativePosition isn't even saved anywhere, because I don't intend to use it. (Too messy for no gain.)
* demux_mkv: implement audio skipping/trimmingGravatar wm42014-11-03
| | | | | | | | | | | | | This mechanism was introduced for Opus, and allows correct skipping of "preroll" data, as well as discarding trailing audio if the file's length isn't a multiple of the audio frame size. Not sure how to handle seeking. I don't understand the purpose of the SeekPreRoll element. This was tested with correctness_trimming_nobeeps.opus, remuxed to mka with mkvmerge v7.2.0. It seems to be correct, although the reported file duration is incorrect (maybe a mkvmerge issue).
* TOOLS/lua/autoload: fix operation outside of working dirGravatar wm42014-10-26
| | | | Fixes #1222. (This commit is based on a patch posted there.)
* TOOLS/lua/autoload: don't shadow local variableGravatar wm42014-10-26
| | | | "dir" is already used somewhere above. This was ok, but not nice.
* TOOLS/umpv: create FIFO in user directoryGravatar wm42014-10-24
| | | | Makes these security measures unnecessary.
* TOOLS/lua: update README.mdGravatar Kevin Mitchell2014-10-21
|
* TOOLS/lua: remove tabs from some lua scriptsGravatar Kevin Mitchell2014-10-21
|
* TOOLS/lua: add autodeint.luaGravatar Kevin Mitchell2014-10-21
| | | | | | | This isn't quite as robust as idet.sh as the default detection interval is only 4 seconds vs 35 for idet.sh. idet.sh can have such a large sample time since it turns off the vo and uses --untimed, which is currently not possible from lua.
* TOOLS/vf_dlopen/ildetect.sh: remove duplicated assigmentGravatar shdown2014-10-16
|
* TOOLS/umpv: drop unnecessary checkGravatar wm42014-09-24
| | | | | This was supposed to make sure that argv[1:] does not fail, but Python actually allows mismatching bounds for slicing.
* TOOLS/umpv: use python octal notationGravatar shdown2014-09-24
|
* TOOLS/mpv_identify.sh: remove pointless escapeGravatar shdown2014-09-24
|
* TOOLS/idet.sh: add descriptionGravatar shdown2014-09-24
| | | | | | Just a copy of c0cd58e3f5b1daff58ad5ca48b964a2b1fb86d6d commit message (with a small fix: ildetect.sh+ildetect.so, not ildetect.sh+ildetect.sh).
* TOOLS/idet.sh: remove unused and duplicated assignmentsGravatar shdown2014-09-24
|
* TOOLS: idet: remove extra '$' in $(()) expansionGravatar Ben Boeckel2014-09-21
|
* TOOLS/umpv: make URL detection consistent with mpv methodGravatar shdown2014-09-20
| | | | See mp_is_url in options/path.c.
* TOOLS/umpv: print error message to stderrGravatar shdown2014-09-20
|