tk321
Posts: 31
Joined: Sat Jun 02, 2012 6:09 pm
Location: UK

Re: Omxplayer

Mon Jun 04, 2012 9:21 pm

Thanks for the deb package, it works perfectly for me (but can't test audio). If you get an error like "failed to open vchiq instance" you'll need to "chmod a+rw /dev/vchiq". My compile is binary compatible with your deb (md5sum: 52cbf438b0c3f51828b79d8358ef68cc omxplayer.bin) which is a good sign. Btw, do you think we should try and merge the forks back into the main branch or at least let the main author know?

As for the memory usage by the gpu, I don't know any internals of omxplayer nor the gpu, but from what has been said the gpu requires at least 64MB for video playback, see wikipedia or this thread.
224 MB is for Linux only, with just a 1080p framebuffer; likely to fail for any video or 3D.

shirro
Posts: 248
Joined: Tue Jan 24, 2012 4:54 am

Re: Omxplayer

Tue Jun 05, 2012 12:48 am

Probably the best way to do it is grab the head of the omxplayer repo and do a series of patches against it and have the debian package apply them when it is built. That way there is a clear separation between what has been added to get it running on Raspbian and the upstream source. If the author is willing to accept patches it might be an idea to change the makefiles so they can both cross compile and compile natively on raspbian without patching and submit them.

Some of the issues people have such as wrong permissions on vchiq and having to set LD_LIBRAY_PATH should be dealt with by a debian videocore library package which should be a prerequisite to install things like omxplayer. For the moment people will have to use rpi-update or do things by hand I guess.

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

Re: Omxplayer

Tue Jun 05, 2012 6:40 am

tk321 wrote:Thanks for the deb package, it works perfectly for me (but can't test audio). If you get an error like "failed to open vchiq instance" you'll need to "chmod a+rw /dev/vchiq". My compile is binary compatible with your deb (md5sum: 52cbf438b0c3f51828b79d8358ef68cc omxplayer.bin) which is a good sign.
Is not permission problems because I'm running as root my tests currently, when I finish my tests with RPi I will go from scratch and install Raspbian, but anyway I have a rule.d for vchiq permission.

It start playing, I can hear the audio output without problems but no video, neither X nor pure console.
tk321 wrote:Btw, do you think we should try and merge the forks back into the main branch or at least let the main author know?
I think we should notify the author because he may be interested on it but first I'm going to do some more Makefile cleanup and I thougth about adding options for compiling softfp and hard and making .deb for the compiled arch. (maybe something like make hard-deb, make soft-deb wich will invoke first make soft or make hard).
tk321 wrote:As for the memory usage by the gpu, I don't know any internals of omxplayer nor the gpu, but from what has been said the gpu requires at least 64MB for video playback, see wikipedia or this thread.
224 MB is for Linux only, with just a 1080p framebuffer; likely to fail for any video or 3D.
Yeah, I know about it, thats why I'm working always with 192/64 and I tried with 128/128
shirro wrote:Probably the best way to do it is grab the head of the omxplayer repo and do a series of patches against it and have the debian package apply them when it is built. That way there is a clear separation between what has been added to get it running on Raspbian and the upstream source.
In fact that's the way that Debian works, they took the source code, make some patches and then apply them and make .deb package. Also they make the src.deb that contains original source code plus debian patchset.

I have not enough knowledge to go this way but I think that hard and softfp should be in the original source, for example implementing it like I said before in this post.
shirro wrote:Some of the issues people have such as wrong permissions on vchiq and having to set LD_LIBRAY_PATH should be dealt with by a debian videocore library package which should be a prerequisite to install things like omxplayer. For the moment people will have to use rpi-update or do things by hand I guess.
Debian's package system allows to notify user in the apt-get install process about things he should do, also if there are things like vchiq permissions it can be added to the configure script so when omxplayer get installed the package will automatically run "chmod a+rw /dev/vchiq".

tk321
Posts: 31
Joined: Sat Jun 02, 2012 6:09 pm
Location: UK

Re: Omxplayer

Tue Jun 05, 2012 8:24 am

You guys are more experienced with github/debian packaging, so if you want to go ahead with it that'd be great.

Regarding the video out problem, don't know what it could be then. My setup is pisces image changed to 192MB, connected to a monitor (hdmi-dvi) running a resolution like 1600x900 and omxplayer works in console mode as well as in X. Maybe omxplayer.log contains some useful info?

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

Re: Omxplayer

Tue Jun 05, 2012 8:30 am

tk321 wrote:You guys are more experienced with github/debian packaging, so if you want to go ahead with it that'd be great.
Well, I have to refresh my knowledge, atm I just remember how to do what I did but for advanced deb packaging (and should be done in that way) we must follow this: http://www.debian.org/doc/manuals/maint-guide/

At the moment I'm busy but I think I won't be able to have a look until August...
tk321 wrote:Maybe omxplayer.log contains some useful info?
Will check later, I'm currently at work.

MarrsAttax
Posts: 25
Joined: Fri Jun 01, 2012 2:39 pm

Re: Omxplayer

Sun Jun 10, 2012 11:18 am

Hi I can get sound but no video. Could someone explain how to check what my memory split is and how to change it? Thanks

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

Re: Omxplayer

Sun Jun 10, 2012 11:26 am

MarrsAttax wrote:Hi I can get sound but no video. Could someone explain how to check what my memory split is and how to change it? Thanks
Hi! You must change the split modifying the start.elf located at /boot/ but if you are using raspbian you can use:

Code: Select all

rpi-update 128
rpi-update 192
rpi-update 224
Also I want to notify you that some .mkv could fail cause its encoding has high profile or high reference frames (this kind of mkv files can be difficult to play also on Core 2 Duo systems!) and thats was my problem with some mkv that I tried to play on RPi.

MarrsAttax
Posts: 25
Joined: Fri Jun 01, 2012 2:39 pm

Re: Omxplayer

Mon Jun 11, 2012 3:14 pm

Thanks! Got it working now. Nice and smooth!

ratherDashing
Posts: 39
Joined: Tue Jun 05, 2012 3:00 am

Re: Omxplayer

Mon Jun 11, 2012 5:21 pm

SkG wrote: but anyway I have a rule.d for vchiq permission.
How did you set that up? I hate having to do the chmod everytime I reboot.

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

Re: Omxplayer

Mon Jun 11, 2012 5:26 pm

ratherDashing wrote:
SkG wrote: but anyway I have a rule.d for vchiq permission.
How did you set that up? I hate having to do the chmod everytime I reboot.
As root run:

Code: Select all

echo 'SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"' > /etc/udev/rules.d/10-vchiq-permissions.rules

usermod -a -G video YourUnprivilegedUser

colemickens
Posts: 6
Joined: Sun Jun 24, 2012 7:09 am

Re: Omxplayer

Sun Jun 24, 2012 7:31 am

Can anyone share a Github repo and make commands that will allow me to build omxplayer? I checked out skgsergio's fork, but it appears to still be using arm-unknown-linux-gnueabi-g++ and looking in /opt/xbmc-bcm/buildroot/output/host/usr//bin/ no less.

Apologies if it's a simple mistake, I took the post earlier to imply that this Makefile had been tweaked for building for the RPi.

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

Re: Omxplayer

Sun Jun 24, 2012 3:12 pm

colemickens wrote:Can anyone share a Github repo and make commands that will allow me to build omxplayer? I checked out skgsergio's fork, but it appears to still be using arm-unknown-linux-gnueabi-g++ and looking in /opt/xbmc-bcm/buildroot/output/host/usr//bin/ no less.

Apologies if it's a simple mistake, I took the post earlier to imply that this Makefile had been tweaked for building for the RPi.
Hi, I abandoned that branch due to the new versions require new libraries that are not in Debian/Raspbian repositories. I'm working on some scripts for DEB creation with the crosscompile version and I'm thinking about setting up a build-bot on my server to have .deb files ready for Raspbian.

If you really want to use my old source, it is not deleted but outdated. You only have to checkout my old master branch instead of my new, and also abandoned until holidays, "huceke-with-deb" branch.

Code: Select all

git clone https://github.com/skgsergio/omxplayer.git
cd omxplayer
git checkout master

slackhead
Posts: 19
Joined: Thu May 08, 2014 5:33 am

Re: Omxplayer

Fri Jun 06, 2014 5:19 am

Has anyone managed to route the audio out to an alsa soundcard?

I have a Wolfson card but omxplayer doesn't seem to work with it. -o gives some options but nothing to do with alsa.

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

Re: Omxplayer

Fri Jun 06, 2014 11:16 am

slackhead wrote:Has anyone managed to route the audio out to an alsa soundcard?

I have a Wolfson card but omxplayer doesn't seem to work with it. -o gives some options but nothing to do with alsa.
No chance.

You could try a HW accelerated version of VLC. It does the audio decoding in software and should be able to send it to ALSA. I've not tested it, though. I've posted a tutorial about how to compile it.
Only usable for SD and some 720p content, not for HD beyond that.
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

Return to “Raspberry Pi OS”