Command line 4K video player on Ubuntu 20.04

Post Reply
User avatar
odroid
Site Admin
Posts: 37403
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1797 times
Been thanked: 1143 times
Contact:

Command line 4K video player on Ubuntu 20.04

Post by odroid »

We've spent very long time to fix the 4K video play problem and we recently updated aml-libs package can play 4K/60FPS H.265 video files on the minimal image (with the latest kernel 4.9.236 update) finally.
https://wiki.odroid.com/odroid-c4/os_im ... o_playback

But the customized kplayer is not comfortable as @crashoverride's c2play application.
I hope we can see a new c4play. ;)

Agarwal
Posts: 1
Joined: Sat Sep 26, 2020 10:53 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Command line 4K video player on Ubuntu 20.04

Post by Agarwal »

Hi,

Any chance we can get the source of kplayer? Or is it unmodified from https://github.com/osmc/libamcodec/blob ... /kplayer.c?

Also, is there any way to get an hardware-decoding working using gstreamer, without X / Wayland (eg, using drm or the framebuffer)? Thanks!

User avatar
odroid
Site Admin
Posts: 37403
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1797 times
Been thanked: 1143 times
Contact:

Re: Command line 4K video player on Ubuntu 20.04

Post by odroid »

kplayer source code was available in the Amlogic's Linux BSP.
https://github.com/hardkernel/buildroot ... _LibPlayer

We don't know well about the gstreamer.

User avatar
szabe
Posts: 12
Joined: Wed Jan 22, 2020 4:59 am
languages_spoken: english, hungarian
ODROIDs: Odroid C2/C4
Has thanked: 0
Been thanked: 7 times
Contact:

Re: Command line 4K video player on Ubuntu 20.04

Post by szabe »

kplayer source code was available in the Amlogic's Linux BSP.
https://github.com/hardkernel/buildroot ... _LibPlayer
@odroid: can you please provide information what environment and dependencies are needed to properly build the kplayer source code?

I've tried with Ubuntu 20.04 minimal latest image but it was failed. I also tried to install a necessary toolchain: arm-none-linux-gnueabi downloaded from here:
https://ncore.pro/torrents.php?action=d ... 642b52cefd
but the installation of this toolchain was also failed (I think it requires some desktop env. to be installed)

and here is some note and finding testing the kplayer deeply:
  • I tested with a fullHD video with loop for 20 hours and its stable and no memory leak
  • The loop does not work with mp4 it works only with mkv (with the same video packed to mkv container) I dont know why
  • some video starts very quickly some starts very slow (wait few seconds before start)
  • At the end of the stream the playing stops but the kplayer does not exists
Do you have any idea about these?

thnx in advance

User avatar
szabe
Posts: 12
Joined: Wed Jan 22, 2020 4:59 am
languages_spoken: english, hungarian
ODROIDs: Odroid C2/C4
Has thanked: 0
Been thanked: 7 times
Contact:

Re: Command line 4K video player on Ubuntu 20.04

Post by szabe »

Tomorrow I will try to build kplayer again with this toolchain:
https://wiki.odroid.com/odroid-c4/softw ... #toolchain

User avatar
tobetter
Posts: 7805
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 431 times
Been thanked: 1210 times
Contact:

Re: Command line 4K video player on Ubuntu 20.04

Post by tobetter »

szabe wrote:
Mon Feb 15, 2021 6:12 am
Tomorrow I will try to build kplayer again with this toolchain:
https://wiki.odroid.com/odroid-c4/softw ... #toolchain
If you are trying to build the source tree with a toolchain in a generic Linux environment, I would recommend not to try it. It will always give bunch of compile errors. Instead, try to build it from Buildroot and take the libraries to use on Linux 20.04.

User avatar
szabe
Posts: 12
Joined: Wed Jan 22, 2020 4:59 am
languages_spoken: english, hungarian
ODROIDs: Odroid C2/C4
Has thanked: 0
Been thanked: 7 times
Contact:

Re: Command line 4K video player on Ubuntu 20.04

Post by szabe »

@tobetter: thnx for advice.
You mean this?: https://wiki.odroid.com/odroid-c4/softw ... _buildroot
What dou you mean take the libraries?
How can I add this: https://github.com/hardkernel/buildroot ... _master_c4
to the build process? What are the steps?

thnx in advance

User avatar
tobetter
Posts: 7805
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 431 times
Been thanked: 1210 times
Contact:

Re: Command line 4K video player on Ubuntu 20.04

Post by tobetter »

