User avatar
psergiu
Posts: 223
Joined: Mon Nov 07, 2011 8:36 am
Location: TX, U.S.A. (was: RO, E.U.)
Contact: Website

Re: omxplayer - GPU enabled video player

Mon Apr 22, 2013 10:20 am

Holliss wrote: Sorry for straying off topic, can someone please remind me of the name of the clip that bird scene is from please, had a copy of it ages ago and now can't remember it's name for the life of me.
Thanks,
http://en.wikipedia.org/wiki/Planet_Earth_(TV_series) Episode 1. "From Pole to Pole"

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5196
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: omxplayer - GPU enabled video player

Thu Apr 25, 2013 12:48 pm

I spotted that sample here:
http://www.auby.no/files/video_tests/

This is the original untouched video from the Blu-Ray. It plays fine for me.

Note there is also a badly encoded version around called killa.mkv which uses 5.1 profile and 16 reference frames.
That's out of spec for the Pi, although I think it did play for me with sufficient gpu_mem.

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

Re: omxplayer - GPU enabled video player

Thu Apr 25, 2013 1:40 pm

I downloaded all three 1080p examples and they worked fine.

omxplayer is getting better all the time. There is only one thing I'm really missing: support for usb audio cards, either with alsa or pulse audio.
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

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5196
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: omxplayer - GPU enabled video player

Thu Apr 25, 2013 2:20 pm

gkreidl wrote:I downloaded all three 1080p examples and they worked fine.

omxplayer is getting better all the time. There is only one thing I'm really missing: support for usb audio cards, either with alsa or pulse audio.
Not something I will support. omxplayer plays the audio from the GPU. It has no knowledge of USB or linux or alsa.

It would be possible to disable the openmax audio and just use omplayer for the video decode. Then some completely new code could support ALSA audio output from the ARM.
It would be pretty difficult to get audio and video in sync, and not drifting, and to synchronise the play/pause/seek messages. Possible, but someone who wants the feature will have to do the work.

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

Re: omxplayer - GPU enabled video player

Thu Apr 25, 2013 3:09 pm

dom wrote:Not something I will support. omxplayer plays the audio from the GPU. It has no knowledge of USB or linux or alsa.

It would be possible to disable the openmax audio and just use omplayer for the video decode. Then some completely new code could support ALSA audio output from the ARM.
It would be pretty difficult to get audio and video in sync, and not drifting, and to synchronise the play/pause/seek messages. Possible, but someone who wants the feature will have to do the work.
Thanks for the explanation.

G.
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

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

flac audio distorted

Sun Apr 28, 2013 12:32 pm

Flac audio files are played too loud and distorted since version of April 21st. (and also in the current version of yesterday).

After reinstalling omxplayer_0.2.5~git20130326~5b369233 it worked again. So the problem must have occurred between these two versions.

I have the newest firmware installed.

Guenter
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

BrianXP7
Posts: 26
Joined: Sat Mar 30, 2013 6:35 am
Location: Los Angeles, CA

Re: omxplayer - GPU enabled video player

Mon Apr 29, 2013 12:05 am

I have this issue where if it attempts to play a video (in my case, whitey), omxplayer flashes black and crashes.

EDIT: Never mind, I got it working when updating youtube-dl using

Code: Select all

sudo youtube-dl -U
.
Last edited by BrianXP7 on Wed May 08, 2013 6:13 pm, edited 1 time in total.

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

Re: omxplayer - GPU enabled video player

Tue Apr 30, 2013 11:32 am

@Dom

Could you please modify the omxplayer script for the next release so that it also restores a 24-bit framebuffer:

Code: Select all

 elif [ "$DEPTH2" == "16" ] || [ "$DEPTH2" == "32" ] || [ "$DEPTH2" == "24" ]; then
Guenter
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

User avatar
STrRedWolf
Posts: 24
Joined: Fri Oct 05, 2012 1:47 am

Re: omxplayer - GPU enabled video player

Sat May 04, 2013 11:10 pm

Anyone actually try a direct RTMP stream? This is what I get (FYI stream is an artwork stream and gets NSFW):

Code: Select all

<U+FEFF>00:00:00 T:0   DEBUG: DllBcm: Using omx system library
00:00:00 T:0   DEBUG: DllOMX: Using omx system library
00:00:00 T:0   DEBUG: DllAvFormat: Using libavformat system library
00:00:00 T:0   DEBUG: DllAvUtilBase: Using libavutil system library
00:00:00 T:0   DEBUG: DllAvCodec: Using libavcodec system library
00:00:00 T:0   DEBUG: DllAvFormat: Using libavformat system library
00:00:00 T:0   ERROR: COMXPlayer::OpenFile - avformat_open_input rtmp://wolf.tv.macrophile.com/oflaDemo/wolftv

antekgla
Posts: 1
Joined: Tue May 07, 2013 9:18 pm

Re: omxplayer - GPU enabled video player

Tue May 07, 2013 9:24 pm

Hi, I dont know if this is the right place to ask, but...
I wish to know if is planned to support the wmv1 (Windows Media Video 7/8) codec.
I have a license to VC-1 but only decode wmv3 (Windows Media Video 9).

It is possible to decode this codec by software or the Raspberry Pi dont have the power to implement this.

Thanks in advance!

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5196
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: omxplayer - GPU enabled video player

Wed May 08, 2013 11:29 am

antekgla wrote:Hi, I dont know if this is the right place to ask, but...
I wish to know if is planned to support the wmv1 (Windows Media Video 7/8) codec.
I have a license to VC-1 but only decode wmv3 (Windows Media Video 9).

It is possible to decode this codec by software or the Raspberry Pi dont have the power to implement this.
There's no hardware support for older wmv codecs. The arm is not powerful to decode in software.
I think you'll have to transcode them, or play them on a different device.

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

Re: omxplayer - GPU enabled video player

Wed May 08, 2013 12:06 pm

@dom:

any idea, when the broken flac support will be fixed?
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

marcoraspy
Posts: 1
Joined: Thu May 09, 2013 9:20 pm

Re: omxplayer - GPU enabled video player

Fri May 10, 2013 10:56 pm

Is it possible to use omxplayer with framebuffer devices?
I have a spi tft display and I don't know how can sending rtmp live stream with omxplayer to the spi tft /dev/fb1)
If I use mplayer the code is

Code: Select all

sudo mplayer -vo fbdev2:/dev/fb1 -x 128 -y 160 -zoom rtmp://......
Thanks,
marco

littlehelper
Posts: 1
Joined: Wed May 15, 2013 7:35 am

Re: omxplayer - GPU enabled video player

Wed May 15, 2013 7:38 am

Hi there,

I am trying to capture a screenshot from the hdmi output on my Pi that is running an omxplayer stream.

I tried to take a snapshot from the framebuffer and save it as a picture. Unfortunately this only returns the console output (debian login form) but not a frame of the video running below.

Any ideas? How does the omxplayer outputs the video to the hdmi port?

Thank you,
the littlehelper

EDIT: Or maybe someone has another idea how to check if the stream is still running or frozen and I need to restart it.

apples723
Posts: 80
Joined: Sat Jun 22, 2013 3:13 pm

Re: omxplayer - GPU enabled video player

Fri Sep 20, 2013 11:38 pm

mine goes to a black screen and you can see the little monitor in the task bar nothing else eventualy times out and goes back to main screen im running it from a remote computer and going through anolog

philharlow
Posts: 51
Joined: Mon Dec 31, 2012 9:17 pm

Re: omxplayer - GPU enabled video player

Tue Jan 21, 2014 1:18 pm

I'm with marcoraspy, would support for drawing to a secondary framebuffer display (/dev/fb1) be possible?

Thanks!!

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

Re: omxplayer - GPU enabled video player

Tue Jan 21, 2014 2:34 pm

As far as I know, omxplayer does not send anything to any framebuffer at all. The video stream is decoded and displayed directly by the GPU.
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

philharlow
Posts: 51
Joined: Mon Dec 31, 2012 9:17 pm

Re: omxplayer - GPU enabled video player

Tue Jan 21, 2014 2:44 pm

Thanks gkreidl, that would make sense with how much smoother the video plays compared to mplayer.

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

Re: omxplayer - GPU enabled video player

Tue Jan 21, 2014 3:07 pm

gkreidl wrote:As far as I know, omxplayer does not send anything to any framebuffer at all. The video stream is decoded and displayed directly by the GPU.
Yes, the preview display is a overlay on top of the usual framebuffer. Strictly speaking, the GPU can have a number of bitmaps which it composites together in real time - the frame buffer is one, the preview is another. The preview is just on a higher layer so appears over the framebuffer. I think EGL uses another for 2D/3D surfaces, and the HW cursor I am looking at is yet another.

