KrakaClue 1 Posted August 6, 2019 Posted August 6, 2019 Hi everyone, This is my first post even if I've been a Emby premium user for a while. I have never had serious problem with my small server on windows and when I problem came I've always found a solution here on the community. This time a small error happened and I haven't found a solution yet. The problem is the following: When I downloaded a Movie for offline use (like for example with a netbook with the emby application from microsoft store or via the ios app) the video transcoding occupies only 10% of my cpu resulting in a long time for the video to be downloaded. Conversely, if I directly play the movie on the app I don't have this problem (it occupies 95% of the cpu). I don't have hardware transcoding ON even if I'm a premium member because it doesn't work well on my machine ( I5-8400 - Windows10). I attached the log from the transcoding of one video. Affected codecs: >>>>>> libx264 Software Encoder Color Formats: YUV420P, YUVJ420P, YUV422P, YUVJ422P, YUV444P, YUVJ444P, NV12, NV16, NV21, YUV420P10, YUV422P10, YUV444P10, NV20 Profiles: Baseline Profile (Level 6.2), Main Profile (Level 6.2), High Profile (Level 6.2), High 10 Profile (Level 6.2), High 4:2:2 Profile (Level 6.2), High 4:4:4 Profile (Level 6.2) >>>>>> FindVideoDecoder - MediaType: hevc, Mode: NoHardwareCodecs Info FindVideoDecoder - Checking: 'Automatic software decoder' (Priority: 0) Info FindVideoDecoder - Check successful - selecting 'Automatic software decoder' >>>>>> FindVideoEncoder - Media: h264, UseHardwareCodecs: True, Mode: NoHardwareCodecs Info FindVideoEncoder - Checking: 'libx264 Software Encoder' (Priority: 0) Info Encoder supports input stream Info FindVideoEncoder - Check successful - selecting 'libx264 Software Encoder' C:\------\Nature (2018).mkv" -map 0:0 -map 0:2 -map 0:1 -c:v:0 libx264 -force_key_frames "expr:gte(t,n_forced*5)" -copyts -filter_complex "[0:5]scale=3840:2160:force_original_aspect_ratio=decrease[sub];[0:0][sub]overlay=(W-w)/2:(H-h),scale=trunc(min(max(iw\,ih*dar)\,1280)/2)*2:trunc(ow/dar/2)*2" -avoid_negative_ts disabled -start_at_zero -pix_fmt yuv420p -maxrate 3360000 -bufsize 6720000 -preset veryfast -profile:v:0 high -level:v:0 4.1 -crf 23 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 copy -metadata:s:a:0 language=eng -disposition:a:0 default -y "C:\Users\KRAKAvault\AppData\Roaming\Emby-Server\programdata\sync\7\7\c4b336c9-c04f-4bb1-90d8-b7fe60ced079.mkv" ffmpeg version 4.0.3-emby_2019_04_09-g5abbb1430d+449 Copyright (c) 2000-2018 the FFmpeg developers and softworkz for Emby LLC built with gcc 8.3.0 (Rev2, Built by MSYS2 project) Local Time: 05:09:57 T=0.000s T=0.016s [matroska,webm @ 00000117059bf400] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options [matroska,webm @ 00000117059bf400] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, matroska,webm, from 'file:D:\-----\Nature (2018).mkv': Metadata: encoder : libebml v1.3.6 + libmatroska v1.4.9 creation_time : 2019-04-02T16:11:37.000000Z Duration: 01:53:53.50, start: 0.000000, bitrate: 24350 kb/s Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], Level 153, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default) Metadata: BPS-eng : 23018570 DURATION-eng : 01:53:53.494000000 NUMBER_OF_FRAMES-eng: 163840 NUMBER_OF_BYTES-eng: 19662157734 Stream #0:1(ita): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default) Metadata: title : Italiano 5.1 AC3 BPS-eng : 640000 DURATION-eng : 01:53:53.504000000 NUMBER_OF_FRAMES-eng: 213547 NUMBER_OF_BYTES-eng: 546680320 Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s Metadata: title : Inglese 5.1 AC3 BPS-eng : 640000 DURATION-eng : 01:53:53.504000000 NUMBER_OF_FRAMES-eng: 213547 NUMBER_OF_BYTES-eng: 546680320 Stream #0:3(ita): Subtitle: dvd_subtitle, 1920x1080 (default) (forced) Metadata: title : Italiano forced BPS-eng : 307 DURATION-eng : 01:43:30.875000000 NUMBER_OF_FRAMES-eng: 49 NUMBER_OF_BYTES-eng: 238627 Stream #0:4(ita): Subtitle: dvd_subtitle, 1920x1080 Metadata: title : Italiano BPS-eng : 6016 DURATION-eng : 01:52:56.710000000 NUMBER_OF_FRAMES-eng: 1049 NUMBER_OF_BYTES-eng: 5096618 Stream #0:5(eng): Subtitle: dvd_subtitle, 1920x1080 Metadata: title : Inglese BPS-eng : 9506 DURATION-eng : 01:48:41.551000000 NUMBER_OF_FRAMES-eng: 1650 NUMBER_OF_BYTES-eng: 7749705 Stream #0:6(ita): Subtitle: hdmv_pgs_subtitle Metadata: title : Italiano SUP BPS-eng : 22969 DURATION-eng : 01:52:56.728000000 NUMBER_OF_FRAMES-eng: 2098 NUMBER_OF_BYTES-eng: 19456928 Stream #0:7: Subtitle: hdmv_pgs_subtitle Metadata: BPS-eng : 35725 DURATION-eng : 01:48:41.557000000 NUMBER_OF_FRAMES-eng: 3302 NUMBER_OF_BYTES-eng: 29123066 T=0.047s Last message repeated 3 times Stream mapping: Stream #0:0 (hevc) -> overlay:main (graph 0) Stream #0:5 (dvdsub) -> scale (graph 0) scale (graph 0) -> Stream #0:0 (libx264) Stream #0:2 -> #0:1 (copy) Stream #0:1 -> #0:2 (ac3 (native) -> vorbis (libvorbis)) T=0.047s Press [q] to stop, [?] for help elapsed=00:00:00.50 frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s throttle=off speed=N/A [matroska,webm @ 00000117059bf400] sub2video: using 3840x2160 canvas [libx264 @ 0000011705a30c80] using SAR=1/1 [libx264 @ 0000011705a30c80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0000011705a30c80] profile Main, level 4.1, 4:2:0, 8-bit [libx264 @ 0000011705a30c80] 264 - core 157 r2935 545de2f - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=4 chroma_me=0 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=9 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=3360 vbv_bufsize=6720 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to 'C:\Users\---------\AppData\Roaming\Emby-Server\programdata\sync\7\7\c4b336c9-c04f-4bb1-90d8-b7fe60ced079.mkv': Metadata: encoder : Lavf58.12.100 Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 23.98 fps, 1k tbn, 23.98 tbc (default) Metadata: encoder : Lavc58.18.100 libx264 Side data: cpb: bitrate max/min/avg: 3360000/0/0 buffer size: 6720000 vbv_delay: -1 Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 640 kb/s (default) Stream #0:2: Audio: vorbis (libvorbis) (oV[0][0] / 0x566F), 48000 Hz, 5.1(side), fltp (default) Metadata: encoder : Lavc58.18.100 libvorbis elapsed=00:00:01.01 frame= 11 fps= 11 q=0.0 size= 60kB time=00:00:00.70 bitrate= 698.4kbits/s throttle=off speed=0.695x elapsed=00:00:01.55 frame= 19 fps= 12 q=0.0 size= 123kB time=00:00:01.47 bitrate= 683.6kbits/s throttle=off speed=0.944x elapsed=00:00:02.05 frame= 33 fps= 16 q=28.0 size= 8kB time=00:00:01.93 bitrate= 34.8kbits/s throttle=off speed=0.939x elapsed=00:00:02.56 frame= 44 fps= 17 q=28.0 size= 8kB time=00:00:02.24 bitrate= 30.1kbits/s throttle=off speed=0.874x elapsed=00:00:03.09 frame= 60 fps= 19 q=28.0 size= 8kB time=00:00:02.75 bitrate= 24.5kbits/s throttle=off speed=0.89x elapsed=00:00:03.61 frame= 69 fps= 19 q=28.0 size= 8kB time=00:00:03.26 bitrate= 20.6kbits/s throttle=off speed=0.904x elapsed=00:00:04.12 frame= 81 fps= 20 q=28.0 size= 8kB time=00:00:04.03 bitrate= 16.7kbits/s throttle=off speed=0.977x elapsed=00:00:04.64 frame= 96 fps= 21 q=28.0 size= 8kB time=00:00:04.28 bitrate= 15.7kbits/s throttle=off speed=0.924x elapsed=00:00:05.15 frame= 108 fps= 21 q=28.0 size= 8kB time=00:00:04.96 bitrate= 13.6kbits/s throttle=off speed=0.963x elapsed=00:00:05.67 frame= 120 fps= 21 q=28.0 size= 8kB time=00:00:05.47 bitrate= 12.3kbits/s throttle=off speed=0.964x elapsed=00:00:06.19 frame= 135 fps= 22 q=28.0 size= 8kB time=00:00:05.98 bitrate= 11.3kbits/s throttle=off speed=0.967x elapsed=00:00:06.70 frame= 149 fps= 22 q=28.0 size= 455kB time=00:00:06.49 bitrate= 574.3kbits/s throttle=off speed=0.968x elapsed=00:00:07.21 frame= 156 fps= 22 q=28.0 size= 455kB time=00:00:07.00 bitrate= 532.3kbits/s throttle=off speed=0.971x elapsed=00:00:07.74 frame= 170 fps= 22 q=28.0 size= 455kB time=00:00:07.32 bitrate= 509.1kbits/s throttle=off speed=0.946x elapsed=00:00:08.25 frame= 181 fps= 22 q=28.0 size= 455kB time=00:00:08.09 bitrate= 460.8kbits/s throttle=off speed=0.981x
rechigo 364 Posted August 6, 2019 Posted August 6, 2019 Hello, it looks like you haven't set the amount of threads to use for downloading and conversion. To set this, go to Download & Sync in the server dashboard, click the settings tab on there, and select the amount of threads you want to use. The recommended amount of threads to use is the thread count of your CPU.
KrakaClue 1 Posted August 6, 2019 Author Posted August 6, 2019 Hello, it looks like you haven't set the amount of threads to use for downloading and conversion. To set this, go to Download & Sync in the server dashboard, click the settings tab on there, and select the amount of threads you want to use. The recommended amount of threads to use is the thread count of your CPU. Oh, it was so easy !!! Thank you so much! Now it works perfectly
Solution ebr 16187 Posted August 6, 2019 Solution Posted August 6, 2019 Hi. There is also a simple checkbox to enable full-speed conversion.
Q-Droid 989 Posted August 6, 2019 Posted August 6, 2019 Wait, what? You're not using HW transcoding with an i5-8400? Why not?
KrakaClue 1 Posted August 6, 2019 Author Posted August 6, 2019 Hi. There is also a simple checkbox to enable full-speed conversion. Yes, I found it and solved all my problems.
KrakaClue 1 Posted August 6, 2019 Author Posted August 6, 2019 Wait, what? You're not using HW transcoding with an i5-8400? Why not? Frequently there are random crashes while with CPU transcoding I've never had any problem. Maybe there is something that needs to be tuned in order to achieve an optimal transcoding, but default settings doesn't work for me.
Q-Droid 989 Posted August 6, 2019 Posted August 6, 2019 Your CPU is highly capable when it comes to HW acceleration. It might be worth investigating why it crashes unless you're satisfied with SW transcoding and don't need the performance.
KarlDag 25 Posted August 7, 2019 Posted August 7, 2019 Your CPU is highly capable when it comes to HW acceleration. It might be worth investigating why it crashes unless you're satisfied with SW transcoding and don't need the performance. Exactly. I have a i5-7500 and it's a beast with HW transcoding (though still waiting for the 4K HEVC HDR transcoding fix).
seanbuff 1318 Posted September 12, 2019 Posted September 12, 2019 Hello, it looks like you haven't set the amount of threads to use for downloading and conversion. To set this, go to Download & Sync in the server dashboard, click the settings tab on there, and select the amount of threads you want to use. The recommended amount of threads to use is the thread count of your CPU. Why doesn't the Thread count in the Download settings match the Thread count value in the 'Transcoding' section? 16 vs 8
Luke 42083 Posted September 12, 2019 Posted September 12, 2019 Why doesn't the Thread count in the Download settings match the Thread count value in the 'Transcoding' section? 16 vs 8 We'll make the options consistent. Thanks.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now