用docker安装jellyfin没法解码HEVC视频。 #9522
Replies: 12 comments 7 replies
-
帮顶,忙猜是没驱动毕竟软路由,不是盒子 |
Beta Was this translation helpful? Give feedback.
-
有没有一种可能,就是你需要特权模式 |
Beta Was this translation helpful? Give feedback.
-
试了特权模式了。一样没用 |
Beta Was this translation helpful? Give feedback.
-
我这边hevc转码可以但是直接cpu100很卡没法用 |
Beta Was this translation helpful? Give feedback.
-
0615版带docker的固件还是没法硬解。有人成功硬解吗? |
Beta Was this translation helpful? Give feedback.
-
按照官方说明 https://jellyfin.org/docs/general/administration/installing.html, arm设备的docker不支持硬解: 试试官方提到的另外两个image试试? |
Beta Was this translation helpful? Give feedback.
-
我做的功课里有提到rk家的CPU使用硬解需要mpp库,不过我看不懂教程,目前来看应该是缺少这个库的缘故 |
Beta Was this translation helpful? Give feedback.
-
rk3568官方没有提供ffmpeg的编码库,只提供了解码库。jellyfin又是使用ffmpeg的,所以没法硬件编码。 rk官方支持的是gstreamer编解码 |
Beta Was this translation helpful? Give feedback.
-
有没有其他能用的媒体服务器,Emby试了也不行 |
Beta Was this translation helpful? Give feedback.
-
https://wiki.t-firefly.com/zh_CN/Firefly-Linux-Guide/manual_ubuntu.html#ffmpeg |
Beta Was this translation helpful? Give feedback.
-
我适配了一个支持编解码的ffmpeg: https://github.com/jjm2473/ffmpeg-rk > time ffmpeg -i /usr/local/test.mp4 -an -c:v h264_rkmpp -q:v 80 -y test.mkv -v 40
ffmpeg version git-2022-08-15-6e0816e Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 7.5.0 (OpenWrt GCC 7.5.0 r16747-8cfec6b49c)
configuration: --enable-cross-compile --cross-prefix=aarch64-openwrt-linux-musl- --arch=aarch64 --cpu=cortex-a53 --target-os=linux --prefix=/usr --pkg-config=pkg-config --enable-shared --enable-static --enable-pthreads --enable-zlib --disable-doc --disable-debug --disable-lzma --disable-vaapi --disable-vdpau --disable-outdevs --disable-runtime-cpudetect --enable-lto --enable-neon --enable-vfp --enable-gnutls --enable-libopus --enable-small --enable-libmp3lame --enable-gpl --enable-libx264 --enable-version3 --enable-nonfree --enable-libdrm --enable-librga --enable-rkmpp --enable-libfdk-aac
libavutil 57. 7.100 / 57. 7.100
libavcodec 59. 12.100 / 59. 12.100
libavformat 59. 8.100 / 59. 8.100
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 16.100 / 8. 16.100
libswscale 6. 1.100 / 6. 1.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
[h264 @ 0x7fb954f6b0] Reinit context to 1920x1088, pix_fmt: yuv420p
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/usr/local/test.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01T00:00:00.000000Z
encoder : Lavf52.64.2
Duration: 00:00:10.00, start: 0.000000, bitrate: 6836 kb/s
Stream #0:0[0x1](und): Video: h264, 1 reference frame (avc1 / 0x31637661), yuv420p(progressive, left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 6664 kb/s, 24 fps, 30 tbr, 30 tbn (default)
Metadata:
creation_time : 1970-01-01T00:00:00.000000Z
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1[0x2](und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 166 kb/s (default)
Metadata:
creation_time : 1970-01-01T00:00:00.000000Z
handler_name : SoundHandler
vendor_id : [0][0][0][0]
[h264_rkmpp @ 0x442410] RKMPP decoder: PIX FMT orig yuv420p.
[h264_rkmpp @ 0x442410] RKMPP decoder: PIX FMT yuv420p.
Wed Aug 17 19:04:47 2022 user.info mpp[18014]: mpp_info: mpp version: unknown mpp version for missing VCS info
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_rkmpp) -> h264 (h264_rkmpp))
Press [q] to stop, [?] for help
[h264_rkmpp @ 0x442410] Decoder noticed an info change (1920x1080), format=0
Wed Aug 17 19:04:47 2022 user.info mpp[18014]: hal_h264d_vdpu34x: control info: fmt 0, w 1920, h 1080
Wed Aug 17 19:04:47 2022 user.info mpp[18014]: mpp_buf_slot: set frame info: w 1920 h 1080 hor 1920 ver 1088
Wed Aug 17 19:04:47 2022 user.info mpp[18014]: mpp_dec: setting default w 1920 h 1080 h_str 1920 v_str 1088
[graph 0 input from stream 0:0 @ 0x7fb9af6e60] w:1920 h:1080 pixfmt:drm_prime tb:1/30 fr:30/1 sar:0/1
[h264_rkmpp @ 0x7fb9009840] Using input frames context (format drm_prime) with h264_rkmpp encoder.
Wed Aug 17 19:04:47 2022 user.info mpp[18014]: mpp_info: mpp version: unknown mpp version for missing VCS info
[h264_rkmpp @ 0x7fb9009840] FIXQP 9440 => 30.
Wed Aug 17 19:04:47 2022 user.info mpp[18014]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [1920:1080] stride [1920:1088]
Wed Aug 17 19:04:47 2022 user.info mpp[18014]: mpp_enc: send header for codec/prep cfg change
[h264_rkmpp @ 0x7fb9009840] Unsupport profile -99, force set to 100
[h264_rkmpp @ 0x7fb9009840] Wed Aug 17 19:04:47 2022 user.info mpp[18014]: mpp_enc: mode vbr bps [1500000:2000000:2500000] fps fix [30/1] -> fix [30/1] gop i [60] v [0]
Unsupport level -99, force set to 51
Wed Aug 17 19:04:47 2022 user.info mpp[18014]: mpp_enc: MPP_ENC_SET_RC_CFG bps 200000 [0 : 0] fps [24:24] gop 12
Output #0, matroska, to 'test.mkv':
Wed Aug 17 19:04:47 2022 user.info mpp[18014]: mpp_enc: send header for rc cfg change rc_mode/fps/gop
Metadata:
Wed Aug 17 19:04:47 2022 user.info mpp[18014]: mpp_enc: mode fixqp bps [0:200000:0] fps fix [24/1] -> fix [24/1] gop i [12] v [0]
major_brand : Wed Aug 17 19:04:47 2022 user.info mpp[18014]: mpp_enc: send header for codec/prep cfg change
isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf59.8.100
Stream #0:0(und): Video: h264, 1 reference frame (H264 / 0x34363248), drm_prime(tv, progressive), 1920x1080 (0x0), q=2-31, 200 kb/s, 24 fps, 1k tbn (default)
Metadata:
creation_time : 1970-01-01T00:00:00.000000Z
handler_name : VideoHandler
vendor_id : [0][0][0][0]
encoder : Lavc59.12.100 h264_rkmpp
*** dropping frame 0 from stream 0 at ts -9223372036854775808
No more output streams to write to, finishing.e=00:00:09.54 bitrate=2857.2kbits/s dup=0 drop=1 speed=2.33x
frame= 239 fps= 56 q=-0.0 Lsize= 4561kB time=00:00:09.87 bitrate=3784.0kbits/s dup=0 drop=1 speed=2.31x
video:4559kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.054602%
Input file #0 (/usr/local/test.mp4):
Input stream #0:0 (video): 240 packets read (8330701 bytes); 240 frames decoded;
Input stream #0:1 (audio): 2 packets read (702 bytes);
Total: 242 packets (8331403 bytes) demuxed
Output file #0 (test.mkv):
Output stream #0:0 (video): 239 frames encoded; 239 packets muxed (4668307 bytes);
Total: 239 packets (4668307 bytes) muxed
[AVIOContext @ 0x7fb9c0f9e0] Statistics: 4671614 bytes written, 2 seeks, 19 writeouts
Wed Aug 17 19:04:51 2022 user.err mpp[18014]: mpp_task_impl: mpp_task_queue_deinit input queue idx 0 task 0x7fb8f41080 status 0 meta size 1
Wed Aug 17 19:04:51 2022 user.info mpp[18014]: mpp_meta: dumping meta 8 node count 1
Wed Aug 17 19:04:51 2022 user.info mpp[18014]: mpp_meta: key ifrm type mfrm
[AVIOContext @ 0x7fb9c0f890] Statistics: 8545399 bytes read, 0 seeks
Wed Aug 17 19:04:51 2022 user.info mpp[18014]: mpp_buffer: ~MppBufferService cleaning misc group
Wed Aug 17 19:04:51 2022 user.err mpp[18014]: mpp_mem_pool: put_pool found 1 used buffer size 304
real 0m 4.49s
user 0m 1.12s
sys 0m 0.78s 目前解码支持大部分格式,编码只支持h264, h265 4k的转码只能达到15帧左右。 |
Beta Was this translation helpful? Give feedback.
-
好像需要 ffmpeg 支持开启 构建的时候开启 enable-rkmpp |
Beta Was this translation helpful? Give feedback.
-
我这么安装jellyfin
docker run -d
--name jellyfin
--volume /opt/jellyfin/config:/config
--volume /opt/jellyfin/cache:/cache
--volume /opt:/media
-p 12501:8096
-p 12502:8920
--device=/dev/dri/renderD128
--restart=unless-stopped
jellyfin/jellyfin
启动后播放设置VAAPI.硬解选项都勾上。。播放HEVC视频时直接时转码播放,没法硬解。哪里没弄对。这u我查了下是能硬解的。
Beta Was this translation helpful? Give feedback.
All reactions