This should work conceptually on any Linux OS with PulseAudio but these particular instructions are for Ubuntu.
There are two major reasons for using simultaneous output. The first is self-evident - we can output to say a bluetooth
headset and wired headphones at the same time to enable two people to watch a movie with headphones on a single computer.
The second reason is a sort of a convenience for setup. We know the simultaneous sink name so the default.pa config
would work without modification so long as simultaneous output is enabled. If we were to set this up without that,
we'd have to customize the config with our specific device sink name. That's totally doable but personally I always
setup simultaneous output. That's why I haven't described the alternative in this gist.
| javascript: | |
| var text = document.createElement('div'); | |
| text.appendChild(document.createElement('pre')).textContent = '[' + document.title + ']( ' + location.href + ' )'; | |
| document.body.appendChild(text); | |
| document.getSelection().selectAllChildren(text); | |
| document.execCommand('copy'); | |
| document.body.removeChild(text); |
| /* | |
| Windows | |
| Location: C:\Users\<YourUsername>\AppData\Roaming\Mozilla\Firefox\Profiles\<YourFirefoxProfile>\chrome | |
| Notes: | |
| If minimize, maximize, and close buttons are no longer visible, enable the Title Bar or Menu Bar in Firefox Customize. | |
| macOS | |
| Location: /Users/<YourUsername>/Library/Application Support/Firefox/Profiles/<YourFirefoxProfile>/chrome | |
| Notes: | |
| If minimize, maximize, and close buttons overlap other controls, add the Flexible Space in Firefox Customize. |
If you decide to follow my settings, I'm not responsible for anything that happens if you decide to go careless and become a priceless dumb. All commands are done in Linux PC using corresponding CLI programs. In Windows, just add .exe after CLI program name.
I prefer maximum compression as possible with replay gain applied. This command below will silence all warnings, especially when dealing with Hi-Res audios: a.wav: WARNING: Legacy WAVE file has format type 1 but bits-per-sample=24
$ flac --totally-silent --delete-input-file --replay-gain -V8 .wav| -- autosave.lua | |
| -- | |
| -- Periodically saves "watch later" data during playback, rather than only saving on quit. | |
| -- This lets you easily recover your position in the case of an ungraceful shutdown of mpv (crash, power failure, etc.). | |
| -- | |
| -- You can configure the save period by creating a "lua-settings" directory inside your mpv configuration directory. | |
| -- Inside the "lua-settings" directory, create a file named "autosave.conf". | |
| -- The save period can be set like so: | |
| -- | |
| -- save_period=60 |
| -- requires subliminal, version 1.0 or newer | |
| -- default keybinding: b | |
| local utils = require 'mp.utils' | |
| --sleep function, so that subs aren't downloaded the instant a file is loaded | |
| --taken from:http://lua-users.org/wiki/SleepFunction | |
| function sleep(s) | |
| local ntime = os.time() + s | |
| repeat until os.time() > ntime | |
| end |
this has been rewritten yet again as most workarounds aren't required anymore since wine 3+
example video of the final result: https://www.youtube.com/watch?v=zkqzQoeOGfU
with touchscreen: https://www.youtube.com/watch?v=GcIrlorWmaQ
performance is indistinguishable from windows. there might be a very slight ~25ms sound latency which is easily compensated with +25 local offset
tested on
| /* To use this in a Google Sheet: | |
| 1. Go to Tools > Script Editor. | |
| 2. Save the script. | |
| 3. Paste this script and click on the bug symbol. | |
| 4. Authorize the script. | |
| 5. Refresh the sheet. | |
| */ | |
| // global | |
| var ss = SpreadsheetApp.getActive(); |
| #EXTM3U | |
| # filename: radio.m3u | |
| # ------------------- | |
| # My Talk/News Live Streaming Radio Playlist | |
| # Get this playlist on your phone! I use VLC | |
| ##### https://git.io/vKiO1 ###### | |
| # # | |
| # # | |
| # █▀▀▀▀▀█ █▄█ █▄█ ▄ █▀▀▀▀▀█ # |