Answer the question
In order to leave comments, you need to log in
Auto restart VLC stream?
Good afternoon, there are 3 streams vlc
udp://230.1.1.1:1234
udp://230.1.1.2:1235
udp://230.1.1.3:1236
streams pull live video from the Internet (i.e. I have a link to the m3u8 playlist ) after a short work of 6-7 hours, the picture in the vlc stream hangs and does not continue further, if you open the playlist url, then everything works, after restarting the stream it works again for a while, please tell me is it possible to automate the process of starting the stream and restarting after a time interval? tests pass both on win and ubuntu.
Answer the question
In order to leave comments, you need to log in
Crutch:
Doing a script:
#!/usr/bin/perl
$test = `/bin/ps xawff |/bin/grep vlc |/bin/grep -v grep| /usr/bin/wc -l`;
chomp $test;
`echo $test > /tmp/online.log`;
if ($test eq "0") {
`<запуск потока>`;
`date >> /var/log/online.log`;
};
exit 0
#!/usr/bin/perl
while (1) {
`date >> /var/log/online.log`;
`<запуск потока>`;
}
exit 0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question