diff mbox series

[FFmpeg-devel,v4,3/3] tests/fate/flvenc: add av1 in enhanced flv test case

Message ID 20230720110002.18539-4-lq@chinaffmpeg.org
State New
Headers show
Series Add test cases of hevc, vp9, av1 in enhanced flv | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 fail Make fate failed

Commit Message

Liu Steven July 20, 2023, 11 a.m. UTC
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 tests/fate/flvenc.mak           |  4 ++++
 tests/ref/fate/enhanced-flv-av1 | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)
 create mode 100644 tests/ref/fate/enhanced-flv-av1

Comments

Michael Niedermayer July 20, 2023, 9:51 p.m. UTC | #1
On Thu, Jul 20, 2023 at 07:00:02PM +0800, Steven Liu wrote:
> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
> ---
>  tests/fate/flvenc.mak           |  4 ++++
>  tests/ref/fate/enhanced-flv-av1 | 32 ++++++++++++++++++++++++++++++++
>  2 files changed, 36 insertions(+)
>  create mode 100644 tests/ref/fate/enhanced-flv-av1
> 
> diff --git a/tests/fate/flvenc.mak b/tests/fate/flvenc.mak
> index 87a1093136..bfb7faf726 100644
> --- a/tests/fate/flvenc.mak
> +++ b/tests/fate/flvenc.mak
> @@ -9,6 +9,10 @@ FATE_ENHANCED_FLVENC_FFMPEG-$(call TRANSCODE, RAWVIDEO VP9, FLV IVF, VP9_PARSER)
>  fate-enhanced-flv-vp9: CMD = transcode ivf $(TARGET_SAMPLES)/vp9-test-vectors/vp90-2-05-resize.ivf\
>  		flv "-c copy" "-c copy"
>  
> +FATE_ENHANCED_FLVENC_FFMPEG-$(call TRANSCODE, RAWVIDEO AV1, FLV IVF, AV1_PARSER) += fate-enhanced-flv-av1
> +fate-enhanced-flv-av1: CMD = transcode ivf $(TARGET_SAMPLES)/av1/decode_model.ivf\
> +		flv "-c copy" "-c copy"
> +
>  FATE_FFMPEG_FFPROBE += $(FATE_FLVENC_FFMPEG_FFPROBE-yes)
>  FATE_SAMPLES_FFMPEG += $(FATE_ENHANCED_FLVENC_FFMPEG-yes)
>  fate-flvenc: $(FATE_FLVENC_FFMPEG_FFPROBE-yes) $(FATE_ENHANCED_FLVENC_FFMPEG-yes)

does this depend on any other patches ?
if not it seems failing here:

--- ./tests/ref/fate/enhanced-flv-av1	2023-07-20 23:27:26.197002114 +0200
+++ tests/data/fate/enhanced-flv-av1	2023-07-20 23:42:54.419017533 +0200
@@ -1,5 +1,5 @@
-b40c54b7a26854fd3a4da13dcbba37a3 *tests/data/fate/enhanced-flv-av1.flv
-22742 tests/data/fate/enhanced-flv-av1.flv
+a59158ac59815ab6c014383e23b2b792 *tests/data/fate/enhanced-flv-av1.flv
+22762 tests/data/fate/enhanced-flv-av1.flv
 #extradata 0:       35, 0x527207cd
 #tb 0: 1/1000
 #media_type 0: video
Test enhanced-flv-av1 failed. Look at tests/data/fate/enhanced-flv-av1.err for details.
tests/Makefile:307: recipe for target 'fate-enhanced-flv-av1' failed
make: *** [fate-enhanced-flv-av1] Error 1


[...]
Steven Liu July 21, 2023, 7:54 a.m. UTC | #2
Michael Niedermayer <michael@niedermayer.cc> 于2023年7月21日周五 05:51写道:
>
> On Thu, Jul 20, 2023 at 07:00:02PM +0800, Steven Liu wrote:
> > Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
> > ---
> >  tests/fate/flvenc.mak           |  4 ++++
> >  tests/ref/fate/enhanced-flv-av1 | 32 ++++++++++++++++++++++++++++++++
> >  2 files changed, 36 insertions(+)
> >  create mode 100644 tests/ref/fate/enhanced-flv-av1
> >
> > diff --git a/tests/fate/flvenc.mak b/tests/fate/flvenc.mak
> > index 87a1093136..bfb7faf726 100644
> > --- a/tests/fate/flvenc.mak
> > +++ b/tests/fate/flvenc.mak
> > @@ -9,6 +9,10 @@ FATE_ENHANCED_FLVENC_FFMPEG-$(call TRANSCODE, RAWVIDEO VP9, FLV IVF, VP9_PARSER)
> >  fate-enhanced-flv-vp9: CMD = transcode ivf $(TARGET_SAMPLES)/vp9-test-vectors/vp90-2-05-resize.ivf\
> >               flv "-c copy" "-c copy"
> >
> > +FATE_ENHANCED_FLVENC_FFMPEG-$(call TRANSCODE, RAWVIDEO AV1, FLV IVF, AV1_PARSER) += fate-enhanced-flv-av1
> > +fate-enhanced-flv-av1: CMD = transcode ivf $(TARGET_SAMPLES)/av1/decode_model.ivf\
> > +             flv "-c copy" "-c copy"
> > +
> >  FATE_FFMPEG_FFPROBE += $(FATE_FLVENC_FFMPEG_FFPROBE-yes)
> >  FATE_SAMPLES_FFMPEG += $(FATE_ENHANCED_FLVENC_FFMPEG-yes)
> >  fate-flvenc: $(FATE_FLVENC_FFMPEG_FFPROBE-yes) $(FATE_ENHANCED_FLVENC_FFMPEG-yes)
>
> does this depend on any other patches ?
> if not it seems failing here:
>
> --- ./tests/ref/fate/enhanced-flv-av1   2023-07-20 23:27:26.197002114 +0200
> +++ tests/data/fate/enhanced-flv-av1    2023-07-20 23:42:54.419017533 +0200
> @@ -1,5 +1,5 @@
> -b40c54b7a26854fd3a4da13dcbba37a3 *tests/data/fate/enhanced-flv-av1.flv
> -22742 tests/data/fate/enhanced-flv-av1.flv
> +a59158ac59815ab6c014383e23b2b792 *tests/data/fate/enhanced-flv-av1.flv
> +22762 tests/data/fate/enhanced-flv-av1.flv
>  #extradata 0:       35, 0x527207cd
>  #tb 0: 1/1000
>  #media_type 0: video
> Test enhanced-flv-av1 failed. Look at tests/data/fate/enhanced-flv-av1.err for details.
> tests/Makefile:307: recipe for target 'fate-enhanced-flv-av1' failed
> make: *** [fate-enhanced-flv-av1] Error 1

I cannot sure how to fix it:


if i --enable-libaom

ffmpeg version N-111514-gc101490aa9 Copyright (c) 2000-2023 the FFmpeg
developers
  built with Apple clang version 14.0.3 (clang-1403.0.22.14.1)
  configuration: --prefix=/usr/local/ --libdir=/usr/local/lib/
--cc=clang --enable-htmlpages --enable-libx264 --enable-gpl
--extra-cflags='-I/usr/local/include/GraphicsMagick/
-I/usr/local/opt/openssl/include/ -O0 -g3 -fsanitize=address
-Wno-error -fPIC -I/usr/local/include -fno-omit-frame-pointer'
--extra-ldflags='-O0 -g3 -fsanitize=address -fno-omit-frame-pointer
-Wno-error -fPIC -L/usr/local/lib -L/usr/local/opt/openssl/lib -lpng'
--enable-libfreetype --enable-fontconfig --enable-libspeex
--enable-libopus --enable-libzmq --enable-libx265 --enable-libass
--enable-videotoolbox --disable-optimizations --enable-audiotoolbox
--enable-opengl --disable-stripping --samples=../../fate-suite/
--enable-encoder=hevc_videotoolbox --enable-hwaccel=hevc_videotoolbox
--enable-hwaccel=h264_videotoolbox --enable-openssl --enable-nonfree
--disable-shared --enable-libfdk_aac --enable-libxml2
--enable-libmp3lame --enable-lcms2 --enable-libwebp --enable-libvpx
--enable-libaom
  libavutil      58. 14.100 / 58. 14.100
  libavcodec     60. 22.100 / 60. 22.100
  libavformat    60. 10.100 / 60. 10.100
  libavdevice    60.  2.101 / 60.  2.101
  libavfilter     9.  8.102 /  9.  8.102
  libswscale      7.  3.100 /  7.  3.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
