On Monday, 20 December 2021 11:16:14 GMT Wols Lists wrote:
> On 20/12/2021 08:25, Neil Bothwick wrote:
> > On Mon, 20 Dec 2021 07:55:15 +0000, Wols Lists wrote:
> >> With pretty much every bit of linux software I've found, I have to
> >> import my source into a project, make a meal of deleting the sections I
> >> don't want, and then I can't just "save a file", I have to tell the
> >> program loads of crap that I don't have a clue about, I just want my
> >> new file to be EXACTLY THE SAME as the original, just missing the bits
> >> I've deleted.
> > 
> > Avidemux works just like that, select the bits you don't want, delete
> > them, save using the copy codec, which does no transcoding.
> > 
> > Or you can use a different codec/bitrate/whatever if you also want to
> > reduce the size.
> 
> Ummm.
> 
> I don't know what the problem was, but I know I tried Avidemux, and it
> really didn't work for me. afair, it just got slower and slower, and was
> taking hours to save a file. Maybe a couple of days to save a 2hr video,
> that sort of thing ...
> 
> Cheers,
> Wol

kdenlive would be the same, IF you are transcoding the streams.  If you are 
just clipping sections, but copying over the same codecs and remuxing, it will 
be much faster.

I've tried various GUIs and found I was wasting more time learning how each 
application worked, than actually doing work.  So I reverted back to using 
ffmpeg on CLI.

ffmpeg -ss 00:03:00 -i input.mp4 -codec: copy -t 00:43:00 output.mp4

The above works a treat to clip start and end on a video and is fast.  If I 
need to clip many bits along the length of the video, e.g. removing adverts 
from a TV transmission, then I clip them separately and concatenate them as 
shown here:

https://trac.ffmpeg.org/wiki/Concatenate

When I want to transcode streams I use hardware acceleration which is faster 
and cooler than burning CPU cycles, e.g.:

ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -ss 00:04:12 -i
input.ts -vf format='nv12|vaapi,hwupload' -codec:v h264_vaapi -codec:a ac3 -t 
00:59:08 output.ts

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to