jellyfin / jellyfin

The Free Software Media System
https://jellyfin.org
GNU General Public License v2.0
35.17k stars 3.19k forks source link

CPU still high (around 100%) when Nvidia NVENC enabled #3832

Closed bingzhangdai closed 4 years ago

bingzhangdai commented 4 years ago

Describe the bug

System (please complete the following information):

To Reproduce

  1. Run jellyfin docker. According to the nvidia-docker doc, specify the --gpu all parameter.
  2. Enable Nvidia NVENC in the settings.
  3. Play any media that needs transcoding.
  4. See CPU usage on top command
    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
    21205 root      20   0 5677084 357360 244984 R  82.7   4.4   1:00.71 ffmpeg
    10532 root      20   0 4748376 288452  74612 S   8.7   3.5   1:58.40 jellyfin
    15320 root      20   0 1080084  44836  10876 S   4.0   0.5   0:37.58 glances
    21206 root     -51   0       0      0      0 S   3.0   0.0   0:01.92 irq/48-nvidia

    Expected behavior Low CPU usage.

Logs

[18:37:21] [INF] [139] MediaBrowser.Api.Playback.MediaInfoService: User policy for bingzhang. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[18:37:21] [INF] [139] MediaBrowser.Api.Playback.MediaInfoService: Not eligible for DirectPlay due to unsupported subtitles
[18:37:21] [INF] [139] MediaBrowser.Api.Playback.MediaInfoService: Not eligible for DirectStream due to unsupported subtitles
[18:37:21] [INF] [139] MediaBrowser.Api.Playback.MediaInfoService: Profile: Unknown Profile, Path: /data/AnimationMovies/天空之城 (1986)/天空之城 (1986) 1080p AC3.mkv, isEligibleForDirectPlay: False, isEligibleForDirectStream: False
[18:37:21] [INF] [139] MediaBrowser.Api.Playback.MediaInfoService: Not eligible for DirectPlay due to unsupported subtitles
[18:37:21] [INF] [139] MediaBrowser.Api.Playback.MediaInfoService: Not eligible for DirectStream due to unsupported subtitles
[18:37:21] [INF] [139] MediaBrowser.Api.Playback.MediaInfoService: Profile: Unknown Profile, Path: /data/AnimationMovies/天空之城 (1986)/天空之城 (1986) 1080p AC3.mkv, isEligibleForDirectPlay: False, isEligibleForDirectStream: False
[18:37:21] [INF] [139] MediaBrowser.Api.Playback.MediaInfoService: Not eligible for DirectPlay due to unsupported subtitles
[18:37:21] [INF] [139] MediaBrowser.Api.Playback.MediaInfoService: Not eligible for DirectStream due to unsupported subtitles
[18:37:21] [INF] [139] MediaBrowser.Api.Playback.MediaInfoService: Profile: Unknown Profile, Path: /data/AnimationMovies/天空之城 (1986)/天空之城 (1986) 1080p AC3.mkv, isEligibleForDirectPlay: False, isEligibleForDirectStream: False
[18:37:22] [INF] [137] MediaBrowser.Api.Playback.Hls.DynamicHlsService: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[18:37:22] [INF] [137] MediaBrowser.Api.Playback.Hls.DynamicHlsService: /usr/lib/jellyfin-ffmpeg/ffmpeg -c:v hevc_cuvid -resize 1920x1038 -i file:"/data/AnimationMovies/天空之城 (1986)/天空之城 (1986) 1080p AC3.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -codec:v:0 h264_nvenc -pix_fmt yuv420p -preset default -b:v 22238398 -maxrate 22238398 -bufsize 44476796 -profile:v high  -g 72 -keyint_min 72 -sc_threshold 0 -filter_complex "[0:7]scale=1920x1038[sub];[0:0][sub]overlay" -start_at_zero -vsync -1 -codec:a:0 libmp3lame -ac 2 -ab 320000  -copyts -avoid_negative_ts disabled -f hls -max_delay 5000000 -hls_time 3 -individual_header_trailer 0 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/config/data/transcodes/a7d62d686b494ce694c250b62b3a2733%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/data/transcodes/a7d62d686b494ce694c250b62b3a2733.m3u8"
[18:37:25] [WRN] [137] Emby.Server.Implementations.HttpServer.HttpListenerHost: HTTP Response 200 to 192.168.233.228. Time (slow): 0:00:03.1288326. http://***.****.com/videos/8ebcb1db-79fc-61e3-e555-df28dd99743a/hls1/main/0.ts?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzg0LjAuNDE0Ny44OSBTYWZhcmkvNTM3LjM2IEVkZy84NC4wLjUyMi40MHwxNTk1NjcyNTEzODcx&MediaSourceId=8ebcb1db79fc61e3e555df28dd99743a&VideoCodec=h264&AudioCodec=mp3,aac&AudioStreamIndex=1&SubtitleStreamIndex=7&VideoBitrate=139680000&AudioBitrate=320000&PlaySessionId=089d2370b7fc40d0a4cd20d3b5ef6b09&SubtitleMethod=Encode&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=09b7203dd481cc98265a12b6d9606b14&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&h264-deinterlace=true&TranscodeReasons=SubtitleCodecNotSupported
[18:37:26] [INF] [135] MediaBrowser.Api.ApiEntryPoint: Stopping ffmpeg process with q command for /config/data/transcodes/a7d62d686b494ce694c250b62b3a2733.m3u8
[18:37:27] [INF] [135] MediaBrowser.Api.Playback.Hls.DynamicHlsService: FFMpeg exited with code 0
[18:37:27] [INF] [135] MediaBrowser.Api.Playback.Hls.DynamicHlsService: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[18:37:27] [INF] [135] MediaBrowser.Api.Playback.Hls.DynamicHlsService: /usr/lib/jellyfin-ffmpeg/ffmpeg -ss 01:04:27.000 -c:v hevc_cuvid -resize 1920x1038 -noaccurate_seek -i file:"/data/AnimationMovies/天空之城 (1986)/天空之城 (1986) 1080p AC3.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -codec:v:0 h264_nvenc -pix_fmt yuv420p -preset default -b:v 22238398 -maxrate 22238398 -bufsize 44476796 -profile:v high  -g 72 -keyint_min 72 -sc_threshold 0 -filter_complex "[0:7]scale=1920x1038[sub];[0:0][sub]overlay" -start_at_zero -vsync -1 -codec:a:0 libmp3lame -ac 2 -ab 320000  -copyts -avoid_negative_ts disabled -f hls -max_delay 5000000 -hls_time 3 -individual_header_trailer 0 -hls_segment_type mpegts -start_number 1289 -hls_segment_filename "/config/data/transcodes/a7d62d686b494ce694c250b62b3a2733%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/data/transcodes/a7d62d686b494ce694c250b62b3a2733.m3u8"
[18:37:31] [WRN] [105] Emby.Server.Implementations.HttpServer.HttpListenerHost: HTTP Response 200 to 192.168.233.228. Time (slow): 0:00:04.7113694. http://***.****.com/videos/8ebcb1db-79fc-61e3-e555-df28dd99743a/hls1/main/1289.ts?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzg0LjAuNDE0Ny44OSBTYWZhcmkvNTM3LjM2IEVkZy84NC4wLjUyMi40MHwxNTk1NjcyNTEzODcx&MediaSourceId=8ebcb1db79fc61e3e555df28dd99743a&VideoCodec=h264&AudioCodec=mp3,aac&AudioStreamIndex=1&SubtitleStreamIndex=7&VideoBitrate=139680000&AudioBitrate=320000&PlaySessionId=089d2370b7fc40d0a4cd20d3b5ef6b09&SubtitleMethod=Encode&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=09b7203dd481cc98265a12b6d9606b14&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&h264-deinterlace=true&TranscodeReasons=SubtitleCodecNotSupported
[18:38:11] [INF] [107] MediaBrowser.Api.ApiEntryPoint: Stopping ffmpeg process with q command for /config/data/transcodes/a7d62d686b494ce694c250b62b3a2733.m3u8
[18:38:12] [INF] [107] MediaBrowser.Api.Playback.Hls.DynamicHlsService: FFMpeg exited with code 0
[18:38:12] [INF] [107] MediaBrowser.Api.ApiEntryPoint: Deleting partial stream file(s) /config/data/transcodes/a7d62d686b494ce694c250b62b3a2733.m3u8
[18:38:13] [INF] [104] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app Jellyfin Web 10.6.2 playing 天空之城. Stopped at 3905188 ms
[18:38:13] [WRN] [104] Emby.Server.Implementations.HttpServer.HttpListenerHost: HTTP Response 204 to 192.168.233.228. Time (slow): 0:00:02.6614223. http://***.****.com/Sessions/Playing/Stopped

