{"id":1057,"date":"2014-11-06T20:31:34","date_gmt":"2014-11-06T19:31:34","guid":{"rendered":"http:\/\/www.capacitor.constantvzw.org\/?p=1057"},"modified":"2014-11-08T19:18:27","modified_gmt":"2014-11-08T18:18:27","slug":"raspberry-pi-tricks-for-exhibitions","status":"publish","type":"post","link":"https:\/\/www.capacitor.constantvzw.org\/raspberry-pi-tricks-for-exhibitions\/","title":{"rendered":"Raspberry Pi tricks for exhibitions"},"content":{"rendered":"
I wanted to use Raspberry Pi’s to show a few .mp4 films, especially on old televisions & analog screens<\/p>\n
Here’s a list of tips and tricks:<\/p>\n
– Default (a reminder): login = pi, password = raspberry<\/p>\n
– sudo just works – no password –> you need it to halt & to reboot (and lots more, of course)<\/p>\n
– I installed the system with Noobs<\/a>, the easy way to install Raspbian. – To play the video’s, use omxplayer –> it is a mediaplayer adapted to the Raspberry Pi (semiclosed) Hardware.<\/p>\n – The omxplayer controls do not have man pages in my version of Raspbian. Here you can find them online<\/a>.<\/p>\n – The omxplayer -b –loop did not work for my video’s #!\/bin\/bash –> call it omxplayer4ever.sh and launch it with The script needs to be in the same folder your film is. <\/a><\/p>\n In the meantime I have found this excellent post by Julien Deswaef, right on topic!<\/a><\/p>\n Thanks \ud83d\ude09<\/p>\n – Taking Julien’s advice on hiding the terminal $sudo nano \/etc\/rc.local<\/p><\/blockquote>\n
\nThis did force hdmi to be default screen output. The analog video out just stayed dormant.
\n–> So I edited the config file:
\n$ sudo nano \/boot\/config.txt
\nScroll down to the bottom and hash\/comment out (add a #) the bottom part, added by Noobs, with regard to hdmi.<\/p>\n
\nSo, with some help some time later, here’s a little bash script that you can run in the terminal (even without startx).<\/p>\n
\nwhile true
\ndo
\n\tomxplayer lala.mp4
\ndone<\/p><\/blockquote>\n
\n$ bash omxplayer4ever.sh<\/p>\n
\nYou do still see the terminal lurking behind the video..<\/p>\n
\n–> add setterm -blank 1 to your \/etc\/rc.local file<\/p>\n