{"id":1302,"date":"2021-05-03T14:56:55","date_gmt":"2021-05-03T13:56:55","guid":{"rendered":"https:\/\/matthewolden.co.uk\/?p=1302"},"modified":"2021-05-03T14:56:55","modified_gmt":"2021-05-03T13:56:55","slug":"playing-a-video","status":"publish","type":"post","link":"https:\/\/matthewolden.co.uk\/?p=1302","title":{"rendered":"Playing A Video"},"content":{"rendered":"<p>the pi comes pre-installed with omx player.it will easily play a film and loop it ,if you want, and if we use a start up script we can make a unit that will just play and loop a movie when we turn it on.<\/p>\n<p>omx player has a lot of options of what it can do. they can be found<a href=\"https:\/\/elinux.org\/Omxplayer\"> here<\/a><\/p>\n<p>on a basic level we can type into a terminal window<\/p>\n<p class=\"p1\"><span class=\"s1\">omxplayer<span class=\"Apple-converted-space\">\u00a0 <\/span>-o local &#8211;loop &#8211;no-osd \/home\/pi\/Desktop\/movie.mp4<\/span><\/p>\n<p class=\"p1\">this will loop the movie called movie.mp4 , which is on the desktop for ever.<\/p>\n<p class=\"p1\">!!!!! how ever !!!!! you won&#8217;t see this movie displayed when using the pi wirelessly, you have to stick in a hdmi moniter to see the film looping full screen.<\/p>\n<p class=\"p1\">If you want to view a film when the pi is being used wirelessy use VLC<\/p>\n<p class=\"p1\">open a terminal window and install it by typing<\/p>\n<p class=\"p1\"><span class=\"s1\">sudo apt install -y vlc<\/span><\/p>\n<p class=\"p1\">then we can play a film by typing in<\/p>\n<p class=\"p1\"><span class=\"s1\"> vlc<span class=\"Apple-converted-space\">\u00a0 <\/span>\/home\/pi\/Desktop\/movie.mp4<\/span><\/p>\n<p class=\"p1\">if we want to start looping the film when the pi starts up (very handy for video instalations) we can have a look at <a href=\"https:\/\/matthewolden.co.uk\/?p=1391\">startup.sh routines here<\/a><\/p>\n<p class=\"p1\">heres a picture of the code\u00a0 to kick off the movie in this case (im triggering a full screen movie to loop kept on a usb drive &#8211; handy if you want to update it )<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/05\/djfhsjkdfh.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1409\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/05\/djfhsjkdfh-1024x569.jpg\" alt=\"djfhsjkdfh\" width=\"660\" height=\"366\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>the pi comes pre-installed with omx player.it will easily play a film and loop it ,if you want, and if we use a start up script we can make a unit that will just play and loop a movie when we turn it on. omx player has a lot of &#8230;<\/p>\n","protected":false},"author":2,"featured_media":1303,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1302","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pd-on-a-pi","column","fourcol","has-thumbnail"],"_links":{"self":[{"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1302"}],"version-history":[{"count":0,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1302\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/media\/1303"}],"wp:attachment":[{"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}