Additional context

CPU is Intel(R) Core(TM) i3-9300T CPU @ 3.20GHz and GPU is GeForce GT 1065. nvidia-smi shows that GPU is not busy at all,

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.152.00   Driver Version: 418.152.00   CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1650    Off  | 00000000:00:10.0 Off |                  N/A |
| 27%   45C    P0    18W /  75W |    338MiB /  3881MiB |      8%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0     15282      C   /usr/lib/jellyfin-ffmpeg/ffmpeg              327MiB |
+-----------------------------------------------------------------------------+

Both encoding and decoding are enabled. CPU usage significantly drops compared to the situation where hardware acceleration disabled, but still not that optimal.

bugfixin commented 4 years ago

I don't see any issues with the ffmpeg commands as logged.

It's not unusual for ffmpeg to still take a fair amount of CPU while using gpu-accelerated transcoding, as there are still tasks that are done by the CPU and ffmpeg doesn't throttle itself (e.g. in your logs, ffmpeg is also transcoding the audio track of the video to mp3, using the CPU). It does this as quickly as possible, which could certainly give the impression of high cpu usage, but with GPU acceleration, you'll see the transcoding proceeding much more quickly than if it was all on the CPU.

I guess my question is this: do you see significantly lower CPU loads while transcoding via other builds of ffmpeg, or with other but similar command line options?