[libaom-av1 @ 0x619000025880] 3.2.0-393-g402e264b9
Input #0, ivf, from
'/Users/liuqi/multimedia/upstream_ffmpeg/ufbuild/../../fate-suite//av1/seq_hdr_op_param_info.ivf':
  Duration: 00:00:02.67, start: 0.000000, bitrate: 256 kb/s
  Stream #0:0: Video: av1 (Main) (AV01 / 0x31305641), yuv420p(tv),
320x176 [SAR 1:1 DAR 20:11], 23.98 tbr, 23.98 tbn
At least one output file must be specified



if i don't enable-libaom


ffmpeg version N-111514-gc101490aa9 Copyright (c) 2000-2023 the FFmpeg
developers
  built with Apple clang version 14.0.3 (clang-1403.0.22.14.1)
  configuration: --prefix=/usr/local/ --libdir=/usr/local/lib/
--cc=clang --enable-htmlpages --enable-libx264 --enable-gpl
--extra-cflags='-I/usr/local/include/GraphicsMagick/
-I/usr/local/opt/openssl/include/ -O0 -g3 -fsanitize=address
-Wno-error -fPIC -I/usr/local/include -fno-omit-frame-pointer'
--extra-ldflags='-O0 -g3 -fsanitize=address -fno-omit-frame-pointer
-Wno-error -fPIC -L/usr/local/lib -L/usr/local/opt/openssl/lib -lpng'
--enable-libfreetype --enable-fontconfig --enable-libspeex
--enable-libopus --enable-libzmq --enable-libx265 --enable-libass
--enable-videotoolbox --disable-optimizations --enable-audiotoolbox
--enable-opengl --disable-stripping --samples=../../fate-suite/
--enable-encoder=hevc_videotoolbox --enable-hwaccel=hevc_videotoolbox
--enable-hwaccel=h264_videotoolbox --enable-openssl --enable-nonfree
--disable-shared --enable-libfdk_aac --enable-libxml2
--enable-libmp3lame --enable-lcms2 --enable-libwebp --enable-libvpx
  libavutil      58. 14.100 / 58. 14.100
  libavcodec     60. 22.100 / 60. 22.100
  libavformat    60. 10.100 / 60. 10.100
  libavdevice    60.  2.101 / 60.  2.101
  libavfilter     9.  8.102 /  9.  8.102
  libswscale      7.  3.100 /  7.  3.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[av1 @ 0x619000025880] Your platform doesn't support hardware
accelerated AV1 decoding.
[av1 @ 0x619000025880] Failed to get pixel format.
[ivf @ 0x617000000080] Could not find codec parameters for stream 0
(Video: av1 (Main) (AV01 / 0x31305641), none(tv), 320x176 [SAR 1:1 DAR
20:11]): unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and
'probesize' (5000000) options
Input #0, ivf, from
'/Users/liuqi/multimedia/upstream_ffmpeg/noaom/../../fate-suite//av1/seq_hdr_op_param_info.ivf':
  Duration: 00:00:02.67, start: 0.000000, bitrate: 256 kb/s
  Stream #0:0: Video: av1 (Main) (AV01 / 0x31305641), none(tv),
320x176 [SAR 1:1 DAR 20:11], 23.98 fps, 23.98 tbr, 23.98 tbn
At least one output file must be specified




should i make depend LIBAOM?


