[FFmpeg-devel] [PATCH] lavc/hevc_parser: remove repeated profile/level settings

2021-01-29 Thread Linjie Fu
Since avctx->profile/level would be set in export_stream_params() in set_sps(), identical codes here seem to be redundant. Signed-off-by: Linjie Fu --- libavcodec/hevc_parser.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/hevc_parser.c b/libavcodec/hevc_parser.c in

[FFmpeg-devel] [PATCH 1/7] lavc/avcodec: Add FF_PROFILE_HEVC_SCC for screen content coding

2020-07-09 Thread Linjie Fu
Version bump would be added when upstreamed. Signed-off-by: Linjie Fu --- libavcodec/avcodec.h | 1 + libavcodec/hevc_ps.c | 2 ++ libavcodec/profiles.c | 1 + 3 files changed, 4 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index c91b2fd..32e4770 100644 --- a

[FFmpeg-devel] [PATCH 0/7] HEVC native support for Screen content coding

2020-07-09 Thread Linjie Fu
. [Request for comment]. Linjie Fu (7): lavc/avcodec: Add FF_PROFILE_HEVC_SCC for screen content coding lavc/hevc_ps: Add sps parse support for HEVC SCC extension syntax lavc/hevc_ps: Add pps parse support for hevc scc extension lavc/hevc_ps: Add slice parse support for HEVC SCC extension lavc

[FFmpeg-devel] [PATCH 4/7] lavc/hevc_ps: Add slice parse support for HEVC SCC extension

2020-07-09 Thread Linjie Fu
Signed-off-by: Linjie Fu --- libavcodec/hevcdec.c | 6 ++ libavcodec/hevcdec.h | 4 2 files changed, 10 insertions(+) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index e363e68..8194f18 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -800,6 +800,12 @@ static

[FFmpeg-devel] [PATCH 2/7] lavc/hevc_ps: Add sps parse support for HEVC SCC extension syntax

2020-07-09 Thread Linjie Fu
According to 7.3.2.2.3 in T-REC-H.265-201911. Signed-off-by: Linjie Fu --- libavcodec/hevc.h| 3 +++ libavcodec/hevc_ps.c | 32 +--- libavcodec/hevc_ps.h | 15 +++ 3 files changed, 47 insertions(+), 3 deletions(-) diff --git a/libavcodec/hevc.h b

[FFmpeg-devel] [PATCH 7/7] lavc/hevc: update reference list for SCC

2020-07-09 Thread Linjie Fu
Screen Content Coding allows P slice in an IDR frame, and would add frames themselves to the short term rps in RefList0 (8-10 in spec), hence some previous restricts are not suitable any more. [Request for comments]. Signed-off-by: Linjie Fu --- libavcodec/hevc_refs.c | 21

[FFmpeg-devel] [PATCH 6/7] lavc/hevcdec: Set max_num_merge_cand to uint8_t

2020-07-09 Thread Linjie Fu
uint8_t is big enough and keep consistent with the definition in cbs_h265.h. Signed-off-by: Linjie Fu --- libavcodec/hevcdec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hevcdec.h b/libavcodec/hevcdec.h index 1164af2..464eb7c 100644 --- a/libavcodec/hevcdec.h

[FFmpeg-devel] [PATCH 3/7] lavc/hevc_ps: Add pps parse support for hevc scc extension

2020-07-09 Thread Linjie Fu
Signed-off-by: Linjie Fu --- libavcodec/hevc_ps.c | 53 ++-- libavcodec/hevc_ps.h | 17 + 2 files changed, 68 insertions(+), 2 deletions(-) diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index 7610d3b..887b960 100644

[FFmpeg-devel] [PATCH 5/7] lavc/hevcdec: Fix the parsing for use_integer_mv_flag

2020-07-09 Thread Linjie Fu
According to 7.3.6.1, use_integer_mv_flag should be parsed if motion_vector_resolution_control_idc equals to 2. Otherwise wrong parameters in the subsequent parsing procedures would be got. Signed-off-by: Linjie Fu --- libavcodec/hevcdec.c | 8 libavcodec/hevcdec.h | 1 + 2 files

Re: [FFmpeg-devel] [PATCH 2/7] lavc/hevc_ps: Add sps parse support for HEVC SCC extension syntax

2020-07-09 Thread Linjie Fu
On Fri, Jul 10, 2020 at 12:54 AM James Almer wrote: > > On 7/9/2020 1:51 PM, James Almer wrote: > > On 7/9/2020 1:17 PM, Linjie Fu wrote: > >> According to 7.3.2.2.3 in T-REC-H.265-201911. > >> > >> Signed-off-by: Linjie Fu > >> --- > >>

Re: [FFmpeg-devel] [PATCH v2 1/4] lavc/vaapi_encode: add EQUAL_MULTI_ROWS support for slice structure

2020-07-19 Thread Linjie Fu
On Thu, Jun 18, 2020 at 1:36 PM Linjie Fu wrote: > > On Tue, May 12, 2020 at 9:49 PM Linjie Fu wrote: > > > > VA_ENC_SLICE_STRUCTURE_EQUAL_MULTI_ROWS is added to in the latest > > libva (1.8.0) which matches the hardware behaviour: > > > > /** \brief Driver s

[FFmpeg-devel] [PATCH] lavc/vaapi_encode: Add render target support for 422 10-bit

2020-07-20 Thread Linjie Fu
This enables VAAPI encoding support for 422 10-bit(Y210). Signed-off-by: Linjie Fu --- libavcodec/vaapi_encode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index 1de43cc..6766641 100644 --- a/libavcodec/vaapi_encode.c +++ b

Re: [FFmpeg-devel] [PATCH 4/4] vaapi_encode_h265: Enable 4:2:2 support

2020-07-20 Thread Linjie Fu
On Fri, May 15, 2020 at 3:21 PM Fu, Linjie wrote: > > > From: ffmpeg-devel On Behalf Of > > Mark Thompson > > Sent: Sunday, March 8, 2020 00:15 > > To: ffmpeg-devel@ffmpeg.org > > Subject: Re: [FFmpeg-devel] [PATCH 4/4] vaapi_encode_h265: Enable 4:2:2 > > support > > > > On 05/03/2020 02:49, Fu,

Re: [FFmpeg-devel] [PATCH 4/4] vaapi_encode_h265: Enable 4:2:2 support

2020-07-23 Thread Linjie Fu
On Mon, Jul 20, 2020 at 10:32 PM Linjie Fu wrote: > > On Fri, May 15, 2020 at 3:21 PM Fu, Linjie wrote: > > > > > From: ffmpeg-devel On Behalf Of > > > Mark Thompson > > > Sent: Sunday, March 8, 2020 00:15 > > > To: ffmpeg-devel@ffmpeg.

Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: support dynamic resolution change

2020-08-07 Thread Linjie Fu
On Fri, Aug 7, 2020 at 4:19 PM leozhang wrote: > > Allow dynamic resolution change, this is useful for real time video > communication application. > > Use below commands to test it, > ffmpeg -i reinit-large_420_8-to-small_420_8.h264 -noautoscale -c:v hevc_nvenc > out.265 -loglevel verbose -y >

Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: support dynamic resolution change

2020-08-08 Thread Linjie Fu
On Sat, Aug 8, 2020 at 7:21 PM Timo Rothenpieler wrote: > > On 08.08.2020 02:48, Linjie Fu wrote: > > On Fri, Aug 7, 2020 at 4:19 PM leozhang wrote: > >> > >> Allow dynamic resolution change, this is useful for real time video > >> communication applicatio

[FFmpeg-devel] [PATCH] lavu/hwcontext_qsv: add 10-bit RGB support for QSV

2020-08-08 Thread Linjie Fu
After adding a copy pass through path inside MSDK, x2rgb10 is now available as an output of VPP. Command line for CSC: ffmpeg -hwaccel qsv -v verbose -c:v hevc_qsv -i p010.h265 -vf scale_qsv=format=x2rgb10,hwdownload,format=x2rgb10 -vframes 1 out.yuv Signed-off-by: Linjie Fu --- [1

Re: [FFmpeg-devel] [PATCH] lavu/hwcontext_qsv: add 10-bit RGB support for QSV

2020-08-09 Thread Linjie Fu
On Mon, Aug 10, 2020 at 4:31 AM Mark Thompson wrote: > > On 09/08/2020 06:11, Linjie Fu wrote: > > After adding a copy pass through path inside MSDK, x2rgb10 is now > > available as an output of VPP. > > > > Command line for CSC: > > ffmpeg -hwaccel qsv -v ve

Re: [FFmpeg-devel] [PATCH] fix memory leak in qsvenc.c

2020-08-14 Thread Linjie Fu
On Thu, Aug 13, 2020 at 10:15 AM Alex Pokotilo wrote: > > > ___ > 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

Re: [FFmpeg-devel] [PATCH v2 2/3] vaapi_encode: Rewrite slice/tile support

2020-08-14 Thread Linjie Fu
On Fri, Aug 14, 2020 at 5:51 AM Mark Thompson wrote: > > This precalculates all of the information we will need to define slice > and tile positions at init time rather than rebuilding some of it with > every slice. The control of tiles is generalised to match slices, so that > arbitrary tile and

[FFmpeg-devel] [PATCH, RFC] lavc/hevcdec: add invalid for skip_frame to skip invalid nalus before IRAP

2020-08-14 Thread Linjie Fu
ld in time. [1] https://github.com/intel/media-driver/issues/992 Signed-off-by: Linjie Fu --- Request for comments: The purpose is to allow decoder to skip frames until an IRAP has arrived, however not sure whether we already had this in ffmpeg, hence submit a patch and request for comments. Skip

[FFmpeg-devel] [PATCH] lavf/mux: allow unofficial extension by default for spatial data in mp4

2020-08-27 Thread Linjie Fu
r uses streamcopy to get the same bitstreams. Spatial data missing in containers seems to cause troubles for the players like VLC while detecting the projection type for 360 video. Set the default value of "strict" to "unofficial" for mp4. Signed-off-by: Linjie Fu --- I would pr

Re: [FFmpeg-devel] [PATCH] lavf/mux: allow unofficial extension by default for spatial data in mp4

2020-08-27 Thread Linjie Fu
Hi, On Fri, Aug 28, 2020 at 8:46 AM Andreas Rheinhardt wrote: > > Linjie Fu: > > Mp4 unofficial extension allows Stereo3D and Spherical Mapping data > > in header if users explicitly set "-strict unofficial" or values less > > than "-1". > > &

Re: [FFmpeg-devel] [PATCH] lavf/mux: allow unofficial extension by default for spatial data in mp4

2020-08-27 Thread Linjie Fu
On Fri, Aug 28, 2020 at 11:18 AM Linjie Fu wrote: > > Hi, > > On Fri, Aug 28, 2020 at 8:46 AM Andreas Rheinhardt > wrote: > > > > Linjie Fu: > > > Mp4 unofficial extension allows Stereo3D and Spherical Mapping data > > > in header if users expli

Re: [FFmpeg-devel] [PATCH] lavc/vaapi_encode_h265: fix max_transform_hierarchy_depth_inter/intra

2020-09-03 Thread Linjie Fu
> > Subject: Re: [FFmpeg-devel] [PATCH] lavc/vaapi_encode_h265: fix > > > max_transform_hierarchy_depth_inter/intra > > > > > > On 13/04/2020 05:32, Linjie Fu wrote: > > > > Set the max_transform_hierarchy_depth_inter/intra to 2 by default > > > > b

[FFmpeg-devel] [PATCH] avcodec/h264_mp4toannexb_bsf: add No IDR frame situation

2018-08-14 Thread Linjie Fu
Fix the live stream encoding problem using qsv when the first frame is not an IDR frame. Add the extradata information when the IDR frame is missing in the first GOP. Fixes the bug reported in ticket #6418. Signed-off-by: Linjie Fu --- libavcodec/h264_mp4toannexb_bsf.c | 13 - 1

[FFmpeg-devel] [PATCH V2] avcodec/h264_mp4toannexb_bsf: add No IDR frame situation

2018-08-16 Thread Linjie Fu
Fix the live stream encoding problem using qsv when the first frame is not an IDR frame. Add the extradata information when the IDR frame is missing in the first GOP. Fix the bug reported in ticket #6418. [PATCH V2] Fix the coding style. Signed-off-by: Linjie Fu --- libavcodec

Re: [FFmpeg-devel] [PATCH] libavcodec/hevc_mp4toannexb_bsf: update the extradata in codec par if change detected

2021-12-05 Thread Linjie Fu
Andreas: On Sun, Dec 5, 2021 at 7:34 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Linjie Fu: > > From: Linjie Fu > > > > Container may support multiple sample descriptions in a single > > bitstream, like multiple stsd in mov, which introdu

Re: [FFmpeg-devel] [PATCH 2/2] avdevice/libopenh264dec: Increase array sizes, fix stack-buffer overread

2021-12-06 Thread Linjie Fu
On Mon, Dec 6, 2021 at 7:37 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > av_image_copy() expects an array of four pointers and linesizes > according to its declaration; it currently only pointers that are > actually in use (depending upon the pixel format), but this might > cha

[FFmpeg-devel] [PATCH v2 1/4] FATE: Update test refs for scale used in filter complex

2021-08-02 Thread Linjie Fu
From: Linjie Fu Since we prefer to use bicubic flags for scale filter to keep pace with swscale. Signed-off-by: Linjie Fu --- tests/ref/fate/filter-scale2ref_keep_aspect | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/ref/fate/filter-scale2ref_keep_aspect

[FFmpeg-devel] [PATCH v2 2/4] lavfi/vf_scale: use single default swscale flags for simple and complex filter graph

2021-08-02 Thread Linjie Fu
From: Linjie Fu Currently the default swscale flags for simple filter graph is bicubic, however for complex filter graph it uses bilinear as decleared in scale filter. $ffmpeg -v verbose -i input.mp4 -vf format=yuv420p,scale=800x600 -an -f null - [Parsed_scale_1 @ 0x7f86d2c160c0] w:1920 h:1080

[FFmpeg-devel] [PATCH v2 3/4] libswscale/utils: simplify the default scaler logic

2021-08-02 Thread Linjie Fu
From: Linjie Fu Signed-off-by: Linjie Fu --- libswscale/utils.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libswscale/utils.c b/libswscale/utils.c index 176fc6fd63..dea3b76eb3 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1250,12 +1250,7 @@ av_cold

[FFmpeg-devel] [PATCH v2 4/4] fftools/cmdutils: pass sws_flags to scale filter in simple filter graph

2021-08-02 Thread Linjie Fu
From: Linjie Fu Pass sws_flags to scale filter through scale_sws_opts and correct the dumped flags information. CMD: $ffmpeg -v verbose -i input.mp4 -sws_flags lanczos+bitexact+accurate_rnd \ -vf format=yuv420p,scale=800x600 -an -vframes 10 -f md5 - Before: [auto_scaler_0

Re: [FFmpeg-devel] [PATCH v2 1/4] FATE: Update test refs for scale used in filter complex

2021-08-02 Thread Linjie Fu
Hi Andreas, On Tue, Aug 3, 2021 at 12:50 AM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Linjie Fu: > > From: Linjie Fu > > > > Since we prefer to use bicubic flags for scale filter to keep pace with > > swscale. > > > > Signed-o

Re: [FFmpeg-devel] [PATCH 1/2] fftools/cmdutils: make the default swscale flags identical for simple and complex filter graph

2021-08-02 Thread Linjie Fu
On Tue, Aug 3, 2021 at 12:48 AM Michael Niedermayer wrote: > On Sun, Aug 01, 2021 at 04:08:17PM +0200, Nicolas George wrote: > > Linjie Fu (12021-08-01): > > > Checked swscale, it uses bicubic by default. > > > Scale filter sets the flags to bilinear if sws_sca

Re: [FFmpeg-devel] [PATCH v1] avfilter/vf_vpp_qsv: add scale mode option

2021-08-03 Thread Linjie Fu
On Wed, Mar 24, 2021 at 2:15 PM Wang, Fei W wrote: > On Mon, 2021-03-22 at 20:12 +0800, Linjie Fu wrote: > > On Wed, Feb 24, 2021 at 9:44 AM Fei Wang > > wrote: > > > > > > The option allow user to set diffenent scaling mode from > > > auto/low-po

[FFmpeg-devel] [PATCH v3 1/2] lavfi/vf_scale: use default swscale flags for simple and complex filter graph

2021-08-03 Thread Linjie Fu
From: Linjie Fu Currently the default swscale flags for simple filter graph is bicubic, however for complex filter graph it uses bilinear as decleared in scale filter. $ffmpeg -v verbose -i input.mp4 -vf format=yuv420p,scale=800x600 -an -f null - [Parsed_scale_1 @ 0x7f86d2c160c0] w:1920 h:1080

[FFmpeg-devel] [PATCH v3 2/2] fftools/ffmpeg_filter: fix the flags parsing for scaler

2021-08-03 Thread Linjie Fu
From: Linjie Fu Scaler relys on "-sws_flags" option to pass the flags to swscale and scale filter. Currently passing "sws_flags=xxx" as a filter option to scaler leads to an incorrect option parsing. Check and change the string to "flags=xxx" and dumpe

Re: [FFmpeg-devel] [PATCH v2 3/4] libswscale/utils: simplify the default scaler logic

2021-08-03 Thread Linjie Fu
On Tue, Aug 3, 2021 at 1:02 AM Nicolas George wrote: > Linjie Fu (12021-08-03): > > From: Linjie Fu > > > > Signed-off-by: Linjie Fu > > --- > > libswscale/utils.c | 7 +-- > > 1 file changed, 1 insertion(+), 6 deletions(-) > > Nack. The origi

Re: [FFmpeg-devel] [PATCH v2 4/4] fftools/cmdutils: pass sws_flags to scale filter in simple filter graph

2021-08-03 Thread Linjie Fu
On Tue, Aug 3, 2021 at 1:07 AM Nicolas George wrote: > Linjie Fu (12021-08-03): > > From: Linjie Fu > > > > Pass sws_flags to scale filter through scale_sws_opts and correct the > > dumped flags information. > > > > CMD: > > $ffmpeg -v ver

Re: [FFmpeg-devel] [PATCH v1] avfilter/vf_vpp_qsv: add scale mode option

2021-08-03 Thread Linjie Fu
Hi Andreas,On Wed, Aug 4, 2021 at 8:30 AM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Linjie Fu: > > On Wed, Mar 24, 2021 at 2:15 PM Wang, Fei W > wrote: > > > >> On Mon, 2021-03-22 at 20:12 +0800, Linjie Fu wrote: > >>> On Wed,

Re: [FFmpeg-devel] [PATCH v3 1/2] lavfi/vf_scale: use default swscale flags for simple and complex filter graph

2021-08-04 Thread Linjie Fu
On Wed, Aug 4, 2021 at 7:03 PM Nicolas George wrote: > Linjie Fu (12021-08-04): > > From: Linjie Fu > > > > Currently the default swscale flags for simple filter graph is bicubic, > > however for complex filter graph it uses bilinear as decleared in scale > > f

[FFmpeg-devel] [PATCH v4 2/3] fftools: Don't set default swscale flags in ffmpeg/ffprobe/ffplay

2021-08-04 Thread Linjie Fu
From: Linjie Fu Signed-off-by: Linjie Fu --- fftools/cmdutils.c | 8 fftools/ffplay.c | 2 -- fftools/ffprobe.c | 1 - 3 files changed, 11 deletions(-) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index 0b1ef03a25..912e881174 100644 --- a/fftools/cmdutils.c +++ b/fftools

[FFmpeg-devel] [PATCH v4 1/3] lavfi/vf_scale: use default swscale flags for scaler

2021-08-04 Thread Linjie Fu
rently) for scale filter. - Remove flags="bilinear" from vf_scale - Update the FATE refs Signed-off-by: Linjie Fu --- libavfilter/vf_scale.c | 4 ++-- tests/ref/fate/filter-scale2ref_keep_aspect | 10 +- 2 files changed, 7 insertions(+), 7 deletions(

[FFmpeg-devel] [PATCH v4 3/3] fftools/ffmpeg_filter: fix the flags parsing for scaler

2021-08-04 Thread Linjie Fu
From: Linjie Fu Scaler relys on "-sws_flags" option to pass the flags to swscale and scale filter. Currently passing "sws_flags=xxx" as a filter option to scaler leads to an incorrect option parsing. Check and change the string to "flags=xxx" and dumpe

Re: [FFmpeg-devel] [PATCH v3 1/2] lavfi/vf_scale: use default swscale flags for simple and complex filter graph

2021-08-04 Thread Linjie Fu
On Thu, Aug 5, 2021 at 2:22 AM Nicolas George wrote: > Linjie Fu (12021-08-05): > > > > -if (scale->flags_str) { > > > > +if (*scale->flags_str) { > > > It could still be NULL, IIRC. > > sws_flags doesn't have a candidate for &qu

Re: [FFmpeg-devel] [FFmpeg-cvslog] fftools: Don't set default swscale flags in ffmpeg/ffprobe/ffplay

2021-08-05 Thread Linjie Fu
On Thu, Aug 5, 2021 at 10:32 PM Nicolas George wrote: > Linjie Fu (12021-08-05): > > ffmpeg | branch: master | Linjie Fu | Thu > Aug 5 00:37:29 2021 +0800| [5b0e6b0d82dfcc5c6b999e2678b52b0cff38ae0a] | > committer: Linjie Fu > > > > fftools: Don't set default

Re: [FFmpeg-devel] fftools: Don't set default swscale flags in ffmpeg/ffprobe/ffplay

2021-08-05 Thread Linjie Fu
On Thu, Aug 5, 2021 at 10:54 PM Nicolas George wrote: > Linjie Fu (12021-08-05): > > This initials from your review comments to remove setting defaults in > > ffmpeg (etc) and use the default flags in swscale, > > and I didn't see objections at least till now. Did I mis

Re: [FFmpeg-devel] fftools: Don't set default swscale flags in ffmpeg/ffprobe/ffplay

2021-08-05 Thread Linjie Fu
On Thu, Aug 5, 2021 at 11:22 PM Nicolas George wrote: > Linjie Fu (12021-08-05): > > Where is supposed to be the right placement? > > In the commit that makes the results change. > > Just do this: checkout the first commit, build, run FATE. Does it pass? > Double conf

[FFmpeg-devel] [PATCH 1/3] Revert "fftools/ffmpeg_filter: fix the flags parsing for scaler"

2021-08-07 Thread Linjie Fu
From: Linjie Fu This reverts commit b3a0548a981db52911dd34d9de254c4fee0a8f79. This breaks the usage of swscale options, scale_sws_opts should be passed to auto-inserted scale-filters. The auto-inserted scaler accepts sws_flags in filtergraph complex which overrides the 'flags'

[FFmpeg-devel] [PATCH 2/3] lavfi/vf_scale: dump the exact swscale_options to passed to libswscale

2021-08-07 Thread Linjie Fu
From: Linjie Fu Printed verbose log doesn't match the sws_flags specified in the cmdline for simple filter graph. ffmpeg .. -sws_flags bicubic .. [auto_scaler_0] w:iw h:ih flags:'' interl:0 [auto_scaler_0] w:310 h:449 fmt:yuva420p sar:0/1 -> w:310 h:449 fmt:yuv420p

[FFmpeg-devel] [PATCH 3/3] libavfilter/graphparser: Add scale_sws_opts parse support in avfilter_graph_parse2

2021-08-07 Thread Linjie Fu
From: Linjie Fu To pass the swscale options for the inserted scalers. ffmpeg -i input.mp4 -filter_complex \ "scale_sws_opts=alphablend=checkerboard;format=nv12" \ -t 0.5 output.mp4 Update docs. Signed-off-by: Linjie Fu --- doc/filters.texi | 7 --- l

Re: [FFmpeg-devel] [FFmpeg-cvslog] fftools/ffmpeg_filter: fix the flags parsing for scaler

2021-08-07 Thread Linjie Fu
On Sat, Aug 7, 2021 at 2:33 AM Michael Niedermayer wrote: > On Thu, Aug 05, 2021 at 02:30:32PM +0000, Linjie Fu wrote: > > ffmpeg | branch: master | Linjie Fu | Sun > Aug 1 18:58:19 2021 +0800| [b3a0548a981db52911dd34d9de254c4fee0a8f79] | > committer: Linjie Fu > > >

Re: [FFmpeg-devel] [PATCH 3/3] libavfilter/graphparser: Add scale_sws_opts parse support in avfilter_graph_parse2

2021-08-08 Thread Linjie Fu
Andreas: On Sat, Aug 7, 2021 at 9:52 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Linjie Fu: > > From: Linjie Fu > > > > To pass the swscale options for the inserted scalers. > > > > ffmpeg -i input.mp4 -filter_complex \ > > &

Re: [FFmpeg-devel] [PATCH 2/3] lavfi/vf_scale: dump the exact swscale_options to passed to libswscale

2021-08-08 Thread Linjie Fu
On Sat, Aug 7, 2021 at 9:12 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Linjie Fu: > > From: Linjie Fu > > > > Printed verbose log doesn't match the sws_flags specified in the cmdline > > for simple filter graph. > > > > f

[FFmpeg-devel] [PATCH v2 1/2] lavfi/vf_scale: dump the exact swscale_options to passed to libswscale

2021-08-09 Thread Linjie Fu
From: Linjie Fu Printed verbose log doesn't match the sws_flags specified in the cmdline for simple filter graph. ffmpeg .. -sws_flags bicubic .. [auto_scaler_0] w:iw h:ih flags:'' interl:0 [auto_scaler_0] w:310 h:449 fmt:yuva420p sar:0/1 -> w:310 h:449 fmt:yuv420p

[FFmpeg-devel] [PATCH v2 2/2] libavfilter/graphparser: Add scale_sws_opts parse support in avfilter_graph_parse2

2021-08-09 Thread Linjie Fu
From: Linjie Fu To pass the swscale options for the inserted scalers. ffmpeg -i input.mp4 -filter_complex \ "scale_sws_opts=alphablend=checkerboard;format=nv12" \ -t 0.5 output.mp4 Update docs. Signed-off-by: Linjie Fu --- doc/filters.texi | 7 --- l

Re: [FFmpeg-devel] [PATCH 1/3] Revert "fftools/ffmpeg_filter: fix the flags parsing for scaler"

2021-08-30 Thread Linjie Fu
On Sat, Aug 28, 2021 at 4:45 AM Michael Niedermayer wrote: > On Sat, Aug 07, 2021 at 09:33:27PM +0200, Michael Niedermayer wrote: > > On Sat, Aug 07, 2021 at 06:15:05PM +0800, Linjie Fu wrote: > > > From: Linjie Fu > > > > > > This reverts commit b3a0

[FFmpeg-devel] [PATCH] libavfilter/vf_pad: Try round up w/h for odd resolution to avoid failure

2022-05-01 Thread Linjie Fu
d data for stream #0:0 Conversion failed! After: Try to Round up for odd resolution (1241x1234 -> 1242x1240) Stream #0:0(und): Video: wrapped_avframe, yuv420p(tv, progressive), 1242x1240 Signed-off-by: Linjie Fu --- libavfilter/vf_pad.c | 11 --- 1 file changed, 8 insertions(+), 3 d

[FFmpeg-devel] [PATCH] avfilter/vf_overlay: Fix the calculation of average alpha with alpha composition and threads > 1

2022-05-02 Thread Linjie Fu
arena];[arena][0:v]overlay" \ -vframes 10 -an -f md5 - Before: Incorrect output and changed MD5 at each run. After this patch: Consistent output and MD5. Signed-off-by: Linjie Fu --- [RFC]This is a partial fix. A fully-fixed method may be don&#

<    1   2   3   4   5