Page 1 of 1

Seamless stream looping

Posted: 28 Sep 2015 20:14
by TedDennison
I have a job where I need to stream an MP4 file continuously to a specific multicast address, which is read from by a "black box". (Its actually kinda gray, but you get the idea).

I've gotten this working fine with a little 64-bit Windows app using libVlc 2.1.5 that calls _vlm_add_broadcast() and _vlm_play_media(), with one minor glitch. I've set add_broadcast's b_loop to true, but when it gets to the end of the file there is a very noticeable (half to full second) period where there's no video playing and the device on the other end blanks out and complains.

In this thread I see the flat statement "LibVLC does not support seamless loop". OK. So I guess my question is, how do I fix this?

I've downloaded the sources to 2.1.5, and am not afraid to get in there and muck with things if I really really have to. What should I look at in there? What kinds of things would I have to do to fix this?

Re: Seamless stream looping

Posted: 08 Oct 2015 16:23
by Jean-Baptiste Kempf
if the video are the same formats, the video output should be recycled.