Jellyfin Forum
Problem when playing certain .mkv files on my Samsung TV (Tizen) - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Problem when playing certain .mkv files on my Samsung TV (Tizen) (/t-problem-when-playing-certain-mkv-files-on-my-samsung-tv-tizen)



Problem when playing certain .mkv files on my Samsung TV (Tizen) - skedaddle - 2024-05-10

When I try playing certain series, the audio starts to stutter a lot (unlistenable). The files in particular which have the problem are .mkv, most of the times they are anime with lots of subtiltes and audio files embedded into them. The files work perfectly on my pc and phone (through swiftfin). Anyone know what might be the issue? Thanks

Edit: It appears to only happen with audio marked with "Opus 112Kbps"


RE: Problem when playing certain .mkv files on my Samsung TV (Tizen) - TheDreadPirate - 2024-05-10

This appears to be an issue with some Samsung TV's.

https://github.com/jellyfin/jellyfin-tizen/issues/130

The easiest solution is to remux your MKVs with OPUS into an MP4 container, which can be done without re-encoding.


RE: Problem when playing certain .mkv files on my Samsung TV (Tizen) - skedaddle - 2024-05-10

(2024-05-10, 01:31 PM)TheDreadPirate Wrote: This appears to be an issue with some Samsung TV's.

https://github.com/jellyfin/jellyfin-tizen/issues/130

The easiest solution is to remux your MKVs with OPUS into an MP4 container, which can be done without re-encoding.

How would one do this? I have multiple embeded subtitles and audio tracks in the .mkv files. I've tried with ffmpeg but no good results, either te style of the subs are gone, the audio tracks are gone, ...


RE: Problem when playing certain .mkv files on my Samsung TV (Tizen) - TheDreadPirate - 2024-05-10

Code:
ffmpeg -i /path/to/your/video.mkv -map 0 -c:v copy -c:a copy -c:s copy newvideo.mp4

Try that ffmpeg command.


RE: Problem when playing certain .mkv files on my Samsung TV (Tizen) - skedaddle - 2024-05-10

(2024-05-10, 05:53 PM)TheDreadPirate Wrote:
Code:
ffmpeg -i /path/to/your/video.mkv -map 0 -c:v copy -c:a copy -c:s copy newvideo.mp4

Try that ffmpeg command.

It gave me this:

Code:
ffmpeg version 2024-05-08-git-e8e84dc325-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      59. 17.100 / 59. 17.100
  libavcodec    61.  5.103 / 61.  5.103
  libavformat    61.  3.103 / 61.  3.103
  libavdevice    61.  2.100 / 61.  2.100
  libavfilter    10.  2.101 / 10.  2.101
  libswscale      8.  2.100 /  8.  2.100
  libswresample  5.  2.100 /  5.  2.100
  libpostproc    58.  2.100 / 58.  2.100
