See if org document title gets rendered by gitea

This commit is contained in:
pta 2023-12-29 12:31:05 -05:00
parent fee9a83d79
commit 4faaad1f36
1 changed files with 11 additions and 10 deletions

View File

@ -1,4 +1,5 @@
* 4chan webm spammer's mpv config directory
#+TITLE: 4chan webm spammer's mpv config directory
Includes lua scripts for dumping portions of network streams to files, cropping those
videos, and, to your clipboard, copying ffmpeg command lines for making webms.
@ -10,14 +11,14 @@ Also, some shell aliases and functions for:
- watching Japanese news channels
- toggling sideways xorg display
- concatenating Kindle cloud reader page fragment into a single image
** Key bindings
*** Generally used
* Key bindings
** Generally used
- ~l~: set ab-loop points; see mpv man page
- ~,~, ~.~: frame stepping
- ~a~, ~b~: adjust ab-loop points separately
- ~s~: screenshot
- ~O~: show playback time, estimated frame number, mouse position, crop filters, and ab-loop points
*** Save portions of a live stream to disk
** Save portions of a live stream to disk
- ~Ctrl-a~: dumps the contents of the demuxer cache that's inside your selected ab-loop to
a file in a configured directory. Intended for network streams. No reason to use this on
local files since ffmpeg can operate on those. I have "demuxer-max-bytes=128M" in my
@ -26,7 +27,7 @@ Also, some shell aliases and functions for:
careful when dumping. If you have the a-point but not the b-point set, it will
continuously dump the entire cache up to the present and I haven't found out how to stop
it besides closing mpv. Look up ~ab-loop~ in the mpv man page for details.
*** Make webms
** Make webms
- ~c~: begin crop selection, then select two corners of crop area with mouse
- arrow keys can be used to make coarse adjustments to crop area
- alt+arrow keys to make fine adjustments
@ -62,29 +63,29 @@ I usually run mpv from Dired in emacs, using the ~openwith~ package, which calls
the video's absolute path, so the copied ffmpeg command can find the file from any
working-directory. Running mpv from the shell sets the mpv's ~path~ property to whatever
path you used on the command line.
** dump.lua
* dump.lua
Edit the cache dumps directory to your preferred directory before using.
*** Similar scripts
** Similar scripts
- https://github.com/occivink/mpv-scripts/blob/master/scripts/encode.lua
- https://github.com/ekisu/mpv-webm/releases/download/latest/webm.lua
webm.lua doesn't work on one of my machines for some reason, and I prefer encoding on the
command line anyways, where I can use bash's line editing and history navigation and see
ffmpeg's status messages.
** crop.lua
* crop.lua
Found on https://github.com/occivink/mpv-scripts#croplua. Useful for the rare occasion
that I want mpv to show only part of the video. Also now used to crop videos before making
a webm. Supports recursive cropping by chaining crop filters, though my webm script works
only with filter chains length 0 or 1. To screenshot just part of the video, set a crop
first, then press your screenshot key. Only the cropped portion will be screenshot.
** Use mpv to stream albums from Youtube Music ad-free
* Use mpv to stream albums from Youtube Music ad-free
1. Go to an album's page. It should be of the form "/playlist?list=<playlist id>"
2. Run mpv with the quoted URL
#+begin_src bash
mpv 'https://music.youtube.com/playlist?list=OLAK5uy_nscRtcc2KZcydiVY7q0feukzm177h8yyw'
#+end_src
You can even skip songs forwards and backwards like you can with local files using the < and > keys.
** Research
* Research
- [[https://superuser.com/questions/681885/how-can-i-remove-multiple-segments-from-a-video-using-ffmpeg][how to use ffmpeg's trim filter]]
- [[https://stackoverflow.com/questions/9168058/how-to-dump-a-table-to-console][how to dump a lua table to console]]
- [[https://github.com/mpv-player/mpv/blob/master/player/lua/assdraw.lua][mpv's assdraw module]]