Registered Member
|
In my screencasting projects I regularily need to speed up video recordings of handmade illustrations, say 3x. It's no big deal to do this from the command line ... but I would like to have a new convenient transcoding menu item. I've seen that users can create new transcoding profiles from within Kdenlive. However, I'm unclear as to how what ffmpeg parameters need to be present and which to leave out. Unfortunately, the manual does go into any details on how to setup transcoding profiles.
On the command line I'm using this when I need to transcode an existing clip into a new version with 3x speedup...
Does Kdenlive also supply the output filename? If yes, how is this derived from the input filename? Does it remove the file extension from the input filename and tucks on the new extension? |
Registered Member
|
For those interested, in 15.08.3, some of the /usr/share/kdenlive/kdenlivetranscodingrc file content is:
I was able to add a 3x speedup option (the options are automatically sorted alphabetically - in case you don't find yours) by adding this line:
-an removes audio, as it would otherwise keep playing while frozen at the last frame of the 3x video stream (might cause other issues?). I used it because I couldn't find a satisfactory method to speed up audio to 300% speed and didn't test the method described at https://trac.ffmpeg.org/wiki/How%20to%2 ... 0a%20video but if you find a way please share and let us know whether the results are any good. Hope this helps! Thanks for letting me discover this part of Kdenlive customization! |
Registered Member
|
Qubodup, thank you very much! Yes, that helps.
I've later found the configuration dialog that makes adding user transcoding jobs more easy. Unfortunately, the manual is terse on the configuration dialog. The -an option is a good thing to do. I was lazy on it, because my footage is captured by an HDMI recorder without any sound. Silence is golden ... nah, I simply prefer a well-made voice over using a good studio mic and some audio post-processing. I'll try later as I'm in the scene production process, so that'll be a good test case. |
Registered Member
|
So, tested and works like a charm. However, I went through Kdenlive's Settings->Configure Kdenlive, then in the Transcode section I added a new profile called "Speedup 3x", extension "mp4", parameters "-an -filter:v setpts=(1/3)*PTS". Note that in the UI transcode profiles there is no %1; Kdenlive seems to add instead later the output filename as entered in the job UI.
|
Registered Member
|
Oh, I didn't realize there was a UI method to do this
By the way, in 15.08.3, the transcode setting set via UI get saved at
|
Registered Member
|
|
Registered Member
|
Oh.
That was a lot easier to get working than I thought it would be! Do the following to get 3x speed transcoding with audio and video using Kdenlive. Settings -> Configure Kdenlive Select the Transcode tab, select Lossless Matroska as a basis, change the Name to 3x Speed, the Description to Fast lossless encoding, leave the extension be. For the parameters use:
Obviously you can adjust as you see fit, maybe add a -tune fastdecode, or change the group of pictures for smoother backframes (-g 1). But yeah, that worked for me. And you should be able to do preeeetty much any speed multiplier bearing in mind that you can only use between 0.5-2.0 atempo speed, which is why I've used it twice. So for x16, you'd string together four atempo=2.0's, etc. Bonus; like it says in the ffmpeg trac linked to earlier, it does this by maintaining the framerate and dropping frames, but you can set the -r to keep 'em. Say you had some videogame footage from a capture device in your usual framerate of 30000/1001, if you specified -r 60000/1001 and double speed you wouldn't lose any frames, just get double the framerate of the original. I'm so going to use this loads. |
Registered Member
|
Interesting and really helpful discussion! Thank you very much for bringing in this additional knowledge. I only have simple footage without audio, but some day this will come in very handy. In my current project the new self-made x3 and x5 transcoding jobs were already incredible useful, as I had to speed up several scenes of "hand-made illustrations". I've found a bug though there the job result will be added to the currently used project bin folder, no the one where the job was started.
|
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient