Implicancies Caretakers Issue 12

From XPUB & Lens-Based wiki
Revision as of 10:17, 15 May 2020 by FS (talk | contribs) (Created page with "What do the "caretakers" do ... * Making message for the mailinglist * Update the website * Decide elements on the page / player like iframe with etherpad/xmpp chat .... * En...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

What do the "caretakers" do ...

  • Making message for the mailinglist
  • Update the website
  • Decide elements on the page / player like iframe with etherpad/xmpp chat ....
  • Ensuring the collection of materials on sandbox is complete
  • Making the playlist...
  • Testing the liquidsoap script ahead of time?

Prepare materials on hub

Move the recorded files to the radio folder: hub.sandbox:/var/www/html/radio

scp file.mp3 hub.sandbox:/var/www/html/radio

If necessary, convert mp4 to mp3

fmpeg -i "name.mp4" "name.mp3"

Rename files

ssh sandbox
cd /var/www/html/radio
mv ORIGINALNAME.mp3 newname.mp3
0_title.mp3

Make a playlist (liquid soap)

cd /srv/radio
ls /var/www/html/*.mp3 >> playlist.m3u
nano playlist.m3u # did some editing, reordered, removed ones we don't want...

Playlist is here ---> /srv/radio/playlist.m3u

The bash script = playlist.sh

Starting/stopping the stream

Caretaker starts a "tmux session", makes it shareable... (ssh to the sandbox)

tmux -S /tmp/radio attach -t radio

Go into the directory where the *.liq is and then

liquidsoap -v *.liq

Starting the playlist

bash playlist.sh

caretaker can eventually press:

ctrl-b d 

... to detach from tmux, leaving liquidsoap (and the stream) running.

others can watch what is happening with

tmux -S /tmp/radio attach -t radio -r

-r (read only) is to prevent you make accidental changes.