Having issues with some MKV files

I am having issues with some MKV files. In the web browser they just sit and spin, never play. Here is the log for one.

http://myip:8096/emby/videos/66341f30-9991-126c-9914-317464f32e62/hls1/main/0.ts?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzc0LjAuMzcyOS4xNjkgU2FmYXJpLzUzNy4zNnwxNTYwOTA3Mjg3MzY2&MediaSourceId=66341f309991126c9914317464f32e62&VideoCodec=h264&AudioCodec=mp3,aac&AudioStreamIndex=1&VideoBitrate=139680000&AudioBitrate=320000&PlaySessionId=6324e0e9e21f47c58ed80738adc80aa7&api_key=2d98f94f466f425abda68b0535602a9e&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=4030b2418970f07786e6e47833c04f3d&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51

{"Protocol":"File","Id":"66341f309991126c9914317464f32e62","Path":"F:\\Video\\Television\\Parasyte the Maxim\\Parasyte -the maxim- - S01E05 - The Stranger.mkv","Type":"Default","Container":"mkv,webm","Size":243680848,"Name":"Parasyte -the maxim- - S01E05 - The Stranger","IsRemote":false,"ETag":"4030b2418970f07786e6e47833c04f3d","RunTimeTicks":13710499840,"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":"1001/24000","Title":"[bonkai77]","VideoRange":"SDR","DisplayTitle":"1080P HEVC","IsInterlaced":false,"BitRate":1421864,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":23.9760246,"RealFrameRate":23.9760246,"Profile":"Main 10","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p10le","Level":120},{"Codec":"aac","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"Eng AAC 5.1 Default","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":320000,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"aac","Language":"jpn","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"Jpn 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":"ass","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"Signs and Songs","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Signs and Songs - Eng - Default - Forced","IsInterlaced":false,"IsDefault":true,"IsForced":true,"Type":"Subtitle","Index":3,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Level":0},{"Codec":"ass","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"Full subtitles [MK-Pn8]","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Full subtitles [MK-Pn8] - Eng","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":4,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Level":0}],"Formats":[],"Bitrate":1933864,"RequiredHttpHeaders":{}}

E:\Programs\jellyfin\ffmpeg.exe -c:v hevc_cuvid  -resize 1920x1080 -i file:"F:\Video\Television\Parasyte the Maxim\Parasyte -the maxim- - S01E05 - The Stranger.mkv" -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 139680000 -maxrate 139680000 -bufsize 279360000 -profile:v high -force_key_frames "expr:gte(t,n_forced*3)" -copyts -vsync -1 -codec:a:0 libmp3lame -ac 2 -ab 320000 -af "volume=2" -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 3  -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "E:\Programs\jellyfin\transcoding-temp\transcoding-temp\74b48ba7ce5f4229c4b527dd920d4e1e.m3u8" -y "E:\Programs\jellyfin\transcoding-temp\transcoding-temp\74b48ba7ce5f4229c4b527dd920d4e1e%d.ts"


ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7.3.1 (GCC) 20180722
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
Input #0, matroska,webm, from 'file:F:\Video\Television\Parasyte the Maxim\Parasyte -the maxim- - S01E05 - The Stranger.mkv':
  Metadata:
    title           : [bonkai77].Parasyte.The.Maxim.Episode.05.[BD.1080p.Dual.Audio.x265.HEVC.10bit]
    encoder         : libebml v1.3.5 + libmatroska v1.4.8
    creation_time   : 2018-01-11T19:47:40.000000Z
    Writing frontend: StaxRip v1.6.1.2
  Duration: 00:22:51.05, start: 0.000000, bitrate: 1421 kb/s
    Chapter #0:0: start 0.000000, end 99.015000
    Metadata:
      title           : Intro
    Chapter #0:1: start 99.015000, end 188.980000
    Metadata:
      title           : OP
    Chapter #0:2: start 188.980000, end 673.005000
    Metadata:
      title           : Part A
    Chapter #0:3: start 673.005000, end 1284.992000
    Metadata:
      title           : Part B
    Chapter #0:4: start 1284.992000, end 1355.020000
    Metadata:
      title           : ED
    Chapter #0:5: start 1355.020000, end 1371.050000
    Metadata:
      title           : Preview
    Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      title           : [bonkai77]
      BPS             : 978380
      BPS-eng         : 978380
      DURATION        : 00:22:51.037000000
      DURATION-eng    : 00:22:51.037000000
      NUMBER_OF_FRAMES: 32872
      NUMBER_OF_FRAMES-eng: 32872
      NUMBER_OF_BYTES : 167674514
      NUMBER_OF_BYTES-eng: 167674514
      _STATISTICS_WRITING_APP: mkvmerge v19.0.0 ('Brave Captain') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v19.0.0 ('Brave Captain') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-11 19:47:40
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-11 19:47:40
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp (default)
    Metadata:
      BPS             : 316168
      BPS-eng         : 316168
      DURATION        : 00:22:51.029000000
      DURATION-eng    : 00:22:51.029000000
      NUMBER_OF_FRAMES: 64267
      NUMBER_OF_FRAMES-eng: 64267
      NUMBER_OF_BYTES : 54184460
      NUMBER_OF_BYTES-eng: 54184460
      _STATISTICS_WRITING_APP: mkvmerge v19.0.0 ('Brave Captain') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v19.0.0 ('Brave Captain') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-11 19:47:40
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-11 19:47:40
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(jpn): Audio: aac (LC), 48000 Hz, stereo, fltp
    Metadata:
      BPS             : 108643
      BPS-eng         : 108643
      DURATION        : 00:22:51.029000000
      DURATION-eng    : 00:22:51.029000000
      NUMBER_OF_FRAMES: 64267
      NUMBER_OF_FRAMES-eng: 64267
      NUMBER_OF_BYTES : 18619170
      NUMBER_OF_BYTES-eng: 18619170
      _STATISTICS_WRITING_APP: mkvmerge v19.0.0 ('Brave Captain') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v19.0.0 ('Brave Captain') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-11 19:47:40
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-11 19:47:40
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(eng): Subtitle: ass (default) (forced)
    Metadata:
      title           : Signs and Songs
      BPS             : 1959
      BPS-eng         : 1959
      DURATION        : 00:22:50.010000000
      DURATION-eng    : 00:22:50.010000000
      NUMBER_OF_FRAMES: 2331
      NUMBER_OF_FRAMES-eng: 2331
      NUMBER_OF_BYTES : 335589
      NUMBER_OF_BYTES-eng: 335589
      _STATISTICS_WRITING_APP: mkvmerge v19.0.0 ('Brave Captain') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v19.0.0 ('Brave Captain') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-11 19:47:40
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-11 19:47:40
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:4(eng): Subtitle: ass
    Metadata:
      title           : Full subtitles [MK-Pn8]
      BPS             : 2071
      BPS-eng         : 2071
      DURATION        : 00:22:50.010000000
      DURATION-eng    : 00:22:50.010000000
      NUMBER_OF_FRAMES: 2678
      NUMBER_OF_FRAMES-eng: 2678
      NUMBER_OF_BYTES : 354820
      NUMBER_OF_BYTES-eng: 354820
      _STATISTICS_WRITING_APP: mkvmerge v19.0.0 ('Brave Captain') 64-bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v19.0.0 ('Brave Captain') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-11 19:47:40
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-11 19:47:40
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:5: Attachment: ttf
    Metadata:
      filename        : Alpha54.ttf
      mimetype        : application/x-truetype-font
    Stream #0:6: Attachment: ttf
    Metadata:
      filename        : ArtificeSSK.ttf
      mimetype        : application/x-truetype-font
    Stream #0:7: Attachment: ttf
    Metadata:
      filename        : AVERIASANS-LIGHT.ttf
      mimetype        : application/x-truetype-font
    Stream #0:8: Attachment: ttf
    Metadata:
      filename        : AVERIASANS-LIGHT_0.ttf
      mimetype        : application/x-truetype-font
    Stream #0:9: Attachment: ttf
    Metadata:
      filename        : curswfte.ttf
      mimetype        : application/x-truetype-font
    Stream #0:10: Attachment: ttf
    Metadata:
      filename        : DAYROM.ttf
      mimetype        : application/x-truetype-font
    Stream #0:11: Attachment: otf
    Metadata:
      filename        : GandhiSans-Bold.otf
      mimetype        : application/vnd.ms-opentype
    Stream #0:12: Attachment: otf
    Metadata:
      filename        : GandhiSans-Bold_0.otf
      mimetype        : application/vnd.ms-opentype
    Stream #0:13: Attachment: otf
    Metadata:
      filename        : GandhiSans-BoldItalic.otf
      mimetype        : application/vnd.ms-opentype
    Stream #0:14: Attachment: otf
    Metadata:
      filename        : GandhiSans-BoldItalic_0.otf
      mimetype        : application/vnd.ms-opentype
    Stream #0:15: Attachment: ttf
    Metadata:
      filename        : helvetica-neue-bold.ttf
      mimetype        : application/x-truetype-font
    Stream #0:16: Attachment: ttf
    Metadata:
      filename        : JandaEverydayCasual.ttf
      mimetype        : application/x-truetype-font
    Stream #0:17: Attachment: ttf
    Metadata:
      filename        : JandaEverydayCasual_0.ttf
      mimetype        : application/x-truetype-font
    Stream #0:18: Attachment: ttf
    Metadata:
      filename        : Kreon-Bold.ttf
      mimetype        : application/x-truetype-font
    Stream #0:19: Attachment: ttf
    Metadata:
      filename        : Kreon-Bold_0.ttf
      mimetype        : application/x-truetype-font
    Stream #0:20: Attachment: ttf
    Metadata:
      filename        : Kreon-Regular.ttf
      mimetype        : application/x-truetype-font
    Stream #0:21: Attachment: ttf
    Metadata:
      filename        : Kreon-Regular_0.ttf
      mimetype        : application/x-truetype-font
    Stream #0:22: Attachment: ttf
    Metadata:
      filename        : OctemberScript.ttf
      mimetype        : application/x-truetype-font
    Stream #0:23: Attachment: ttf
    Metadata:
      filename        : PTC75F_0.ttf
      mimetype        : application/x-truetype-font
    Stream #0:24: Attachment: ttf
    Metadata:
      filename        : Roboto-Medium_0.ttf
      mimetype        : application/x-truetype-font
    Stream #0:25: Attachment: ttf
    Metadata:
      filename        : tt0142m_0.ttf
      mimetype        : application/x-truetype-font
1 Like

Sorry for the delay here. Does other media play successfully? What kind of computer are you running?

FX series AMD processor, 16 gb ram, nvidea 1070

Most files play fine, including other MKV’s. But every now and again I have 1-5 episodes in a series of MKV’s that just wont play. They open fine in media player classic, VLC and win 10 movie player.

I also got such an error, i would really love some fix.

Hi all,
Since the original post, we’ve updated Jellyfin. Please try in the latest version.

If you’re still having errors, we’ll need to know some important details. This post on Reddit mentions how you can help us figure these out: https://www.reddit.com/r/jellyfin/comments/b26t8u/if_youre_posting_for_help_with_jellyfin_please/

1 Like