{"id":1069,"date":"2014-11-25T18:00:48","date_gmt":"2014-11-25T17:00:48","guid":{"rendered":"http:\/\/www.capacitor.constantvzw.org\/?p=1069"},"modified":"2014-11-25T17:00:03","modified_gmt":"2014-11-25T16:00:03","slug":"raspberry-pi-tricks-for-exhibitions-glitches","status":"publish","type":"post","link":"https:\/\/www.capacitor.constantvzw.org\/raspberry-pi-tricks-for-exhibitions-glitches\/","title":{"rendered":"Raspberry Pi tricks for exhibitions – glitches"},"content":{"rendered":"

So, there are some glitches to make omxplayer loop with a script on a Raspberry Pi. When the script loops a very short file, it starts to crash quite quickly. I want to reproduce these errors and look for a solution later.<\/p>\n

One potential solution was to make the files being played bigger. So I looked for some commandline magic of glueing the same file to a copy of itself. This mencoder code looks for all mp4 files and sticks them together.<\/p>\n

$ mencoder -oac pcm -ovc copy -o merged_file.mp4 `ls *.mp4`<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"

So, there are some glitches to make omxplayer loop with a script on a Raspberry Pi. When the script loops a very short file, it starts to crash quite quickly. I want to reproduce these errors and look for a solution later. One potential solution was to make the files being played bigger. So I […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[31],"tags":[],"_links":{"self":[{"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/posts\/1069"}],"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=1069"}],"version-history":[{"count":2,"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/posts\/1069\/revisions"}],"predecessor-version":[{"id":1071,"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/posts\/1069\/revisions\/1071"}],"wp:attachment":[{"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/media?parent=1069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/categories?post=1069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.capacitor.constantvzw.org\/wp-json\/wp\/v2\/tags?post=1069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}