[FFmpeg-devel] [PATCH] Ensure scaled video is divisible by n

2019-07-03 Thread Lars Kiesow
is required. Signed-off-by: Lars Kiesow --- doc/filters.texi | 5 + libavfilter/vf_scale.c | 9 ++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 700a76f239..1694fdda28 100644 --- a/doc/filters.texi +++ b/doc/filters.texi

[FFmpeg-devel] [PATCH] Ensure scaled video is divisible by n

2019-07-03 Thread Lars Kiesow
is required. Signed-off-by: Lars Kiesow --- doc/filters.texi | 5 + libavfilter/vf_scale.c | 9 ++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 700a76f239..1694fdda28 100644 --- a/doc/filters.texi +++ b/doc/filters.texi

Re: [FFmpeg-devel] [PATCH] Ensure scaled video is divisible by n

2019-07-03 Thread Lars Kiesow
Hi Paul, > > { "force_original_aspect_ratio", "decrease or increase w/h if > > necessary to keep the original AR", > > OFFSET(force_original_aspect_ratio), AV_OPT_TYPE_INT, { .i64 = 0}, > > 0, 2, FLAGS, "force_oar" }, > > +{ "force_divisible_by", "enforce that the output resolution is > >

Re: [FFmpeg-devel] [PATCH] Ensure scaled video is divisible by n

2019-07-03 Thread Lars Kiesow
On Wed, 3 Jul 2019 18:04:26 +0200 Paul B Mahol wrote: > On 7/3/19, Lars Kiesow wrote: > > Hi Paul, > > > >> > { "force_original_aspect_ratio", "decrease or increase w/h > >> > if necessary to keep the original AR", > >

[FFmpeg-devel] [PATCH] Ensure scaled video is divisible by n

2019-07-03 Thread Lars Kiesow
is required. Signed-off-by: Lars Kiesow --- doc/filters.texi | 5 + libavfilter/vf_scale.c | 9 ++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 700a76f239..1694fdda28 100644 --- a/doc/filters.texi +++ b/doc/filters.texi

Re: [FFmpeg-devel] [PATCH] Ensure scaled video is divisible by n

2019-07-08 Thread Lars Kiesow
Hi Michael, > commit message should begin with a prefix like > avfilter/vf_scale: ... Thanks for the hint. Will use that. > what does this feature have to do with force_original_aspect_ratio ? > i think it should not be under this if() This really only makes sense when using force_original_asp

[FFmpeg-devel] [PATCH] libavfilter/vf_scale: Ensure scaled video is divisible by n

2019-07-08 Thread Lars Kiesow
make sure that the calculated output resolution is divisible by n so in can be encoded with certain encoders/options if that is required. Signed-off-by: Lars Kiesow --- doc/filters.texi | 12 libavfilter/vf_scale.c | 13 - 2 files changed, 24 insertions(+), 1

Re: [FFmpeg-devel] [PATCH] libavfilter/vf_scale: Ensure scaled video is divisible by n

2019-08-05 Thread Lars Kiesow
Hi everyone, this is now open for nearly a month with no more comments or change requests. Anything else I should do to get this merged? Best regards, Lars On Mon, 8 Jul 2019 17:43:40 +0200 Lars Kiesow wrote: > This patch adds a new option to the scale filter which ensures that > the

Re: [FFmpeg-devel] [PATCH] libavfilter/vf_scale: Ensure scaled video is divisible by n

2019-08-09 Thread Lars Kiesow
Well… then, can anyone merge this patch? Best regards, Lars On Mon, 5 Aug 2019 14:31:43 +0200 Paul B Mahol wrote: > On Mon, Aug 5, 2019 at 1:31 PM Lars Kiesow wrote: > > > Hi everyone, > > this is now open for nearly a month with no more comments or change > > requests

[FFmpeg-devel] [PATCH] libavfilter/vf_scale: Ensure scaled video is divisible by n

2019-08-12 Thread Lars Kiesow
make sure that the calculated output resolution is divisible by n so in can be encoded with certain encoders/options if that is required. Signed-off-by: Lars Kiesow --- doc/filters.texi | 12 libavfilter/vf_scale.c | 15 ++- 2 files changed, 26 insertions(+), 1

Re: [FFmpeg-devel] [PATCH] libavfilter/vf_scale: Ensure scaled video is divisible by n

2019-08-12 Thread Lars Kiesow
Hi Michael, > > + if (scale->force_divisible_by > 1) { > > + w = ceil(w / (float)scale->force_divisible_by) * > > scale->force_divisible_by; > > + h = ceil(h / (float)scale->force_divisible_by) * > > scale->force_divisible_by; > > you dont need float

Re: [FFmpeg-devel] [PATCH] libavfilter/vf_scale: Ensure scaled video is divisible by n

2019-08-14 Thread Lars Kiesow
Hi Michael, > will apply Thanks. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH] libavfilter/af_showvolume: A Simple Audio Filter for Extracting Volume Information

2014-12-22 Thread Lars Kiesow
showvolume filter for generating waveform images with gnuplot. Please let me know if you think it makes sense to add this code to ffmpeg and/or if anything is still missing. Regards, Lars>From c7bd248165f1e331b3e205bff681e567d826c317 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Mon, 2

Re: [FFmpeg-devel] [PATCH] libavfilter/af_showvolume: A Simple Audio Filter for Extracting Volume Information

2014-12-22 Thread Lars Kiesow
think you could use volumedetect for generating waveform images. Regards, Lars On Mon, 22 Dec 2014 17:08:01 + Timothy Gu wrote: > On Mon Dec 22 2014 at 7:51:10 AM Lars Kiesow wrote: > > > Hi everyone, > > I'm an FFmpeg user for quite a while now and though I might

Re: [FFmpeg-devel] [PATCH] libavfilter/af_showvolume: A Simple Audio Filter for Extracting Volume Information

2014-12-22 Thread Lars Kiesow
er some testing. Regards, Lars On Mon, 22 Dec 2014 18:13:06 +0100 Clément Bœsch wrote: > On Mon, Dec 22, 2014 at 04:50:57PM +0100, Lars Kiesow wrote: > > Hi everyone, > > I'm an FFmpeg user for quite a while now and though I might as well > > switch to dev at some point

Re: [FFmpeg-devel] [PATCH] libavfilter/af_showvolume: A Simple Audio Filter for Extracting Volume Information

2014-12-23 Thread Lars Kiesow
Hi, I had a more detailed look at this and found a way to do exactly that, thanks for the hint. It's kind of an obvious approach if you think about it but sometimes one is just blind ;) I guess that makes this code/patch irrelevant for now. One question left is, if there is any interest in having

Re: [FFmpeg-devel] [PATCH] libavfilter/af_showvolume: A Simple Audio Filter for Extracting Volume Information

2014-12-23 Thread Lars Kiesow
Hi Stefano, my first idea was to have ffmpeg generate the image but you are right, that the unknown length is a problem. The only solution I could come up with was to have something like a two-pass encoding so that you know how many samples you have to deal with and in the second run generate the i

Re: [FFmpeg-devel] [PATCH] avfilter/showwaves: add single_pic option

2014-12-25 Thread Lars Kiesow
Hi Clément, this is the patch I was looking for... thanks! I've applied the patch against the current master and had a first glimps at it. It works well. I've tried it successfully on a two minute audio file as well as on a several hour long lecture recording. One thing I noticed was that with la

Re: [FFmpeg-devel] [PATCH] libavfilter/af_showvolume: A Simple Audio Filter for Extracting Volume Information

2014-12-25 Thread Lars Kiesow
On Fri, 26 Dec 2014 00:08:39 +0100 Stefano Sabatini wrote: > On date Wednesday 2014-12-24 00:51:26 +0100, Lars Kiesow encoded: > > Hi, > > I had a more detailed look at this and found a way to do exactly > > that, thanks for the hint. > > [...] > > > O