VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Page 3 of 3
FirstFirst 1 2 3
Results 61 to 74 of 74
Thread
  1. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    OBKB... Here is the link https://files.secureserver.net/0sNvDBCggtVSv5. It seems to work ok now even with duration. it pulls the duration with MediaInfo (included) and converts it to standard 00:00:00,000 time as the end time. I made the Command line MediaInfo run without the CMD screens popping up so that's a plus I think.

    The folder boxes source and destination are entered by 'File' dropdown,. source button, or drag and drop (drag a file and it will automatically enter the folder name. The test button is the button to create the subtitle files in the folder. I used the same one for source and destination so they would all be in the same folder. It works for me but it's late and I didn't want to recompile to change the test buttons name something more appropriate like "Create Subtitles" LOL

    Since I'm an amateur programmer, I would suggest you put several COPIED files in a folder and try it out first. My program does nothing with the originals except query the Duration but its always save to test with copied files first.

    I didn't test for error recovery if something like a text file with no duration is in the list. Let me know if you have problems. I'd like to make it work or change for suggestions. (My layout suck) If you have problems send me screen shot if possible or a full explanation.

    Thanks
    Budman1
    Quote Quote  
  2. Thank you! Thank you! Thank you!! Im testing it tomorrow morning and ill tell you how it goes. But i want to thank you right now !
    Quote Quote  
  3. Hi Budman1. How are you? Thank you very much again for your help!!
    I was trying the program, but when i execute the application this error comes up:
    Image
    [Attachment 50003 - Click to enlarge]

    And this comes in Details:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Bud\Desktop\FileName_Subtitle\FileName_S ubtitle\bin\Debug\Work\budman.ico'.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
    at System.Drawing.Icon..ctor(String fileName, Int32 width, Int32 height)
    at System.Drawing.Icon..ctor(String fileName)
    at FileName_Subtitle.Main.Main_Load(Object sender, EventArgs e) in C:\Users\Bud\Desktop\FileName_Subtitle\FileName_Su btitle\Main.vb:line 370
    at System.Windows.Forms.Form.OnLoad(EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
    at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
    at System.Windows.Forms.Form.WmShowWindow(Message& m)
    at System.Windows.Forms.Form.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    FileName_Subtitle
    Assembly Version: 1.3.1.15
    Win32 Version: 1.03.01.15
    CodeBase: file:///C:/Users/MARIA5/Desktop/FileName/FileName_Subtitle.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (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 computer
    rather than be handled by this dialog box.


    And if i execute the program, the subtitle shows the time instead of the filename:
    Image
    [Attachment 50004 - Click to enlarge]




    I'm sorry to bother you, but can you fix it please?
    Image Attached Thumbnails Click image for larger version

Name:	03-09-2019 7-55-23.jpg
Views:	9
Size:	44.6 KB
ID:	50002  

    Last edited by TISHTA; 3rd Sep 2019 at 00:10. Reason: uploading image
    Quote Quote  
  4. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Yes. Looks like I inadvertently hardcoded my path instead of arbitrary one where your app path resides. I'll look at it.

    Update:

    New code link: Subtitle from video name 1.03.02.17 https://files.secureserver.net/0sxhKfTTWXaZLv

    Okay the error
    Could not find a part of the path 'C:\Users\Bud\Desktop\FileName_Subtitle\FileName_S ubtitle\bin\Debug\Work\budman.ico'.

    It was because the program was looking for my perpetual life icon in a hardcoded path. It should now find it in the work folder (subdirectory under the folder where the .EXE resides): C:/Users/MARIA5/Desktop/FileName/work/budman.ico

    And if i execute the program, the subtitle shows the time instead of the filename:
    What does the created subtitle actually look like?

    Let me know.
    thanks
    Last edited by Budman1; 3rd Sep 2019 at 00:39.
    Quote Quote  
  5. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Known other problems
    There is a problem where it sometimes shows complete filename instead of folder when drag drop used. Fixed
    It ignores Destination folder and puts SRT files always in Source folder. Will be fixed.

    Budman1

    Update
    Subtitle from video name 1.03.02.19 https://files.secureserver.net/0sy0P6YmTsGnN2 sould fix the above bugs.

    I enjoy fixing this but it's about 01:30 AM and I have rehab tomorrow so must ge to sleep. Any problems message me and I will fix after rehab.
    Last edited by Budman1; 3rd Sep 2019 at 01:16.
    Quote Quote  
  6. You have fixed the first error, but it still showing the time instead the filename:
    Image
    [Attachment 50005 - Click to enlarge]

    I've tried again the TimeDateSRTCreator, and there is a small difference in the srt files that may be the solution:
    Image
    [Attachment 50008 - Click to enlarge]

    Image
    [Attachment 50009 - Click to enlarge]


    In the TimeDateSRTCreator's generated srt there are two dashes, but in the FileName_Subtitle's generated srt there is only one. May be this can be the problem?
    Quote Quote  
  7. I've just read well your message. Sorry to bother you. Take your time. Get well soon and thanks again.
    Quote Quote  
  8. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Looks like you may be right. Some online examples of SRT subtitles are wrong Nd since I usually deL work with SSA/ASS Subtitles, I guess I got it wrong. I'll fix in a short while after rehab.

    I'm not really ill... have had heart failure for years so exercising it several times a week
    On a treadmill keeps me moving for the rest of the week. I love it. Lol
    Quote Quote  
  9. I hope you are always well. Gym and rehab is always good for our health. Hope you always keep doing well!!!
    And don't worry take your time to fix it.
    Another time thank you very much and take care
    Quote Quote  
  10. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Update:
    1. Ok I fixed the dashes problem. Funny VLC plays as you mention, Potplayer (That I use...) plays the subtitles OK anyway, and MPC-BE won't show them at all with one dash.
    2. Also tried to fix (hope its fixed) where drag and drop would not always report the folder but sometime previous folder, sometimes the whole filename. It's evidently a bug in this piece of
    crap Visual Studio 2019.
    3. Added the feature where you can drag drop folder or file. Both will now load only the folder name and associated files.

    Latest version is Subtitle from video name 1.03.02.21 https://files.secureserver.net/0sn1qF5qDganrv.

    I downloaded it from my storage and it runs OK for me now.

    Let Me know.
    Budman1
    Quote Quote  
  11. I've downloaded the file, but when i try to unzip it an error occured. I've tried with winrar and with 7-Zip and an error keeps showing:
    Image
    [Attachment 50010 - Click to enlarge]

    Sorry to bother you again, but can you fix it? O may be i need to unzip it with some other program?
    Thank you
    Quote Quote  
  12. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Yes I will rezip entire list of files. And post the new zip after I test it.
    Quote Quote  
  13. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Do not know why unzip would not work for you but I revamped program with several improvements:
    Version 1.03.06.02 https://files.secureserver.net/0sI4DSVo6dG6TS

    1. If invalid (.TXT,.SRT, etc.) it will not create any subtitles and displays ERROR message
    2. Clears subtitle box when Source loaded (if the Source is a different designation than Existing one)
    3. Removed MediaInfo.exe and MediaInfo.dll from work folder

    Image
    [Attachment 50011 - Click to enlarge]


    Image
    [Attachment 50012 - Click to enlarge]


    Not valid
    Image
    [Attachment 50013 - Click to enlarge]


    5 second setting
    1
    00:00:00,000 --> 00:00:05,000
    CGOP
    --------------------------------
    1
    00:00:00,000 --> 00:00:05,000
    G50_25_Test_Pattern
    --------------------------------
    1
    00:00:00,000 --> 00:00:05,000
    surfing-PP1-on-then-off
    --------------------------------
    1
    00:00:00,000 --> 00:00:05,000
    testt
    Duration setting
    1
    00:00:00,000 --> 00:07:57,000
    CGOP
    -------------------------------
    1
    00:00:00,000 --> 00:02:24,000
    G50_25_Test_Pattern
    -------------------------------
    1
    00:00:00,000 --> 00:00:16,400
    surfing-PP1-on-then-off
    -------------------------------
    1
    00:00:00,000 --> 00:10:23,000
    testt
    Uploaded and then downloaded and tested Version 1.03.06.02 without problems unzipping`

    Let me know how it works
    Winzip
    Quote Quote  
  14. Thank you, thank you, thank you!!! Sorry for making you waste so much time in this program, but it is very helpful for me.
    Take care. God bless you!!!
    Quote Quote  



Similar Threads