Discussion:
[Sursound] B-format tap
Steven Boardman
2017-10-13 10:44:10 UTC
Permalink
Hi Folks

Does anybody have any information on how to tap the YouTube/Facebook B-Format stream, post rotation, before it goes to the binaural decoder?
I know I could rip the video, but I would rather stream.
I want to feed to my own decoder and speaker rig, and use different HRTFs

Thanks

Steve
Marc Lavallée
2017-10-13 11:40:43 UTC
Permalink
You could stream a download, so to say, with a solution based on the
the youtube-dl software: https://rg3.github.io/youtube-dl/

--
Marc

Le Fri, 13 Oct 2017 11:44:10 +0100
Post by Steven Boardman
Hi Folks
Does anybody have any information on how to tap the YouTube/Facebook
B-Format stream, post rotation, before it goes to the binaural
decoder? I know I could rip the video, but I would rather stream. I
want to feed to my own decoder and speaker rig, and use different
HRTFs
Thanks
Steve
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe
here, edit account or options, view archives and so on.
Steven Boardman
2017-10-13 12:05:40 UTC
Permalink
Thanks Marc

I know I can rip or download them, that works fine, but is a pain.
It would be great if I could just re-config my outputs, and play.

It is quite revealing, listening to content over speakers rather than headphones, and in the process avoiding HRTF.
By the sounds of it, most content seems to be mixed on badly matched headphones, and HRTFs.
Do people not mix on speakers anymore?
It used to be the case that one would never mix (stereo/5.1 etc) on headphones, but always check later. This was the best way for a mix to translate.
Maybe I am missing something, but whenever I have mixed solely on headphones, it sounds terrible elsewhere. Even more so when I mix spatially…
Maybe it is time for me to get that HRTF scan, but then I would also need the response corrected for my favourite set of cans.

Cheers

Steve
Post by Marc Lavallée
You could stream a download, so to say, with a solution based on the
the youtube-dl software: https://rg3.github.io/youtube-dl/
--
Marc
Le Fri, 13 Oct 2017 11:44:10 +0100
Post by Steven Boardman
Hi Folks
Does anybody have any information on how to tap the YouTube/Facebook
B-Format stream, post rotation, before it goes to the binaural
decoder? I know I could rip the video, but I would rather stream. I
want to feed to my own decoder and speaker rig, and use different
HRTFs
Thanks
Steve
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe
here, edit account or options, view archives and so on.
Marc Lavallée
2017-10-13 12:23:57 UTC
Permalink
https://addons.mozilla.org/fr/firefox/addon/watch-with-mpv/

--
Marc

Le Fri, 13 Oct 2017 13:05:40 +0100
Post by Steven Boardman
Thanks Marc
I know I can rip or download them, that works fine, but is a pain.
It would be great if I could just re-config my outputs, and play.
It is quite revealing, listening to content over speakers rather than
headphones, and in the process avoiding HRTF. By the sounds of it,
most content seems to be mixed on badly matched headphones, and
HRTFs. Do people not mix on speakers anymore? It used to be the case
that one would never mix (stereo/5.1 etc) on headphones, but always
check later. This was the best way for a mix to translate. Maybe I am
missing something, but whenever I have mixed solely on headphones, it
sounds terrible elsewhere. Even more so when I mix spatially… Maybe
it is time for me to get that HRTF scan, but then I would also need
the response corrected for my favourite set of cans.
Cheers
Steve
Post by Marc Lavallée
You could stream a download, so to say, with a solution based on the
the youtube-dl software: https://rg3.github.io/youtube-dl/
--
Marc
Le Fri, 13 Oct 2017 11:44:10 +0100
Post by Steven Boardman
Hi Folks
Does anybody have any information on how to tap the
YouTube/Facebook B-Format stream, post rotation, before it goes to
the binaural decoder? I know I could rip the video, but I would
rather stream. I want to feed to my own decoder and speaker rig,
and use different HRTFs
Thanks
Steve
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe
here, edit account or options, view archives and so on.
Marc Lavallée
2017-10-13 12:54:00 UTC
Permalink
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.

--
Marc

