• 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 How to load ttml subtitles?

     
    • 0 Vote(s) - 0 Average

    How to load ttml subtitles?

    hhh333
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Oct
    Reputation: 0
    Country:Germany
    #1
    2023-10-04, 06:53 PM (This post was last modified: 2023-10-05, 08:01 AM by hhh333. Edited 2 times in total.)
    Hi,
    I downloaded mp4 file with separate ttml type subtitle file. When trying to manually load it I don't get any reaction (no error or load) when I select the file and click OK. When searching for the file I need to change to "All Files" from "All supported files".
    Is there any way how to load the file or do I have to convert it to srt or other format?
    Thanks.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2023-10-04, 07:11 PM
    Jellyfin's documentation doesn't mention ttml subtitles, so I am assuming no.

    https://jellyfin.org/docs/general/client...dec-tables
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    bitmap
    Offline

    Community Moderator

    Posts: 781
    Threads: 9
    Joined: 2023 Jul
    Reputation: 24
    #3
    2023-10-04, 07:19 PM
    You can use ffmpeg to convert ttml to srt.

    Code:
    ffmpeg -i file.mp4 -c:s srt file.en.srt

    I assume they're embedded. Since Jellyfin likes external files better anyways, this is the way to do it. Replace "en" with the two-letter language code for whatever language you're pulling out. If it's not the first ttml stream, you'll have to map it, which is a different thing altogether.
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2023-10-04, 07:21 PM
    (2023-10-04, 06:53 PM)hhh333 Wrote: I downloaded mp4 file with ttml type subtitle file. 

    I'm assuming it is an external file.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    bitmap
    Offline

    Community Moderator

    Posts: 781
    Threads: 9
    Joined: 2023 Jul
    Reputation: 24
    #5
    2023-10-04, 07:39 PM
    (2023-10-04, 07:21 PM)TheDreadPirate Wrote:
    (2023-10-04, 06:53 PM)hhh333 Wrote: I downloaded mp4 file with ttml type subtitle file. 

    I'm assuming it is an external file.

    My bad.

    Code:
    ffmpeg -i file.ttml -c srt file.en.srt

    Should work just the same.
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    1
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2023-10-04, 07:58 PM
    I searched through the code and there APPEARS to be support for ttml.

    Make sure your ttml file conforms with the file name documentation for external subs.

    https://jellyfin.org/docs/general/server...rnal-files
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    hhh333
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Oct
    Reputation: 0
    Country:Germany
    #7
    2023-10-05, 08:04 AM (This post was last modified: 2023-10-05, 08:09 AM by hhh333. Edited 2 times in total.)
    (2023-10-04, 07:39 PM)bitmap Wrote:
    (2023-10-04, 07:21 PM)TheDreadPirate Wrote:
    (2023-10-04, 06:53 PM)hhh333 Wrote: I downloaded mp4 file with ttml type subtitle file. 

    I'm assuming it is an external file.

    My bad.

    Code:
    ffmpeg -i file.ttml -c srt file.en.srt

    Should work just the same.

    Thanks. I will try this.
    I also updated the post to make it clear that it's a separate file Smiling-face
    hhh333
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Oct
    Reputation: 0
    Country:Germany
    #8
    2023-10-05, 08:09 AM
    (2023-10-04, 07:58 PM)TheDreadPirate Wrote: I searched through the code and there APPEARS to be support for ttml.

    Make sure your ttml file conforms with the file name documentation for external subs.

    https://jellyfin.org/docs/general/server...rnal-files


    As mentioned, I tried to add them manually so I didn't even hope that they will load on their own based on the name.

    Feel free to try it. I used yt-dlp to download both video and subtitles file.
    hhh333
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Oct
    Reputation: 0
    Country:Germany
    #9
    2023-10-05, 09:22 AM
    (2023-10-04, 07:39 PM)bitmap Wrote:
    (2023-10-04, 07:21 PM)TheDreadPirate Wrote:
    (2023-10-04, 06:53 PM)hhh333 Wrote: I downloaded mp4 file with ttml type subtitle file. 

    I'm assuming it is an external file.

    My bad.

    Code:
    ffmpeg -i file.ttml -c srt file.en.srt

    Should work just the same.

    I get
    Code:
    Invalid data found when processing input
    when trying the command. I also tried the same command with different ttml file and I got the same issue. I run it on RPi and am on the latest version. Also I couldn't find this in ffmpeg Documentation. I tried to list subs with ytdlp but it offers only the one file. I also tried python script with webvtt and pycaption but none worked so far.
    hhh333
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Oct
    Reputation: 0
    Country:Germany
    #10
    2023-10-05, 09:46 AM
    In the end the https://pypi.org/project/ttconv/ library worked with the example command
    Code:
    python src/main/python/ttconv/tt.py convert -i src/test/resources/scc/mix-rows-roll-up.scc -o build/mix-rows-roll-up.ttml

    Of course changing input to ttml and output to srt  Upside-down-face
    1
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • 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