You can even add your own (AFAIK), this is done using dispmanx calls to the GPU, but it does involved some hairy memory management (since the GPU and ARM have different memory schemes)
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."

TheWaterbug
Posts: 76
Joined: Fri Feb 05, 2016 12:35 am
Location: Los Angeles, CA, USA, Earth

Re: omxplayer - GPU enabled video player

Fri Jan 26, 2018 6:39 am

I was able to download and install omxplayer, but from http://omxplayer.sconde.net/builds/omxp ... _armhf.deb instead of the links above (those have ellipses in the URLs and no longer work).

The player works. From an ssh session:

Code: Select all

omxplayer -o hdmi LeticiaShootsPeacock.mp4
results in audio/video over HDMI port to my TV, and looks terrific, with low CPU usage on my Pi3. ssh session reports:

Code: Select all

Video codec omx-h264 width 1920 height 1080 profile 100 fps 27.000000
Error: Unable to open font
Audio codec aac channels 1 samplerate 8000 bitspersample 16
Subtitle count: 0, state: off, index: 1, delay: 0
V:PortSettingsChanged: 1920x1080@27.00 interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0

and finally:

Code: Select all

Stopped at: 00:00:06
have a nice day ;)
But I can't get a stream out of my Reolink RLC-423s camera. From my ssh session:

Code: Select all

omxplayer -o hdmi rtsp://anonymous:password@192.168.1.11:554
results in no change on my TV, and the following in my ssh session:

Code: Select all

Video codec omx-h264 width 2304 height 1296 profile 100 fps 30.000000
Error: Unable to open font
Audio codec aac channels 1 samplerate 16000 bitspersample 16
Subtitle count: 0, state: off, index: 1, delay: 0
but no video. If I press q my ssh session says:

Code: Select all

Stopped at: 00:00:00
have a nice day ;)
I noticed that the video is way larger than my TV can display, so I played with cropping.

Code: Select all

omxplayer -o hdmi LeticiaShootsPeacock.mp4 -b --crop 0,0,640,480
results in the upper left of that video being scaled proportionally to my TV, so I appear to have the crop syntax correct. But:

Code: Select all

omxplayer -o hdmi rtsp://anonymous:password@192.168.1.11:554 -b --crop 0,0,640,480
produces no video. I _do_ get a black screen, which I suppose is progress (vs no change at all when I don't supply the crop option).

I know that URL is correct, because I can copy/paste that into VLC, and I get good video.

Am I passing the URL oxmplayer incorrectly?

That stream has no audio, if that's important.

Thanks!

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

Re: omxplayer - GPU enabled video player

Fri Jan 26, 2018 7:59 am

The image size of your video stream is too large for the H264 decoder built into the VC4 GPU.
It is specified for "up to 1920x1080p30" (and also works for 1920x1080p60 with an accelerated GPU).
Last edited by gkreidl on Fri Jan 26, 2018 10:29 pm, edited 1 time in total.
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

TheWaterbug
Posts: 76
Joined: Fri Feb 05, 2016 12:35 am
Location: Los Angeles, CA, USA, Earth

Re: omxplayer - GPU enabled video player

Fri Jan 26, 2018 6:12 pm

gkreidl wrote:
Fri Jan 26, 2018 7:59 am
The image size of your video stream is too large for the H264 decoder built into the VC4 GPU.
It is specified for "up to 1920p30" (and also works for 1920p60 with an accelerated GPU).
Thanks!

Ah, too bad. Is that a hardware limitation?

My Reolink camera's output resolution only goes down to 2304 x 1296. :x

This is annoying, because my older Reolink camera will output 1080p and 720p. This one is newer and better, so it lacks the lower output resolutions. :roll:

I'll have to see if my Pi has enough CPU for ffmpeg to scale it down. Would that work? How does one command omxplayer to take a feed from ffmpeg processing a stream? There are examples for processing a file, but how does that work for a stream? I have ffmpeg pushing a stream to an RTMP ingestor (e.g. YouTube streaming channel), but how do I make it available for omxplayer to pick up?

Thanks!

Return to “Media centres”