VLC media player for Linux and friends Troubleshooting • Loop AtoB, break out of loop on input, finish video



Is it possible to play a video on a loop from A to B, then, on a signal, say a keypress, finish the video? I would then auto restart the video, which would play the A to B loop again. More or less an “attract mode” followed by the rest of the video.

Raspberry Pi 4. Raspbian, but I could run something else. Would like to run the video full screen from a command line script.

(The content is a face that looks to be asleep, then starts talking. Sleep is the A-B loop, talking is the play once and quit.)

Where I am now–I can run the whole thing as a continuous loop using a script, no problem. I have a device that can signal the Raspberry Pi via GPIO pins, which could be translated to a keypress.

If it is possible to do this by switching videos (loop sleeping, play once speaking, then start loop sleeping again), I would also try that, if the switch were not too obvious.

If this is impossible, I will probably do the sleeping face as a desktop wallpaper and then switch to the video of the speaking face, but if there is a way to do it elegantly in vlc I would love to use it.

Thanks!

Statistics: Posted by sooh — 25 Jun 2024 15:29