Page 7 of 7

Re: omxplayer - GPU enabled video player

Posted: Mon Apr 22, 2013 10:20 am
by psergiu
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"

Re: omxplayer - GPU enabled video player

Posted: Thu Apr 25, 2013 12:48 pm
by dom
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.

Re: omxplayer - GPU enabled video player

Posted: Thu Apr 25, 2013 1:40 pm
by gkreidl
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.

Re: omxplayer - GPU enabled video player

Posted: Thu Apr 25, 2013 2:20 pm
by dom
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.

Re: omxplayer - GPU enabled video player

Posted: Thu Apr 25, 2013 3:09 pm
by gkreidl
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.

flac audio distorted

Posted: Sun Apr 28, 2013 12:32 pm
by gkreidl
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

Re: omxplayer - GPU enabled video player

Posted: Mon Apr 29, 2013 12:05 am
by BrianXP7
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
.

Re: omxplayer - GPU enabled video player

Posted: Tue Apr 30, 2013 11:32 am
by gkreidl
@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

Re: omxplayer - GPU enabled video player

Posted: Sat May 04, 2013 11:10 pm
by STrRedWolf
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

Re: omxplayer - GPU enabled video player

Posted: Tue May 07, 2013 9:24 pm
by antekgla
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!

Re: omxplayer - GPU enabled video player

Posted: Wed May 08, 2013 11:29 am
by dom
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.

Re: omxplayer - GPU enabled video player

Posted: Wed May 08, 2013 12:06 pm
by gkreidl
@dom:

any idea, when the broken flac support will be fixed?

Re: omxplayer - GPU enabled video player

Posted: Fri May 10, 2013 10:56 pm
by marcoraspy
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

Re: omxplayer - GPU enabled video player

Posted: Wed May 15, 2013 7:38 am
by littlehelper
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.

Re: omxplayer - GPU enabled video player

Posted: Fri Sep 20, 2013 11:38 pm
by apples723
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

Re: omxplayer - GPU enabled video player

Posted: Tue Jan 21, 2014 1:18 pm
by philharlow
I'm with marcoraspy, would support for drawing to a secondary framebuffer display (/dev/fb1) be possible?

Thanks!!

Re: omxplayer - GPU enabled video player

Posted: Tue Jan 21, 2014 2:34 pm
by gkreidl
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.

Re: omxplayer - GPU enabled video player

Posted: Tue Jan 21, 2014 2:44 pm
by philharlow
Thanks gkreidl, that would make sense with how much smoother the video plays compared to mplayer.

Re: omxplayer - GPU enabled video player

Posted: Tue Jan 21, 2014 3:07 pm
by jamesh
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)

Re: omxplayer - GPU enabled video player

Posted: Fri Jan 26, 2018 6:39 am
by TheWaterbug
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!

Re: omxplayer - GPU enabled video player

Posted: Fri Jan 26, 2018 7:59 am
by gkreidl
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).

Re: omxplayer - GPU enabled video player

Posted: Fri Jan 26, 2018 6:12 pm
by TheWaterbug
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!