VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 8 of 8
Thread
  1. Hi cats,

    please consider this commandline:
    Code:
    ffmpeg.exe -y -i AUDIOinput.wav -i VIDEOinput.avi -c:v libx264 -profile:v high -level:v 4.1 -pix_fmt yuv420p -g 33 -bf 2 -vf yadif,colormatrix=bt709:bt601 -crf 18 -c:a libmp3lame -b:a 320k -aspect 16:9 out.mp4
    I need to trim video so that out.mp4 is the range

    from 33 seconds
    to 38 minutes and 04 seconds

    of the original video and audio input that have duration of 1hour and 15 minutes

    How can I do? thanks
    Quote Quote  
  2. Member DB83's Avatar
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    You can not trim a cat since it does not have hair.
    You can trim a lion but I do not suggest you try it.

    You know sometimes it helps that you find a solution for yourself, or atleast attempt it, rather than let others do the work for you. It took me 10 secs (not being a ffmeg user) to determine how to do this.
    Quote Quote  
  3. Member racer-x's Avatar
    Join Date
    Mar 2003
    Location
    3rd Rock from the Sun
    Search Comp PM
    -ss 00:00:33 -t 00:37:31
    Got my retirement plans all set. Looks like I only have to work another 5 years after I die........
    Quote Quote  
  4. Originally Posted by racer-x View Post
    -ss 00:00:33 -t 00:37:31


    umh interesting, but how have you achieved 00:37:31 from 38 minutes and 04 seconds?

    and can I set frames in place of times?
    Quote Quote  
  5. Originally Posted by marcorocchini View Post
    Originally Posted by racer-x View Post
    -ss 00:00:33 -t 00:37:31


    umh interesting, but how have you achieved 00:37:31 from 38 minutes and 04 seconds?
    MATH for cats!

    -t is start time
    -d is duration

    If you start at 00:00:33 (ie. 33 seconds) and you add 37 min, 31 sec, you get 38 min 04 sec


    and can I set frames in place of times?
    -vf trim with start_frame , end_frame

    Note end_frame is the 1st frame that is dropped (excludes, not inclusive like avisyth trim())

    https://ffmpeg.org/ffmpeg-filters.html#trim
    Quote Quote  
  6. Hi ,

    ===
    MATH for cats!

    -t is start time
    -d is duration
    ===

    You are wrong !!!

    -ss for start time
    -t for the time of the video

    Cheers .
    JE SUIS CHARLIE !!!
    Quote Quote  
  7. ^ thanks for correction , it's too early here
    Quote Quote  



Similar Threads