This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Speed up audio (i.e. shift pitch and tempo) and video? this is easy in WMM!

Tags: None
(comma "," separated)
fizzybrain
Registered Member
Posts
3
Karma
0
Firsly, I must say I'm very excited to see how 0.7.? has progressed recently (currently using 0.7.5 on kubuntu 9.04). I've been doing a lot of editing with Cinelerra and it is like using a sledgehammer to crack a nut. Most frustratingly (in Cinelerra), I can't seem to do something as simple as speed up by a factor of 2 (for example). You know, like a plain fast forward with the squeaky voices and everything - which would be trivial with film or VT.
Now I find that it is also non-trivial in Kdenlive - though I must say that the fact that when a clip is sped up it takes up less timeline space is a blessed relief (cinelerra is v. counter-intuitive on this).

Am I missing something? I simply want to take a short segment and make it run at double speed. I suppose that the audio system could be working in the frequency domain, rather than simple amplitude, but even so it shouldn't be difficult to convert to waveform and squash it up. I know how clever it is to change the pitch without changing the speed, and I know how clever it is to change the speed without changing the pitch, but I don't want that (and it never works properly anyway).

I see that I am offered the chance so change the audio clip speed in the same way that I can change the video clip speed, but when I do that the "thumbnail" disappears and I get silence. Is this what is supposed to happen? - maybe it hasn't been writen yet....

The "Rate scaler" seems to have the idea: it sounds right, but instead of speeding the whole clip up by a factor of n, it seems to chop the audio into (roughly) second-long chunks, then speed a chunk up by n, then play that chunk n times (i.e. in the second originally occupied by that chunk), then move on to the next second-long chunk, etc. I.e. overall the audio stays in the same "place". I am using this on .dv (exported from cinelerra).

This is trivial in Windoze Movie Maker ... I'd hate to think that it can do something that Kdenlive can't ;-)

Please understand that this isn't an outraged demand, I'm just surprised that such a simple thing isn't present and I wonder if instead I'm just being dense (of course, both might be true).

Any thoughts?

Share and Enjoy...
jmpoure_drupal
Registered Member
Posts
735
Karma
0
Do you mean this feature request:
http://www.kdenlive.org/mantis/view.php?id=976
fizzybrain
Registered Member
Posts
3
Karma
0
Not exactly, though it would be a great feature.
I want to be able to produce sped-up AV in the finished product, just as though I was winding film through a projector too quickly.
I guess I'm going to have to chop it into sections and render each one in turn and hope I don't have to change anything later....
Puzzlenoise
Registered Member
Posts
43
Karma
0
I don't know if it's that what you search, but I can change the speed of Video and Audio in doing so:

- Right Click on the video you want to speed up, in the timeline menu
- Choose the option with "Speed" in it, should be the second option
- enter in percent how much faster or slower you want to have it

That's it :)

EDIT:
Whoops, now I see what the problem is... I'd need a solution for that one too.
streumix
Registered Member
Posts
48
Karma
0
Yes, it looks like the speed effect on video is muting audio.

Splitting and ungrouping audio from video would allow to apply a matching audio effect.
But as mentioned before, the only candidate for an audio playback rate and time length adjustament similar to the speed effect, rate scaler, behaves kind of weird. (Is there some sort of doku about this audio effect ? What's its purpose ? )
Or is this effect supposed to do the job (according to it's name) and we're faced with a bug ?

Ideally, I'd love to see an option inside the video speed effect, which allows for corresponding, "speed" adjusted audio (tape) playback. This would eliminate redundant rate change specification and should be easier to handle at the same time.

Toby
DavePhillips
Registered Member
Posts
71
Karma
0
Me too, I'd like to see this function added to Kdenlive. I think it might be a tough one to implement: The audio must scale its sample rate to match the increasing speed of the clip, and I think that might be tricky to do right. Maybe one of the devs can clarify ?

Best,

dp
streumix
Registered Member
Posts
48
Karma
0
What's required is basically the well known resample operation.
And there are proven open source implementations out there, e.g. libsamplerate.

But since kdenlive/MLT is able to perform resampling during rendering, it's obviously already implemented in some form. It just needs to be hooked in at the right place.

At the moment, I'm still assuming that "rate scaler" should do the trick and there's a bug in this audio effect. But I'd probably better off filing a bug report ...

Toby
Gingerling
Registered Member
Posts
79
Karma
0
Hey, i just ran into this bug now. Speeding up clip, even by 1%, mutes sound.
DiveO
Registered Member
Posts
182
Karma
0
No, sound muting is normal.
edwardl
Registered Member
Posts
15
Karma
0
Hi.
This shouldn't be normal. I feel when you change the length of a video by changing its speed the sound should follow suit, whether it is only the tempo or the pitch as well (checkbox option?). Or at least some audio filter that does this. So far there is no audio filter that I can see that allows you to change the length of the audio by changing its speed. There is only a few that changes the pitch while preserving the tempo.

I would much appreciate it if one could change the speed of a sound like one changes the speed of a video, tempo and optional pitch.

/Edward
PS. Would also be nice to reverse the audio (properly, rate shifter doesn't do this properly).
User avatar
ttguy
Moderator
Posts
1152
Karma
6
OS
Workaround: Right click clip in project tree, choose extract audio and have the extracted audio appear in the project tree.
Right click the extracted audio clip and choose edit. The clip will open in audacity (if audacity is installed) where you can use it to change tempo. I found that specifying a length in seconds was best - look how long your speeded up/slowed down video is in kdenlive and set the length of the audio to this value in the audacity change tempo effect
User avatar
Ubu the Tech Guru
Registered Member
Posts
67
Karma
0
OS
has kdenlive been made yet to work with the sox.reverse audio effect? I would like it when I reverse a clip or play it fast or slow that the audio is also affected.


400+ Videos on YouTubehttp://www.youtube.com/ubuntuaddicted
Support me directly on Patreon http://www.patreon.com/ubuntuaddicted
Follow me on Twitter http://www.twitter.com/ubuntuaddicted


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], Sogou [Bot]