• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting SOLVED: DVDSUB subtitles getting jumbled when transcoding

     
    • 0 Vote(s) - 0 Average

    SOLVED: DVDSUB subtitles getting jumbled when transcoding

    Antonbp5
    Offline

    Junior Member

    Posts: 25
    Threads: 9
    Joined: 2023 Oct
    Reputation: 0
    Country:Denmark
    #5
    2024-12-30, 09:36 PM
    (2024-12-30, 09:04 PM)TheDreadPirate Wrote: It's been a while since I watched one of my older movies with DVDSUB subtitles.  Just tried a couple in a browser with no issues.  Tried Chromium and Firefox.

    Code:
    {"Protocol":0,"Id":"414e41e2368a930fddb47ef92fa36d83","Path":"/media/library/Movies/Bruce Almighty/Bruce Almighty.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv","Size":1412110124,"Name":"Bruce Almighty","IsRemote":false,"ETag":"73e2cfc160b5db639d6ce20de8ce00fa","RunTimeTicks":60676340000,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"UseMostCompatibleTranscodingProfile":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"hevc","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":"smpte170m","ColorTransfer":"bt709","ColorPrimaries":"smpte170m","DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":1,"VideoRangeType":1,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"404p HEVC SDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":1861826,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":388,"Width":720,"AverageFrameRate":29.97003,"RealFrameRate":29.97003,"ReferenceFrameRate":29.97003,"Profile":"Main","Type":1,"AspectRatio":"1.85:1","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":90,"IsAnamorphic":false},{"Codec":"opus","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"Surround 5.1","VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":"Default","LocalizedForced":null,"LocalizedExternal":"External","LocalizedHearingImpaired":null,"DisplayTitle":"Surround 5.1 - English - OPUS - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":"5.1","BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"opus","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"Surround 5.1","VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":"Default","LocalizedForced":null,"LocalizedExternal":"External","LocalizedHearingImpaired":null,"DisplayTitle":"Surround 5.1 - English - OPUS","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":"5.1","BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":2,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"opus","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"Stereo","VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":"Default","LocalizedForced":null,"LocalizedExternal":"External","LocalizedHearingImpaired":null,"DisplayTitle":"Stereo - English - OPUS","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":"stereo","BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":3,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"DVDSUB","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","LocalizedHearingImpaired":"Hearing Impaired","DisplayTitle":"English - DVDSUB","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"IsHearingImpaired":false,"Height":480,"Width":720,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":4,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":1861826,"FallbackMaxStreamingBitrate":null,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":0,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null,"HasSegments":false}

    /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -ss 00:32:27.000 -noaccurate_seek -f matroska -init_hw_device vaapi=va:,vendor_id=0x8086,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -canvas_size 720x480 -i file:"/media/library/Movies/Bruce Almighty/Bruce Almighty.mkv" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:0 -codec:v:0 av1_qsv -preset veryfast -b:v 4654565 -maxrate 4654565 -bufsize 9309130 -profile:v:0 main -level 53 -g:v:0 90 -keyint_min:v:0 90 -filter_complex "[0:4]scale,scale=-1:388:fast_bilinear,crop,pad=max(720\,iw):max(388\,ih):(ow-iw)/2:(oh-ih)/2:black@0,crop=720:388,format=bgra,hwupload=derive_device=qsv:extra_hw_frames=64[sub];[0:0]setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24,hwmap=derive_device=qsv,format=qsv[main];[main][sub]overlay_qsv=eof_action=pass:repeatlast=0:w=720:h=388" -start_at_zero -codec:a:0 libfdk_aac -vbr:a 5 -af "pan=stereo|c0=0.5*c2+0.707*c0+0.707*c4+0.5*c3|c1=0.5*c2+0.707*c1+0.707*c5+0.5*c3,volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "e2644af667aa8d1809a9dcdb2ca017f7-1.mp4" -start_number 649 -hls_segment_filename "/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7.m3u8"


    ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
      built with gcc 12 (Debian 12.2.0-14)
      configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
      libavutil      59.  8.100 / 59.  8.100
      libavcodec    61.  3.100 / 61.  3.100
      libavformat    61.  1.100 / 61.  1.100
      libavdevice    61.  1.100 / 61.  1.100
      libavfilter    10.  1.100 / 10.  1.100
      libswscale      8.  1.100 /  8.  1.100
      libswresample  5.  1.100 /  5.  1.100
      libpostproc    58.  1.100 / 58.  1.100
    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
    Input #0, matroska,webm, from 'file:/media/library/Movies/Bruce Almighty/Bruce Almighty.mkv':
      Metadata:
        ENCODER        : Lavf61.1.100
      Duration: 01:41:07.63, start: -0.007000, bitrate: 1861 kb/s
      Chapters:
        Chapter #0:0: start 0.000000, end 345.912000
          Metadata:
            title          : Chapter 1
        Chapter #0:1: start 345.912000, end 547.480000
          Metadata:
            title          : Chapter 2
        Chapter #0:2: start 547.480000, end 797.797000
          Metadata:
            title          : Chapter 3
        Chapter #0:3: start 797.797000, end 1041.641000
          Metadata:
            title          : Chapter 4
        Chapter #0:4: start 1041.641000, end 1380.613000
          Metadata:
            title          : Chapter 5
        Chapter #0:5: start 1380.613000, end 1518.117000
          Metadata:
            title          : Chapter 6
        Chapter #0:6: start 1518.117000, end 1899.498000
          Metadata:
            title          : Chapter 7
        Chapter #0:7: start 1899.498000, end 2468.866000
          Metadata:
            title          : Chapter 8
        Chapter #0:8: start 2468.866000, end 2859.090000
          Metadata:
            title          : Chapter 9
        Chapter #0:9: start 2859.090000, end 3182.780000
          Metadata:
            title          : Chapter 10
        Chapter #0:10: start 3182.780000, end 3325.088000
          Metadata:
            title          : Chapter 11
        Chapter #0:11: start 3325.088000, end 3457.854000
          Metadata:
            title          : Chapter 12
        Chapter #0:12: start 3457.854000, end 3763.059000
          Metadata:
            title          : Chapter 13
        Chapter #0:13: start 3763.059000, end 4386.883000
          Metadata:
            title          : Chapter 14
        Chapter #0:14: start 4386.883000, end 4765.894000
          Metadata:
            title          : Chapter 15
        Chapter #0:15: start 4765.894000, end 5021.149000
          Metadata:
            title          : Chapter 16
        Chapter #0:16: start 5021.149000, end 5143.271000
          Metadata:
            title          : Chapter 17
        Chapter #0:17: start 5143.271000, end 5366.494000
          Metadata:
            title          : Chapter 18
        Chapter #0:18: start 5366.494000, end 5558.019000
          Metadata:
            title          : Chapter 19
        Chapter #0:19: start 5558.019000, end 6067.595000
          Metadata:
            title          : Chapter 20
      Stream #0:0: Video: hevc (Main), yuv420p(tv, smpte170m/smpte170m/bt709), 720x388 [SAR 1:1 DAR 180:97], 29.97 fps, 29.97 tbr, 1k tbn (default)
          Metadata:
            DURATION        : 01:41:07.595000000
      Stream #0:1(eng): Audio: opus, 48000 Hz, 5.1, fltp (default)
          Metadata:
            title          : Surround 5.1
            ENCODER        : Lavc61.3.100 libopus
            DURATION        : 01:41:07.592000000
      Stream #0:2(eng): Audio: opus, 48000 Hz, 5.1, fltp
          Metadata:
            title          : Surround 5.1
            ENCODER        : Lavc61.3.100 libopus
            DURATION        : 01:41:07.634000000
      Stream #0:3(eng): Audio: opus, 48000 Hz, stereo, fltp
          Metadata:
            title          : Stereo
            ENCODER        : Lavc61.3.100 libopus
            DURATION        : 01:41:07.592000000
      Stream #0:4(eng): Subtitle: dvd_subtitle (dvdsub), 720x480
          Metadata:
            DURATION        : 01:35:24.744000000
    Stream mapping:
      Stream #0:0 (hevc) -> setparams:default (graph 0)
      Stream #0:4 (dvdsub) -> scale:default (graph 0)
      overlay_qsv:default (graph 0) -> Stream #0:0 (av1_qsv)
      Stream #0:1 -> #0:1 (opus (native) -> aac (libfdk_aac))
    Press [q] to stop, [?] for help
    [libfdk_aac @ 0x5973cf15d840] Note, the VBR setting is unsupported and only works with some parameter combinations
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7-1.mp4' for writing
    Output #0, hls, to '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7.m3u8':
      Metadata:
        encoder        : Lavf61.1.100
      Stream #0:0: Video: av1, qsv(tv, bt709, progressive), 720x388 [SAR 1:1 DAR 180:97], q=2-31, 4654 kb/s, 29.97 fps, 30k tbn
          Metadata:
            encoder        : Lavc61.3.100 av1_qsv
      Stream #0:1: Audio: aac, 48000 Hz, stereo, s16 (default)
          Metadata:
            encoder        : Lavc61.3.100 libfdk_aac
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7649.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7650.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7651.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7652.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7653.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7654.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7655.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7656.mp4' for writing
    frame=  810 fps=0.0 q=-0.0 size=N/A time=00:00:00.00 bitrate=N/A speed=  0x   
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7657.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7658.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7659.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7660.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7661.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7662.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7663.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7664.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7665.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7666.mp4' for writing
    [hls @ 0x5973cf25ec80] Opening '/media/ramdisk/e2644af667aa8d1809a9dcdb2ca017f7667.mp4' for writing
    frame= 1717 fps=1717 q=-0.0 size=N/A time=00:00:30.26 bitrate=N/A speed=30.3x   


    Interesting. I can't really see any difference in our config that could cause this.

    I actually recorded a video of it happening. Sorry for the low quality and missing audio. clipchamp sucks.

    https://drive.google.com/file/d/1-HpXiVK...sp=sharing

    I can't really figure out what is wrong, which really sucks. 50% of my movie collection is DVD and using subtitles is almost mandatory now a days.

    I will raise an issue on github. Maybe they'll take a look at it.
    Thanks for the try though!
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    DVDSUB subtitles getting jumbled when transcoding - by Antonbp5 - 2024-12-30, 04:17 PM
    RE: DVDSUB subtitles getting jumbled when transcoding - by TheDreadPirate - 2024-12-30, 07:31 PM
    RE: DVDSUB subtitles getting jumbled when transcoding - by Antonbp5 - 2024-12-30, 07:56 PM
    RE: DVDSUB subtitles getting jumbled when transcoding - by TheDreadPirate - 2024-12-30, 09:04 PM
    RE: DVDSUB subtitles getting jumbled when transcoding - by Antonbp5 - 2024-12-30, 09:36 PM
    RE: DVDSUB subtitles getting jumbled when transcoding - by TheDreadPirate - 2024-12-31, 06:38 PM
    RE: DVDSUB subtitles getting jumbled when transcoding - by Antonbp5 - 2024-12-31, 07:50 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode