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

Cut and save video without reencoding

Tags: None
(comma "," separated)
User avatar
eemantsal
Registered Member
Posts
118
Karma
0
OS

Cut and save video without reencoding

Wed Jan 13, 2016 10:47 pm
First of all, to say that I don't know Kdenlive well, so, please, if the answer is obvious dont get angry at me, heheh.
Sometimes you just want to crop a fragment of a video you have downloaded, recorded, whatever; you can do this with Avidemux in just few clics, you can even do it in yout mobile, in Whatsapp, when forwarding video, but I haven't found the way to do it in Kdenlive, which seems ridiculous, since such a basic operation should be doable by any video editor, especially one so feature rich for an average user -let's not say for an ocassional user like me-. Does it really lack this possibility, as I begin to think, or I've been just clumsy at finding it, as I'd like to hear? ;D
BTW, I've seen a similar question in this forum, but it's like 6 or 7 years old, from the times Kdenlive had recently born, I think, so I haven't wanted to resurrect it but write a new post.

Cheers.

Last edited by eemantsal on Thu Jan 14, 2016 8:47 pm, edited 1 time in total.
capslock
Registered Member
Posts
699
Karma
4
OS

Re: Crop without reencoding

Thu Jan 14, 2016 6:51 am
There was and should still be a crop effect, but I could not check for 15.12 as I'm not at home right now.
Check this: https://userbase.kde.org/Kdenlive/Manua ... _transform

But you will have to reencode (as always in kdenlive).
TheDiveO
Registered Member
Posts
595
Karma
3
OS

Re: Crop without reencoding

Thu Jan 14, 2016 7:19 am
I'm under the impression that the OP instead refers to cutting instead of cropping. If that is what he wants and he does not insist on exact cuts then you can do this easily with ffmpeg workout reencoding, see here: http://thediveo-e.blogspot.de/2013/09/t ... using.html

Of course, cuts can only be on I frames, otherwise reencoding becomes necessary.
User avatar
eemantsal
Registered Member
Posts
118
Karma
0
OS

Re: Crop without reencoding

Thu Jan 14, 2016 8:47 pm
TheDiveO wrote:I'm under the impression that the OP instead refers to cutting instead of cropping. If that is what he wants and he does not insist on exact cuts then you can do this easily with ffmpeg workout reencoding, see here: http://thediveo-e.blogspot.de/2013/09/t ... using.html

Yes, you are right. I used "crop" incorrectly, pardon. I've just edited the title to aviod further confussions.
I'd just like to extract from second X till second Y, or delete X minutes/seconds from the beginning/end of a video and save the remaining fragment without reencoding it and losing quality and time, just copying it, like the ffmpeg related article you linked; or like you can do, graphically defining A and B points (start and end of the new video stream) in Avidemux: http://www.howtogeek.com/howto/42107/ho ... d=noscript -the image corresponds to the Windows version, but the Linux one is identical-.
So this is not possible in Kdenlive, and I have to do it in Ffmpeg, or some other solution, if I don't want to install Avidemux?
TheDiveO
Registered Member
Posts
595
Karma
3
OS
Kdenlive with its MLT engine always fully decodes all source clip frame and then reencodes the final rendered frame. There is no passthrough operation without decoding and reencoding.

Yes, you need to use ffmpeg or other tools; again, all these tools need to decode and reencode whenever you need cuts precise to a specific frame. Cutting without reencoding is only possible on I frame, the cuts then can be off several frames from the position you wanted them to be. How much offset will depend on how your source clip was encoded, that is, how often your source clip contains I frames.
TheDiveO
Registered Member
Posts
595
Karma
3
OS
If you are in for the easy graphical interface, then there's actually a way to do this:

1. Start Kdenlive or start new empty project.
2. Drag your source video clip into the project bin.
3. Select your clip, so it gets shown in the clip monitor.
4. Use the clip monitor controls to play and pause, etc.
5. To set the start point: this is termed in "in" point by simply pressing the "I" key. A marker will appear on the time scale in the clip monitor.
6. To set the end point or "out" point: press the "O" key. A second marker appears and the region in between is highlighted.
7. Right click in the monitor and select "save region".
8. Enter new filename, click ok.
9. Your clip in the project bin will show a progress bar. Wait for it to disappear.

Done.
rogelioprieto
Registered Member
Posts
1
Karma
0
This answer is right, it worked for me.
Just step 7 changed to "Extract zone" in Kdenlive Version 22.08.3

Thanks!
TheDiveO wrote:If you are in for the easy graphical interface, then there's actually a way to do this:

1. Start Kdenlive or start new empty project.
2. Drag your source video clip into the project bin.
3. Select your clip, so it gets shown in the clip monitor.
4. Use the clip monitor controls to play and pause, etc.
5. To set the start point: this is termed in "in" point by simply pressing the "I" key. A marker will appear on the time scale in the clip monitor.
6. To set the end point or "out" point: press the "O" key. A second marker appears and the region in between is highlighted.
7. Right click in the monitor and select "save region".
8. Enter new filename, click ok.
9. Your clip in the project bin will show a progress bar. Wait for it to disappear.

Done.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]