>
>
> [...]
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> The bravest are surely those who have the clearest vision
> of what is before them, glory and danger alike, and yet
> notwithstanding go out to meet it. -- Thucydides
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
Steven Liu July 21, 2023, 8:14 a.m. UTC | #3
Steven Liu <lingjiujianke@gmail.com> 于2023年7月21日周五 15:54写道:
>
> Michael Niedermayer <michael@niedermayer.cc> 于2023年7月21日周五 05:51写道:
> >
> > On Thu, Jul 20, 2023 at 07:00:02PM +0800, Steven Liu wrote:
> > > Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
> > > ---
> > >  tests/fate/flvenc.mak           |  4 ++++
> > >  tests/ref/fate/enhanced-flv-av1 | 32 ++++++++++++++++++++++++++++++++
> > >  2 files changed, 36 insertions(+)
> > >  create mode 100644 tests/ref/fate/enhanced-flv-av1
> > >
> > > diff --git a/tests/fate/flvenc.mak b/tests/fate/flvenc.mak
> > > index 87a1093136..bfb7faf726 100644
> > > --- a/tests/fate/flvenc.mak
> > > +++ b/tests/fate/flvenc.mak
> > > @@ -9,6 +9,10 @@ FATE_ENHANCED_FLVENC_FFMPEG-$(call TRANSCODE, RAWVIDEO VP9, FLV IVF, VP9_PARSER)
> > >  fate-enhanced-flv-vp9: CMD = transcode ivf $(TARGET_SAMPLES)/vp9-test-vectors/vp90-2-05-resize.ivf\
> > >               flv "-c copy" "-c copy"
> > >
> > > +FATE_ENHANCED_FLVENC_FFMPEG-$(call TRANSCODE, RAWVIDEO AV1, FLV IVF, AV1_PARSER) += fate-enhanced-flv-av1
> > > +fate-enhanced-flv-av1: CMD = transcode ivf $(TARGET_SAMPLES)/av1/decode_model.ivf\
> > > +             flv "-c copy" "-c copy"
> > > +
> > >  FATE_FFMPEG_FFPROBE += $(FATE_FLVENC_FFMPEG_FFPROBE-yes)
> > >  FATE_SAMPLES_FFMPEG += $(FATE_ENHANCED_FLVENC_FFMPEG-yes)
> > >  fate-flvenc: $(FATE_FLVENC_FFMPEG_FFPROBE-yes) $(FATE_ENHANCED_FLVENC_FFMPEG-yes)
> >
> > does this depend on any other patches ?
> > if not it seems failing here:
> >
> > --- ./tests/ref/fate/enhanced-flv-av1   2023-07-20 23:27:26.197002114 +0200
> > +++ tests/data/fate/enhanced-flv-av1    2023-07-20 23:42:54.419017533 +0200
> > @@ -1,5 +1,5 @@
> > -b40c54b7a26854fd3a4da13dcbba37a3 *tests/data/fate/enhanced-flv-av1.flv
> > -22742 tests/data/fate/enhanced-flv-av1.flv
> > +a59158ac59815ab6c014383e23b2b792 *tests/data/fate/enhanced-flv-av1.flv
> > +22762 tests/data/fate/enhanced-flv-av1.flv
> >  #extradata 0:       35, 0x527207cd
> >  #tb 0: 1/1000
> >  #media_type 0: video
> > Test enhanced-flv-av1 failed. Look at tests/data/fate/enhanced-flv-av1.err for details.
> > tests/Makefile:307: recipe for target 'fate-enhanced-flv-av1' failed
> > make: *** [fate-enhanced-flv-av1] Error 1
>
> I cannot sure how to fix it:
>
>
> if i --enable-libaom
>
> ffmpeg version N-111514-gc101490aa9 Copyright (c) 2000-2023 the FFmpeg
> developers
>   built with Apple clang version 14.0.3 (clang-1403.0.22.14.1)
>   configuration: --prefix=/usr/local/ --libdir=/usr/local/lib/
> --cc=clang --enable-htmlpages --enable-libx264 --enable-gpl
> --extra-cflags='-I/usr/local/include/GraphicsMagick/
> -I/usr/local/opt/openssl/include/ -O0 -g3 -fsanitize=address
> -Wno-error -fPIC -I/usr/local/include -fno-omit-frame-pointer'
> --extra-ldflags='-O0 -g3 -fsanitize=address -fno-omit-frame-pointer
> -Wno-error -fPIC -L/usr/local/lib -L/usr/local/opt/openssl/lib -lpng'
> --enable-libfreetype --enable-fontconfig --enable-libspeex
> --enable-libopus --enable-libzmq --enable-libx265 --enable-libass
> --enable-videotoolbox --disable-optimizations --enable-audiotoolbox
> --enable-opengl --disable-stripping --samples=../../fate-suite/
> --enable-encoder=hevc_videotoolbox --enable-hwaccel=hevc_videotoolbox
> --enable-hwaccel=h264_videotoolbox --enable-openssl --enable-nonfree
> --disable-shared --enable-libfdk_aac --enable-libxml2
> --enable-libmp3lame --enable-lcms2 --enable-libwebp --enable-libvpx
> --enable-libaom
>   libavutil      58. 14.100 / 58. 14.100
>   libavcodec     60. 22.100 / 60. 22.100
>   libavformat    60. 10.100 / 60. 10.100
>   libavdevice    60.  2.101 / 60.  2.101
>   libavfilter     9.  8.102 /  9.  8.102
>   libswscale      7.  3.100 /  7.  3.100
>   libswresample   4. 11.100 /  4. 11.100
>   libpostproc    57.  2.100 / 57.  2.100
> [libaom-av1 @ 0x619000025880] 3.2.0-393-g402e264b9
> Input #0, ivf, from
> '/Users/liuqi/multimedia/upstream_ffmpeg/ufbuild/../../fate-suite//av1/seq_hdr_op_param_info.ivf':
>   Duration: 00:00:02.67, start: 0.000000, bitrate: 256 kb/s
>   Stream #0:0: Video: av1 (Main) (AV01 / 0x31305641), yuv420p(tv),
> 320x176 [SAR 1:1 DAR 20:11], 23.98 tbr, 23.98 tbn
> At least one output file must be specified
>
>
>
> if i don't enable-libaom
>
>
> ffmpeg version N-111514-gc101490aa9 Copyright (c) 2000-2023 the FFmpeg
> developers
>   built with Apple clang version 14.0.3 (clang-1403.0.22.14.1)
>   configuration: --prefix=/usr/local/ --libdir=/usr/local/lib/
> --cc=clang --enable-htmlpages --enable-libx264 --enable-gpl
> --extra-cflags='-I/usr/local/include/GraphicsMagick/
> -I/usr/local/opt/openssl/include/ -O0 -g3 -fsanitize=address
> -Wno-error -fPIC -I/usr/local/include -fno-omit-frame-pointer'
> --extra-ldflags='-O0 -g3 -fsanitize=address -fno-omit-frame-pointer
> -Wno-error -fPIC -L/usr/local/lib -L/usr/local/opt/openssl/lib -lpng'
> --enable-libfreetype --enable-fontconfig --enable-libspeex
> --enable-libopus --enable-libzmq --enable-libx265 --enable-libass
> --enable-videotoolbox --disable-optimizations --enable-audiotoolbox
> --enable-opengl --disable-stripping --samples=../../fate-suite/
> --enable-encoder=hevc_videotoolbox --enable-hwaccel=hevc_videotoolbox
> --enable-hwaccel=h264_videotoolbox --enable-openssl --enable-nonfree
> --disable-shared --enable-libfdk_aac --enable-libxml2
> --enable-libmp3lame --enable-lcms2 --enable-libwebp --enable-libvpx
>   libavutil      58. 14.100 / 58. 14.100
>   libavcodec     60. 22.100 / 60. 22.100
>   libavformat    60. 10.100 / 60. 10.100
>   libavdevice    60.  2.101 / 60.  2.101
>   libavfilter     9.  8.102 /  9.  8.102
>   libswscale      7.  3.100 /  7.  3.100
>   libswresample   4. 11.100 /  4. 11.100
>   libpostproc    57.  2.100 / 57.  2.100
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [av1 @ 0x619000025880] Your platform doesn't support hardware
> accelerated AV1 decoding.
> [av1 @ 0x619000025880] Failed to get pixel format.
> [ivf @ 0x617000000080] Could not find codec parameters for stream 0
> (Video: av1 (Main) (AV01 / 0x31305641), none(tv), 320x176 [SAR 1:1 DAR
> 20:11]): unspecified pixel format
> Consider increasing the value for the 'analyzeduration' (0) and
> 'probesize' (5000000) options
> Input #0, ivf, from
> '/Users/liuqi/multimedia/upstream_ffmpeg/noaom/../../fate-suite//av1/seq_hdr_op_param_info.ivf':
>   Duration: 00:00:02.67, start: 0.000000, bitrate: 256 kb/s
>   Stream #0:0: Video: av1 (Main) (AV01 / 0x31305641), none(tv),
> 320x176 [SAR 1:1 DAR 20:11], 23.98 fps, 23.98 tbr, 23.98 tbn
> At least one output file must be specified
>
>
>
>
> should i make depend LIBAOM?


