**Version 1.1.2 August 27, 2022**
Version 1.1.2 replaces 1.1.0 and adds a couple of new changes to guard against problematic situations:
Version 1.1 is attached. Version 1.0 remains attached in case 1.1 doesn't work for you but 1.0 did. Improvements include:
** Original Version **
This is something I wrote to preserve timed text (srt) or Advanced Substation Alpha (ass) subtitles in videos being edited with VideoRedo. It is used as follows:
That's all there is to it. Please note that the default behavior of the program is to delete your project files after it uses them. You can disable this behavior with the -kp (keep projects) option.
Best of luck! I can't promise any support, but you can reply here with any feedback.
Version 1.1.2 replaces 1.1.0 and adds a couple of new changes to guard against problematic situations:
- An explicit error If the video file isn't where the project thinks it is, but the project opened successfully anyway (normally it won't in this case).
- An explicit error If the output video would overwrite the input video. (The script needs both open simultaneously, so overwriting poses a problem).
- Better handling of the -f option and an explicit check for ffprobe and ffmpeg being on the path if -f is not used
Version 1.1 is attached. Version 1.0 remains attached in case 1.1 doesn't work for you but 1.0 did. Improvements include:
- The English-language check has been removed, along with the restriction that only a single subtitle stream would be corrected. The subtitler will now process all the subtitle streams in the input video, regardless of language.
- "Subrip" subtitles are now supported, in addition to mov_text and ass.
- Corrected a bug that allowed the last subtitle in a stream, under certain conditions, to be erroneously dropped.
- Corrected a failure that would occur when a video contained subtitles, but none were left after all cuts were made.
- Added special handling for English subtitles tagged incorrectly as "en" rather than "eng".
- Added a -v option to print a version identifier, in case there should be any more updates.
- Added a %* to the bat file so you can put additional options on the command line.
** Original Version **
This is something I wrote to preserve timed text (srt) or Advanced Substation Alpha (ass) subtitles in videos being edited with VideoRedo. It is used as follows:
- Install ffmpeg, if you don't already have it. I would suggest adding the path to the binaries into your path, but it isn't required.
- Modify the attached bat file with your choice of directories and options.
- Use VideoReDo to make cuts in your videos. I recommend you don't do anything other than make cuts. DO NOT SAVE YOUR VIDEOS - save project files instead, put them in the directory you specified in the bat file.
- Open a command window and type the command "subtitler" to start the bat file. The subtitler will open each of your projects in turn, save the video using the profile you selected, retrieve the first English subtitles it finds on the original video, modify their timing in accordance with your cuts, and (depending on the options you choose) either embed the updated subtitles into the output video or leave them in a .srt file with the video.
That's all there is to it. Please note that the default behavior of the program is to delete your project files after it uses them. You can disable this behavior with the -kp (keep projects) option.
Best of luck! I can't promise any support, but you can reply here with any feedback.
Attachments
-
9.9 KB Views: 8
-
14.8 KB Views: 50
Last edited: