Francisco333
Posts: 6
Joined: Tue Jun 06, 2017 5:00 am

omxplayergui won't work with new user

Tue Jun 06, 2017 5:17 am

I have a problem where even though omxplayergui works fine on the default "pi" account, it will not play videos on the user that I created manually. The only way I can get videos to play is by typing "sudo omxplayer ..." in the command line, but when I open a file with the graphical interface, the play window pops up briefly and then closes without playing the video. I am quite positive that the problem lies in the account I created, but I have no idea what specifically is causing it.

Any ideas?

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: omxplayergui won't work with new user

Tue Jun 06, 2017 11:38 am

Add your new user to all groups in which pi is a member.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Francisco333
Posts: 6
Joined: Tue Jun 06, 2017 5:00 am

Re: omxplayergui won't work with new user

Wed Jun 07, 2017 4:41 am

gkreidl wrote:Add your new user to all groups in which pi is a member.
Thank you for suggesting this. Adding the user to all groups caused the video to play. However, there is no audio. I checked to make sure that all the groups, including video and audio, have both users. The audio works with the omxplayer command, but not omxplayerGUI. How do I get it to work?

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: omxplayergui won't work with new user

Wed Jun 07, 2017 5:18 am

Francisco333 wrote:
gkreidl wrote:Add your new user to all groups in which pi is a member.
Thank you for suggesting this. Adding the user to all groups caused the video to play. However, there is no audio. I checked to make sure that all the groups, including video and audio, have both users. The audio works with the omxplayer command, but not omxplayerGUI. How do I get it to work?
Usually audio works in omxplayerGUI, if it works in omxplayer. Which audio output do you use, HDMI or analog? Do you select it when running omxplayer from the command line (-o ...)?
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Francisco333
Posts: 6
Joined: Tue Jun 06, 2017 5:00 am

Re: omxplayergui won't work with new user

Thu Jun 08, 2017 4:38 am

gkreidl wrote:
Francisco333 wrote:
gkreidl wrote:Add your new user to all groups in which pi is a member.
Thank you for suggesting this. Adding the user to all groups caused the video to play. However, there is no audio. I checked to make sure that all the groups, including video and audio, have both users. The audio works with the omxplayer command, but not omxplayerGUI. How do I get it to work?
Usually audio works in omxplayerGUI, if it works in omxplayer. Which audio output do you use, HDMI or analog? Do you select it when running omxplayer from the command line (-o ...)?
omxplayer automatically selects hdmi output. However, I am able to change it to analog without a problem using -o. Also, I have discovered that omxplayerGUI outputs sound with stored files, but the problem is that it does not output sound with online videos.

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: omxplayergui won't work with new user

Thu Jun 08, 2017 6:15 am

Francisco333 wrote: omxplayer automatically selects hdmi output. However, I am able to change it to analog without a problem using -o. Also, I have discovered that omxplayerGUI outputs sound with stored files, but the problem is that it does not output sound with online videos.
You still did not answer my question: which audio output do you use?

Did you modify the settings in any way?
By default, omxplayergui doesn't select the audio output in any way ("default" on the settings page).
If you select the "analogaudio" preset, it will always use "-o local".

Additional omxplayer options can be set in 4 different places:
omxoptions - for the video player
omxaudiooptions - for the audio player
omx_livetv_options - to be used for video starting with specific URLs (have to be set separately)
youtube_omxoptions - for web video

The "analogaudio" preset sets
-o
local
in all four places.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Francisco333
Posts: 6
Joined: Tue Jun 06, 2017 5:00 am

Re: omxplayergui won't work with new user

Fri Jun 09, 2017 3:33 am

gkreidl wrote:
Francisco333 wrote: omxplayer automatically selects hdmi output. However, I am able to change it to analog without a problem using -o. Also, I have discovered that omxplayerGUI outputs sound with stored files, but the problem is that it does not output sound with online videos.
You still did not answer my question: which audio output do you use?

Did you modify the settings in any way?
By default, omxplayergui doesn't select the audio output in any way ("default" on the settings page).
If you select the "analogaudio" preset, it will always use "-o local".

Additional omxplayer options can be set in 4 different places:
omxoptions - for the video player
omxaudiooptions - for the audio player
omx_livetv_options - to be used for video starting with specific URLs (have to be set separately)
youtube_omxoptions - for web video

The "analogaudio" preset sets
-o
local
in all four places.
I always use hdmi output. I tried setting kweb to default settings, which didn't work, so then I looked for the analogaudio preset, but it's not on the settings page nor on the configuration page. The settings page only has default and nogui as presets. I also tried adding "-o hdmi" to the four different places you mentioned, but the video still played without sound.

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: omxplayergui won't work with new user

Fri Jun 09, 2017 6:04 am

Francisco333 wrote: I always use hdmi output. I tried setting kweb to default settings, which didn't work, so then I looked for the analogaudio preset, but it's not on the settings page nor on the configuration page. The settings page only has default and nogui as presets. I also tried adding "-o hdmi" to the four different places you mentioned, but the video still played without sound.
Are you perhaps still on Wheezy? Your kweb version seems to be very old. If you are on Jessie, you should upgrade to the current version 1.7.8 first.

There may be another problem. Kweb offers to install youtube-dl from github and this version is installed in your user directory. If you created a new user later on, youtube-dl may not be found. Youtube-dl is required for web video support.
If you want a system-wide installation of youtube-dl, you may use pip:
sudo pip install youtube-dl
And you have also to use pip for upgrading it. But you will need a newer version of the kweb suite first, because support of the youtube-dl version installed with pip has been added in version 1.7.2.

Even if youtube-dl is installed and working, it may need newer options (supported by newer kweb versions). The default behaviour of youtube-dl has changed and this may result in separate video and audio streams, which are not supported by omxplayer(GUI).
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Francisco333
Posts: 6
Joined: Tue Jun 06, 2017 5:00 am

Re: omxplayergui won't work with new user

Sun Jun 11, 2017 10:52 pm

gkreidl wrote:
Francisco333 wrote: I always use hdmi output. I tried setting kweb to default settings, which didn't work, so then I looked for the analogaudio preset, but it's not on the settings page nor on the configuration page. The settings page only has default and nogui as presets. I also tried adding "-o hdmi" to the four different places you mentioned, but the video still played without sound.
Are you perhaps still on Wheezy? Your kweb version seems to be very old. If you are on Jessie, you should upgrade to the current version 1.7.8 first.

There may be another problem. Kweb offers to install youtube-dl from github and this version is installed in your user directory. If you created a new user later on, youtube-dl may not be found. Youtube-dl is required for web video support.
If you want a system-wide installation of youtube-dl, you may use pip:
sudo pip install youtube-dl
And you have also to use pip for upgrading it. But you will need a newer version of the kweb suite first, because support of the youtube-dl version installed with pip has been added in version 1.7.2.

Even if youtube-dl is installed and working, it may need newer options (supported by newer kweb versions). The default behaviour of youtube-dl has changed and this may result in separate video and audio streams, which are not supported by omxplayer(GUI).
Sorry for the late response.
I have got it to work now!
I have been using raspbian wheezy with kweb version 1.6.8. I just upgraded to 1.7.8 and upgraded youtube-dl using pip, and now everything is working fine. Thanks for the help!

Return to “Troubleshooting”