nyanmisaka commented 4 years ago

If your CPU has 6 cores, ffmpeg should takes 600% when it is fully loaded. But 82.7% means ffmpeg takes 82.7% on ONE core instead of all cores like on Windows. It involves driver, memory copy and ffmpeg stuffs.

nyanmisaka commented 4 years ago

So It's not a BUG, I will close this for now.

ThaChillera commented 4 years ago

@nyanmisaka I'm new to jellyfin, and have a similar experience: even when using directstream, ffmpeg is still at 100% cpu usage. Could this be due to it transcoding the audio to mp3? (even though the source has AAC, which is supported by the android app AFAIK)

nyanmisaka commented 4 years ago

@nyanmisaka I'm new to jellyfin, and have a similar experience: even when using directstream, ffmpeg is still at 100% cpu usage. Could this be due to it transcoding the audio to mp3? (even though the source has AAC, which is supported by the android app AFAIK)

Directstream only changes the type of the container without re-encoding, similar to copying. It usually takes only a few seconds to complete. What you have encountered is a known issue.

Zygisr commented 3 years ago

I've experienced very same problem (50% cpu usage and 100mb of gpu vram) using Jellyfin in a docker using Unraid. After fiddling around with settings I've noticed that in Jellyfins admin dashboard under playback>transcoding "Enable 10-Bit hardware decoding for HEVC" was unchecked. After ticking that check box jellyfins docker log promped that new version of ffmpeg have been discovered (4.3.1 if I recall corectly) and cpu usage droped to 10% and gpu vram grew to 900mb. cpu XEON 2660 v2 gpu nvidia 1050ti Hope that helps

NokiDev commented 3 years ago

Hello, just to add a bit about this issue, when disabling NVENC the transcoding, will use all 4 cores of my virtual processor and transcoding will run fine, BUT when enabling NVENC, a single CPU core will be used and lead to less performant transcoding than without the card. It is probably an ffmpeg issue (or by design??), or misconfiguration or a bug, I honnestly don't know, but it makes the use of NVENC impossible.

If someone passing by has solved this, it could be great, to add in the docs. Meanwhile I'll try to investigate.

For the record if it helps, this is my setup : It's virtualized ubuntu 20.04 with 4virtual cores, a GTX 1660 GPU Jellyfin version is 10.6.4 NVIDIA driver version is 450.80 And its running in an NVIDIA-docker container (image: linuxserver/jellyfin).

Thanks in advance And by the way Thanks to all contributors / testers of this project, since the fork !

Edit : My bad for not reading all the thread.... @Zygisr, I'll try what you proposed, and come by to give more insights about it :)

Edit2: FFMPEG was already to the latest version 4.3.1. Playing a bit with options, and unchecking hardware encoding seems to have fixed the issue here, but it's weird tough. Checking / unchecking 10bits HEVC transcoding, did not changed anything to the transcoding performance.

