User:E.zn/prototyping3: Difference between revisions
No edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
</pre> | </pre> | ||
The resulting program is here: http://echo.lurk.org:999/radioimplicancies.mp3 | The resulting program is here: http://echo.lurk.org:999/radioimplicancies.mp3 | ||
<br>Run the playlist, via icecast on Lurk | |||
<br>Start a "tmux session", make it shareable... | |||
<pre> | |||
tmux -S /tmp/radio new -s radio | |||
chgrp publicweb /tmp/radio | |||
</pre> | |||
For others to be able to watch this terminal | |||
<pre> | |||
tmux -S /tmp/radio attach -t radio -r | |||
</pre> | |||
Start the stream | |||
<pre> | |||
bash playlist.sh | |||
</pre> | |||
[[File:radioimplicancies#01.png|700px]] | |||
<br>To detach from tmux, leaving liquidsoap [and the stream] running | |||
<pre> | |||
Ctrl-b d | |||
</pre> | |||
Listen to the program: http://echo.lurk.org:999/radioimplicancies.mp3 | |||
Revision as of 15:47, 23 April 2020
Convert mp4 to mp3
ffmpeg -i <filename>.mp4 <filename>.mp3
Rename file
mv <filename>.mp3 <newname>.mp3
Make a first playlist:
cd /srv/radio ls /var/www/html/*.mp3 >> playlist.m3u
Edit Playlist
nano playlist.m3u
Playlist is here: /srv/radio/playlist.m3u
Bash script for liquisdsoap: playlist.sh
liquidsoap \ 'output.icecast(%vorbis, host = "echo.lurk.org", port = 999, password = "<pwd>", mount = "radioimplicancies.mp3", mksafe(playlist("playlist.m3u")))'
The resulting program is here: http://echo.lurk.org:999/radioimplicancies.mp3
Run the playlist, via icecast on Lurk
Start a "tmux session", make it shareable...
tmux -S /tmp/radio new -s radio chgrp publicweb /tmp/radio
For others to be able to watch this terminal
tmux -S /tmp/radio attach -t radio -r
Start the stream
bash playlist.sh
File:Radioimplicancies
To detach from tmux, leaving liquidsoap [and the stream] running
Ctrl-b d
Listen to the program: http://echo.lurk.org:999/radioimplicancies.mp3