I am currently working on a Pi-based video player for my son.
I am hoping to use python to achieve this, however I am looking for advice (I have never undertaken a project like this before).
The device itself will feature a small screen, and 9 buttons:
- [1 x Play/Pause]
[2 x Prev/Next]
[6 x Playlist]
When playlist button is pressed the player will start playing that characters set of videos. These videos are to be sourced from many locations (there may be 2 or 3 storage devices attached with content) so one singular playlist of each one would be beneficial. I am thinking of compiling the playlists on startup. For example, for Peppa Pig, all videos across all storage would be saved in a folder called 'PeppaPig'. The playlist would list all the files within each of the Peppa Pig folders in one big list.
What I am hoping to achieve is a python script (ran on startup) to do the following:
- [Load a splash screen image (a loading screen while playlists are being compiled)]
[Find all folders on all attached storage matching a Playlist name variable and compile one big text file of the locations of the files within the folders]
[Repeat for all 6 playlists the player will use - I may store the playlist variable (PeppaPig, FiremanSam etc) in a text file and pull from there; allows playlists to be edited easily without having to change the code]
[Use the text file to provide file locations to the video playing element of the script]
[Monitor a serial port for commands to trigger playback/playlist changes from an Arduino handling button presses]
Has anyone got any experiences with any particular libraries and as such would recommend?
Here is a link to the Hackaday page where i am planning my build:
https://hackaday.io/project/5700-pi-video-player
And here's a link to my dropbox, where I shall be storing any plan or design files:
https://www.dropbox.com/sh/zutwgvtk53wq ... -GS3a?dl=0
Thank you for any help you can offer!
Craig