VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    Hello

    I need to slice a 2hrs5mn FLV file into roughly three equal parts, ie. about 40mn (2400sec) each.

    Since I don't know of a better free tool available for Windows, I used ffmpeg.

    It worked OK for the first two slices, but I didn't find how to run the last command successfully, by telling ffmpeg to simply slice until the end of the file:

    Code:
    ffmpeg -ss 00:00:00 -t 00:40:00 -i input.flv -c:a copy -c:v copy output.1.flv
    
    # 10s overlap to make it easier to move on to next video
    ffmpeg -ss 00:39:50 -t 2400 -i input.flv -c:a copy -c:v copy output.2.flv
    
    # Commands fail with "Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)"
    ffmpeg -ss 01:19:40 -i input.flv -c:a copy -c:v copy output.3.flv
    Thanks for any help.
    Last edited by yetanotherlogin; 10th Feb 2014 at 14:55.
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    How about adding a large value to -t at the last command,
    Code:
    -t 4894954
    what happens then?
    Quote Quote  
  3. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Or if you don't mind remuxing(no reconversoin) to a mkv so can you try mkvmergegui. Add the flv, under the global tab choose split after duration,set it to 2400s and start muxing to make an mkv from the flv.
    Quote Quote  
  4. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    Thanks, but it doesn't work either: The file only lasts 1sec instead of about 40mn.

    There's also a problem with the second file, which should be 40mn but is 26mn38 or 26mn48 instead:
    Code:
    ffmpeg.exe -input.flv
    Duration: 02:05:17.08, start: 0.000000, bitrate: 296 kb/s
      
    ffmpeg -ss 00:00:00 -t 00:40:00 -i input.flv -c:a copy -c:v copy output.1.flv
    40mn
    
    ffmpeg -ss 00:39:50 -t 01:19:50 -i input.flv -c:a copy -c:v copy output.2.flv
    26mn48s????
    ffmpeg -ss 00:40:0 -t 01:20:00 -i input.flv -c:a copy -c:v copy output.2.flv
    26mn38s???
    
    ffmpeg -ss 01:19:40 -t 4894954 -i input.flv -c:a copy -c:v copy output.3.flv
    1sec???
    Google didn't help. Maybe ffmpeg doesn't handle FLV files reliably.
    ---

    Edit: Problem solved by using AviDemux instead.

    Thanks for the help.
    Last edited by yetanotherlogin; 10th Feb 2014 at 15:28.
    Quote Quote  



Similar Threads

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