Play Playlist with (c)vlc, listen it local AND stream it - it stops after one played item

*nix specific usage questions
dafosy
New Cone
New Cone
Posts: 3
Joined: 19 Jan 2022 08:17

Play Playlist with (c)vlc, listen it local AND stream it - it stops after one played item

Postby dafosy » 19 Jan 2022 08:38

Hello Community,

I set up an alarm-clock in the childrens room. There the music starts each schoolday-morning and play nice tracks to wake the little ones up. I realised it with an raspberrypi and a home-stereo-system. This works pretty well.
pi@raspberrypi:~/Musik $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
Now they asked, if I can put the same playlist to the stereo-system in the kitchen during breakfast. There is a raspberry-system as well.
volumio@volumio:~$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
The advantage is, that the playlist is build each morning new. The reason is, that a kind of shuffle-system brings different music each morning.

So lets call the playlist in the following example: 20220118-0959_playlist.txt.

I start the children-room raspberry with a script at the wakeup-time with

Code: Select all

cvlc $(cat /media/ramdisk/20220118-0959_playlist.txt) --sout '#duplicate{dst=es{access-audio=http,mux-audio=ts,dst=:8090},dst=display' --sout-all --sout-keep
I start the kitchen raspberry with a smarthome button and a Skript with

Code: Select all

cvlc --alsa-audio-device softvol http://192.168.0.28:8090
So far so good. BUT!
The kitchen one plays just one item of the playlist. Especially the one which is played on the childrenrooms streamserver in the moment I start the kitchen-pi.

Is there anyone who can give me advice for using the "--sout-keep" for my example right? So that the kitchen-pi plays the whole stream and didnt stop after one track of the playlist.

Thx
dafosy

By the way, this is how the playlist looks like:

Code: Select all

nano /media/ramdisk/20220118-0959_playlist.txt
20220112_04_HapeKerkeling-Wennichers.mp3
20220112_05_LeonhardMahlich-Rentieres.mp3
15_20140420_01_CD2-Waterloo.mp3
15_20140421_04_CD1_Chiquitita.mp3
15_Madonna-LaIslaBonita.mp3
15_JulianeWerdingWenndudenkst.mp3
15_20211221_Shakira_Locafeat.Dizze.mp3
15_20140421_01_CD1_DancingQueen.mp3
20220105_06_Sting_Whenever.mp3
20220105_07_Sting_DontMak.mp3
20220105_08_Sting_Restewi.mp3
20211217_12_Gummistiefelsindnicht.mp3
20211217_13_DeralteBaum.mp3
20211221_DieSunStehtTiaf_Seboki.mp3
20220112_10_KaceyMusgraves-AllIsFoun.mp3
20220112_11_Weezer-LostintheWoodsW.mp3
20220112_12_MarkForster-Wonochnieman.mp3
https://orf-live.ors-shoutcast.at/fm4-q2a

Rémi Denis-Courmont
Developer
Developer
Posts: 15311
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Play Playlist with (c)vlc, listen it local AND stream it - it stops after one played item

Postby Rémi Denis-Courmont » 19 Jan 2022 19:18

You probably need to use the gather module here, but it will only work if all files are really MPEG-1/2 Audio.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

dafosy
New Cone
New Cone
Posts: 3
Joined: 19 Jan 2022 08:17

Re: Play Playlist with (c)vlc, listen it local AND stream it - it stops after one played item

Postby dafosy » 21 Jan 2022 21:22

I will try the gather module asap. I let you know.

dafosy
New Cone
New Cone
Posts: 3
Joined: 19 Jan 2022 08:17

Re: Play Playlist with (c)vlc, listen it local AND stream it - it stops after one played item

Postby dafosy » 15 Sep 2022 22:39

Hey Folks,

I'll let you know how I solved my problem. At least I found this link: https://linux.goeszen.com/vlc-streaming-guide.html

So in my case I'll fit the following line to my skript:

Code: Select all

cvlc $(cat /media/ramdisk/20220915-0630_playlist.txt) --sout '#duplicate{dst=display,dst="gather:std{access=mmsh,mux=asfh,dst=:8090/stream.asf}"}' --sout-keep --loop
and play it remotely with:

Code: Select all

mmsh://192.168.0.28:8090/stream.asf
So long, It seems to be working.

superfanat1k
New Cone
New Cone
Posts: 2
Joined: 23 Jan 2023 11:10

Re: Play Playlist with (c)vlc, listen it local AND stream it - it stops after one played item

Postby superfanat1k » 23 Jan 2023 11:51

Hey Folks,

I'll let you know how I solved my problem. At least I found this link: https://linux.goeszen.com/vlc-streaming-guide.html

So in my case I'll fit the following line to my skript:

Code: Select all

cvlc $(cat /media/ramdisk/20220915-0630_playlist.txt) --sout '#duplicate{dst=display,dst="gather:std{access=mmsh,mux=asfh,dst=:8090/stream.asf}"}' --sout-keep --loop
and play it remotely with:

Code: Select all

mmsh://192.168.0.28:8090/stream.asf
So long, It seems to be working.
Hey, bro
could you help me to do the same thing
I want to stream video playlist from PC to 3 TVs
Stream works fine, but only for first video
When starts second video, TVs dsconnect


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 28 guests