Slow decoding - HEVC #214

Closed
opened 2025-12-23 10:36:08 +01:00 by backuprepo · 2 comments
Owner

Originally created by @Elmer-toletus on GitHub (Sep 5, 2025).

I`m on rk3566 (radxa zero 3E) with dietpi OS.

When try to display a full hd HEVC the image is slow and have a stranger colors on the firts rows

$ ffplay -vcodec hevc_rkmpp  Test\ Jellyfin\ 1080p\ HEVC\ 8bit\ 3M.mp4 
ffplay version c000a10 Copyright (c) 2003-2023 the FFmpeg developers
  built with gcc 12.2.1 (GCC) 20230304 [releases/gcc-12 revision bb68c20e1f3c673ed00e0e1abd468d8f19cd2072]
  configuration: --arch=arm64 --target-os=linux --enable-cross-compile --cross-prefix=aarch64-linux-gnu- --enable-version3 --sysroot=/home/elmer/projects/cross-compile-env/src/sysroot --disable-stripping --enable-nonfree --enable-opengl --enable-sdl2 --enable-rkmpp --enable-rkrga --enable-libdrm --enable-shared
  WARNING: library configuration mismatch
  swresample  configuration: --prefix=/usr --extra-version=0+deb12u1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4.  7.100
Couldn't open plugin directory: No such file or directory
No plugins found, falling back on no decorations
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Test Jellyfin 1080p HEVC 8bit 3M.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf61.1.100
  Duration: 00:00:29.95, start: 0.000000, bitrate: 3021 kb/s
  Stream #0:0[0x1](und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709/bt709/unknown, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 3019 kb/s, 60 fps, 60 tbr, 15360 tbn (default)
Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc61.3.100 hevc_videotoolbox
mpp[2522]: mpp_info: mpp version: unknown mpp version for missing VCS info
mpp[2522]: mpp_buf_slot: mismatch h_stride_by_pixel 2304 - 1920
mpp[2522]: mpp_buf_slot: mismatch h_stride_by_byte 2304 - 1920
mpp[2522]: mpp_buf_slot: mismatch v_stride 1088 - 1080
mpp[2522]: mpp_buf_slot: mismatch size_total 4512153 - 3732480
mpp[2522]: mpp_buf_slot: mismatch h_stride_by_pixel 2304 - 1920/0   
mpp[2522]: mpp_buf_slot: mismatch h_stride_by_byte 2304 - 1920
mpp[2522]: mpp_buf_slot: mismatch v_stride 1088 - 1080
mpp[2522]: mpp_buf_slot: mismatch size_total 4512153 - 3732480

Image

the frame update every few Seconds.
what could be?

Originally created by @Elmer-toletus on GitHub (Sep 5, 2025). I`m on rk3566 (radxa zero 3E) with dietpi OS. When try to display a full hd HEVC the image is slow and have a stranger colors on the firts rows ``` shell $ ffplay -vcodec hevc_rkmpp Test\ Jellyfin\ 1080p\ HEVC\ 8bit\ 3M.mp4 ffplay version c000a10 Copyright (c) 2003-2023 the FFmpeg developers built with gcc 12.2.1 (GCC) 20230304 [releases/gcc-12 revision bb68c20e1f3c673ed00e0e1abd468d8f19cd2072] configuration: --arch=arm64 --target-os=linux --enable-cross-compile --cross-prefix=aarch64-linux-gnu- --enable-version3 --sysroot=/home/elmer/projects/cross-compile-env/src/sysroot --disable-stripping --enable-nonfree --enable-opengl --enable-sdl2 --enable-rkmpp --enable-rkrga --enable-libdrm --enable-shared WARNING: library configuration mismatch swresample configuration: --prefix=/usr --extra-version=0+deb12u1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared libavutil 58. 29.100 / 58. 29.100 libavcodec 60. 31.102 / 60. 31.102 libavformat 60. 16.100 / 60. 16.100 libavdevice 60. 3.100 / 60. 3.100 libavfilter 9. 12.100 / 9. 12.100 libswscale 7. 5.100 / 7. 5.100 libswresample 4. 12.100 / 4. 7.100 Couldn't open plugin directory: No such file or directory No plugins found, falling back on no decorations Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Test Jellyfin 1080p HEVC 8bit 3M.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf61.1.100 Duration: 00:00:29.95, start: 0.000000, bitrate: 3021 kb/s Stream #0:0[0x1](und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709/bt709/unknown, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 3019 kb/s, 60 fps, 60 tbr, 15360 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.3.100 hevc_videotoolbox mpp[2522]: mpp_info: mpp version: unknown mpp version for missing VCS info mpp[2522]: mpp_buf_slot: mismatch h_stride_by_pixel 2304 - 1920 mpp[2522]: mpp_buf_slot: mismatch h_stride_by_byte 2304 - 1920 mpp[2522]: mpp_buf_slot: mismatch v_stride 1088 - 1080 mpp[2522]: mpp_buf_slot: mismatch size_total 4512153 - 3732480 mpp[2522]: mpp_buf_slot: mismatch h_stride_by_pixel 2304 - 1920/0 mpp[2522]: mpp_buf_slot: mismatch h_stride_by_byte 2304 - 1920 mpp[2522]: mpp_buf_slot: mismatch v_stride 1088 - 1080 mpp[2522]: mpp_buf_slot: mismatch size_total 4512153 - 3732480 ``` ![Image](https://github.com/user-attachments/assets/32c58746-c016-4c4c-a8ee-e0cfb7c8e442) the frame update every few Seconds. what could be?
backuprepo 2025-12-23 10:36:08 +01:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nyanmisaka commented on GitHub (Sep 5, 2025):

The green bar probably means your MPP runtime version is outdated. I recommend using my custom fork.
https://github.com/nyanmisaka/ffmpeg-rockchip/wiki/Compilation

ffplay is a demo that doesn't support zero-copy rendering, not a complete player, so don't expect smooth playback.

Therefore, neither of these two problems is caused by ffmpeg-rockchip itself.

@nyanmisaka commented on GitHub (Sep 5, 2025): The green bar probably means your MPP runtime version is outdated. I recommend using my custom fork. https://github.com/nyanmisaka/ffmpeg-rockchip/wiki/Compilation ffplay is a demo that doesn't support zero-copy rendering, not a complete player, so don't expect smooth playback. Therefore, neither of these two problems is caused by ffmpeg-rockchip itself.
Author
Owner

@Elmer-toletus commented on GitHub (Sep 16, 2025):

Oh, THX.
now its working nice. runing smooth and with no green bar or artifacts whit the same command line
ffplay -vcodec hevc_rkmpp Test\ Jellyfin\ 1080p\ HEVC\ 8bit\ 3M.mp4

@Elmer-toletus commented on GitHub (Sep 16, 2025): Oh, THX. now its working nice. runing smooth and with no green bar or artifacts whit the same command line `ffplay -vcodec hevc_rkmpp Test\ Jellyfin\ 1080p\ HEVC\ 8bit\ 3M.mp4`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/ffmpeg-rockchip#214
No description provided.