linux-build: Problems with rkmpv UHD h264 video playback

I have installed bionic-lxde-rock64-0.6.44-239-arm64 on my rock64 4GB but when I try to play a UHD h264 mp4 file using rkmpv I get very jerky video playback (maybe 2/3 fps) with lots of green horizontal lines obscuring the video. These same videos play fine under LibreELEC on my rock64 and with mpv under bionic (Ubuntu 18.04) amd64.

Here is the mediainfo output from one such video:

$ mediainfo 20180223_223347.mp4 
General
Complete name                            : 20180223_223347.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (isom/mp42)
File size                                : 598 MiB
Duration                                 : 1 min 44 s
Overall bit rate                         : 48.0 Mb/s
Performer                                : LGE
Encoded date                             : UTC 2018-02-23 22:35:33
Tagged date                              : UTC 2018-02-23 22:35:33
com.android.version                      : 6.0

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5.1
Format settings                          : CABAC / 1 Ref Frames
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 1 frame
Format settings, GOP                     : M=1, N=31
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1 min 44 s
Source duration                          : 1 min 44 s
Bit rate                                 : 48.0 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 29.937 FPS
Minimum frame rate                       : 29.183 FPS
Maximum frame rate                       : 30.706 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.193
Stream size                              : 596 MiB (100%)
Source stream size                       : 596 MiB (100%)
Title                                    : VideoHandle
Language                                 : English
Encoded date                             : UTC 2018-02-23 22:35:33
Tagged date                              : UTC 2018-02-23 22:35:33
mdhd_Duration                            : 104152

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : mp4a-40-2
Duration                                 : 1 min 44 s
Source duration                          : 1 min 44 s
Source_Duration_FirstFrame               : 71 ms
Bit rate mode                            : Constant
Bit rate                                 : 156 kb/s
Nominal bit rate                         : 96.0 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 1.94 MiB (0%)
Source stream size                       : 1.94 MiB (0%)
Title                                    : SoundHandle
Language                                 : English
Encoded date                             : UTC 2018-02-23 22:35:33
Tagged date                              : UTC 2018-02-23 22:35:33
mdhd_Duration                            : 104446

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Comments: 48 (7 by maintainers)

Most upvoted comments

Maybe we should fix conflicts in mali package: https://github.com/ayufan-rock64/libmali? 😃

On Tue, Oct 30, 2018 at 10:35 PM Dan MacDonald notifications@github.com wrote:

@fcoulombe https://github.com/fcoulombe

That does indeed appear to be the correct Debian voodoo required to do-do d’GPU dance!

Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ayufan-rock64/linux-build/issues/249#issuecomment-434478659, or mute the thread https://github.com/notifications/unsubscribe-auth/ACTpQTCdAjq8AtKrFaqyg1qlPlaixGBhks5uqMYLgaJpZM4VcYhd .

Could you please give the exact, full commands you used to temp remove libmali,

i think it was those: force install sudo apt-get -o Dpkg::Options::=“–force-overwrite” install libmali-rk-utgard-450-r7p0 force purge sudo dpkg --purge --force-all libmali-rk-utgard-450-r7p0

just install whatever packages you need and then “patch” your libs with the force install

what i mean is that a 60fps 4k video will not play smoothly. it’s like if the machine isn’t powerful enough.

i found some other posts where people seem like they were overclocking the ddk but i’m still very new to the whole linux graphic stack. (although i learned an insane amount in the last 36 hours)

Great to hear that.

Maybe someone would extend and send PR to https://github.com/ayufan-rock64/linux-build/blob/master/recipes/video-playback.md? 😃

Kamil

On Sat, Oct 27, 2018 at 8:39 PM Dan MacDonald notifications@github.com wrote:

A lot of my videos require that I also use the switch –video-aspect=1.3333 (and --video-rotate=no) but using that rids of the letterboxing.

Excellent!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ayufan-rock64/linux-build/issues/249#issuecomment-433645040, or mute the thread https://github.com/notifications/unsubscribe-auth/ACTpQW4i0wXBbNqh8TNCsJ9v_-WCSF6Kks5upKhDgaJpZM4VcYhd .