My Humax Forum » Freeview HD » HD FOX T2

srt files

(2 posts)
  1. User has not uploaded an avatar

    silkties

    junior member
    Joined: Jul '15
    Posts: 7

    offline

    Hi
    I have a film mp4 file with its accompanying SRT subtitle file on my PC.
    I want to play these, using a memory stick, on my Fox T2. I can play the film but not the SRT file.
    Can anyone help

    regards

    | Fri 30 Apr 2021 13:36:02 #1 |
  2. User has not uploaded an avatar

    comqpq

    new member
    Joined: Jan '21
    Posts: 2

    offline

    One possibility - some sources (e.g. Chrisvideotubedownloader) produce SRT files with the language code in the subtitle file name
    e.g. XYZ.mp4 and XYZ.en.srt
    These have different base names so the Humax doesn't recognise them as belonging to each other, so rename the file.
    Also, sometimes the srt file is UTF encoded, so they need stripping to plain ANSI text.
    I produced a basic batch file to do this to all .en.srt files it finds in the directory - no checks, no sophistication:

    rem convert all .en.srt files to ANSI and rename as just .srt
    rem misnames with & in filename

    rem convert
    for %%f in (*.en.srt) do iconv -c -f utf-8 -t windows-1252 "%%f" >"%%f.ansi"

    rem hide originals
    ren *.en.srt *.utfsrt

    rem rename extensions of just these files
    call :stripexts en.srt.ansi
    call :stripexts en.srt
    ren *.en *.srt

    rem delete original srts
    del *.utfsrt

    goto:eof

    :stripexts
    for %%f in (*.%1) do call :stripext "%%f"
    goto:eof

    :stripext
    set g=%~n1
    ren %1 "%g%"
    goto:eof

    | Thu 28 Dec 2023 15:49:12 #2 |

RSS feed for this topic

Reply

You must log in to post.