Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 | Link |
Registered User
Join Date: Sep 2019
Posts: 7
|
Ffmpeg too slow when simultaneously splits and reencode videos
Hello, I frequently only need to reencode part of video files, so I try to use the ffmpeg command to split while also instruct ffmpeg to reencode it. Something like this:
Code:
ffmpeg -i input.mkv -c:a libmp3lame -b:a 48k -ac 1 -vf scale=720:-2 -c:v mpeg4 -vtag xvid -b:v 969k -ss 2:19:00 -t 3000 input.avi Code:
frame= 0 fps=0.0 q=0.0 size= 10kB time=00:00:00.00 bitrate=N/A speed= 0x I don't know a way to avoid it, except by first to split the video, and then re-encode the second half. Which, unfortunately, is usually not acceptable, since I frequently do not have the spare space to store the intermediate split file so. |
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: Jul 2003
Posts: 1,152
|
The order of parameters is important. Put the -ss further up. This way ffmpeg will skip up to that point and then start encoding:
Code:
ffmpeg -ss 2:19:00 -i input.mkv -c:a libmp3lame -b:a 48k -ac 1 -vf scale=720:-2 -c:v mpeg4 -vtag xvid -b:v 969k -t 3000 input.avi |
![]() |
![]() |
![]() |
Tags |
ffmpeg, reencode, split |
Thread Tools | Search this Thread |
Display Modes | |
|
|