1) Get the attached tar file, doesn't matter where you put it.
2) With it visible in file manager, press F4 to open a terminal window in that folder
3) At terminal run:
4) Right click a video file, select 'Open With' and find 'omxplayer' or 'omxplayer-SmallWindow' under 'Sound&Video'. Probably click 'always use' option. Play the file so it applies the settings.
Code: Select all
sudo tar -xf omxplayer-helper-scripts.tar --directory=/usr/share/applications/ --overwrite sudo apt-get install -f wmctrl
Now you should be able to select multiple files, right click to open in fullscreen or windowed, and input (in fullscreen) will be focused correctly
Optional step, open /usr/share/applications/omxplayer_small_script.sh, look for 'OUTPUTWINDOW' and change the values to where you want omxplayer to put the playback window for small display mode.
---FINISH IMPATIENT VERSION----
Hello everyone. I found the default usage of omxplayer to be clunky from X so i made some little scripts help smooth that out a little. I'm new to the raspberry pi and bash scripting so look out, there could be errors. Works for me though, pretty reliably. Here's the gist of it:
Tar file attached contains two bash scripts and two .desktop files to help use omxplayer in X11.
extract file to /usr/share/applications to use. Then right click a video file, click 'open with', find 'omxplayer' or 'omxplayer-smallwindow' in your sound&video apps and optionally select 'always open with...' BTW, even if you don't select 'always...' it will be added to the right click context menu so use both playback methods once for each of .MP4, .MPG, .AVI, and any other video formats you use.
wmctrl is used to focus the playback window so keyboard input correctly reaches omxplayer
Q or Ctrl-C will stop the currently playing video at any time and move to the next file, pressing ctrl-c twice quickly will end the sequence of files selected.
Soon I will probably implement a shuffle function as well.
Please feel free to msg me if something here didn't work right, or if you're a better bash scripter than me and you found room for improvement, I'd like to streamline this process as well as possible for fellow my fellow newbs.