[FFmpeg-devel] [PATCH] lavfi/vf_fieldmatch: keep fields as-is if not matched properly

2022-11-03 Thread mail
Makes it possible to use deinterlacers which output one frame for each field as fallback if field matching fails (combmatch=full). Currently, the documented example with fallback on a post-deinterlacer will only work in case the deinterlacer outputs one frame per first field (as yadif=mode=0). T

Re: [FFmpeg-devel] [PATCH] lavfi/vf_fieldmatch: keep fields as-is if not matched properly

2022-11-04 Thread mail
This is reproducible using for example https://samples.ffmpeg.org/MPEG2/interlaced/burosch1.mpg ffmpeg -i burosch1.mpg -map 0:v -c:v libx264 -vf fieldmatch=combmatch=full,yadif=mode=1:deint=interlaced -preset veryfast -crf 10 burosch1.mp4 The end result will be in 50p and without the patch random

[FFmpeg-devel] [PATCH] lavfi/vf_decimate: add mixed option to process input only partially to be decimated

2022-11-09 Thread mail
Enabling the option will only decimate frames below dupthresh and output at variable frame rate. Signed-off-by: lovesyk --- libavfilter/vf_decimate.c | 42 +-- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/libavfilter/vf_decimate.c b/libavfil

Re: [FFmpeg-devel] [PATCH] lavfi/vf_decimate: add mixed option to process input only partially to be decimated

2022-11-09 Thread mail
The purpose of this new option is to enable processing of mixed content such as TV recordings or even movies which have some cuts in telecined 24fps and others in 30p. Enabling it (mixed=1) will calculate a common timebase between decimated and non-decimated content and set frame duration accordin

[FFmpeg-devel] [PATCH] avcodec: Use preprocessors conditions

2023-01-17 Thread pawday-at-mail . ru
From: Pawday --- libavcodec/avcodec.c | 13 + libavcodec/decode.c | 5 +++-- libavcodec/encode.c | 8 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/libavcodec/avcodec.c b/libavcodec/avcodec.c index a85d3c2309..1e24bdf333 100644 --- a/libavcodec/avcodec

[FFmpeg-devel] [PATCH] avcodec: Use preprocessors conditions

2023-01-17 Thread pawday-at-mail . ru
From: Pawday Thank you Andreas Rheinhardt for review Here the fixes for runtime "else" conditions --- libavcodec/avcodec.c | 16 +++- libavcodec/decode.c | 11 --- libavcodec/encode.c | 13 - libavcodec/h264dec.c | 14 +++--- 4 files changed, 34 insert

[FFmpeg-devel] [PATCH] avcodec: Use preprocessors conditions

2023-01-17 Thread pawday-at-mail . ru
From: Pawday Thank you for showing me logic substitution issues. So, if you curious i am trying to substitute calling thread depending functions for unuptimized compiler where dead code illumination is not working and it couse linking error on my microcontroller toolchain without any thread mod