Python Video Playing - Advice - Raspberry Pi Forums


hi all
working on pi-based video player son.
hoping use python achieve this, looking advice (i have never undertaken project before).
device feature small screen, , 9 buttons:
  • [1 x play/pause]
    [2 x prev/next]
    [6 x playlist]
each playlist button going represent favourite characters; peppa pig, barney dinosaur et al.
when playlist button pressed player start playing characters set of videos. these videos sourced many locations (there may 2 or 3 storage devices attached content) 1 singular playlist of each 1 beneficial. thinking of compiling playlists on startup. example, peppa pig, videos across storage saved in folder called 'peppapig'. playlist list files within each of peppa pig folders in 1 big list.

hoping achieve python script (ran on startup) following:
  • [load splash screen image (a loading screen while playlists being compiled)]
    [find folders on attached storage matching playlist name variable , compile 1 big text file of locations of files within folders]
    [repeat 6 playlists player use - may store playlist variable (peppapig, firemansam etc) in text file , pull there; allows playlists edited without having change code]
    [use text file provide file locations video playing element of script]
    [monitor serial port commands trigger playback/playlist changes arduino handling button presses]

has got experiences particular libraries , such recommend?

here link hackaday page planning build:
https://hackaday.io/project/5700-pi-video-player

, here's link dropbox, shall storing plan or design files:
https://www.dropbox.com/sh/zutwgvtk53wq ... -gs3a?dl=0

thank can offer!

craig

i love sound of project. did vaguely similar here.

don't see in code shouldn't possible achieve in python.

taking points in turn, thoughts follows:
  • [load splash screen image (a loading screen while playlists being compiled)] i've used pygame before. may overkill though.
  • [find folders on attached storage matching playlist name variable , compile 1 big text file of locations of files within folders] there various ways of doing os module. have @ this question on stack overflow starters.
  • [repeat 6 playlists player use - may store playlist variable (peppapig, firemansam etc) in text file , pull there; allows playlists edited without having change code] above.
  • [use text file provide file locations video playing element of script] you use configparser module or have raw text file , parse in script.
  • [monitor serial port commands trigger playback/playlist changes arduino handling button presses] reason need arduino handle button presses? why not use gpio pins on pi? didn't see suggests pins being used
other people may have different suggestions i'm happy provide can.

have fun , hope enjoy build!


raspberrypi



Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support