mpv player?

Post Reply
MrGlasspoole
Posts: 25
Joined: Sat Dec 31, 2016 6:04 pm
languages_spoken: english, german
Contact:

mpv player?

Unread post by MrGlasspoole » Sat Dec 15, 2018 8:50 am

Does the mpv player run on the C2?
Somebody has it installed and if yes does hardware acceleration work?

User avatar
mad_ady
Posts: 5428
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Contact:

Re: mpv player?

Unread post by mad_ady » Sat Dec 15, 2018 5:35 pm

It runs, but with software decoding. You can look for c2play if you want a standalone program that can do hardware playback.

MrGlasspoole
Posts: 25
Joined: Sat Dec 31, 2016 6:04 pm
languages_spoken: english, german
Contact:

Re: mpv player?

Unread post by MrGlasspoole » Sun Dec 16, 2018 1:06 pm

I saw that c2play but i'm looking for something like OMXPlayer (RPi).
I want to view 4 to 6 videos on one screen.

Since the C2 can do 4k i have the hope i can play 6 720p 10fps Videos at the same time.
The Pi has not enough power.

User avatar
rooted
Posts: 6440
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: mpv player?

Unread post by rooted » Sun Dec 16, 2018 1:25 pm

MrGlasspoole wrote:I saw that c2play but i'm looking for something like OMXPlayer (RPi).
I want to view 4 to 6 videos on one screen.

Since the C2 can do 4k i have the hope i can play 6 720p 10fps Videos at the same time.
The Pi has not enough power.
AFAIK c2play can do that.

User avatar
mad_ady
Posts: 5428
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Contact:

Re: mpv player?

Unread post by mad_ady » Sun Dec 16, 2018 2:29 pm

The problem is the c2 play accelerated video to a separate video plane, so accelerated video playback is always fullscreen (kodi, c2play).
So you can't have tiles unless you create a tiled video stream with ffmpeg - which does software encoding.
Work on mainline kernel might allow several processes to use the decoder at the same time, but I'm not sure if rendering is done in the special plane or not.

You should be able to decode and display multiple streams with xu4 and ffplay - but I'm not 100% sure (haven't tested it).

MrGlasspoole
Posts: 25
Joined: Sat Dec 31, 2016 6:04 pm
languages_spoken: english, german
Contact:

Re: mpv player?

Unread post by MrGlasspoole » Sun Dec 16, 2018 2:41 pm

Ok i look at it.

I want to stream RTSP from cams and i made a quick test in Android with IP Cam Viewer.
Viewing a single stream works with almost no delay. But if i view 2 cams side by side they have big delays.

I don't have that problem on a old phone from 2013 (and that is over WiFi).

User avatar
mad_ady
Posts: 5428
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Contact:

Re: mpv player?

Unread post by mad_ady » Sun Dec 16, 2018 4:08 pm

I have no idea how Android handles video decoding, but I don't expect it is much better, sadly.

MrGlasspoole
Posts: 25
Joined: Sat Dec 31, 2016 6:04 pm
languages_spoken: english, german
Contact:

Re: mpv player?

Unread post by MrGlasspoole » Sun Dec 16, 2018 4:17 pm

Ok its IP Cam Viewer.
I have now tinyCam Monitor running but only 2x 720p streams at 12fps (no delay).
2x 1080p does not work (dropped frames).
Also it runs only with the software decoder. If i switch to hardware or hardware+ there is all kind of funny pixelation happening.

Its sad that the C2 has so much power but we can't really use it that way.

User avatar
mad_ady
Posts: 5428
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Contact:

Re: mpv player?

Unread post by mad_ady » Sun Dec 16, 2018 4:46 pm

This happens because each soc vendor designs and implements the video decoder to only play back 1 video stream on android, it's not a general purpose decoder.

MrGlasspoole
Posts: 25
Joined: Sat Dec 31, 2016 6:04 pm
languages_spoken: english, german
Contact:

Re: mpv player?

Unread post by MrGlasspoole » Sun Dec 16, 2018 9:49 pm

Yes but not only Android. Android was just a test...
OMXPlayer on the RPi works...

My Nvidia Shield Tablet has no problems with 2x 1080p.

outhudd9
Posts: 33
Joined: Wed May 02, 2018 10:52 pm
languages_spoken: english
Contact:

Re: mpv player?

Unread post by outhudd9 » Sun Dec 16, 2018 10:33 pm

MrGlasspoole wrote:Does the mpv player run on the C2?
Somebody has it installed and if yes does hardware acceleration work?
c2play isn't the only option.

mpv is working with hardware acceleration using the kernel, mpv, ffmpeg etc from here:

http://seafile.servator.de/sbc/odroid/n ... nstall.txt

See this thread: viewtopic.php?f=135&t=22717&start=900

EDIT: I see now you are using Android, so this probably does not apply.

User avatar
mad_ady
Posts: 5428
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Contact:

Re: mpv player?

Unread post by mad_ady » Sun Dec 16, 2018 11:35 pm

Can you play several videos at the same time in windowed mode? That would be great.

MrGlasspoole
Posts: 25
Joined: Sat Dec 31, 2016 6:04 pm
languages_spoken: english, german
Contact:

Re: mpv player?

Unread post by MrGlasspoole » Mon Dec 17, 2018 2:58 am

outhudd9 wrote: I see now you are using Android, so this probably does not apply.
As i wrote Android was just a test.

And the question is do multiple videos run at the same time with hardware acceleration.

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest