wir betreiben seid knapp einem Jahr unser Internetradio mit einem rtmp System auf einem Linux Server. Ich habe einen Hauptstream eingerichtet mit dem wir senden. Ich bin nun schon länger am probieren diesen Stream noch in verringerter Qualität anzubieten. Leider sind meine ffmpeg Kentnisse bei 0. Mit den Anleitungen die ich im Netz gefunden habe komme ich nicht weiter, bzw. funzen nicht.
So schwer kanns doch nicht sein
![Redface :oops:](./images/smilies/icon_redface.gif)
Orginal
Code: Alles auswählen
exec ffmpeg -i rtmp://localhost/live/$name
-c:a libfdk_aac -b:a 32k -c:v libx264 -b:v 128K -f flv rtmp://localhost/hls/$name_low
Code: Alles auswählen
exec ffmpeg -i rtmp://localhost:1935/mxm1/mXmlive?username=videotest&password=videotest
-c:a libfdk_aac -b:a 32k -c:v libx264 -b:v 128K -f flv rtmp://localhost/mobile/mXmliveMobile
-c:a Argument gebe es nicht
Zielpfad nicht vorhanden
nginx.conf
Code: Alles auswählen
http Bereich:
# mXm1 Livestream
location /live {
types {
application/vnd.apple.mpegurl m3u8;
}
alias /var/www/html/hls/live/;
add_header Cache-Control no-cache;
}
# mXm1 Mobilstream
location /mobile {
types {
application/vnd.apple.mpegurl m3u8;}
alias /var/www/html/hls/mobile/;
add_header Cache-Control no-cache;}
rtmp Bereich
#Hauptstream
application mxm1 {
live on;
meta copy;
allow publish all;
deny publish all;
allow play all;
hls on;
hls_path /var/www/html/hls/live;
hls_cleanup on;
#mXm1 Mobil Stream
application mobile {
live on;
allow play all;
hls on;
hls_path /var/www/html/hls/mobile;
hls_fragment 10s;
hls_playlist_length 10s;
![Question :?:](./images/smilies/icon_question.gif)