Page 1 of 1

VLC can't stream playlists

Posted: 06 Nov 2022 00:41
by kyle_B
When streaming a playlist on windows or linux, it will stream the first file absolutely fine. But when it's time to move on to the second file, it disconnects all clients. The progress bar thingy and time counter keep on moving as usual on the broadcasting side though.

On windows it doesn't give any error in commandline or in the log file. However in linux terminal we get the following:

Code: Select all

[flv @ 0x7fe4a000b5c0] pts (20813141) < dts (20814084) in stream 0 [00007fe4a000b1a0] avformat mux error: could not write frame (pts: 20813141008, dts: 20814084748) (pkt pts: 20813141, dts: 20814084) [flv @ 0x7fe4a000b5c0] pts (20813099) < dts (20814251) in stream 0 [00007fe4a000b1a0] avformat mux error: could not write frame (pts: 20813099296, dts: 20814251582) (pkt pts: 20813099, dts: 20814251) [00007fe4640061c0] x264 encoder: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [00007fe4640061c0] x264 encoder: profile High, level 3.0, 4:2:0, 8-bit [00007fe4a000b1a0] main mux error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value [00007fe4b55b6600] main decoder error: cannot continue streaming due to errors with codec mp4a [00007fe4640061c0] x264 encoder: using SAR=160/177 [00007fe4640061c0] x264 encoder: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [00007fe4640061c0] x264 encoder: profile High, level 3.0, 4:2:0, 8-bit [00007fe4a000b1a0] main mux error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value [00007fe4a002bb40] stream_out_transcode stream out error: cannot add this stream [00007fe4b55b2820] main decoder error: cannot continue streaming due to errors with codec hevc
It does not matter what transcoding settings are chosen. It does not matter what codec the media is, either, all that changes is the named codec in the error.

Increasing sout-mux-caching value merely makes the suggestion to increase it go away.

Each file can be streamed out individually with no problem. But if they're together in a playlist, it will always fail when moving from the first file to another file. The only way to get VLC to continue is to quit the program and open it again.

Tested Windows 10 and latest arch linux. viewers are on various windows/linux/mac machines.

Re: VLC can't stream playlists

Posted: 24 Nov 2022 20:33
by RĂ©mi Denis-Courmont
You need to use the gather module to keep tracks and this can only work if all inputs have the exact same format (this is a limitation of your FLV choice of mux).

Re: VLC can't stream playlists

Posted: 23 Jan 2023 11:13
by superfanat1k
I have done it successfully without any problems.
Could you tell me how can i do? I have the same trouble, but in Windows

I need to stream in local network from PC to 3 smart tv
i choose file to steram - playlist, made in vlc
stream rtsp
first file from playlist works fine, but when start second file - all clients are disconnected, while recconect them