mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 22:54:12 +00:00
use fahrplan mirror
This commit is contained in:
parent
77b38e07ca
commit
66dcbb4b66
2 changed files with 18 additions and 2 deletions
16
assets/img/rooms/update-teaser-images.sh
Executable file
16
assets/img/rooms/update-teaser-images.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
while true; do
|
||||
ffmpeg -y -v warning -i rtmp://rtmp.stream.c3voc.de:1935/stream/s1_native_sd -vf "scale=213:120" -vframes 1 saal1.png
|
||||
optipng saal1.png
|
||||
|
||||
ffmpeg -y -v warning -i rtmp://rtmp.stream.c3voc.de:1935/stream/s2_native_sd -vf "scale=213:120" -vframes 1 saal2.png
|
||||
optipng saal2.png
|
||||
|
||||
ffmpeg -y -v warning -i rtmp://rtmp.stream.c3voc.de:1935/stream/s3_native_sd -vf "scale=213:120" -vframes 1 saalg.png
|
||||
optipng saalg.png
|
||||
|
||||
ffmpeg -y -v warning -i rtmp://rtmp.stream.c3voc.de:1935/stream/s4_native_sd -vf "scale=213:120" -vframes 1 saal6.png
|
||||
optipng saal6.png
|
||||
|
||||
sleep 1
|
||||
done
|
|
@ -3,9 +3,9 @@
|
|||
function program()
|
||||
{
|
||||
$program = array();
|
||||
$opts = array('http' => array('timeout' => 2));
|
||||
$opts = array('http' => array('timeout' => 2, 'user_agent' => 'Fahrplan'));
|
||||
$context = stream_context_create($opts);
|
||||
$schedule = file_get_contents($GLOBALS['CONFIG']['SCHEDULE'], false, $context);
|
||||
$schedule = file_get_contents('http://fahrplan-31c3.mkswap.net/fahrplan?a=1', false, $context);
|
||||
|
||||
// loading failed, try tmp-file
|
||||
if(!$schedule)
|
||||
|
|
Loading…
Reference in a new issue