I build a video distribution system, where there is one server with a "playlist" of URLs, and multiple Raspberry PIs working as clients, fetching constantly playlist from the server and putting their local "videos" folder in sync with playlist. "Clients" can go offline anytime, but must be able to loop videos they have got so far. The system should work without any GUI, automatically upon startup.
The biggest problem I encountered so far is trying to play multiple .mp4 videos in a playlist without 1 second gaps. --loop
would do, but I need to play multiple files in a row.
A simplified model of omxplayer
"playlist" would be a script like
`omxplayer video1.mp4`
`omxplayer video2.mp4`
`omxplayer video3.mp4`
I am aware of hello_video option, but it still has 0,1s black gap and videos must be transcoded to "raw h264" – it doesn't fit me, as I don't want to add extra moving part in form of transcoding daemon (I'll have tens of GBs coming in .mp4).