szabe wrote:
Tue Feb 16, 2021 6:59 am
@tobetter: thnx for advice.
You mean this?: https://wiki.odroid.com/odroid-c4/softw ... _buildroot
What dou you mean take the libraries?
How can I add this: https://github.com/hardkernel/buildroot ... _master_c4
to the build process? What are the steps?

thnx in advance
kplayer is a part of LibPlayer git, and it's already in the Buildroot. So when you finish to build Buildroot image for C4, libraries and kplayer will be compiled together. What I meant "take the libraries" means you can copy libraris and kplayer from the output directory of the Buildroot.

User avatar
szabe
Posts: 12
Joined: Wed Jan 22, 2020 4:59 am
languages_spoken: english, hungarian
ODROIDs: Odroid C2/C4
Has thanked: 0
Been thanked: 7 times
Contact:

Re: Command line 4K video player on Ubuntu 20.04

Post by szabe »

@tobetter: I started the build process but after aprox. 60 minutes building it stucked on a 404 error response when tried to download something from openlinux.amlogic.com.
I restarted many times but this site cant reachable.
Any idea?
thnx in advance
ERROR: jpegsrc.v9c.tar.gz has wrong sha256 hash:
ERROR: expected: 650250979303a649e21f87b5ccd02672af1ea6954b911342ea491f351ceb7122
ERROR: got : 1e9793e1c6ba66e7e0b6e5fe7fd0f9e935cc697854d5737adec54d93e5b3f730
ERROR: Incomplete download, or man-in-the-middle (MITM) attack
--2021-02-19 18:50:13-- http://openlinux.amlogic.com:8000/downl ... v9c.tar.gz
openlinux.amlogic.com (openlinux.amlogic.com) feloldása… 120.25.202.108
Csatlakozás a következőhöz: openlinux.amlogic.com (openlinux.amlogic.com)[120.25.202.108]:8000… kapcsolódva.
HTTP kérés elküldve, várakozás válaszra… 404 Not Found
2021-02-19 18:50:14 HIBA 404: Not Found.

--2021-02-19 18:50:14-- http://openlinux.amlogic.com:8000/downl ... v9c.tar.gz
openlinux.amlogic.com (openlinux.amlogic.com) feloldása… 120.25.202.108
Csatlakozás a következőhöz: openlinux.amlogic.com (openlinux.amlogic.com)[120.25.202.108]:8000… kapcsolódva.
HTTP kérés elküldve, várakozás válaszra… 404 Not Found
2021-02-19 18:50:14 HIBA 404: Not Found.

package/pkg-generic.mk:143: recipe for target '/home/szalontai/odroid-c4/output/odroidc4/build/libjpeg-9c/.stamp_downloaded' failed
make[1]: *** [/home/szalontai/odroid-c4/output/odroidc4/build/libjpeg-9c/.stamp_downloaded] Error 1
/home/szalontai/odroid-c4/output/odroidc4/Makefile:23: recipe for target '_all' failed
make: *** [_all] Error 2
szalontai@szalontai-Inspiron-7520:~/odroid-c4$

alexsynq
Posts: 1
Joined: Tue May 04, 2021 4:45 am
languages_spoken: english
ODROIDs: C4
Has thanked: 0
Been thanked: 0
Contact:

Re: Command line 4K video player on Ubuntu 20.04

Post by alexsynq »

szabe wrote:
Sun Feb 14, 2021 6:53 am
kplayer source code was available in the Amlogic's Linux BSP.
https://github.com/hardkernel/buildroot ... _LibPlayer
@odroid: can you please provide information what environment and dependencies are needed to properly build the kplayer source code?

I've tried with Ubuntu 20.04 minimal latest image but it was failed. I also tried to install a necessary toolchain: arm-none-linux-gnueabi downloaded from here:
https://ncore.pro/torrents.php?action=d ... 642b52cefd
but the installation of this toolchain was also failed (I think it requires some desktop env. to be installed)

and here is some note and finding testing the kplayer deeply:
  • I tested with a fullHD video with loop for 20 hours and its stable and no memory leak
  • The loop does not work with mp4 it works only with mkv (with the same video packed to mkv container) I dont know why
  • some video starts very quickly some starts very slow (wait few seconds before start)
  • At the end of the stream the playing stops but the kplayer does not exists
Do you have any idea about these?

thnx in advance
What kplayer command did you run to get the video to loop?

User avatar
odroid
Site Admin
Posts: 37403
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1797 times
Been thanked: 1143 times
Contact:

Re: Command line 4K video player on Ubuntu 20.04

Post by odroid »

Another great command line 4K video player(c2play) has been released by @crashoverride.
It works well with C4 and N2 Ubuntu 20.04 + Kernel 4.9.
viewtopic.php?f=202&t=42436

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest