A better Firefox(and Chrome) extension should be made to detect ambisonics 
content,
with editable options like you suggest. I'd be much easier (and useful for 
professionals) 
than trying to embed a decoder in the browser. That looks like a fun week-end 
project. :)
—
Marc

> On Oct 13, 2017, at 1:59 PM, Jörn Nettingsmeier 
> <netti...@stackingdwarves.net> wrote:
> 
> On 10/13/2017 02:54 PM, Marc Lavallée wrote:
>> More about this solution.
>> The MPV player (http://mpv.io/) have a youtube-dl backend that allows to
>> play youtube videos directly. So first install it, and test it with a
>> youtube URL. Then install the Firefox extension and try it.
>> The source code of the extension is available:
>> https://github.com/antoniy/mpv-youtube-dl-binding.git
>> It could be modified to detect ambisonics content and rewire the audio
>> output of MPV to use an ambisonics decoder.
> 
> mpv can use jack as output. The command line would look something like this:
> 
> mpv --ao jack --jack_port=ardour.YoutubeIn.* <filename>
> 
> The "ardour..." thing is a regular expression to match the jack ports, the 
> dot is any single character, dot-asterisk means arbitrarily many characters.
> Note you may not directly be able to use ambdec, because the channel ordering 
> might get mixed up, so I suggest running ardour or whatever jack-capable DAW 
> you like and hook that up to your decoder.
> 
> If you cannot configure this in whatever Firefox magic you use, here's a 
> trick:
> * find the mpv binary and (as root) rename it to mpv.bin or something
> * where the mpv file used to be (and is now mpv.bin), create a file "mpv" 
> that contains the following:
> 
> #!/bin/bash
> mpv --ao jack --jack_port=ardour.YoutubeIn.* $*
> 
> 
> That's all, now your script (with the jack magic gets called instead, and the 
> $* makes sure it gets handed all parameters originally used.
> Check out, maybe mpv also has a config file where you can set JACK as 
> default, that would be even simpler.
> 
> All of the above should work in Linux and OS X, not sure how to do it in 
> windows (but I'm sure it can be done).
> 
> 
> All best,
> 
> 
> Jörn
> 
> 
> 
> -- 
> Jörn Nettingsmeier
> De Rijpgracht 8, 1055VR Amsterdam, Nederland
> Tel. +49 177 7937487
> 
> Meister für Veranstaltungstechnik (Bühne/Studio), Tonmeister VDT
> http://stackingdwarves.net
> _______________________________________________
> Sursound mailing list
> Sursound@music.vt.edu
> https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here, edit 
> account or options, view archives and so on.

_______________________________________________
Sursound mailing list
Sursound@music.vt.edu
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here, edit 
account or options, view archives and so on.

Reply via email to