VideoHelp Forum

Try DVDFab and copy Ultra HD Blu-rays and DVDs! Or rip iTunes movies and music! Download free trial !
+ Reply to Thread
Page 4 of 4
FirstFirst ... 2 3 4
Results 91 to 98 of 98
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  



Similar Threads