Jump to content

SubtitleCreator - Application to create subtitles.


Recommended Posts

Embodiment
Posted

This is what I have come up with.

set filename=%~n1
SubtitleCreator.exe -ffmpegPath="C:\FFmpeg" -infile="%E%%"Test Fake Videos"%%filename%.srt

I get a consistent error:

SubtitleCreator version 1.2.5.5

ffmpeg Path: C:\FFmpeg
Input File: .srt
Audio Language: English
Translate to English: False
Attempt to Repair: True
Create SDH Subtitles: True
Force Whisper Model Update: False
Input file .srt does not exist. Exiting.

I created a folder with all the files you mentioned in it. A test folder with a .mpg video in it. The batch file is in the same folder as SubtitleCreator.

I am hoping I can use this pointing to a network share folder, and it would do all mpg files in that folder when ran.

Embodiment
Posted

Changed .srt to mpg and same result "Input file .mpg does not exist. Exiting." Thought I had it. 🙂

I want all mpg files in a NAS share called Movies to have their Closed Captions extracted to .srt files. The NAS share is mapped to a drive letter L.

Embodiment
Posted

Must be clear, my sample is just a test not at the present pointing to the NAS. Taking small steps first.

Embodiment
Posted

I got it working by using a single filename with just the one file in the directory. 

The process is considerably longer than CCExtractor on generating .srt files. Not sure why. I never did get the syntax right on processing 'any' file in the folder.

Thank you for your time.

Posted
11 hours ago, Embodiment said:

The process is considerably longer than CCExtractor on generating .srt files. Not sure why.

Maybe you misunderstand what this utility is.

It is using AI models (using Whisper openAI) to create / translate raw audio/voice to written text/subtitles.   It is not simply extracting data from either text based or graphical based existing subtitles.      If you have existing subtitle streams - then there is zero reason to use this utility.

BillOatman
Posted (edited)
16 hours ago, Embodiment said:

I got it working by using a single filename with just the one file in the directory. 

The process is considerably longer than CCExtractor on generating .srt files. Not sure why. I never did get the syntax right on processing 'any' file in the folder.

Thank you for your time.

Glad you got it working, but like rbjtech said, this utility creates new subtitles from the videos audio, it does not extract anything existing. That is why CCExtractor is faster, it simply extracts what is there.

To make it do multiple files would need the bat file to do the looping and call SubtitleCreator for each file in the loop.

Something like this

@echo off
setlocal

set executablePath=C:\SubtitleCreator\SubtitleCreator.exe

set videoDir=C:\Recordings

set ffmpegDir=C:\ffmpeg\bin

REM Loop through each .mp4 file in the directory
for %%f in ("%videoDir%\*.mp4") do (
    echo Processing %%f
    "%executablePath%" -ffmpegpath="%ffmpegDir%" -infile="%%f" -model=medium
)

endlocal

@rbjtech There could still be a reason to generate a new srt file, Emby has problems with some CC.

Edited by BillOatman
  • Like 1
Posted
On 28/12/2024 at 16:20, BillOatman said:

 

@rbjtech There could still be a reason to generate a new srt file, Emby has problems with some CC.

Agree 100% - you will also never experience sync issues !

I've used it on a few shows where sync drift was an issue and of course it's now perfect as it uses the audio itself as the time base .. A great piece of software :)

Embodiment
Posted

Thank  you. Yes, I have looked a CCExtractor for literally days trying to make it work. The only documentation I found on it where it handles many files at a time without having to list them by name, is by dragging the files onto the application directly via the shortcut to the batch file. (Or you have to highlight all the mpg files and use Windows Sent To.) That code is at the very end of this post.

However, I want the process to be where I click the batch file and it does the same thing. The reason being I want to add to the batch file another process. I sure have tried.!

Loop
"C:\Program Files (x86)\CCextractor\ccextractorwinfull.exe" %1 -o "%~dpn1.srt"
shift
pause
if not %1=="" goto
:Loop

Piggy-backing on this, does Emby if you have the SRT's in the same folder as a movie, with the Premier version, download the SRT along with the movie.? By downloading use my SRT already in the folder rather than going to the Internet to pull one down? This would be for offline viewing.
 

BillOatman
Posted (edited)
1 hour ago, Embodiment said:

Thank  you. Yes, I have looked a CCExtractor for literally days trying to make it work. The only documentation I found on it where it handles many files at a time without having to list them by name, is by dragging the files onto the application directly via the shortcut to the batch file. (Or you have to highlight all the mpg files and use Windows Sent To.) That code is at the very end of this post.

However, I want the process to be where I click the batch file and it does the same thing. The reason being I want to add to the batch file another process. I sure have tried.!

Loop
"C:\Program Files (x86)\CCextractor\ccextractorwinfull.exe" %1 -o "%~dpn1.srt"
shift
pause
if not %1=="" goto
:Loop

Piggy-backing on this, does Emby if you have the SRT's in the same folder as a movie, with the Premier version, download the SRT along with the movie.? By downloading use my SRT already in the folder rather than going to the Internet to pull one down? This would be for offline viewing.
 

I don't know anything about ccextractor. My bat file example was to get subtitlecreator to do all video files in a directory.

I believe there is a Emby plugin to download subtitles, but I am not at my Emby server now.  Look in the plugin catalog.

Edited by BillOatman
BillOatman
Posted

New release

Uses newest whisper model for large model. It is supposed to be faster than the medium model.

Posted

is there a way to specify the input audio stream from the MKV file?

I have a multi JPN audio MKV (original JPN audio track and a JPN commentary track) and it is using the wrong track (the commentary one).

Is it possible to specify WAV as the input file, I could extract the track myself then feed it into the subcreator

Posted

I worked it out, extracted the wav from the mkv using ffmpeg and used Whisper.net directly to translate.

Posted

Hello @BillOatmando You know it's possible to make polish subtitles from English audio series/movies?

Regards.

rbjtech
Posted
3 hours ago, Przemek said:

Hello @BillOatmando You know it's possible to make polish subtitles from English audio series/movies?

Regards.

Using something like subtitleedit - you can convert the english subs to many different languages.

https://www.nikse.dk/subtitleedit

  • Thanks 1
Posted
16 minutes ago, rbjtech said:

Using something like subtitleedit - you can convert the english subs to many different languages.

https://www.nikse.dk/subtitleedit

Thank You very much.

Regards

  • Like 1
BillOatman
Posted
16 hours ago, Przemek said:

Hello @BillOatmando You know it's possible to make polish subtitles from English audio series/movies?

Regards.

My app uses whisper, and it can go from many audio languages to English, but nothing other than English the last I checked. I will have a look and post here if I find anything.

  • Like 1
Neminem
Posted

@BillOatmanlast I looked it only did many languages to English.

 

  • 3 weeks later...
Posted (edited)

I’ve used SubtitleCreator a few times, and it’s a solid tool if you’re looking for something easy to use for creating subtitles. It’s not overly complicated, and it does a good job for basic subtitling. However, if you're working on bigger projects, you might want to look into professional subtitling agencies. They can help with accuracy and formatting, especially if you’re dealing with different languages or need captions for a large video library. One I’d recommend checking out is Rev.com, they’re great for fast, high-quality subtitles.

Edited by Shanefalk
  • 2 months later...
  • 2 months later...
  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...