Time2innov8
tdsrtc (0.1) doesn't handle the *, but it does generate srt files for all files in the directory.
Right now, I've added this to the top of my batch file and it works:
c:\encode\tdsrtc c:\encode\tdsrtc_test\ "hh:mms tt*dd-MMM-yyyy"
This generates srt files in the tdsrtc_test directory. tdsrtc.exe is in the directory c:\encode and I put the mediainfo.exe in the system32 directory, that way it doesn't need to be copied to the working folder
It doesn't handle directories with a space in the directory tree or "" in the path. So, "c:\encode\video files\test\" give an error:
Error reading command line arguments: Illegal characters in path.
Value cannot be null.
Parameter name: path
Error Detected!!
If there are no "" around the path it just doesn't find anything because it looks in c:\encode\video instead of c:\encode\video files\test
One other thing I noticed is that tdsrtc is pulling the date and time from the file creation. So when I copy from an SD or move to a new folder, tdsrtc pulls from the new time and date and not the time and date that the footage was filmed.
+ Reply to Thread
Results 91 to 105 of 105
Thread
-
Last edited by lantern; 1st Jul 2020 at 07:59.
Melde Melda Vessė
Eruanna ar Eruntano Melda Eruntanohini
"May your days be bright and contact with stupid people limited." -
Lantern,
I will have a look at the time source, here is an interim update for you to test that addresses the other issues raised.
https://drive.google.com/file/d/1Yp5Jx5PbMwuuvgld23TnqajKRq1LEnmw/view?usp=sharing
usage: tdsrtc File Directory (required),file filter (optional),Time/Date Format(optional),add milliseconds(optional),create merged file (optional)
Example: c:\mydir,.mp4,hh:mm:ss,1,1 - Use quotes around parameters with spaces, file filter is a text match - do not supply wildcards (*)
Default values are: file filter: all video types supported by MediaInfo, Time/Date format: F, add milliseconds - False, create merged srt file - False
time2innov8 -
Sorted date source, defaults to recorded date in MediaInfo output, if this is not present it will use either the created (default) or modified file date.
Version 0.2 available
https://drive.google.com/file/d/1gomtHUygpy2_IBgtGXcekngjD__TDrEW/view?usp=sharing
usage: tdsrtc File Directory (required),file filter (optional),backup date source (optional),Time/Date Format(optional),add milliseconds(optional),create merged file (optional)
Example: tdsrtc c:\mydir,.mp4,created,hh:mm:ss,1,1 - Use quotes around parameters with spaces, file filter is a text match (do not add wildcards)
Default values are:
File filter: all video types supported by MediaInfo
Backup source - created (alternative is modified)
Time/Date format: F, uses VB.Net date strings
Add milliseconds - False
Create merged srt file - False
time2innov8Last edited by time2innov8; 2nd Jul 2020 at 06:48.
-
If I use tdsrtc on a file that's copied to a new directory this is the result:
C:\encode\tdsrtc_test\171YARH0>tdsrtc c:\encode\tdsrtc_test\171YARH0\
version 0.2: - usage: tdsrtc File Directory (required),file filter (optional),backup date source (optional),Time/Date Format(optional),add milliseconds(optional),create merged file (optional)
Example: c:\mydir,.mp4,created,hh:mms,1,1 - Use quotes around parameters with spaces, file filter is a text match (do not add wildcards)
Default values are:
file filter: all video types supported by MediaInfo
backup date source - created (alternative is modified)
Time/Date format: F (use VB date string formats, add * to insert a second Time/Date line
add milliseconds - False
create merged srt file - False
Matched file (.mp4): 01710001.MP4
No recorded date listed in MediaInfo output, using file creation date
Processed c:\encode\tdsrtc_test\171YARH0\\01710001.MP4, created c:\encode\tdsrtc_test\171YARH0\\01710001.srt
The output has the date the file was copied.Melde Melda Vessė
Eruanna ar Eruntano Melda Eruntanohini
"May your days be bright and contact with stupid people limited." -
Have you tried the modified parameter for the backup date setting, MediaInfo is not finding the Recorded Date in the general output
Created which is the default used the VB parameter CreateTime
Modified uses the parameter LastWriteTime
The command to use the LastWriteTime would be:
Code:tdsrtc file_directory,,modified
Last edited by time2innov8; 2nd Jul 2020 at 11:42.
-
Sorry for the delay.
The modified tag works, but I now I'm not sure how to get it to accept the time/date format I want. I had been using:
c:\encode\tdsrtc.exe c:\encode\tdsrtc_test\ "hh:mms tt*dd-MMM-yyyy"
now:
c:\encode\tdsrtc.exe c:\encode\tdsrtc_test\ "hh:mms tt*dd-MMM-yyyy",,modified
generates the time/date, but as MMMM dd, yyyy
Maybe I'm not entering it in in the right order?Melde Melda Vessė
Eruanna ar Eruntano Melda Eruntanohini
"May your days be bright and contact with stupid people limited." -
Assuming you are listing the command exactly as you have tried it, it's not formatted correctly
It should be:
Code:c:\encode\tdsrtc.exe c:\encode\tdsrtc_test,,modified,"hh:mm:ss tt*dd-MMMM-yyyy"
I will be changing the millisecond and merged options to words instead of 1 to make it easier to read
Hope this works
T2I8 -
It looks like it's working.
Thank you!Melde Melda Vessė
Eruanna ar Eruntano Melda Eruntanohini
"May your days be bright and contact with stupid people limited." -
Hello,
Could you please re-upload the tdsrtc.exe command line application?
Thanks. -
I have checked my main backup and no sign of the .exe coommand line file. It might exist on a CD somewhere but you best bet might be for @58312-lantern (https://forum.videohelp.com/members/58312-lantern) to upload the last version they downloaded at the time the app was written.
-
Are you looking for the original tdsrtc.exe, or the current creator?
https://sourceforge.net/projects/timedatesrtcreator/files/
https://www.videohelp.com/software/TimeDateSRTCreatorLast edited by pcspeak; 27th Jan 2023 at 22:58.
-
I am looking for the original tdsrtc.exe command line application posted on the forum in 2020, not the current GUI TimeDateSRTCreator.
-
These are the files I have.
Melde Melda Vessė
Eruanna ar Eruntano Melda Eruntanohini
"May your days be bright and contact with stupid people limited." -
Time2innov8, unfortunately, running the program even with the default parameters gives me an error.
C:\Users\User2\Videos\2>tdsrtc C:\Users\User2\Videos\2,.mp4,created,hh:mms,1,1
version 0.2: - usage: tdsrtc File Directory (required),file filter (optional),backup date source (optional),
Time/Date Format(optional),add milliseconds(optional),create merged file (optional)
Example: c:\mydir,.mp4,created,hh:mms,1,1 - Use quotes around parameters with spaces, file filter is a text match (do not add wildcards)
Default values are:
file filter: all video types supported by MediaInfo
backup date source - created (alternative is modified)
Time/Date format: F (use VB date string formats, add * to insert a second Time/Date line
add milliseconds - False
create merged srt file - False
Matched file (.mp4): 00630.mp4
Unable to continue processing - error detected: Length cannot be less than zero.
Parameter name: length
No files matched the file criteria
I tried with other video files and same error. System Win7SP1
Similar Threads
-
How to modify .srt subtitle FPS time duration??
By iqbal88 in forum SubtitleReplies: 2Last Post: 8th Aug 2011, 13:28 -
Overlay Time & Date Code On MPEG-2 File
By minko in forum Video ConversionReplies: 32Last Post: 31st Jul 2011, 18:35 -
Creating a Subtitle File(.sub or .srt) With Just Text(no time sync yet)
By Digistras in forum SubtitleReplies: 3Last Post: 20th Dec 2007, 15:31 -
Date & Time
By fzf5bl in forum MacReplies: 1Last Post: 8th Nov 2007, 02:48 -
Date & Time Captured by DV out of Video Camera
By Mazen in forum CapturingReplies: 17Last Post: 13th Oct 2007, 10:00