posted by
Fnord666
on Sunday November 24 2019, @03:53PM
from the just-play-the-file-already dept.
Arthur T Knackerbracket submitted a link to an interesting hackaday story about a DIY video player. The approach taken is very simple, using a Raspberry Pi to do all of the heavy lifting. There's also no user interface. The Pi scans for any removable media that has been inserted, and if it finds something it automatically plays the video files contained on the card. For anyone interested in building a no-frills, portable video player this might just be the ticket.
You generate the playlist with find/xargs, and mpv --shuffle play it in loop, logging is done at mpv.conf level, no need to mess with IFS. Double logging I dunno, should look into the reason for it first.
(Score: 3, Informative) by rigrig on Monday November 25 2019, @12:37AM (1 child)
Maybe you could do it with a one liner, but then how could you save the original $IFS but never restore it, needlessly shuffle the file order, and log to two different files [github.com]? (Also, "it only plays .avi and .mp4 files" is hardly foolproof)
No one remembers the singer.
(Score: 2) by Bot on Monday November 25 2019, @02:31PM
You generate the playlist with find/xargs, and mpv --shuffle play it in loop, logging is done at mpv.conf level, no need to mess with IFS. Double logging I dunno, should look into the reason for it first.
Account abandoned.