You could go the ‘nano sktop’ route for example. But this name is variable to whatever you prefer. In my case I used ‘nano sktop’ to imply that this is an autostart script and starting the OMXPlayer. I personally like to use Nano as the editor but feel free to use whatever you want. Then go into the directory you just made and from here we want to create a new file. This allows us to run a program when the Raspberry Pi is fully booted.įirst check if there is a ‘autostart’ directory at ‘/home/pi/.config/’ using the terminal if not make it using ‘mkdir autostart’ which will make the directory for you. ![]() And set out to create the final and most important step to the system the autostart entry. Then I placed the video file I wanted to play in ‘/home/pi/Videos/VideoNameHere.mp4’. This make it so that the taskbar above only appears if your mouse is around it. Follow this up with changing the amount of Pixels to show from ‘2’ to ‘0’. Then I clicked on the ‘Advanced’ tab and checked the ‘Minimize panel when not in use’ option. The first tweak was going into the ‘Panel Settings’ by right-clicking the taskbar above. The goal was to make it so that anyone could use it and it’s only goal was playing that video so I did some very simple configuration tweaks to the standard Raspbian image that allowed me to do just that. With the player chosen it was time for the final setup. I let it run for a day just to see if any stuttering or lagging would occur but it ran great. OMXPlayer seems to use the hardware that is available to it’s advantage. Now I didn’t know of this player before until the research I did but it worked amazingly well. So I checked online for some solutions and found out that Raspbian which I am running on the Raspberry Pi’s contained OMXPlayer. Of course this could be due to software settings but the goal was to not over complicate if it was not needed. As most people I am of course a fan of VLC but this left me a bit disappointed. The video started lagging the same behavior which I noticed on the Windows hardware machines. But strange things happened when using VLC. The first test we did was at least at the time I thought the most simple one was install VLC and call it a day. Now I am a Windows man and using Linux is not much a second nature as I would like it to be but given the lightweight nature of Linux and the cost of Raspberry Pi’s it was worth a shot. I had issues with earlier versions and other hardware mainly Windows to get this to work very stable. So my question is.So for a project that I am working on within the company I needed a solution that would allow a Raspberry Pi to automatically play a given video. If a video starts to play in full screen and since I no longer can quit omxplayer, I have to watch the video to end so that the player will quit. ![]() This used to be working when I play a video file from lxterminal by typing 'omxplayer video.mp4'. For example, I cannot quit video by hitting 'q' on keyboard and nothing of the hotkey works. Now when I click on the video, it starts to play in omxplayer but hotkeys are no longer working. Since I cannot find omxplayer in installed application tab, I choose Custome Command Line tab and enter 'omxplyer' in command line to execute and again 'omxplayer' in Application name. First time, I double-clicked on it, it asks me to choose an application to open the file. I wanted to play video file by doubling click on it by using omxplyaer.
0 Comments
Leave a Reply. |