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:
Thanks for any help.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
+ Reply to Thread
Results 1 to 4 of 4
-
Last edited by yetanotherlogin; 10th Feb 2014 at 14:55.
-
How about adding a large value to -t at the last command,
Code:-t 4894954
-
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.
-
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???
---
Edit: Problem solved by using AviDemux instead.
Thanks for the help.Last edited by yetanotherlogin; 10th Feb 2014 at 15:28.
Similar Threads
-
end of file--Adobe Encore
By koberulz in forum Authoring (DVD)Replies: 19Last Post: 18th Oct 2016, 20:21 -
WAV to AC3 problem (noise at the file end)
By kartola in forum AudioReplies: 5Last Post: 24th Nov 2013, 10:52 -
Splitting TS-file with tsMuxer creates lag in end file
By Prospero in forum EditingReplies: 6Last Post: 20th Apr 2011, 16:44 -
How To Slice/Cut WMV Files?
By devilcoelhodog in forum Video ConversionReplies: 3Last Post: 30th Jan 2010, 13:01 -
Playback with MPCHC while still capturing stops at old end of file
By suppa in forum Capturing and VCRReplies: 0Last Post: 30th Dec 2009, 14:11