srt files

Forum Forums Freeview HD HD FOX T2 srt files

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21899
    Anonymous
    Inactive

    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

    #105549
    Anonymous
    Inactive

    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:

    Code:
    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

The inner genius!