nyanmisaka commented 3 years ago

@NokiDev Hey! Can I get the transcoding logs?

Here are my thoughts before seeing the log.

First, The CPU usage will be higher if subtitle burn-in is being used. Second, H264 High 10 videos is not supported by GPU. Last, 10-bit -> 8-bit pixel format conversion is being done in CPU, which leads to some overhead during the data transfer between CPU<->GPU. Fortunately, this can be solved with #5107

NokiDev commented 3 years ago

Hi @nyanmisaka, thanks for your answer.

Yes you can ! (See at the end).

For subtitle burning, maybe but it won't prevent the video from playing, I mean CPU usage won't be 100% just to burn subtitles I'm not really sure about the two other points. When you say H264 High 10 (bits ?) video is not supported ? you mean decoding or encoding ? Hardware Decoding seems to work just fine. It may be a 10bits -> to 8-bit pixel conversion then, but why when disabling, GPU transcoding / Hardware encoding, I do not observe the issue, anymore. I took a look to your PRs, I'll try to find some time to test them soon.

In my tests I'm using a HEVC 4K video, but I also observe the same issue with 1080p HEVC videos. The following are trancode logs of the transcoding, of the first seconds of the media :

http://myserver/videos/680b463a-c275-3260-ba9f-1c317150ff83/hls1/main/0.ts?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NDsgcnY6ODMuMCkgR2Vja28vMjAxMDAxMDEgRmlyZWZveC84My4wfDE2MDYzMjg5NTQ0MjI1&MediaSourceId=680b463ac2753260ba9f1c317150ff83&VideoCodec=h264&AudioCodec=mp3,aac&AudioStreamIndex=1&VideoBitrate=139552000&AudioBitrate=448000&PlaySessionId=987450bfcece4ddf91271ff088eebb88&api_key=9c266062a851404ab775eeabf0f1f6d0&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=812143737e5e7fb9cdead99b65624407&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&h264-profile=high,main,baseline,constrainedbaseline&h264-level=51&h264-deinterlace=true&TranscodeReasons=VideoCodecNotSupported

{"Protocol":"File","Id":"680b463ac2753260ba9f1c317150ff83","Path":"xxxxxxxxx","Type":"Default","Container":"mkv,webm","Size":7455373824,"Name":"xxxxxxxxxxx","IsRemote":false,"ETag":"812143737e5e7fb9cdead99b65624407","RunTimeTicks":30003599360,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":true,"VideoType":"VideoFile","MediaStreams":[{"Codec":"hevc","TimeBase":"1/1000","CodecTimeBase":"1/25","VideoRange":"SDR","DisplayTitle":"4K HEVC","IsInterlaced":false,"BitRate":19878612,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":1600,"Width":3840,"AverageFrameRate":25,"RealFrameRate":25,"Profile":"Main","Type":"Video","AspectRatio":"2.40:1","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":150},{"Codec":"ac3","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"Eng Dolby Digital 5.1 Default","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":448000,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"aac","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"Eng AAC stereo","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":192000,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Profile":"LC","Type":"Audio","Index":2,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"subrip","Language":"fre","TimeBase":"1/1000","CodecTimeBase":"0/1","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Fre - Default","IsInterlaced":false,"IsDefault":true,"IsForced":false,"Type":"Subtitle","Index":3,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Level":0},{"Codec":"subrip","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"0/1","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Eng","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":4,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Level":0},{"Codec":"srt","Language":"eng","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Eng","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":5,"IsExternal":true,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"xxxxxxxxxxx.srt"},{"Codec":"srt","Language":"fre","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Fre","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":6,"IsExternal":true,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"xxxxxxxxx.srt"}],"MediaAttachments":[],"Formats":[],"Bitrate":20518612,"RequiredHttpHeaders":{}}

