{"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.
\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

– 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
\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

#!\/bin\/bash
\nwhile true
\ndo
\n\tomxplayer lala.mp4
\ndone<\/p><\/blockquote>\n

–> call it omxplayer4ever.sh and launch it with
\n$ bash omxplayer4ever.sh<\/p>\n

The script needs to be in the same folder your film is.
\nYou do still see the terminal lurking behind the video..<\/p>\n

\"IMAG1099\"<\/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
\n–> add setterm -blank 1 to your \/etc\/rc.local file<\/p>\n

$sudo nano \/etc\/rc.local<\/p><\/blockquote>\n

Write it before the line exit 0, keeping that command at the end, then save the file and exit<\/a>.
\nWhat you are doing here is hiding the terminal after 1 minute of inactivity. Just nudging a key on your keyboard revives it. If you add something\/instructions\/a command in the \/etc\/rc.local file, it launches it at start-up.<\/p>\n

– to stop the video’s from playing -> do ctrl+c a few times quickly<\/p>\n","protected":false},"excerpt":{"rendered":"

I wanted to use Raspberry Pi’s to show a few .mp4 films, especially on old televisions & analog screens Here’s a list of tips and tricks: – Default (a reminder): login = pi, password = raspberry – sudo just works – no password –> you need it to halt & to reboot (and lots more, […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,3,31],"tags":[149],"_links":{"self":[{"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/posts\/1057"}],"collection":[{"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/comments?post=1057"}],"version-history":[{"count":7,"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/posts\/1057\/revisions"}],"predecessor-version":[{"id":1067,"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/posts\/1057\/revisions\/1067"}],"wp:attachment":[{"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/media?parent=1057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/categories?post=1057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/tags?post=1057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}