VideoHelp Forum
+ Reply to Thread
Results 1 to 10 of 10
Thread
  1. Hi ****
    please consider I have a mp4 file that have duration of 1 minute
    but I would like trim it so that is have to encoded from 0 to 0:00:31.040000

    can use time instead of frames?

    I'm in a 25fps timebase, thanks
    Quote Quote  
  2. I assume that is H:M:S.ms notation ?

    You have to convert to frames. Obviously you cannot trim video on fraction of a frame

    1/25 = 0.04
    31 * 25 = 775
    775+1 = 776 frames
    Quote Quote  
  3. Member racer-x's Avatar
    Join Date
    Mar 2003
    Location
    3rd Rock from the Sun
    Search Comp PM
    Encode with ffmpeg:

    -t 00:00:31.04
    Got my retirement plans all set. Looks like I only have to work another 5 years after I die........
    Quote Quote  
  4. ah ok thanks
    Quote Quote  
  5. Originally Posted by racer-x View Post
    Encode with ffmpeg:

    -t 00:00:31.04
    but I need use avisynth

    please racer do you know is exist a batch that automatically convert the value:

    00:00:31.04

    or

    0:00:31.040000

    or

    00:00:31.040

    or

    00:00:31,040 (etc.. but is the same time value)

    into -------------> frame count @ 25 fps?

    thank you
    Quote Quote  
  6. Member racer-x's Avatar
    Join Date
    Mar 2003
    Location
    3rd Rock from the Sun
    Search Comp PM
    use a calculator..................

    31.04 x 25 = 776

    Avisinth:

    trim(0,775)
    Last edited by racer-x; 31st Oct 2014 at 14:16.
    Got my retirement plans all set. Looks like I only have to work another 5 years after I die........
    Quote Quote  
  7. Originally Posted by racer-x View Post
    use a calculator..................
    but I'm inside a batch ^^
    Quote Quote  
  8. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Then script it with string parsing, saved to temporary memory values and then process & combine them. There are scores of excel code on the web for doing just this, and you should be able to port the ideas to a batch file, right?

    Scott
    Quote Quote  
  9. mm I can try but I don't know if I'm able: I am a cat
    Quote Quote  
  10. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Well, then I wouldn't worry about it: cats have no need for timecode.
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!