2024-12-20, 03:13 PM
(This post was last modified: 2024-12-20, 03:20 PM by ionutm80. Edited 3 times in total.)
Hi Guys, I need your guidance to solve a transcoding issue.
I have a TrueNAS SCALE server based on an Intel N100 mainboard and I have installed Jellyfin in Docker with gpu pass-through to the container, I have checked and everything is working, see screenshots attached. Ithen tried to play a movie rip on Android Phone: Motorola G62 and it's stuttering like hell, I have also attached the log file which is showing me the following info:
Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn
Stream #0:1(eng): Audio: dts (dca) (DTS-HD MA + DTS:X), 48000 Hz, 7.1, s32p (24 bit) (default)
............................................................................................................................................
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_qsv))
Stream #0:1 -> #0:1 (dts (dca) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[hevc @ 0x5612dbab8480] First slice in a frame missing.
Last message repeated 6 times
[hevc @ 0x5612d5900600] First slice in a frame missing.
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
............................................................................................................................................
Last message repeated 6 times
[hls @ 0x5612d5863880] Opening '/cache/transcodes/6d54372d70bcd3d37937c6eee91c23f3-1.mp4' for writing
Output #0, hls, to '/cache/transcodes/6d54372d70bcd3d37937c6eee91c23f3.m3u8':
Metadata:
encoder : Lavf61.1.100
Stream #0:0: Video: h264, qsv(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 47794 kb/s, 23.98 fps, 24k tbn
Metadata:
encoder : Lavc61.3.100 h264_qsv
Side data:
cpb: bitrate max/min/avg: 47794121/0/47794121 buffer size: 95588242 vbv_delay: N/A
Stream #0:1: Audio: aac, 48000 Hz, stereo, s16, 256 kb/s (default)
Metadata:
encoder : Lavc61.3.100 libfdk_aac
frame= 12 fps=0.0 q=19.0 size=N/A time=00:00:00.00 bitrate=N/A speed= 0x
frame= 40 fps= 40 q=19.0 size=N/A time=00:00:01.16 bitrate=N/A speed=1.17x
frame= 67 fps= 45 q=19.0 size=N/A time=00:00:02.29 bitrate=N/A speed=1.53x
[hls @ 0x5612d5863880] Opening '/cache/transcodes/6d54372d70bcd3d37937c6eee91c23f3523.mp4' for writing
[mp4 @ 0x7fc3f94afd00] Packet duration: -16 / dts: 75429848 is out of range
frame= 95 fps= 47 q=18.0 size=N/A time=00:00:03.46 bitrate=N/A speed=1.73x
frame= 123 fps= 49 q=18.0 size=N/A time=00:00:04.62 bitrate=N/A speed=1.85x
[hls @ 0x5612d5863880] Opening '/cache/transcodes/6d54372d70bcd3d37937c6eee91c23f3524.mp4' for writing
[mp4 @ 0x7fc3f94afd00] Packet duration: -16 / dts: 75574248 is out of range
frame= 151 fps= 50 q=18.0 size=N/A time=00:00:05.79 bitrate=N/A speed=1.93x
frame= 177 fps= 51 q=17.0 size=N/A time=00:00:06.88 bitrate=N/A speed=1.97x
frame= 205 fps= 51 q=16.0 size=N/A time=00:00:08.04 bitrate=N/A speed=2.01x
[hls @ 0x5612d5863880] Opening '/cache/transcodes/6d54372d70bcd3d37937c6eee91c23f3525.mp4' for writing
frame= 232 fps= 52 q=17.0 size=N/A time=00:00:09.17 bitrate=N/A speed=2.04x
frame= 259 fps= 52 q=17.0 size=N/A time=00:00:10.30 bitrate=N/A speed=2.06x
frame= 287 fps= 52 q=18.0 size=N/A time=00:00:11.46 bitrate=N/A speed=2.08x
[hls @ 0x5612d5863880] Opening '/cache/transcodes/6d54372d70bcd3d37937c6eee91c23f3526.mp4' for writing
[mp4 @ 0x7fc3f94afd00] Packet duration: -16 / dts: 75862008 is out of range
frame= 315 fps= 52 q=17.0 size=N/A time=00:00:12.63 bitrate=N/A speed=2.11x
frame= 343 fps= 53 q=18.0 size=N/A time=00:00:13.80 bitrate=N/A speed=2.12x
................................................................................................................................................................
I will reply with the screenshots of the transcoding section of the server in a second post.
So what am I doing wrong? I really do not get it, is it because the qsv is not used for decoding? I saw in stream mapping: (hevc (native) -> h264 (h264_qsv)) but I do not understand what it means, I see qsv for encoding but not for decoding.
The same movie, this time on PLEX Pass, plays perfectly well with hw transcoding for both decode and encode.
Thansk in advance for any hints that could help me solve the issue!
And the settings of my transcoding section on the server side.
I have a TrueNAS SCALE server based on an Intel N100 mainboard and I have installed Jellyfin in Docker with gpu pass-through to the container, I have checked and everything is working, see screenshots attached. Ithen tried to play a movie rip on Android Phone: Motorola G62 and it's stuttering like hell, I have also attached the log file which is showing me the following info:
Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn
Stream #0:1(eng): Audio: dts (dca) (DTS-HD MA + DTS:X), 48000 Hz, 7.1, s32p (24 bit) (default)
............................................................................................................................................
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_qsv))
Stream #0:1 -> #0:1 (dts (dca) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[hevc @ 0x5612dbab8480] First slice in a frame missing.
Last message repeated 6 times
[hevc @ 0x5612d5900600] First slice in a frame missing.
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
............................................................................................................................................
Last message repeated 6 times
[hls @ 0x5612d5863880] Opening '/cache/transcodes/6d54372d70bcd3d37937c6eee91c23f3-1.mp4' for writing
Output #0, hls, to '/cache/transcodes/6d54372d70bcd3d37937c6eee91c23f3.m3u8':
Metadata:
encoder : Lavf61.1.100
Stream #0:0: Video: h264, qsv(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 47794 kb/s, 23.98 fps, 24k tbn
Metadata:
encoder : Lavc61.3.100 h264_qsv
Side data:
cpb: bitrate max/min/avg: 47794121/0/47794121 buffer size: 95588242 vbv_delay: N/A
Stream #0:1: Audio: aac, 48000 Hz, stereo, s16, 256 kb/s (default)
Metadata:
encoder : Lavc61.3.100 libfdk_aac
frame= 12 fps=0.0 q=19.0 size=N/A time=00:00:00.00 bitrate=N/A speed= 0x
frame= 40 fps= 40 q=19.0 size=N/A time=00:00:01.16 bitrate=N/A speed=1.17x
frame= 67 fps= 45 q=19.0 size=N/A time=00:00:02.29 bitrate=N/A speed=1.53x
[hls @ 0x5612d5863880] Opening '/cache/transcodes/6d54372d70bcd3d37937c6eee91c23f3523.mp4' for writing
[mp4 @ 0x7fc3f94afd00] Packet duration: -16 / dts: 75429848 is out of range
frame= 95 fps= 47 q=18.0 size=N/A time=00:00:03.46 bitrate=N/A speed=1.73x
frame= 123 fps= 49 q=18.0 size=N/A time=00:00:04.62 bitrate=N/A speed=1.85x
[hls @ 0x5612d5863880] Opening '/cache/transcodes/6d54372d70bcd3d37937c6eee91c23f3524.mp4' for writing
[mp4 @ 0x7fc3f94afd00] Packet duration: -16 / dts: 75574248 is out of range
frame= 151 fps= 50 q=18.0 size=N/A time=00:00:05.79 bitrate=N/A speed=1.93x
frame= 177 fps= 51 q=17.0 size=N/A time=00:00:06.88 bitrate=N/A speed=1.97x
frame= 205 fps= 51 q=16.0 size=N/A time=00:00:08.04 bitrate=N/A speed=2.01x
[hls @ 0x5612d5863880] Opening '/cache/transcodes/6d54372d70bcd3d37937c6eee91c23f3525.mp4' for writing
frame= 232 fps= 52 q=17.0 size=N/A time=00:00:09.17 bitrate=N/A speed=2.04x
frame= 259 fps= 52 q=17.0 size=N/A time=00:00:10.30 bitrate=N/A speed=2.06x
frame= 287 fps= 52 q=18.0 size=N/A time=00:00:11.46 bitrate=N/A speed=2.08x
[hls @ 0x5612d5863880] Opening '/cache/transcodes/6d54372d70bcd3d37937c6eee91c23f3526.mp4' for writing
[mp4 @ 0x7fc3f94afd00] Packet duration: -16 / dts: 75862008 is out of range
frame= 315 fps= 52 q=17.0 size=N/A time=00:00:12.63 bitrate=N/A speed=2.11x
frame= 343 fps= 53 q=18.0 size=N/A time=00:00:13.80 bitrate=N/A speed=2.12x
................................................................................................................................................................
I will reply with the screenshots of the transcoding section of the server in a second post.
So what am I doing wrong? I really do not get it, is it because the qsv is not used for decoding? I saw in stream mapping: (hevc (native) -> h264 (h264_qsv)) but I do not understand what it means, I see qsv for encoding but not for decoding.
The same movie, this time on PLEX Pass, plays perfectly well with hw transcoding for both decode and encode.
Thansk in advance for any hints that could help me solve the issue!
And the settings of my transcoding section on the server side.