VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. Member
    Join Date
    May 2003
    Location
    Oz
    Search Comp PM
    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?
    Quote Quote  
  2. Member mats.hogberg's Avatar
    Join Date
    Jul 2002
    Location
    Sweden (PAL)
    Search Comp PM
    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
    Quote Quote  
  3. Member
    Join Date
    May 2003
    Location
    Oz
    Search Comp PM
    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)
    Quote Quote  
  4. Member mats.hogberg's Avatar
    Join Date
    Jul 2002
    Location
    Sweden (PAL)
    Search Comp PM
    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
    Quote Quote  
  5. Member
    Join Date
    May 2003
    Location
    Oz
    Search Comp PM
    Originally Posted by mats.hogberg
    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 "."
    I'm trying to do this but without much success. I can't come up with a find/replace wildcard formula to fit the bill. The normal text of the subtitles in the srt files contains quite a lot of commas so simply replacing all the commas with periods won't work. What I need to do is find all the commas which are surrounded by two leading numbers and three trailing numbers and then replace just the comma with a period in those cases.

    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?
    Quote Quote  
  6. 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.
    Quote Quote  
  7. Member
    Join Date
    May 2003
    Location
    Oz
    Search Comp PM
    Originally Posted by mats.hogberg
    Yes, monday, when Iget back to "work"

    /Mats
    I have managed to do the conversion of commas to periods using the wildcard formula in Word thus:

    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.
    Quote Quote  
  8. Member
    Join Date
    May 2003
    Location
    Oz
    Search Comp PM
    Originally Posted by gonzalimator
    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."
    Perfect! Thanks for this, it seems to be able to do exactly what I want.

    Cheers.
    Quote Quote  
  9. Member
    Join Date
    Sep 2012
    Location
    Italy
    Search Comp PM
    Use "Jubler" is free and open source for all platforms
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!