/usr/lib/jellyfin-ffmpeg/ffmpeg -c:v hevc_cuvid -resize 3840x1600 -i file:"xxxxxxxxxxxxx" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_nvenc -pix_fmt yuv420p -preset default -b:v 39757224 -maxrate 39757224 -bufsize 79514448 -profile:v high  -g 75 -keyint_min 75 -sc_threshold 0 -start_at_zero -vsync -1 -codec:a:0 libmp3lame -ac 2 -ab 384000  -copyts -avoid_negative_ts disabled -f hls -max_delay 5000000 -hls_time 3 -individual_header_trailer 0 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a.m3u8"

ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --disable-doc --disable-ffplay --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-gpl --enable-version3 --enable-static --enable-libfontconfig --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzvbi --arch=amd64 --enable-libzimg --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-vdpau --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-ffnvcodec --enable-libdav1d
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, matroska,webm, from 'file:xxxxxxxxx':
  Metadata:
    ENCODER         : Lavf58.29.100
  Duration: 00:50:00.36, start: 0.000000, bitrate: 19878 kb/s
    Chapter #0:0: start 0.000000, end 362.680000
    Metadata:
      title           : Chapitre 1
    Chapter #0:1: start 362.680000, end 724.760000
    Metadata:
      title           : Chapitre 2
    Chapter #0:2: start 724.760000, end 1090.040000
    Metadata:
      title           : Chapitre 3
    Chapter #0:3: start 1090.040000, end 1454.160000
    Metadata:
      title           : Chapitre 4
    Chapter #0:4: start 1454.160000, end 1802.160000
    Metadata:
      title           : Chapitre 5
    Chapter #0:5: start 1802.160000, end 2122.040000
    Metadata:
      title           : Chapitre 6
    Chapter #0:6: start 2122.040000, end 2482.840000
    Metadata:
      title           : Chapitre 7
    Chapter #0:7: start 2482.840000, end 3000.042000
    Metadata:
      title           : Chapitre 8
    Stream #0:0: Video: hevc (Main), yuv420p(tv), 3840x1600 [SAR 1:1 DAR 12:5], 25 fps, 25 tbr, 1k tbn, 25 tbc (default)
    Metadata:
      BPS-eng         : 40081358
      DURATION-eng    : 00:50:00.000000000
      NUMBER_OF_FRAMES-eng: 75000
      NUMBER_OF_BYTES-eng: 15030509396
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-12-09 18:55:19
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      ENCODER         : Lavc58.54.100 hevc_nvenc
      DURATION        : 00:50:00.360000000
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      BPS-eng         : 448000
      DURATION-eng    : 00:50:00.032000000
      NUMBER_OF_FRAMES-eng: 93751
      NUMBER_OF_BYTES-eng: 168001792
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-12-09 18:55:19
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 00:50:00.032000000
    Stream #0:2(eng): Audio: aac (LC), 48000 Hz, stereo, fltp
    Metadata:
      BPS-eng         : 317375
      DURATION-eng    : 00:50:00.042000000
      NUMBER_OF_FRAMES-eng: 140627
      NUMBER_OF_BYTES-eng: 119017318
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-12-09 18:55:19
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 00:50:00.042000000
    Stream #0:3(fre): Subtitle: subrip (default)
    Metadata:
      BPS-eng         : 24
      DURATION-eng    : 00:41:35.100000000
      NUMBER_OF_FRAMES-eng: 222
      NUMBER_OF_BYTES-eng: 7615
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-12-09 18:55:19
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 00:41:46.200000000
    Stream #0:4(eng): Subtitle: subrip
    Metadata:
      BPS-eng         : 21
      DURATION-eng    : 00:40:20.040000000
      NUMBER_OF_FRAMES-eng: 219
      NUMBER_OF_BYTES-eng: 6462
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-12-09 18:55:19
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 00:41:46.280000000
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (hevc_cuvid) -> h264 (h264_nvenc))
  Stream #0:1 -> #0:1 (ac3 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, hls, to '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a.m3u8':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0: Video: h264 (h264_nvenc) (High), yuv420p, 3840x1600 [SAR 1:1 DAR 12:5], q=-1--1, 39757 kb/s, 25 fps, 90k tbn, 25 tbc (default)
    Metadata:
      encoder         : Lavc58.91.100 h264_nvenc
    Side data:
      cpb: bitrate max/min/avg: 39757224/0/39757224 buffer size: 79514448 vbv_delay: N/A
    Stream #0:1: Audio: mp3 (libmp3lame), 48000 Hz, stereo, fltp, 384 kb/s (default)
    Metadata:
      encoder         : Lavc58.91.100 libmp3lame
