User:E.zn/prototyping3: Difference between revisions
(Created page with "x") |
No edit summary |
||
(23 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
x | <div style="font-family:monospace; font-size:13.5px"> | ||
<br> | |||
:__ [[Implicancies Channels and Tools]] | |||
:__ [https://www.hamvocke.com/blog/a-quick-and-easy-guide-to-tmux/ A Quick and Easy Guide to tmux] | |||
:__ [[Command-line podcasts]] | |||
:__ [[Angeliki/Grad_Scripts]] | |||
<br> | |||
---- | |||
<br> | |||
Reload [override cache] -- Firefox | |||
<pre> | |||
Ctrl + Shift + r | |||
</pre> | |||
<br> | |||
---- | |||
<br> | |||
Convert mp4 to mp3 | |||
<pre> | |||
ffmpeg -i <filename>.mp4 <filename>.mp3 | |||
</pre> | |||
Rename file | |||
<pre> | |||
mv <filename>.mp3 <newname>.mp3 | |||
</pre> | |||
Scaling + preserving aspect ratio | |||
<pre> | |||
ffmpeg -i Deep_Lab_Exc.mp4 -filter:v scale=472:-1 -c:a copy Deep_Lab_Excerpt.mp4 | |||
</pre> | |||
<pre> | |||
ffmpeg -i <x>.mp4 -vf "scale=1920:1080:force_original_aspect_ratio=increase,crop=1920:1080" <xx>.mp4 | |||
</pre> | |||
Resizing | |||
<pre> | |||
ffmpeg -i input.avi -s 720x480 -c:a copy output.mkv | |||
</pre> | |||
Cutting out a video excerpt [118 seconds starting at 54:06] | |||
<pre> | |||
ffmpeg -i Soleil_O.avi -c:av copy -ss 00:54:06 -t 118 Soleil_O_Excerpt.mp4 | |||
</pre> | |||
[[File:ffmpeg_soleil_no.png|700px]] | |||
<br> | |||
---- | |||
<br> | |||
[[Tmux]] // [[Icecast]] // [[Liquidsoap]] // [[Recording computer playback]] // [[RSS feeds]] | |||
<br> | |||
<br>Make a first playlist: | |||
<pre> | |||
cd /srv/radio | |||
ls /var/www/html/*.mp3 >> playlist.m3u | |||
</pre> | |||
Edit Playlist | |||
<pre> | |||
nano playlist.m3u | |||
</pre> | |||
Playlist is here: /srv/radio/playlist.m3u | |||
<br>Bash script for liquisdsoap: playlist.sh | |||
<pre> | |||
liquidsoap \ | |||
'output.icecast(%vorbis, | |||
host = "echo.lurk.org", port = 999, | |||
password = "<pwd>", mount = "radioimplicancies.mp3", | |||
mksafe(playlist("playlist.m3u")))' | |||
</pre> | |||
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:radioimplicancies01.png|700px]] | |||
<br> | |||
<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 | |||
</div> |
Latest revision as of 20:40, 29 May 2020
- __ Implicancies Channels and Tools
- __ A Quick and Easy Guide to tmux
- __ Command-line podcasts
- __ Angeliki/Grad_Scripts
Reload [override cache] -- Firefox
Ctrl + Shift + r
Convert mp4 to mp3
ffmpeg -i <filename>.mp4 <filename>.mp3
Rename file
mv <filename>.mp3 <newname>.mp3
Scaling + preserving aspect ratio
ffmpeg -i Deep_Lab_Exc.mp4 -filter:v scale=472:-1 -c:a copy Deep_Lab_Excerpt.mp4
ffmpeg -i <x>.mp4 -vf "scale=1920:1080:force_original_aspect_ratio=increase,crop=1920:1080" <xx>.mp4
Resizing
ffmpeg -i input.avi -s 720x480 -c:a copy output.mkv
Cutting out a video excerpt [118 seconds starting at 54:06]
ffmpeg -i Soleil_O.avi -c:av copy -ss 00:54:06 -t 118 Soleil_O_Excerpt.mp4
Tmux // Icecast // Liquidsoap // Recording computer playback // RSS feeds
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
To detach from tmux, leaving liquidsoap [and the stream] running
Ctrl + b d
Listen to the program: http://echo.lurk.org:999/radioimplicancies.mp3