Is it possible to play a 4K UHD movie using rpi2 and omxplayer?
I tried many configurations without success
Thanks in advance,
N


Yes, Full 1080P SBS would be 3840x1080, so exceeding level 4.1.njk1961 wrote:I was also looking at 3D resolution, so this explains why Full SBS would be impossible, right?
I was wondering if this was a ffmpeg limitation...

It should run 4 instances, but they'll all be at <25% speed as the hardware block can do a little over 1080P30, and there will be some overhead in multiplexing streams.njk1961 wrote:Well, if X can handle 4K resolution, I wonder if it would be possible to configure an fb console with 3840x2160 and execute 4 omxplayer playing full HD videos simultaneously, despite performance problems.
It appears that if you run four instances of omxplayer, the fourth one get the error message (e.g. this thread ... viewtopic.php?f=66&t=111197#p764365)6by9 wrote:It should run 4 instances, but they'll all be at <25% speed as the hardware block can do a little over 1080P30, and there will be some overhead in multiplexing streams.njk1961 wrote:Well, if X can handle 4K resolution, I wonder if it would be possible to configure an fb console with 3840x2160 and execute 4 omxplayer playing full HD videos simultaneously, despite performance problems.
Code: Select all
tvservice-client: Failed to connect to TV service: -1That surprising. I wonder if you can do that with different files? I would expect it to run out of bandwidth after two or three HD streams.njk1961 wrote:I dont have a 4K tv at this moment to test, but RPI handled up to 7 omxplayers playing simultaneosly Full HD video in HDMI mode 32 (1920x1080@24)
I first tried 4 (2x2) omxplayers instances, no problem at all (despite the fact they were about 50% slower, as 6by9 had predicted)
nohup omxplayer --win 0,0,959,539 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 960,0,1919,539 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 0,540,959,1079 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 960,540,1919,1079 bbb_sunflower_1080p_30fps_normal.mp4 &
Then I tried 6 (2x3) tiles:
nohup omxplayer --win 0,0,639,539 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 640,0,1279,539 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 1280,0,1919,539 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 0,540,639,1079 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 640,540,1279,1079 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 1280,540,1919,1079 bbb_sunflower_1080p_30fps_normal.mp4 &
When I tried 9 (3x3), the message AndyD mentioned appeared while trying to execute 8th tile
nohup omxplayer --win 0,0,639,359 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 640,0,1279,359 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 1280,0,1919,359 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 0,360,639,719 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 640,360,1279,719 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 1280,360,1919,719 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 0,720,639,1079 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 640,720,1279,1079 bbb_sunflower_1080p_30fps_normal.mp4 &
nohup omxplayer --win 1280,720,1919,1079 bbb_sunflower_1080p_30fps_normal.mp4 &
CPU was 96% idle
I am running a RPI 2 (Raspbian Jessie Lite image) with GPU_MEM=256
I have compiled omxplayer from the last commit on github (5-dec-2015)
overclocking wont help in this case.
Do you have any idea to get a better performance, or I am expecting too much from the GPU?
N

There are a limited number of client slots for the IPC to the GPU (known as VCHIQ). That limit is 4.AndyD wrote:It appears that if you run four instances of omxplayer, the fourth one get the error message (e.g. this thread ... viewtopic.php?f=66&t=111197#p764365)6by9 wrote:It should run 4 instances, but they'll all be at <25% speed as the hardware block can do a little over 1080P30, and there will be some overhead in multiplexing streams.njk1961 wrote:Well, if X can handle 4K resolution, I wonder if it would be possible to configure an fb console with 3840x2160 and execute 4 omxplayer playing full HD videos simultaneously, despite performance problems.
From memory I don't think this was a memory split problem. I have just confirmed this on a B+ I have at hand.Code: Select all
tvservice-client: Failed to connect to TV service: -1

You may get slightly different results on an genuine 4k TV. The video scaler runs in real time and normally outputs directly to the HDMI pixel bitstream (not to memory). 4k will be running faster, so less time to compose everything.njk1961 wrote:I dont have a 4K tv at this moment to test, but RPI handled up to 7 omxplayers playing simultaneosly Full HD video in HDMI mode 32 (1920x1080@24)
Failing on 8th video - again sounds like running out of VCHIQ service slots. I do have a vague recollection of the number being increased recently, which main explain why Andy saw it at 4 whilst you get 8.jamesh wrote:That surprising. I wonder if you can do that with different files? I would expect it to run out of bandwidth after two or three HD streams.njk1961 wrote:I first tried 4 (2x2) omxplayers instances, no problem at all (despite the fact they were about 50% slower, as 6by9 had predicted)
<snip>
CPU was 96% idle
I am running a RPI 2 (Raspbian Jessie Lite image) with GPU_MEM=256
I have compiled omxplayer from the last commit on github (5-dec-2015)
overclocking wont help in this case.
Do you have any idea to get a better performance, or I am expecting too much from the GPU?
N

Sorry, I have never played with overclocking - I'm too used to trying to keep everything vanilla so that it always works on the lowest common denominator.njk1961 wrote:I was thinking exactly like you said, I expect that it will run smoothly in 4K. Do you have any suggestions on how to tweak the GPU and SDRAM?
That is probably your reason for the 8th one failing - 1.6M of heap left isn't enough. Increase your GPU memory allocation and you may be able to cram a few more innjk1961 wrote:vcdbg while running 7 omxplayers
sudo vcdbg reloc
Relocatable heap version 4 found at 0x2f000000
total space allocated is 236M, with 236M relocatable, 0 legacy and 0 offline
0 legacy blocks of size 2359296
free list at 0x3bdfb380
1.6M free memory in 11 free block(s)
largest free block is 1.6M bytes
0x2f000000: free 1.6M
...
...