Emanoel Posted January 12, 2021 Share Posted January 12, 2021 Hi, I want to create an srt file (as you know how to schedule a srt file, for example, 00: 00: 29,633 -> 00: 00: 32,133). The problem is that I do not know a way to count the time at the beginning of the film and record the time of each text. TimerInit () and TimerDiff () only specify the time difference. Please tell me a solution so that I can record the exact time of each text (hr:min:sec,ms). Indicate that I have the text and just want to know the text change through PixelSearch and save the time in a file. Tell me if you know a better way to do this 🥺 Link to comment Share on other sites More sharing options...
Developers Jos Posted January 12, 2021 Developers Share Posted January 12, 2021 Moved to the appropriate forum. Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Nine Posted January 12, 2021 Share Posted January 12, 2021 (edited) Look at _Date_Time_GetLocalTime Edited January 12, 2021 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Emanoel Posted January 12, 2021 Author Share Posted January 12, 2021 Thanks! but is there any way to contain milliseconds? Link to comment Share on other sites More sharing options...
Nine Posted January 12, 2021 Share Posted January 12, 2021 (edited) ; #STRUCTURE# =================================================================================================================== ; Author ........: Paul Campbell (PaulIA) ; =============================================================================================================================== Global Const $tagSYSTEMTIME = "struct;word Year;word Month;word Dow;word Day;word Hour;word Minute;word Second;word MSeconds;endstruct" It does, look at the $tagSYSTEMTIME Edited January 12, 2021 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
abberration Posted January 12, 2021 Share Posted January 12, 2021 I think I know what this person is trying to accomplish, but it is probably way out of his/her league. He (assuming gender, will use this for the rest of my post) is trying to create a script to create or edit subtitle files for movies. He wants to read the text on a player like VLC for the point in the movie he wants to insert a subtitle. To do this, he will probably need to work with FFMpeg or something similar that can return the time at the selected frame. If he could accomplish this, it wouldn't be too hard to write into a text file with a .srt extension. But what he asked about in his first post is not impossible (reading the timecode on the media player). I have seen an AutoIt OCR UDF, which might work, but again this is probably out of his league. There are lots of freeware subtitle editors he could use. I had a subtitle that was encoded at one frame rate and the movie at another. Everything was fine at the beginning of the file, but progressively thrown off as the film went on. I used the subtitle editor to adjust for the framerate of the actual film and the subtitles lined up for the whole film. I also edited a different subtitle for another film to add in missing subtitles. These editors work great. This is what I would suggest he do - find a freeware that can do what he wants. Emanoel: Try this website: https://listoffreeware.com/free-open-source-subtitle-editor-windows/ Easy MP3 | Software Installer | Password Manager Link to comment Share on other sites More sharing options...
Emanoel Posted January 13, 2021 Author Share Posted January 13, 2021 I found "VideoSubFinder" program for this case. Now I can extract timing srt from hardsub videos. Thank you for your answer 😉🌹 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now