On Fri, 13 Oct 2017 08:23:57 -0400
Post by Marc Lavallée
https://addons.mozilla.org/fr/firefox/addon/watch-with-mpv/
--
Marc
Le Fri, 13 Oct 2017 13:05:40 +0100
Post by Steven Boardman
Thanks Marc
I know I can rip or download them, that works fine, but is a pain.
It would be great if I could just re-config my outputs, and play.
It is quite revealing, listening to content over speakers rather
than headphones, and in the process avoiding HRTF. By the sounds of
it, most content seems to be mixed on badly matched headphones, and
HRTFs. Do people not mix on speakers anymore? It used to be the case
that one would never mix (stereo/5.1 etc) on headphones, but always
check later. This was the best way for a mix to translate. Maybe I
am missing something, but whenever I have mixed solely on
headphones, it sounds terrible elsewhere. Even more so when I mix
spatially… Maybe it is time for me to get that HRTF scan, but then
I would also need the response corrected for my favourite set of
cans.
Cheers
Steve
Post by Marc Lavallée
You could stream a download, so to say, with a solution based on
the the youtube-dl software: https://rg3.github.io/youtube-dl/
--
Marc
Le Fri, 13 Oct 2017 11:44:10 +0100
Post by Steven Boardman
Hi Folks
Does anybody have any information on how to tap the
YouTube/Facebook B-Format stream, post rotation, before it goes
to the binaural decoder? I know I could rip the video, but I
would rather stream. I want to feed to my own decoder and
speaker rig, and use different HRTFs
Thanks
Steve
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe
here, edit account or options, view archives and so on.
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe
here, edit account or options, view archives and so on.
Jörn Nettingsmeier
2017-10-13 17:59:51 UTC
Permalink
Post by Marc Lavallée
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.
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
Marc Lavallée
2017-10-13 18:22:21 UTC
Permalink
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
Post by Jörn Nettingsmeier
Post by Marc Lavallée
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.
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 --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.
* find the mpv binary and (as root) rename it to mpv.bin or something
#!/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
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here, edit account or options, view archives and so on.
Marc Lavallée
2017-10-14 02:41:18 UTC
Permalink
Maybe I was a bit too enthusiastic; the Firefox extension I
mentionned should work just fine (no need to code a new one). It has
preferences to configure the player and its options; so the player
could be the script that Jörn explained.

I also found a more sophisticated solution for Linux and Chrome
(that should also work on OSX)
https://github.com/agiz/youtube-mpv
A contextual menu is added, to play the current youtube page or youtube
links. This is the solution I will adopt because its javascript
extension is simpler and the its server backend is in python.

--
Marc


On Fri, 13 Oct 2017 14:22:21 -0400
Post by Marc Lavallée
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
Post by Marc Lavallée
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
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 --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.
* 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
#!/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
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe
here, edit account or options, view archives and so on.
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe
here, edit account or options, view archives and so on.
Steven Boardman
2017-10-14 13:31:30 UTC
Permalink
Thanks for the info folks.

I did briefly try Mark, but I think I will have to do more configuration, as it doesn’t seem to work so far.
I will persevere and report back.

Cheers

Steve
Post by Marc Lavallée
Maybe I was a bit too enthusiastic; the Firefox extension I
mentionned should work just fine (no need to code a new one). It has
preferences to configure the player and its options; so the player
could be the script that Jörn explained.
I also found a more sophisticated solution for Linux and Chrome
(that should also work on OSX)
https://github.com/agiz/youtube-mpv
A contextual menu is added, to play the current youtube page or youtube
links. This is the solution I will adopt because its javascript
extension is simpler and the its server backend is in python.
--
Marc
On Fri, 13 Oct 2017 14:22:21 -0400
Post by Marc Lavallée
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
Post by Marc Lavallée
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
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 --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.
* 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
#!/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
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe
here, edit account or options, view archives and so on.
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe
here, edit account or options, view archives and so on.
_______________________________________________
Sursound mailing list
https://mail.music.vt.edu/mailman/listinfo/sursound - unsubscribe here, edit account or options, view archives and so on.
Loading...