milhouse
Posts: 631
Joined: Mon Jan 16, 2012 12:59 pm

Raspbian: omxplayer now has x11 dependency?

Thu Jun 06, 2013 9:26 pm

I'm running an up to date Raspbian with x11 removed, but recently I haven't been able to update omxplayer as it now has dependencies on x11. This means omxplayer is held back whenever I apt-get update.

Is this x11 dependency correct, why should omxplayer suddenly have a dependency on x11? Or has it always had a dependency on x11 and I simply didn't notice (possible, I suppose...)

Code: Select all

[email protected] ~ $ apt-cache showpkg omxplayer
Package: omxplayer
Versions:
0.2.6~git20130427~fcfb7911 (/var/lib/apt/lists/archive.raspberrypi.org_debian_dists_wheezy_main_binary-armhf_Packages)
 Description Language:
                 File: /var/lib/apt/lists/archive.raspberrypi.org_debian_dists_wheezy_main_binary-armhf_Packages
                  MD5: f2c1990ed528d0a0c203fc620600b4b8

0.2.4~subtitles~git20130128~f60f9019 (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/dpkg/status
                  MD5: 35e8369339e5a9286ac20f32f9c5e66b


Reverse Depends:
Dependencies:
0.2.6~git20130427~fcfb7911 - libpcre3 (0 (null)) libfreetype6 (0 (null)) fonts-freefont-ttf (0 (null)) fbset (0 (null)) x11-xserver-utils (0 (null)) grep (0 (null))
0.2.4~subtitles~git20130128~f60f9019 - libpcre3 (0 (null)) libfreetype6 (0 (null)) fonts-freefont-ttf (0 (null)) fbset (0 (null))
Provides:
0.2.6~git20130427~fcfb7911 -
0.2.4~subtitles~git20130128~f60f9019 -
Reverse Provides:

Thaddy
Posts: 173
Joined: Wed Mar 06, 2013 11:28 am

Re: Raspbian: omxplayer now has x11 dependency?

Sun Jun 09, 2013 1:58 pm

iir the newest omxplayer can output to a window, so, probably yes, it may be that omxplayer is now dependent on X.
If the implementation is done properly this should only be at build time, not at runtime, because if you don't use that option it should still work, because of dynamic loading.
[edit]
delayed through dlopen()/dlsym() when the window output option is chosen.

User avatar
rpdom
Posts: 14451
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Raspbian: omxplayer now has x11 dependency?

Sun Jun 09, 2013 2:14 pm

Unless there is a newer omxplayer available than the one I have installed, it doesn't depend on any x11 packages, as shown by apt-cache

Code: Select all

[email protected]:~$ apt-cache show omxplayer
Package: omxplayer
Version: 0.2.6~git20130427~fcfb7911
Section: video
Priority: optional
Architecture: armhf
Essential: no
Depends: libpcre3, libfreetype6, fonts-freefont-ttf
Recommends: fbset, x11-xserver-utils, grep
...
The x11-server-utils package is only a recommends, not a depends. Have you got apt set to install recommends by default? I have the line

Code: Select all

APT { Install-Recommends "false"; };
in a file in /etc/apt/apt.conf.d

I don't have any X11 software installed, but do use omxplayer.

Thaddy
Posts: 173
Joined: Wed Mar 06, 2013 11:28 am

Re: Raspbian: omxplayer now has x11 dependency?

Sun Jun 09, 2013 2:17 pm

That line is pretty much essential it seems.
But as I suspected omxplayer seems to be build correctly for the case that X is not installed.

milhouse
Posts: 631
Joined: Mon Jan 16, 2012 12:59 pm

Re: Raspbian: omxplayer now has x11 dependency?

Sun Jun 09, 2013 5:52 pm

Thanks for all the replies.
Thaddy wrote:That line is pretty much essential it seems.
But as I suspected omxplayer seems to be build correctly for the case that X is not installed.
What would be the reason for omxplayer being held back, as it is in my case. According to apt-cache showpkg (see first post), is there a dependency on x11-xserver-utils, or am I reading this incorrectly? I have no x11 packages installed, but I do have the other dependencies that omxplayer requires (libpcre3, libfreetype6, fonts-freefont-ttf). Strange.

User avatar
rpdom
Posts: 14451
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Raspbian: omxplayer now has x11 dependency?

Sun Jun 09, 2013 6:05 pm

If you try

Code: Select all

[email protected]:~$ apt-get -s install omxplayer
(no sudo needed for this command) It will do a dummy run of installing omxplayer and tell you what software it needs to install that won't be for some reason.

You may then try the same command for each of the packages that can't be installed to see why they can't - you may need to go down a few levels to do this.

milhouse
Posts: 631
Joined: Mon Jan 16, 2012 12:59 pm

Re: Raspbian: omxplayer now has x11 dependency?

Sun Jun 09, 2013 6:11 pm

rpdom wrote:If you try

Code: Select all

[email protected]:~$ apt-get -s install omxplayer
(no sudo needed for this command) It will do a dummy run of installing omxplayer and tell you what software it needs to install that won't be for some reason.

You may then try the same command for each of the packages that can't be installed to see why they can't - you may need to go down a few levels to do this.
Seems like it wants to install x11! :(

I also included "sudo apt-get upgrade" to show that only omxplayer is currently being kept back.

Code: Select all

[email protected] ~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  omxplayer
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

[email protected] ~ $ ls -la /usr/bin/omxplayer
-rwxr-xr-x 1 pi pi 568 Jan 28 09:55 /usr/bin/omxplayer

[email protected] ~ $ apt-get -s install omxplayer
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libblas3gf liblapack3gf
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libice6 libsm6 libx11-6 libx11-data libxau6 libxaw7 libxcb1 libxcursor1 libxdmcp6 libxext6 libxfixes3 libxi6 libxmu6 libxmuu1 libxpm4 libxrandr2 libxrender1 libxt6
  libxxf86vm1 x11-common x11-xserver-utils
Suggested packages:
  nickle cairo-5c xorg-docs-core
The following NEW packages will be installed:
  libice6 libsm6 libx11-6 libx11-data libxau6 libxaw7 libxcb1 libxcursor1 libxdmcp6 libxext6 libxfixes3 libxi6 libxmu6 libxmuu1 libxpm4 libxrandr2 libxrender1 libxt6
  libxxf86vm1 x11-common x11-xserver-utils
The following packages will be upgraded:
  omxplayer
1 upgraded, 21 newly installed, 0 to remove and 0 not upgraded.
Inst x11-common (1:7.7+2 Raspbian:7.0/testing [all])
Inst libice6 (2:1.0.8-2 Raspbian:7.0/testing [armhf])
Inst libsm6 (2:1.2.1-2 Raspbian:7.0/testing [armhf])
Inst libxau6 (1:1.0.7-1 Raspbian:7.0/testing [armhf])
Inst libxdmcp6 (1:1.1.1-1 Raspbian:7.0/testing [armhf])
Inst libxcb1 (1.8.1-2+deb7u1 Raspbian:7.0/testing [armhf])
Inst libx11-data (2:1.5.0-1+deb7u1 Raspbian:7.0/testing [all])
Inst libx11-6 (2:1.5.0-1+deb7u1 Raspbian:7.0/testing [armhf])
Inst libxext6 (2:1.3.1-2+deb7u1 Raspbian:7.0/testing [armhf])
Inst libxt6 (1:1.1.3-1+deb7u1 Raspbian:7.0/testing [armhf])
Inst libxmu6 (2:1.1.1-1 Raspbian:7.0/testing [armhf])
Inst libxpm4 (1:3.5.10-1 Raspbian:7.0/testing [armhf])
Inst libxaw7 (2:1.0.10-2 Raspbian:7.0/testing [armhf])
Inst libxfixes3 (1:5.0-4+deb7u1 Raspbian:7.0/testing [armhf])
Inst libxrender1 (1:0.9.7-1+deb7u1 Raspbian:7.0/testing [armhf])
Inst libxcursor1 (1:1.1.13-1+deb7u1 Raspbian:7.0/testing [armhf])
Inst libxi6 (2:1.6.1-1+deb7u1 Raspbian:7.0/testing [armhf])
Inst libxmuu1 (2:1.1.1-1 Raspbian:7.0/testing [armhf])
Inst libxrandr2 (2:1.3.2-2+deb7u1 Raspbian:7.0/testing [armhf])
Inst libxxf86vm1 (1:1.1.2-1+deb7u1 Raspbian:7.0/testing [armhf])
Inst omxplayer [0.2.4~subtitles~git20130128~f60f9019] (0.2.6~git20130427~fcfb7911 Raspberry Pi Foundation:archive.raspberrypi.org [armhf])
Inst x11-xserver-utils (7.7~3 Raspbian:7.0/testing [armhf])
Conf x11-common (1:7.7+2 Raspbian:7.0/testing [all])
Conf libice6 (2:1.0.8-2 Raspbian:7.0/testing [armhf])
Conf libsm6 (2:1.2.1-2 Raspbian:7.0/testing [armhf])
Conf libxau6 (1:1.0.7-1 Raspbian:7.0/testing [armhf])
Conf libxdmcp6 (1:1.1.1-1 Raspbian:7.0/testing [armhf])
Conf libxcb1 (1.8.1-2+deb7u1 Raspbian:7.0/testing [armhf])
Conf libx11-data (2:1.5.0-1+deb7u1 Raspbian:7.0/testing [all])
Conf libx11-6 (2:1.5.0-1+deb7u1 Raspbian:7.0/testing [armhf])
Conf libxext6 (2:1.3.1-2+deb7u1 Raspbian:7.0/testing [armhf])
Conf libxt6 (1:1.1.3-1+deb7u1 Raspbian:7.0/testing [armhf])
Conf libxmu6 (2:1.1.1-1 Raspbian:7.0/testing [armhf])
Conf libxpm4 (1:3.5.10-1 Raspbian:7.0/testing [armhf])
Conf libxaw7 (2:1.0.10-2 Raspbian:7.0/testing [armhf])
Conf libxfixes3 (1:5.0-4+deb7u1 Raspbian:7.0/testing [armhf])
Conf libxrender1 (1:0.9.7-1+deb7u1 Raspbian:7.0/testing [armhf])
Conf libxcursor1 (1:1.1.13-1+deb7u1 Raspbian:7.0/testing [armhf])
Conf libxi6 (2:1.6.1-1+deb7u1 Raspbian:7.0/testing [armhf])
Conf libxmuu1 (2:1.1.1-1 Raspbian:7.0/testing [armhf])
Conf libxrandr2 (2:1.3.2-2+deb7u1 Raspbian:7.0/testing [armhf])
Conf libxxf86vm1 (1:1.1.2-1+deb7u1 Raspbian:7.0/testing [armhf])
Conf omxplayer (0.2.6~git20130427~fcfb7911 Raspberry Pi Foundation:archive.raspberrypi.org [armhf])
Conf x11-xserver-utils (7.7~3 Raspbian:7.0/testing [armhf])
[email protected] ~ $

Thaddy
Posts: 173
Joined: Wed Mar 06, 2013 11:28 am

Re: Raspbian: omxplayer now has x11 dependency?

Tue Jun 11, 2013 8:55 am

If you add the line as suggest it will NOT consider X as a dependency, because it is only recommended. Thats why I wrote that that line is pretty much essential. Otherwise, by default, the X libs would be listed as dependencies.

milhouse
Posts: 631
Joined: Mon Jan 16, 2012 12:59 pm

Re: Raspbian: omxplayer now has x11 dependency?

Tue Jun 11, 2013 9:08 am

Thaddy wrote:If you add the line as suggest it will NOT consider X as a dependency, because it is only recommended. Thats why I wrote that that line is pretty much essential. Otherwise, by default, the X libs would be listed as dependencies.
Ah sorry, I _totally_ missed the end of rpdom's post mentioning the file in apt.conf.d!

I've now created such a file, /etc/apt/apt.conf.d/60norecommends, with the following contents:

Code: Select all

APT { Install-Recommends "false"; };
and that seems to have fixed the issue - omxplayer is now updating without any complaint!

Many thanks to you all.

SkG
Posts: 29
Joined: Sat May 19, 2012 9:28 am
Location: Madrid, Spain
Contact: Website

Re: Raspbian: omxplayer now has x11 dependency?

Mon Jun 24, 2013 4:30 pm

Hi,
Maybe a bit late but I don't usually surf this forums...

Is not a dependency, its a "recommended" package. So this means that its recommended to have it under certain circumstances.

When should be used installed? If you are planning to use omxplayer from X using the -r flag.

Maybe is a bad habit on me this recommended use since I've been using Debian for years but I always disable the auto-install recommended packages and I analyze every case...

Anyway since the build that I will publish in some hours I'll change this because a new commit that fixes the issue I'm patching with this hack.

Thaddy
Posts: 173
Joined: Wed Mar 06, 2013 11:28 am

Re: Raspbian: omxplayer now has x11 dependency?

Mon Jun 24, 2013 6:14 pm

Not necessary to hack anything. Problem was solved ;)

macrutan
Posts: 23
Joined: Sat Jul 07, 2012 6:46 pm
Location: Oviedo, Florida U.S.A.
Contact: Website

Re: Raspbian: omxplayer now has x11 dependency?

Sun Jun 30, 2013 6:42 pm

Although this is resolved, more insight can be found reading this announcement from Collabra regarding wayland and X11 :

http://www.collabora.com/press/2013/05/ ... ry-pi.html

Here's a quote from some fellow named Eben that was tinkering around with the graphics capabilities of the RP with collaborators yet again:

"It's great to be working with Collabora to bring the hardware composition capabilities of BCM2835 to bear on both native Wayland and legacy X applications" said Eben Upton, a founder and trustee of the Raspberry Pi Foundation. "The resulting platform will form the centerpiece of the new Raspberry Pi user experience from the second half of 2013."

I'd say things just got better, and we've not had time to realize it yet.

CartoonSitty
Posts: 10
Joined: Sat Jan 20, 2018 2:18 am

Re: Raspbian: omxplayer now has x11 dependency?

Thu Feb 01, 2018 7:36 pm

Is there a way to produce two windows at once for stereoscopic video? I tried omxplayer --win 0,0,400,480 --win 401,0,400,480 test.mp4
although omxplayer --win 0,0,400,480 test.mp4 does give me a half screen frame, omxplayer --win 401,0,400,480 test.mp4 as well as the top piece just gives me default full screen. Any ideas?

my screen is obviously an 800 x 480 adafruit 5" HDMI

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 22725
Joined: Sat Jul 30, 2011 7:41 pm

Re: Raspbian: omxplayer now has x11 dependency?

Thu Feb 01, 2018 7:39 pm

Best to start a new thread for this.

Although qudos for what I think might be the best thread necro we have had!
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6894
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Raspbian: omxplayer now has x11 dependency?

Thu Feb 01, 2018 8:15 pm

CartoonSitty wrote:
Thu Feb 01, 2018 7:36 pm
Is there a way to produce two windows at once for stereoscopic video? I tried omxplayer --win 0,0,400,480 --win 401,0,400,480 test.mp4
although omxplayer --win 0,0,400,480 test.mp4 does give me a half screen frame, omxplayer --win 401,0,400,480 test.mp4 as well as the top piece just gives me default full screen. Any ideas?

my screen is obviously an 800 x 480 adafruit 5" HDMI
Yes start another thread, but the obvious answer is that your window is invalid.

Code: Select all

[email protected]:~ $ omxplayer --help
...
--win x1,y1,x2,y2       Set position of video window
You've set x2 at 400, which is less than x1. "--win 401,0,800,480" is probably what you want, although technically 800 and 480 are 1 pixel off the screen so "--win 400,0,799,479" is likely to be better.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “Advanced users”