VideoHelp Forum
+ Reply to Thread
Page 4 of 4
FirstFirst ... 2 3 4
Results 91 to 109 of 109
Thread
  1. Member lantern's Avatar
    Join Date
    Oct 2003
    Location
    Behind the dark matter
    Search Comp PM
    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.
    Last edited by lantern; 1st Jul 2020 at 08:59.
    Melde Melda Vessė
    Eruanna ar Eruntano Melda Eruntanohini

    "May your days be bright and contact with stupid people limited."
    Quote Quote  
  2. Member
    Join Date
    May 2011
    Location
    Scotland
    Search PM
    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
    Quote Quote  
  3. Member
    Join Date
    May 2011
    Location
    Scotland
    Search PM
    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



    time2innov8
    Last edited by time2innov8; 2nd Jul 2020 at 07:48.
    Quote Quote  
  4. Member lantern's Avatar
    Join Date
    Oct 2003
    Location
    Behind the dark matter
    Search Comp PM
    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."
    Quote Quote  
  5. Member
    Join Date
    May 2011
    Location
    Scotland
    Search PM
    Originally Posted by lantern View Post
    If I use tdsrtc on a file that's copied to a new directory this is the result:

    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.
    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
    time2innov8
    Last edited by time2innov8; 2nd Jul 2020 at 12:42.
    Quote Quote  
  6. Member lantern's Avatar
    Join Date
    Oct 2003
    Location
    Behind the dark matter
    Search Comp PM
    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."
    Quote Quote  
  7. Member
    Join Date
    May 2011
    Location
    Scotland
    Search PM
    Originally Posted by lantern View Post
    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:mm:ss tt*dd-MMM-yyyy"

    now:

    c:\encode\tdsrtc.exe c:\encode\tdsrtc_test\ "hh:mm:ss 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?
    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"
    The parameter order is:. Folder path, filename (can be partial), Backup Time Source, Date Format, Add milliseconds (1 to set), created merged file (1 to set)

    I will be changing the millisecond and merged options to words instead of 1 to make it easier to read

    Hope this works

    T2I8
    Quote Quote  
  8. Member lantern's Avatar
    Join Date
    Oct 2003
    Location
    Behind the dark matter
    Search Comp PM
    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."
    Quote Quote  
  9. Member
    Join Date
    Jan 2023
    Location
    Poland
    Search Comp PM
    Hello,
    Could you please re-upload the tdsrtc.exe command line application?
    Thanks.
    Quote Quote  
  10. Member
    Join Date
    May 2011
    Location
    Scotland
    Search PM
    Originally Posted by jankoza View Post
    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.
    Quote Quote  
  11. Member
    Join Date
    Apr 2007
    Location
    Australia
    Search Comp PM
    Last edited by pcspeak; 27th Jan 2023 at 23:58.
    Quote Quote  
  12. Member
    Join Date
    Jan 2023
    Location
    Poland
    Search Comp PM
    I am looking for the original tdsrtc.exe command line application posted on the forum in 2020, not the current GUI TimeDateSRTCreator.
    Quote Quote  
  13. Member lantern's Avatar
    Join Date
    Oct 2003
    Location
    Behind the dark matter
    Search Comp PM
    These are the files I have.
    Image Attached Files
    Melde Melda Vessė
    Eruanna ar Eruntano Melda Eruntanohini

    "May your days be bright and contact with stupid people limited."
    Quote Quote  
  14. Member
    Join Date
    Jan 2023
    Location
    Poland
    Search Comp PM
    Originally Posted by lantern View Post
    These are the files I have.
    Thanks a lot.
    Quote Quote  
  15. Member
    Join Date
    Jan 2023
    Location
    Poland
    Search Comp PM
    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
    Quote Quote  
  16. Member
    Join Date
    May 2011
    Location
    Scotland
    Search PM
    Do you still need help, I can probably recreate the command line version, if I can remember how I wrote it!

    T2I8
    Quote Quote  
  17. Member lantern's Avatar
    Join Date
    Oct 2003
    Location
    Behind the dark matter
    Search Comp PM
    Originally Posted by time2innov8 View Post
    Do you still need help, I can probably recreate the command line version, if I can remember how I wrote it!

    T2I8
    Glad to see you back! I was just looking for some assistance with this! I still use it regularly!

    Can you help me with the merged parameter? I can't seem to get tdsrtc to generate a merged srt file with the command line.

    tdsrtc E:\encode\video\228YARH0,,modified,hh:mms,0,1
    Melde Melda Vessė
    Eruanna ar Eruntano Melda Eruntanohini

    "May your days be bright and contact with stupid people limited."
    Quote Quote  
  18. Member lantern's Avatar
    Join Date
    Oct 2003
    Location
    Behind the dark matter
    Search Comp PM
    Not sure how I did it, but I guess replying to the thread fixed things

    I got the merged srt to generate! Thank you!
    Melde Melda Vessė
    Eruanna ar Eruntano Melda Eruntanohini

    "May your days be bright and contact with stupid people limited."
    Quote Quote  
  19. Member
    Join Date
    May 2011
    Location
    Scotland
    Search PM
    Originally Posted by lantern View Post
    Not sure how I did it, but I guess replying to the thread fixed things

    I got the merged srt to generate! Thank you!
    That's great you got it to work, I'm trying to recreate the command line app, if there is any features you want in it let me know.
    Quote Quote  



Similar Threads

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