Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Leo Butler via ffmpeg-user
Bo Berglund writes: > On Sat, 27 Mar 2021 10:06:03 +0100, Peter White > wrote: > >>> But it all looks the same with the time incrementing at exactly 5 seconds... >> >>Looks like someone took extra care to have a static keyframe interval. >>One can do that. With default codec options x264 won't

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Peter White
On Sat, Mar 27, 2021 at 05:18:18PM +0100, Bo Berglund wrote: > On Sat, 27 Mar 2021 10:06:03 +0100, Peter White > wrote: > > >> But it all looks the same with the time incrementing at exactly 5 > >> seconds... > > > >Looks like someone took extra care to have a static keyframe interval. > >One

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Bo Berglund
On Sat, 27 Mar 2021 10:06:03 +0100, Peter White wrote: >> But it all looks the same with the time incrementing at exactly 5 seconds... > >Looks like someone took extra care to have a static keyframe interval. >One can do that. With default codec options x264 won't produce such >output though. >

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Peter White
On Sat, Mar 27, 2021 at 09:13:10AM +0100, Bo Berglund wrote: > On Sat, 27 Mar 2021 02:50:13 +0100, Peter White > wrote: > > >> I tested your command ona typical video file and found that the output > >> looks > >> basically like this: > >> > >> [FRAME] > >>

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Peter White
On Sat, Mar 27, 2021 at 09:39:38AM +0100, Cecil Westerhof via ffmpeg-user wrote: > Bo Berglund writes: > > > Worth a check of your computer. > > It should be able to run at 100% CPU for quite a while in normal > > surroundings > > (if the air flow is not obstructed, please check the inlets on

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Peter White
On Sat, Mar 27, 2021 at 08:29:26AM +0100, Cecil Westerhof via ffmpeg-user wrote: > Peter White writes: > > > On Sat, Mar 27, 2021 at 06:18:59AM +0100, Cecil Westerhof via ffmpeg-user > > wrote: > >> Peter White writes: > >> > >> > On Fri, Mar 26, 2021 at 05:28:40PM +0100, Cecil Westerhof via

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Cecil Westerhof via ffmpeg-user
Bo Berglund writes: > On Sat, 27 Mar 2021 08:29:26 +0100, Cecil Westerhof via ffmpeg-user > wrote: > >>Before working with the video I narrowed it. (If I do not my processor >>gets to hot and the computer shuts down.) There I use crf 23, maybe I >>should redefine that to 16. >> > I also

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Bo Berglund
On Sat, 27 Mar 2021 08:29:26 +0100, Cecil Westerhof via ffmpeg-user wrote: >Before working with the video I narrowed it. (If I do not my processor >gets to hot and the computer shuts down.) There I use crf 23, maybe I >should redefine that to 16. > I also encountered overheating and shutdown

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Bo Berglund
On Sat, 27 Mar 2021 02:50:13 +0100, Peter White wrote: >> I tested your command ona typical video file and found that the output looks >> basically like this: >> >> [FRAME] >> best_effort_timestamp_time=3900.00 >> [/FRAME] >> [FRAME] >> best_effort_timestamp_time=3905.00 >> [/FRAME] >>

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Cecil Westerhof via ffmpeg-user
Peter White writes: > On Sat, Mar 27, 2021 at 06:18:59AM +0100, Cecil Westerhof via ffmpeg-user > wrote: >> Peter White writes: >> >> > On Fri, Mar 26, 2021 at 05:28:40PM +0100, Cecil Westerhof via ffmpeg-user >> > wrote: >> >> Peter White writes: >> >> >> >> > On Fri, Mar 26, 2021 at

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Cecil Westerhof via ffmpeg-user
Peter White writes: > On Sat, Mar 27, 2021 at 05:53:56AM +0100, Cecil Westerhof via ffmpeg-user > wrote: >> Peter White writes: >> >> > On Fri, Mar 26, 2021 at 07:02:13PM +0100, Cecil Westerhof via ffmpeg-user >> > wrote: >> >> Carl Zwanzig writes: >> >> >> >> > On 3/26/2021 9:28 AM, Cecil

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Peter White
On Sat, Mar 27, 2021 at 05:53:56AM +0100, Cecil Westerhof via ffmpeg-user wrote: > Peter White writes: > > > You can compile it yourself as well. It is not that difficult. Might > > need to hunt down some libraries, but that is basically just looking at > > the error messages of configure and

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Peter White
On Sat, Mar 27, 2021 at 06:18:59AM +0100, Cecil Westerhof via ffmpeg-user wrote: > Peter White writes: > > > On Fri, Mar 26, 2021 at 05:28:40PM +0100, Cecil Westerhof via ffmpeg-user > > wrote: > >> Peter White writes: > >> > >> > On Fri, Mar 26, 2021 at 09:55:21AM +0100, Cecil Westerhof via

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-27 Thread Peter White
On Sat, Mar 27, 2021 at 05:53:56AM +0100, Cecil Westerhof via ffmpeg-user wrote: > Peter White writes: > > > On Fri, Mar 26, 2021 at 07:02:13PM +0100, Cecil Westerhof via ffmpeg-user > > wrote: > >> Carl Zwanzig writes: > >> > >> > On 3/26/2021 9:28 AM, Cecil Westerhof via ffmpeg-user wrote:

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Cecil Westerhof via ffmpeg-user
Peter White writes: > On Fri, Mar 26, 2021 at 05:28:40PM +0100, Cecil Westerhof via ffmpeg-user > wrote: >> Peter White writes: >> >> > On Fri, Mar 26, 2021 at 09:55:21AM +0100, Cecil Westerhof via ffmpeg-user >> > wrote: >> >> I want to publish a speech I gave during a Zoom meeting. But

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Cecil Westerhof via ffmpeg-user
Carl Eugen Hoyos writes: > Am Fr., 26. März 2021 um 17:28 Uhr schrieb Cecil Westerhof via > ffmpeg-user : > >> ffmpeg -y -ss 1189 -i 2021-03-25ToastmastersClubAvond.mp4 >> -to 442 -acodec copy -vcodec libx264 -crf 8 -async 1 speech.mp4 > > The x264 documentation states that there is no good >

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Cecil Westerhof via ffmpeg-user
Peter White writes: > On Fri, Mar 26, 2021 at 07:02:13PM +0100, Cecil Westerhof via ffmpeg-user > wrote: >> Carl Zwanzig writes: >> >> > On 3/26/2021 9:28 AM, Cecil Westerhof via ffmpeg-user wrote: >> >> There is only one problem. The video is 7:21 long, but both mpv and >> >> vlc think it is

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Peter White
On Fri, Mar 26, 2021 at 05:28:40PM +0100, Cecil Westerhof via ffmpeg-user wrote: > Peter White writes: > > > On Fri, Mar 26, 2021 at 09:55:21AM +0100, Cecil Westerhof via ffmpeg-user > > wrote: > >> I want to publish a speech I gave during a Zoom meeting. But cutting > >> it out does not work.

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Peter White
On Fri, Mar 26, 2021 at 07:02:13PM +0100, Cecil Westerhof via ffmpeg-user wrote: > Carl Zwanzig writes: > > > On 3/26/2021 9:28 AM, Cecil Westerhof via ffmpeg-user wrote: > >> There is only one problem. The video is 7:21 long, but both mpv and > >> vlc think it is 7:30 long. > > > > IME, the

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Peter White
On Fri, Mar 26, 2021 at 04:40:26PM +0100, Bo Berglund wrote: > On Fri, 26 Mar 2021 10:59:23 +0100, Peter White > wrote: > > >You can use ffprobe to find the keyframe timestamps: > > > >ffprobe -select_streams V:0 -show_frames -skip_frame nokey -show_entries > >frame=best_effort_timestamp_time

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Carl Eugen Hoyos
Am Fr., 26. März 2021 um 17:28 Uhr schrieb Cecil Westerhof via ffmpeg-user : > ffmpeg -y -ss 1189 -i 2021-03-25ToastmastersClubAvond.mp4 > -to 442 -acodec copy -vcodec libx264 -crf 8 -async 1 speech.mp4 The x264 documentation states that there is no good reason to use "crf 8" and please don't

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Cecil Westerhof via ffmpeg-user
Carl Zwanzig writes: > On 3/26/2021 9:28 AM, Cecil Westerhof via ffmpeg-user wrote: > >> No, that I cannot do. I cannot publish stuff containing other people. > > Well you -can-, may not want to. I used cannot in the sense that I am not allowed to. ;-) >> There is only one problem. The video

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Carl Zwanzig
On 3/26/2021 9:28 AM, Cecil Westerhof via ffmpeg-user wrote: No, that I cannot do. I cannot publish stuff containing other people. Well you -can-, may not want to. There is only one problem. The video is 7:21 long, but both mpv and vlc think it is 7:30 long. IME, the metadata length often

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Cecil Westerhof via ffmpeg-user
Peter White writes: > On Fri, Mar 26, 2021 at 09:55:21AM +0100, Cecil Westerhof via ffmpeg-user > wrote: >> I want to publish a speech I gave during a Zoom meeting. But cutting >> it out does not work. >> >> When I use: >> ffmpeg -y -i 2021-03-25ToastmastersClubAvond.mp4 -ss 1190 -to 1631

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Bo Berglund
On Fri, 26 Mar 2021 10:59:23 +0100, Peter White wrote: >You can use ffprobe to find the keyframe timestamps: > >ffprobe -select_streams V:0 -show_frames -skip_frame nokey -show_entries >frame=best_effort_timestamp_time 2021-03-25ToastmastersClubAvond.mp4 > Interesting, I have wondered about

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Peter White
On Fri, Mar 26, 2021 at 10:59:23AM +0100, Peter White wrote: > If you can live with further quality loss in the video, you can > transcode it, i.e. -c:v libx264. Forgot one thing. You can, and maybe should, use -ss as an input option. This way ffmpeg does not decode the whole file until it

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Peter White
On Fri, Mar 26, 2021 at 09:55:21AM +0100, Cecil Westerhof via ffmpeg-user wrote: > I want to publish a speech I gave during a Zoom meeting. But cutting > it out does not work. > > When I use: > ffmpeg -y -i 2021-03-25ToastmastersClubAvond.mp4 -ss 1190 -to 1631 > -acodec copy -vcodec copy

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Peter White
On Fri, Mar 26, 2021 at 10:07:14AM +0100, Michael Koch wrote: > Am 26.03.2021 um 09:55 schrieb Cecil Westerhof via ffmpeg-user: > > I want to publish a speech I gave during a Zoom meeting. But cutting > > it out does not work. > > > > When I use: > > ffmpeg -y -i

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Michael Koch
Am 26.03.2021 um 09:55 schrieb Cecil Westerhof via ffmpeg-user: I want to publish a speech I gave during a Zoom meeting. But cutting it out does not work. When I use: ffmpeg -y -i 2021-03-25ToastmastersClubAvond.mp4 -ss 1190 -to 1631 -acodec copy -vcodec copy -async 1 speech.mp4 The

[FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Cecil Westerhof via ffmpeg-user
I want to publish a speech I gave during a Zoom meeting. But cutting it out does not work. When I use: ffmpeg -y -i 2021-03-25ToastmastersClubAvond.mp4 -ss 1190 -to 1631 -acodec copy -vcodec copy -async 1 speech.mp4 The video starts just a bit to late. But when I use: ffmpeg -y -i