VideoHelp Forum

+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    i have one video about 80 min.
    i need to extract some clip at specific time, ex:

    00:04:05 -to 00:05:44
    00:20:19 -to 00:22:13
    00:45:09 -to 00:48:33
    00:54:37 -to 00:55:48
    01:00:08 -to 01:03:42

    how to get with ffmpeg?

    i've try this but not work:

    Code:
    ffmpeg -i video.mp4 -ss 00:04:05 -to 00:05:44 -ss 00:20:19 -to 00:22:13 -ss 00:45:09 -to 00:48:33 .......... -acodec copy  -vcodec copy -y output%2d.mp4
    Quote Quote  
  2. Originally Posted by lomero View Post
    i have one video about 80 min.
    i need to extract some clip at specific time, ex:

    00:04:05 -to 00:05:44
    00:20:19 -to 00:22:13
    00:45:09 -to 00:48:33
    00:54:37 -to 00:55:48
    01:00:08 -to 01:03:42

    how to get with ffmpeg?

    i've try this but not work:

    Code:
    ffmpeg -i video.mp4 -ss 00:04:05 -to 00:05:44 -ss 00:20:19 -to 00:22:13 -ss 00:45:09 -to 00:48:33 .......... -acodec copy  -vcodec copy -y output%2d.mp4
    I'm assuming that you wish to have separate clips

    ffmpeg -ss 00:04:05.0 -i video.mp4 -c copy -t 00:01:39.0 output.mp4

    Do you require one clip containing those segments?

    Quick answer is to create the 5 clips separately and join them.
    Quote Quote  
  3. Originally Posted by lomero View Post
    i have one video about 80 min.
    i need to extract some clip at specific time, ex:

    00:04:05 -to 00:05:44
    00:20:19 -to 00:22:13
    00:45:09 -to 00:48:33
    00:54:37 -to 00:55:48
    01:00:08 -to 01:03:42

    how to get with ffmpeg?

    i've try this but not work:

    Code:
    ffmpeg -i video.mp4 -ss 00:04:05 -to 00:05:44 -ss 00:20:19 -to 00:22:13 -ss 00:45:09 -to 00:48:33 .......... -acodec copy  -vcodec copy -y output%2d.mp4
    Try this to create one file comprising the separate clips

    #1 Create a text file .... Change the timings to suite your needs

    file video.mp4
    inpoint 34.5
    outpoint 55.1
    file video.mp4
    inpoint 111.0
    outpoint 155.3
    file video.mp4
    inpoint 278
    outpoint 316.4

    The inpoint/outpoint directives specify the trim in and out points in seconds for the file listed above them.

    #2a Create the joint file

    ffmpeg -f concat -i list.txt combined.mp4
    Quote Quote  
  4. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    yes i know extract single clip, then concatenate with ffmpeg.
    but with my initial post i wanted to know if there was a way to do it all in one shot...
    anyway tanxs for your reply.
    Quote Quote  



Similar Threads