And have another problem,

with libaom: it cannot get avg_frame_rate.

without libaom: it can get avg_frame_rate.

:(
>
>
> >
> >
> > [...]
> > --
> > Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
> >
> > The bravest are surely those who have the clearest vision
> > of what is before them, glory and danger alike, and yet
> > notwithstanding go out to meet it. -- Thucydides
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox series

Patch

diff --git a/tests/fate/flvenc.mak b/tests/fate/flvenc.mak
index 87a1093136..bfb7faf726 100644
--- a/tests/fate/flvenc.mak
+++ b/tests/fate/flvenc.mak
@@ -9,6 +9,10 @@  FATE_ENHANCED_FLVENC_FFMPEG-$(call TRANSCODE, RAWVIDEO VP9, FLV IVF, VP9_PARSER)
 fate-enhanced-flv-vp9: CMD = transcode ivf $(TARGET_SAMPLES)/vp9-test-vectors/vp90-2-05-resize.ivf\
 		flv "-c copy" "-c copy"
 
+FATE_ENHANCED_FLVENC_FFMPEG-$(call TRANSCODE, RAWVIDEO AV1, FLV IVF, AV1_PARSER) += fate-enhanced-flv-av1
+fate-enhanced-flv-av1: CMD = transcode ivf $(TARGET_SAMPLES)/av1/decode_model.ivf\
+		flv "-c copy" "-c copy"
+
 FATE_FFMPEG_FFPROBE += $(FATE_FLVENC_FFMPEG_FFPROBE-yes)
 FATE_SAMPLES_FFMPEG += $(FATE_ENHANCED_FLVENC_FFMPEG-yes)
 fate-flvenc: $(FATE_FLVENC_FFMPEG_FFPROBE-yes) $(FATE_ENHANCED_FLVENC_FFMPEG-yes)
diff --git a/tests/ref/fate/enhanced-flv-av1 b/tests/ref/fate/enhanced-flv-av1
new file mode 100644
index 0000000000..120c880ddd
--- /dev/null
+++ b/tests/ref/fate/enhanced-flv-av1
@@ -0,0 +1,32 @@ 
+b40c54b7a26854fd3a4da13dcbba37a3 *tests/data/fate/enhanced-flv-av1.flv
+22742 tests/data/fate/enhanced-flv-av1.flv
+#extradata 0:       35, 0x527207cd
+#tb 0: 1/1000
+#media_type 0: video
+#codec_id 0: av1
+#dimensions 0: 240x100
+#sar 0: 1/1
+0,          0,          0,       41,     8170, 0x56e3ab74
+0,         42,         42,       41,     7042, 0x85b9890b, F=0x0
+0,         83,         83,       41,        6, 0x026000f4, F=0x0
+0,        125,        125,       41,       50, 0x4d311090, F=0x0
+0,        167,        167,       41,        6, 0x0288010c, F=0x0
+0,        208,        208,       41,      281, 0x7d34844b, F=0x0
+0,        250,        250,       41,        6, 0x023000e4, F=0x0
+0,        292,        292,       41,       65, 0xa0511848, F=0x0
+0,        333,        333,       41,        6, 0x02d8013c, F=0x0
+0,        375,        375,       41,     1067, 0x193503be, F=0x0
+0,        417,        417,       41,        6, 0x020000d4, F=0x0
+0,        458,        458,       41,       54, 0x7dcd1303, F=0x0
+0,        500,        500,       41,        6, 0x0288011c, F=0x0
+0,        542,        542,       41,      691, 0x4f2149f9, F=0x0
+0,        583,        583,       41,        6, 0x02500104, F=0x0
+0,        625,        625,       41,      211, 0x212267a2, F=0x0
+0,        667,        667,       41,       44, 0xed810e43, F=0x0
+0,        708,        708,       41,     3523, 0xcf33e296, F=0x0
+0,        750,        750,       41,       65, 0x4a0418a1, F=0x0
+0,        792,        792,       41,      388, 0xcbc0c26b, F=0x0
+0,        833,        833,       41,      180, 0x2b635133, F=0x0
+0,        875,        875,       41,       62, 0x76ef1809, F=0x0
+0,        917,        917,       41,       42, 0xb08b0a78, F=0x0
+0,        958,        958,       41,       63, 0xd07b1a32, F=0x0