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.
Mpv installed and a 1 line bash script would do. Unless systemd, in which case the author of a system configuration with a fixed and repeatable outcome deserves a medal.
-- Account abandoned.
Starting Score:
1
point
Moderation
+3
Interesting=2,
Informative=1,
Total=3
Extra 'Interesting' Modifier
0
Karma-Bonus Modifier
+1
Total Score:
5
(Score: 2, Insightful) by Anonymous Coward on Sunday November 24 2019, @05:16PM
(1 child)
by Anonymous Coward
on Sunday November 24 2019, @05:16PM (#924209)
Millennials believe a one line bash script is black magic, so it's no wonder this trivial project is news.
My feelings exactly. They, um, took a Pi, put it in a box and, um, plugged it together.
This is what happens when you hand out trophies to kids for participating.
If I really wanted something like this I'd just buy one of about umpty bazillion purpose-built media players with vastly more capabilities than the Pi, at about the same price, or less for the really cut-down ones.
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: 5, Interesting) by Bot on Sunday November 24 2019, @04:40PM (4 children)
Mpv installed and a 1 line bash script would do. Unless systemd, in which case the author of a system configuration with a fixed and repeatable outcome deserves a medal.
Account abandoned.
(Score: 2, Insightful) by Anonymous Coward on Sunday November 24 2019, @05:16PM (1 child)
Millennials believe a one line bash script is black magic, so it's no wonder this trivial project is news.
(Score: 3, Insightful) by driverless on Sunday November 24 2019, @10:29PM
My feelings exactly. They, um, took a Pi, put it in a box and, um, plugged it together.
This is what happens when you hand out trophies to kids for participating.
If I really wanted something like this I'd just buy one of about umpty bazillion purpose-built media players with vastly more capabilities than the Pi, at about the same price, or less for the really cut-down ones.
(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.