TUTORIAL DISPLAYING CURRENT TRACK FROM VIRTUALDJ TO OBS FOR MAC


Here is a trick for Antorbanen DJ did by Muka from Don’t Expect Less Group
https://www.twitch.tv/antornbanen
https://dontexpectless.com/

Is a simple MacOs terminal command to read last line(s) of VirtualDJ History tracklist.txt, write in a new file called obs-tracks.txt and added to OBS as a simple text using Freetype 2 font you can modify the style! 😀

  1. THE TERMINAL COMMAND
    while true; do tail -n 1 /Users//Documents/VirtualDJ/History/tracklist.txt | cut -c 9- > /Users//Documents/VirtualDJ/History/obs-tracks.txt; sleep 1; done
    **IMPORTANT – modify with your user name /user folder name
    **COMMAND EXPLICATION on bottom
  1. EXECUTE COMAND
    1. Open Terminal – «cmd+space» and write terminal
    2. Copy and paste the command and pulse RETURN
  2. FIRST CHECK
    1. Open VirtualDJ and play a track with the fader at top min 45sec
    2. Check file /Users//Documents/VirtualDJ/History/tracklist.txt and see if the current track is on the bottom
    3. Check file /Users//Documents/VirtualDJ/History/obs-tracks.txt and see only the actual track
  3. SECOND CHECK
    1. Play a second track for min 45sec
    2. Check file /Users//Documents/VirtualDJ/History/obs-tracks.txt and see ONLY THE SECOND TRACk
  4. SHOW TRACK IN OBS
    1. Add new Text FreeType 2 font
    2. Selectec option READ FROM FILE
    3. Scroll down and in TEXT FILE select obs-tracks.txt (remember, located in /Users//Documents/VirtualDJ/History/obs-tracks.txt)

VIRTUALDJ tracklist.txt EDIT INFO

  1. Go to VirtualDj Config
  2. Go to OPTIONS TAB located on left
  3. Write TRACKLIST in Search box located at top
  4. You will see 3 parameters under BROWSER
    historyDelay – Witing time in seconds before write the playing track in tracklist.txt (change to 3 or whatever for testing)
    tracklistFormat – The TAGs will write from the track

You can see a list of parameters here http://www.virtualdj.com/wiki/Skin%20SDK%20Textzone.html

EXTRA OPTION – INFO IN 2 LINES

We did a litle second mod to show more info from the track in 2 lines beacuase a lot of time the text is too long.
Here is how to proceed

  1. Modify the command changing the «-n 1» to «-n 2». This change will read the 2 last lines from tracklist.txt
  2. Modify the parameter «tracklistFormat» in VirtualDJ config to write the TAGs of the track in 2 lines using «\n» to print a new line feed
    **IMPORTANT – Remember to add 8 characters after «\n» beacuse will be ignored by the command

Exmaple: %author – %title \n 12345678%bpm – %album – Year %year

  • Will show:
    FJAAK – Don’t Leave Me
    130BPM – Don’t Leave Me / Plan A – Year 2014