[matroska,webm @ 000001e2353d3880] Could not find codec parameters for stream 7 (Attachment: none): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 000001e2353d3880] Could not find codec parameters for stream 8 (Attachment: none): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 000001e2353d3880] Could not find codec parameters for stream 9 (Attachment: none): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 000001e2353d3880] Could not find codec parameters for stream 10 (Attachment: none): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 000001e2353d3880] Could not find codec parameters for stream 11 (Attachment: none): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 000001e2353d3880] Could not find codec parameters for stream 12 (Attachment: none): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, matroska,webm, from 'D:\Jellyfin Library\Series\Cowboy Bebop\Season 1\Cowboy Bebop - 01 [Asteroid Blues].mkv':
  Metadata:
    creation_time  : 2022-05-05T08:27:06.000000Z
    ENCODER        : Lavf59.4.100
  Duration: 00:24:43.18, start: -0.007000, bitrate: 2730 kb/s
  Chapters:
    Chapter #0:0: start 0.010000, end 48.921000
      Metadata:
        title          : Prologue
    Chapter #0:1: start 48.921000, end 139.188000
      Metadata:
        title          : Opening Credits
    Chapter #0:2: start 139.188000, end 744.650000
      Metadata:
        title          : Part 1
    Chapter #0:3: start 744.650000, end 1356.738000
      Metadata:
        title          : Part 2
    Chapter #0:4: start 1356.738000, end 1451.905000
      Metadata:
        title          : Ending Credits
    Chapter #0:5: start 1451.905000, end 1483.190000
      Metadata:
        title          : Next Episode Preview
  Stream #0:0(jpn): Video: hevc (Main 10), yuv420p10le(tv), 1448x1080, SAR 1:1 DAR 181:135, 23.81 fps, 23.81 tbr, 1k tbn (default)
      Metadata:
        title          : [Judas] x265 10b
        BPS            : 2507457
        DURATION        : 00:24:43.140000000
        NUMBER_OF_FRAMES: 35569
        NUMBER_OF_BYTES : 464863900
        _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit
        _STATISTICS_WRITING_DATE_UTC: 2022-05-05 08:27:06
        _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(jpn): Audio: opus, 48000 Hz, stereo, fltp
      Metadata:
        title          : [Judas] JAP Stereo (Opus 112Kbps)
        ENCODER        : Lavc59.3.101 libopus
        BPS            : 101618
        DURATION        : 00:24:43.179000000
        NUMBER_OF_FRAMES: 74159
        NUMBER_OF_BYTES : 18839793
        _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit
        _STATISTICS_WRITING_DATE_UTC: 2022-05-05 08:27:06
        _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Audio: opus, 48000 Hz, stereo, fltp
      Metadata:
        title          : [Judas] ENG Stereo (Opus 112Kbps)
        ENCODER        : Lavc59.3.101 libopus
        BPS            : 112208
        DURATION        : 00:24:43.179000000
        NUMBER_OF_FRAMES: 74159
        NUMBER_OF_BYTES : 20803214
        _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit
        _STATISTICS_WRITING_DATE_UTC: 2022-05-05 08:27:06
        _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(eng): Subtitle: ass (ssa)
      Metadata:
        title          : English [Full] (CBM/JySzE)
        BPS            : 84
        DURATION        : 00:23:45.640000000
        NUMBER_OF_FRAMES: 258
        NUMBER_OF_BYTES : 14994
        _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit
        _STATISTICS_WRITING_DATE_UTC: 2022-05-05 08:27:06
        _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(jpn): Subtitle: ass (ssa)
      Metadata:
        title          : English [Signs/Songs] (CBM/JySzE)
        BPS            : 19
        DURATION        : 00:23:45.610000000
        NUMBER_OF_FRAMES: 45
        NUMBER_OF_BYTES : 3532
        _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit
        _STATISTICS_WRITING_DATE_UTC: 2022-05-05 08:27:06
        _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5(ita): Subtitle: ass (ssa)
      Metadata:
        title          : Italian
        BPS            : 70
        DURATION        : 00:22:23.170000000
        NUMBER_OF_FRAMES: 188
        NUMBER_OF_BYTES : 11854
        _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit
        _STATISTICS_WRITING_DATE_UTC: 2022-05-05 08:27:06
        _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:6(eng): Subtitle: ass (ssa)
      Metadata:
        title          : English [Dubtitles] (Kaveman/JySzE)
        BPS            : 90
        DURATION        : 00:23:45.610000000
        NUMBER_OF_FRAMES: 259
        NUMBER_OF_BYTES : 16050
        _STATISTICS_WRITING_APP: mkvmerge v67.0.0 ('Under Stars') 64-bit
        _STATISTICS_WRITING_DATE_UTC: 2022-05-05 08:27:06
        _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:7: Attachment: none
      Metadata:
        filename        : Linotype Finnegan W01 Medium.ttf
        mimetype        : font/ttf
  Stream #0:8: Attachment: none
      Metadata:
        filename        : ButcherTheBaker-R8RA.ttf
        mimetype        : font/ttf
  Stream #0:9: Attachment: none
      Metadata:
        filename        : Cheltenham Condensed Bold.ttf
        mimetype        : font/ttf
  Stream #0:10: Attachment: none
      Metadata:
        filename        : Franklin-Gothic-Medium-Cond.ttf
        mimetype        : font/ttf
  Stream #0:11: Attachment: none
      Metadata:
        filename        : IWAGYOPRO-BD-KAMI-7D0A7.TTF
        mimetype        : font/ttf
  Stream #0:12: Attachment: none
      Metadata:
        filename        : AGaramondPro-Bold.otf
        mimetype        : font/otf
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
  Stream #0:3 -> #0:3 (copy)
  Stream #0:4 -> #0:4 (copy)
  Stream #0:5 -> #0:5 (copy)
  Stream #0:6 -> #0:6 (copy)
  Stream #0:7 -> #0:7 (copy)
  Stream #0:8 -> #0:8 (copy)
  Stream #0:9 -> #0:9 (copy)
  Stream #0:10 -> #0:10 (copy)
  Stream #0:11 -> #0:11 (copy)
  Stream #0:12 -> #0:12 (copy)
[mp4 @ 000001e235dd5800] track 1: codec frame size is not set
[mp4 @ 000001e235dd5800] track 2: codec frame size is not set
[mp4 @ 000001e235dd5800] Could not find tag for codec ass in stream #3, codec not currently supported in container
[out#0/mp4 @ 000001e2354605c0] Could not write header (incorrect codec parameters ?): Invalid argument



RE: Problem when playing certain .mkv files on my Samsung TV (Tizen) - TheDreadPirate - 2024-05-10

Ah. Just remembered. MP4 does not support embedded ASS subtitles.

I'm surprised your TV isn't transcoding because of the subtitles. I'm assuming you are using the subtitles.


RE: Problem when playing certain .mkv files on my Samsung TV (Tizen) - skedaddle - 2024-05-11

(2024-05-10, 06:29 PM)TheDreadPirate Wrote: Ah.  Just remembered.  MP4 does not support embedded ASS subtitles.

I'm surprised your TV isn't transcoding because of the subtitles.  I'm assuming you are using the subtitles.

Yeah I am using the subs. I think my only fix would probably be redownloading all the anime I downloaded with the Opus audio. Because I just can't seem to fix it...


RE: Problem when playing certain .mkv files on my Samsung TV (Tizen) - TheDreadPirate - 2024-05-11

You could use ffmpeg to convert the just audio to AAC

Code:
ffmpeg -i /path/to/your/video.mkv -map 0 -c:v copy -c:a libfdk_aac -c:s copy newvideo.mkv