The situation is as follwows, Im listenening most of the day the same Webradio station (the are also sending over UKW and DAB+). When they are sending an annoying song like Falco or another similar pain for the ears like that, I switch to local music. When it switch back to radio again everytime I had to hear at least one minutes of ads before radio is back again. Now I I configured vlc (I tried also FFmpeg) as relay. Vlc buffers at anytime, start when switching back not the buffer, it always take the current stream, the buffer will be lost. The only annoying thing I could newer solved is the handover from the ID3 infos from the external stream to my internal stream. Would be great, if someone has an idea to fix that. So far as I know, Isn’t this possible with vlc, Maybe there ist an option in FFmpeg that I’dont know or in an other program.
Here mein systemctl service, der on one computer works on the other not:
`# /etc/systemd/system/
[Unit]
Description=VLC Streaming Server für Radio 1
Wants=network-online.target
After=network-online.target
#After=network.target # Optional: Stellen Sie sicher, dass das Netzwerk bereit ist’
[Service]
'ExecStart=/usr/local/bin/vlc-server.sh
Type=oneshot # Oder weitere Optionen, je nach Bedarf
[Install]
WantedBy=multi-user.target`
The script that is invoked bei this service:
sed -i 's/geteuid/getppid/' /usr/bin/vlc && /usr/bin/vlc Icy-MetaData: 1 -I http -vvv https://stream.radio1.ch/128k --network-caching=2000 :sout="#transcode{vcodec=none,acodec=mp4a,ab=128,channels=2,samplerate=44100,scodec=none}:http{mux=mux_ts,dst=:8080/stream.mp3}" :no-sout-all :sout-keep
Error Messagae Strawberry:
Not found
../gstreamer/subprojects/gst-plugins-good/ext/soup/gstsouphttpsrc.c(1843): gst_soup_http_src_parse_status (): /GstPlayBin:pipeline-2-pipeline/GstURIDecodeBin:uridecodebin1/GstSoupHTTPSrc:source: Not found (404), URL: http://localhost:8080/stream.mp3, Redirect to: (NULL)
Internal data stream error.
../gstreamer/subprojects/gstreamer/libs/gst/base/gstbasesrc.c(3187): gst_base_src_loop (): /GstPlayBin:pipeline-2-pipeline/GstURIDecodeBin:uridecodebin1/GstSoupHTTPSrc:source: streaming stopped, reason error (-5)
Der Datenstrom enthält nicht genug Daten.
../gstreamer/subprojects/gstreamer/plugins/elements/gsttypefindelement.c(1012): gst_type_find_element_chain_do_typefinding (): /GstPlayBin:pipeline-2-pipeline/GstURIDecodeBin:uridecodebin1/GstTypeFindElement:typefindelement3: Can't typefind stream
Und VLC Player
Ihre Eingabe konnte nicht geöffnet werden:
VLC kann die Medienadresse 'http://localhost:8080/stream.mp3' nicht öffnen. Für Details bitte im Fehlerprotokoll nachsehen.