Friday, December 30, 2016

Video Streaming from Traktor with BCD Controller to VAC to OBS Studio

Here is an example of this setup in action as livestreamed and recorded from OBS Studio.


Leave the Traktor audio settings alone.  These are related to the particular controller, the BCD3000, which provides two ASIO outputs, stereo master out that typically connects to the speakers and stereo monitor out that typically goes to headphones.

Use the ASIO from the controller

Typical outputs to speakers and headphones
Now this gets a little tricky fast, and the first trick is instead of connecting the Master Out cable directly to the speakers that I typically do for Traktor, I take the master out and plug it into the Mic In on the laptop.

I usually connect the Master Out directly to the speakers, but in this setup I leave the connection to the speakers from the Headphone Out alone (and do not use it because there will be no signal to the speakers in this setup.

This overview combines a little bit of the hardware with the software as block diagram. The client is obviously connected to speakers/headphones.


The block diagrams give a general idea of what's going on after Traktor.  For the VAC stage, you need just one cable.  VAC (Virtual Audio Cable) is a paid program, and you might have O Deus ASIOLink or Jack. Out of the box, VAC arrives with one cable, which is fine. I happen to have eight as I didn't know how many I would need.

I have no idea what this is aside from letting it determine how many cables I have, so aside from that, leave it alone.

As to a repeater, I use the KS version and it takes the Mic In and sends it to a virtual patch cable out, VAC1.


50% of the magic happens right here in this repeater.  You can see evidence of incoming audio at the mic as cabled, and you can see it is hitting the out at VAC1 front left and front right speaker signals at the bottom of the window. Note setting for 44,100 sample rate and 100 ms total buffer selected from the dropdown.
Now we're ready for OBS Studio configuration. This isn't quite perfect as you can occasionaly hear stuttering, but overall the sound is good. When I was livestreaming the test video, there were several instances where I was listening to the audio from the client with a pair of phones and attempting to load a track in Traktor and danged if I couldn't hear the monitor signal as expected. Oh, I was using the wrong phones.
The base canvas and the output resolution is governed by some reduction to final 360p video. It's this small because I use DSL that offers .9 Mbps upload best case, which does not provide bandwidth for 720p upload.

Here's the other 50% of the magic at audio settings.  See how VAC1 is configured as the Mic/Aux In.

You can tell the audio is working.  It is pulsing green.  I set the slider  near the speaker icon to -2.5dB. This is the window capture of my Traktor screen in OBS as seen in much of the video.




Monday, November 14, 2016

Stream files from VLC

01tools-messages-set-verbosity-to-2

02media-stream

03-click-add-button-then-select-file(s)-to-stream

04click-stream-button

05click-next-button

07A-select-icecast-from-the-drop-down-not-file-then-click-next

08select-transcoding-option-then-click-next


102make-sure-you-put-source

103copy-paste-my-sout-and-now-i-am-going-to-stream

104at-stream-it-starts-streaming-if-it-is-going-to-work-no-need-to-press-play-these-messages-look-good

105vlc-is-now-streaming-the-file

106and-here-it-is-making-a-trip-to-server-and-back-to-my-browser

107the-address-you-use-for-the-server-in-the-browser

Here's how to stream a file from VLC, which facilitates simple FFmpeg calls (saves loading mixing and streaming software such as Traktor and generating history).  Start by searching for tutorials and information on your own to get the general idea and possible ways to help you if your questions are not answered here. I used a video as an example by TechKidda.  If you have an Icecast server available, all you need is host name or IP address, domain, port and password.  Work through the VLC part of the tutorial until the stream works for you. Be very careful to put source:your-password in Icecast destination set-up (two pieces of information separated by a colon). Save the generated sout statement (known to work) to a text file for copy pasting in the future as it will work fine for streaming other files without filling in the forms completely. Instead, in the future, just click through until you see the stream where the sout statement goes, plug it in and stream. You can play the stream in a virtual world or on a music player such as Foobar 2000 using the entire URL, or, you can hear an Icecast2 stream in progress by way of the browser (just need host and domain names followed by a colon and then the port number without the mount).

Sunday, July 24, 2016

Streaming with Mixxx

Some time ago, a friend had some difficulties doing a set-up with Mixxx on Windows 7 or 8.1.  This illustrated tutorial is a recap, and is here to help you.

Tuesday, July 12, 2016

On Ripping

Recently I have had to add must-plays to copy-cat sets I've been doing, and there was no way to find the music except on frostwire or youtube.  I wrote an article on Medium about this.  I really wanted to find a way to get the best sound out of a video, and not go back to ripping a video to mp3, which is something I got away from years ago by way of playing DJ promos.  However, I cut myself off from must-plays by playing promos only.  A better ripping workflow has made it possible to re-access these tracks.