frame=   71 fps=0.0 q=10.0 size=N/A time=00:00:02.90 bitrate=N/A speed= 5.8x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a0.ts' for writing
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a1.ts' for writing
frame=  165 fps=159 q=9.0 size=N/A time=00:00:06.64 bitrate=N/A speed=6.39x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a2.ts' for writing
frame=  248 fps=161 q=9.0 size=N/A time=00:00:09.96 bitrate=N/A speed=6.45x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a3.ts' for writing
frame=  355 fps=174 q=8.0 size=N/A time=00:00:14.23 bitrate=N/A speed=6.97x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a4.ts' for writing
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a5.ts' for writing
frame=  458 fps=180 q=8.0 size=N/A time=00:00:18.38 bitrate=N/A speed=7.22x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a6.ts' for writing
frame=  564 fps=185 q=8.0 size=N/A time=00:00:22.60 bitrate=N/A speed=7.42x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a7.ts' for writing
frame=  668 fps=188 q=8.0 size=N/A time=00:00:26.76 bitrate=N/A speed=7.54x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a8.ts' for writing
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a9.ts' for writing
frame=  766 fps=189 q=10.0 size=N/A time=00:00:30.69 bitrate=N/A speed=7.58x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a10.ts' for writing
frame=  864 fps=190 q=13.0 size=N/A time=00:00:34.60 bitrate=N/A speed= 7.6x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a11.ts' for writing
frame=  961 fps=190 q=15.0 size=N/A time=00:00:38.47 bitrate=N/A speed=7.61x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a12.ts' for writing
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a13.ts' for writing
frame= 1058 fps=190 q=14.0 size=N/A time=00:00:42.38 bitrate=N/A speed=7.63x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a14.ts' for writing
frame= 1159 fps=191 q=14.0 size=N/A time=00:00:46.41 bitrate=N/A speed=7.66x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a15.ts' for writing
frame= 1256 fps=191 q=17.0 size=N/A time=00:00:50.28 bitrate=N/A speed=7.66x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a16.ts' for writing
frame= 1339 fps=190 q=17.0 size=N/A time=00:00:53.61 bitrate=N/A speed=7.59x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a17.ts' for writing
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a18.ts' for writing
frame= 1433 fps=190 q=15.0 size=N/A time=00:00:57.36 bitrate=N/A speed=7.59x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a19.ts' for writing
frame= 1522 fps=189 q=14.0 size=N/A time=00:01:00.93 bitrate=N/A speed=7.56x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a20.ts' for writing
frame= 1614 fps=188 q=14.0 size=N/A time=00:01:04.63 bitrate=N/A speed=7.54x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a21.ts' for writing
frame= 1705 fps=188 q=15.0 size=N/A time=00:01:08.20 bitrate=N/A speed=7.52x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a22.ts' for writing
frame= 1794 fps=187 q=16.0 size=N/A time=00:01:11.83 bitrate=N/A speed= 7.5x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a23.ts' for writing
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a24.ts' for writing
frame= 1888 fps=187 q=16.0 size=N/A time=00:01:15.57 bitrate=N/A speed= 7.5x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a25.ts' for writing
frame= 1985 fps=188 q=15.0 size=N/A time=00:01:19.44 bitrate=N/A speed=7.51x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a26.ts' for writing
frame= 2084 fps=188 q=18.0 size=N/A time=00:01:23.37 bitrate=N/A speed=7.53x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a27.ts' for writing
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a28.ts' for writing
frame= 2182 fps=188 q=18.0 size=N/A time=00:01:27.33 bitrate=N/A speed=7.54x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a29.ts' for writing
frame= 2280 fps=189 q=18.0 size=N/A time=00:01:31.22 bitrate=N/A speed=7.55x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a30.ts' for writing
frame= 2374 fps=189 q=18.0 size=N/A time=00:01:35.01 bitrate=N/A speed=7.55x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a31.ts' for writing
frame= 2474 fps=189 q=18.0 size=N/A time=00:01:39.02 bitrate=N/A speed=7.57x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a32.ts' for writing
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a33.ts' for writing
frame= 2571 fps=189 q=18.0 size=N/A time=00:01:42.88 bitrate=N/A speed=7.57x    
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a34.ts' for writing
[hls @ 0x5591506490c0] Opening '/transcode/transcodes/db51d914f88fd204fd81d4dcc3e0a44a35.ts' for writing
frame= 2629 fps=189 q=17.0 Lsize=N/A time=00:01:45.24 bitrate=N/A speed=7.58x    
video:482413kB audio:4112kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown