2
So I'm trying to speed up all my tv episodes (because some of them are really slow paced). The source is 30fps. And if already tried to do this with the following command:(I'm doing x1.6 because that's easier to make the setpts value (otherwise it would be 0.66666666666...)
ffmpeg -i VideoOriginal.mkv -r 48 -filter:v "setpts=0.625*PTS" VideoSpeedup.mkv
But the filesize here is WAY lower (maybe I should also use a preset for the quality?) Either way. The file is 40 minutes long and pretty much is broken after 10 minutes (VLC starts to misinterpreted timestamps and the player is pretty much F*cked).
Also the audio isn't speedup with this method.
Any tips on how to make this better?
(Reason why I want to 'keep all frames'. Is because since I'm going x1.6 I can just do 48fps meaning that I don't actually lose or have to generate new frames.)
EDIT: just realised that my original file's fps is 23.97612 .... I guess that does make things more complicated...?
Thanks! Trying it out right now. Just wanted to say that with my previous command I was getting ' Starting new cluster due to timestamp'. But now with your command I'm getting 'Past duration 0.994987 too large' pretty frequently... Is that something I should worry about, or just ignore? – Thibault Molleman – 2017-09-05T13:12:06.977
I tried it out and seems like it converted it to a 23.97612 file instead of a 48fps file which makes everything look very choppy now. Any idea why that is? – Thibault Molleman – 2017-09-05T13:57:26.673
Making it 48fps is not automatically going to make it any smoother. Can you post the entire command-line log? – slhck – 2017-09-05T17:25:12.223
It will right? Because right now it's cramming 48frames into 23,.... which results in more choppy video. Here's my log: https://pastebin.com/LAqctUK7
– Thibault Molleman – 2017-09-05T21:37:53.520Hm, you can try with
– slhck – 2017-09-06T06:37:54.867-r 48to avoid dropping frames, but it still should not look choppy. Perhaps try with a newer version of ffmpeg? Yours is from 2015. http://ffmpeg.org/download.html1Didn't even realise that I was on old version (nice spotting!) I updated to the newest stable version. Your original suggestion still gives me something that looks equally choppy. But If I add the -r 48 after my input (like on my original command) then the results is PERFECT! Exactly what I was looking for. (Maybe EDIT the answer to include the '-r 48' and I'll mark is as the answer! (thank you so much btw!) – Thibault Molleman – 2017-09-08T08:57:21.150
Great, thanks for letting me know! Answer updated. – slhck – 2017-09-08T09:27:50.413