Is this possible? Is there a program out there that can do this? I have a video which is 23.976fps NTSC Film with associated subtitles in srt format.
For reasons of hardware compatibility I need to convert to PAL. I can easily do this to the video & audio but of course then the subtitles will be too slow and out of sync. Is there an automated way of reading all the time stamps in the srt files and shifting them by an appropriate amount to make a PAL version and then rewriting back to srt format?
+ Reply to Thread
Results 1 to 10 of 10
-
-
I've written such an application, actually. DL it at http://w1.312.telia.com/~u31220486/apps/srtstretch.exe
It's in .net, so you need the .net framework.
/Mats -
Excellent Mats! Thanks, I shall give it a bash.
Already have .net framework installed for AutoCAD, so no dramas there.
What does this mean though?
http://img87.exs.cx/img87/3290/Clipboard01.gif
Output = null file (0 bytes) -
Damned - Don't know really - And I haven't got the source here right now either... Depending on your locale, you might have to change the "," in the facor to "."
/Mats -
Originally Posted by mats.hogberg
I'm trying to do this in M$ Word, but I can't see how to replace *just* the comma and keep the surrounding numbers untouched.
Can you help? -
Yes, monday, when Iget back to "work"
/Mats -
I think Subtitle Workshop has a framerate conversion feature.
From the Help file:
"Knowing the difference between this two fields is crucial to work with Subtitle Workshop.
Input FPS is the FPS of the movie that the subtitle was originally made for. FPS is the FPS of the movie you want it to adjust the subtitle to. You have to modify this field in order to convert FPS. When editing frame based subtitles there is no need for Input FPS (we only need FPS) so "Input FPS" will become absolutely useless after loading frame based subtitles (it won't have any effect in the times).
Q: How do I convert a 25 FPS subtitle File into 29,97?
A: Simply set "Input FPS" to 25, load the subtitle file and then set "FPS" to 29,97. You have just changed framerate of the file."Happy to be here. -
Originally Posted by mats.hogberg
Find: ([0-9])([0-9]),([0-9])([0-9])([0-9])
Replace with: \1\2.\3\4\5
That works fine, but the program still crashes as before. Here is the full error log.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.FormatException: Input string was not in a correct format.
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at srtstretch.Form1.convert(String tid, Decimal factor)
at srtstretch.Form1.button3_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
srtstretch
Assembly Version: 1.0.1707.26265
Win32 Version: 1.0.1707.26265
CodeBase: file:///C:/Documents%20and%20Settings/Temp/srtstretch.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog. -
Originally Posted by gonzalimator
Cheers.
Similar Threads
-
Quick easy way to convert DVD subs from 25fps to 23.976fps?
By nick1977 in forum SubtitleReplies: 19Last Post: 22nd Feb 2015, 17:36 -
25fps-source Ac3 to 23.976fps
By Lastman369 in forum AudioReplies: 47Last Post: 26th Sep 2014, 02:19 -
[MKV] 25fps to 23.976fps? Tried and failed. Help!
By lag in forum Newbie / General discussionsReplies: 15Last Post: 20th Aug 2014, 12:27 -
25fps to 23.976fps
By Charmer in forum AudioReplies: 19Last Post: 8th Aug 2009, 10:41 -
converting 25fps to 23.976fps
By pannivas in forum AudioReplies: 1Last Post: 3rd Aug 2007, 16:49