* [FFmpeg-devel] [PATCH 2/4] fate/image: Use TRANSCODE where appropriate
2022-04-12 1:50 [FFmpeg-devel] [PATCH 1/4] tests/Makefile: Add auxiliary functions for transcode and stream_remux Andreas Rheinhardt
@ 2022-04-12 1:52 ` Andreas Rheinhardt
2022-04-13 8:17 ` Martin Storsjö
2022-04-12 1:52 ` [FFmpeg-devel] [PATCH 3/4] fate/subtitles: Use REMUX " Andreas Rheinhardt
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Andreas Rheinhardt @ 2022-04-12 1:52 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
This also adds previously forgotten requirements. E.g. fate-jpg-icc
actually depends on the png decoder, so that it should not be run
when e.g. zlib is disabled, yet it happens, see
http://fate.ffmpeg.org/report.cgi?time=20220411182746&slot=x86_64-archlinux-gcc-disablezlib
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
tests/fate/image.mak | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index 70be281411..63076f8ded 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -337,7 +337,7 @@ fate-jpg-12bpp: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpg/12bpp.jpg -
FATE_JPG += fate-jpg-jfif
fate-jpg-jfif: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpg/20242.jpg
-FATE_JPG_TRANSCODE-$(call ENCDEC, MJPEG, IMAGE2) += fate-jpg-icc
+FATE_JPG_TRANSCODE-$(call TRANSCODE, MJPEG, MJPEG IMAGE_JPEG_PIPE, IMAGE_PNG_PIPE_DEMUXER PNG_DECODER SCALE_FILTER) += fate-jpg-icc
fate-jpg-icc: CMD = transcode png_pipe $(TARGET_SAMPLES)/png1/lena-int_rgb24.png mjpeg "-vf scale" "" "" "-show_frames"
FATE_JPG-$(call DEMDEC, IMAGE2, MJPEG) += $(FATE_JPG)
@@ -389,7 +389,7 @@ FATE_PNG_PROBE += fate-png-side-data
fate-png-side-data: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -show_frames \
-i $(TARGET_SAMPLES)/png1/lena-int_rgb24.png
-FATE_PNG_TRANSCODE-$(call ENCDEC, PNG, IMAGE2) += fate-png-icc
+FATE_PNG_TRANSCODE-$(call TRANSCODE, PNG, IMAGE2 IMAGE_PNG_PIPE) += fate-png-icc
fate-png-icc: CMD = transcode png_pipe $(TARGET_SAMPLES)/png1/lena-int_rgb24.png image2 "-c png" "" "" "-show_frames"
FATE_PNG-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG)
--
2.32.0
_______________________________________________
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".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH 2/4] fate/image: Use TRANSCODE where appropriate
2022-04-12 1:52 ` [FFmpeg-devel] [PATCH 2/4] fate/image: Use TRANSCODE where appropriate Andreas Rheinhardt
@ 2022-04-13 8:17 ` Martin Storsjö
0 siblings, 0 replies; 8+ messages in thread
From: Martin Storsjö @ 2022-04-13 8:17 UTC (permalink / raw)
To: FFmpeg development discussions and patches; +Cc: Andreas Rheinhardt
On Tue, 12 Apr 2022, Andreas Rheinhardt wrote:
> This also adds previously forgotten requirements. E.g. fate-jpg-icc
> actually depends on the png decoder, so that it should not be run
> when e.g. zlib is disabled, yet it happens, see
> http://fate.ffmpeg.org/report.cgi?time=20220411182746&slot=x86_64-archlinux-gcc-disablezlib
Sorry for preempting this patchset yesterday, I hadn't checked the patch
queue in detail before pushing the fix.
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
> tests/fate/image.mak | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/fate/image.mak b/tests/fate/image.mak
> index 70be281411..63076f8ded 100644
> --- a/tests/fate/image.mak
> +++ b/tests/fate/image.mak
> @@ -337,7 +337,7 @@ fate-jpg-12bpp: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpg/12bpp.jpg -
> FATE_JPG += fate-jpg-jfif
> fate-jpg-jfif: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpg/20242.jpg
>
> -FATE_JPG_TRANSCODE-$(call ENCDEC, MJPEG, IMAGE2) += fate-jpg-icc
> +FATE_JPG_TRANSCODE-$(call TRANSCODE, MJPEG, MJPEG IMAGE_JPEG_PIPE, IMAGE_PNG_PIPE_DEMUXER PNG_DECODER SCALE_FILTER) += fate-jpg-icc
> fate-jpg-icc: CMD = transcode png_pipe $(TARGET_SAMPLES)/png1/lena-int_rgb24.png mjpeg "-vf scale" "" "" "-show_frames"
>
> FATE_JPG-$(call DEMDEC, IMAGE2, MJPEG) += $(FATE_JPG)
> @@ -389,7 +389,7 @@ FATE_PNG_PROBE += fate-png-side-data
> fate-png-side-data: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -show_frames \
> -i $(TARGET_SAMPLES)/png1/lena-int_rgb24.png
>
> -FATE_PNG_TRANSCODE-$(call ENCDEC, PNG, IMAGE2) += fate-png-icc
> +FATE_PNG_TRANSCODE-$(call TRANSCODE, PNG, IMAGE2 IMAGE_PNG_PIPE) += fate-png-icc
> fate-png-icc: CMD = transcode png_pipe $(TARGET_SAMPLES)/png1/lena-int_rgb24.png image2 "-c png" "" "" "-show_frames"
>
> FATE_PNG-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG)
> --
> 2.32.0
Thanks, this looks correct to me after looking through the test execution
again.
// Martin
_______________________________________________
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".
^ permalink raw reply [flat|nested] 8+ messages in thread
* [FFmpeg-devel] [PATCH 3/4] fate/subtitles: Use REMUX where appropriate
2022-04-12 1:50 [FFmpeg-devel] [PATCH 1/4] tests/Makefile: Add auxiliary functions for transcode and stream_remux Andreas Rheinhardt
2022-04-12 1:52 ` [FFmpeg-devel] [PATCH 2/4] fate/image: Use TRANSCODE where appropriate Andreas Rheinhardt
@ 2022-04-12 1:52 ` Andreas Rheinhardt
2022-04-13 8:19 ` Martin Storsjö
2022-04-12 1:52 ` [FFmpeg-devel] [PATCH 4/4] fate/oma: " Andreas Rheinhardt
2022-04-13 8:15 ` [FFmpeg-devel] [PATCH 1/4] tests/Makefile: Add auxiliary functions for transcode and stream_remux Martin Storsjö
3 siblings, 1 reply; 8+ messages in thread
From: Andreas Rheinhardt @ 2022-04-12 1:52 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
It also adds the missing depenencies on the file and pipe protocols
and the framecrc muxer.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
tests/fate/subtitles.mak | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/fate/subtitles.mak b/tests/fate/subtitles.mak
index 8375cf2898..bc464edce6 100644
--- a/tests/fate/subtitles.mak
+++ b/tests/fate/subtitles.mak
@@ -22,7 +22,7 @@ fate-binsub-mksenc: CMD = md5pipe -i $(TARGET_SAMPLES)/sub/1ededcbd7b.ass -c cop
FATE_SUBTITLES_ASS-$(call DEMDEC, JACOSUB, JACOSUB) += fate-sub-jacosub
fate-sub-jacosub: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/JACOsub_capability_tester.jss
-FATE_SUBTITLES-$(call DEMMUX, JACOSUB, JACOSUB) += fate-sub-jacosub-remux
+FATE_SUBTITLES-$(call REMUX, JACOSUB) += fate-sub-jacosub-remux
fate-sub-jacosub-remux: CMD = transcode jacosub $(TARGET_SAMPLES)/sub/JACOsub_capability_tester.jss jacosub "-map 0 -c copy" "-map 0 -c copy"
fate-sub-jacosub-remux: CMP = diff
--
2.32.0
_______________________________________________
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".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH 3/4] fate/subtitles: Use REMUX where appropriate
2022-04-12 1:52 ` [FFmpeg-devel] [PATCH 3/4] fate/subtitles: Use REMUX " Andreas Rheinhardt
@ 2022-04-13 8:19 ` Martin Storsjö
0 siblings, 0 replies; 8+ messages in thread
From: Martin Storsjö @ 2022-04-13 8:19 UTC (permalink / raw)
To: FFmpeg development discussions and patches; +Cc: Andreas Rheinhardt
On Tue, 12 Apr 2022, Andreas Rheinhardt wrote:
> It also adds the missing depenencies on the file and pipe protocols
> and the framecrc muxer.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
> tests/fate/subtitles.mak | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/fate/subtitles.mak b/tests/fate/subtitles.mak
> index 8375cf2898..bc464edce6 100644
> --- a/tests/fate/subtitles.mak
> +++ b/tests/fate/subtitles.mak
> @@ -22,7 +22,7 @@ fate-binsub-mksenc: CMD = md5pipe -i $(TARGET_SAMPLES)/sub/1ededcbd7b.ass -c cop
> FATE_SUBTITLES_ASS-$(call DEMDEC, JACOSUB, JACOSUB) += fate-sub-jacosub
> fate-sub-jacosub: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/JACOsub_capability_tester.jss
>
> -FATE_SUBTITLES-$(call DEMMUX, JACOSUB, JACOSUB) += fate-sub-jacosub-remux
> +FATE_SUBTITLES-$(call REMUX, JACOSUB) += fate-sub-jacosub-remux
> fate-sub-jacosub-remux: CMD = transcode jacosub $(TARGET_SAMPLES)/sub/JACOsub_capability_tester.jss jacosub "-map 0 -c copy" "-map 0 -c copy"
> fate-sub-jacosub-remux: CMP = diff
LGTM
// Martin
_______________________________________________
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".
^ permalink raw reply [flat|nested] 8+ messages in thread
* [FFmpeg-devel] [PATCH 4/4] fate/oma: Use REMUX where appropriate
2022-04-12 1:50 [FFmpeg-devel] [PATCH 1/4] tests/Makefile: Add auxiliary functions for transcode and stream_remux Andreas Rheinhardt
2022-04-12 1:52 ` [FFmpeg-devel] [PATCH 2/4] fate/image: Use TRANSCODE where appropriate Andreas Rheinhardt
2022-04-12 1:52 ` [FFmpeg-devel] [PATCH 3/4] fate/subtitles: Use REMUX " Andreas Rheinhardt
@ 2022-04-12 1:52 ` Andreas Rheinhardt
2022-04-13 8:19 ` Martin Storsjö
2022-04-13 8:15 ` [FFmpeg-devel] [PATCH 1/4] tests/Makefile: Add auxiliary functions for transcode and stream_remux Martin Storsjö
3 siblings, 1 reply; 8+ messages in thread
From: Andreas Rheinhardt @ 2022-04-12 1:52 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Andreas Rheinhardt
Simplifies the checks.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
tests/fate/oma.mak | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/tests/fate/oma.mak b/tests/fate/oma.mak
index a088feff21..7e2020b7d0 100644
--- a/tests/fate/oma.mak
+++ b/tests/fate/oma.mak
@@ -8,14 +8,8 @@ fate-oma-atrac3p-remux: CMD = transcode oma $(TARGET_SAMPLES)/atrac3p/at3p_sampl
FATE_OMA_REMUX-$(CONFIG_WAV_DEMUXER) += fate-oma-atrac3-remux
fate-oma-atrac3-remux: CMD = transcode wav $(TARGET_SAMPLES)/atrac3/mc_sich_at3_132_small.wav oma "-c copy" "-c copy -t 0.1"
-FATE_OMA_FFMPEG-$(call ALLYES, FILE_PROTOCOL OMA_MUXER \
- OMA_DEMUXER FRAMECRC_MUXER \
- PIPE_PROTOCOL) \
- += $(FATE_OMA_REMUX-yes)
-FATE_OMA_FFMPEG_FFPROBE-$(call ALLYES, FILE_PROTOCOL OMA_MUXER \
- OMA_DEMUXER FRAMECRC_MUXER \
- PIPE_PROTOCOL) \
- += $(FATE_OMA_REMUX_FFPROBE-yes)
+FATE_OMA_FFMPEG-$(call REMUX, OMA) += $(FATE_OMA_REMUX-yes)
+FATE_OMA_FFMPEG_FFPROBE-$(call REMUX, OMA) += $(FATE_OMA_REMUX_FFPROBE-yes)
FATE_SAMPLES_FFMPEG += $(FATE_OMA_FFMPEG-yes)
FATE_SAMPLES_FFMPEG_FFPROBE += $(FATE_OMA_FFMPEG_FFPROBE-yes)
fate-oma: $(FATE_OMA_FFMPEG-yes) $(FATE_OMA_FFMPEG_FFPROBE-yes)
--
2.32.0
_______________________________________________
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".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH 4/4] fate/oma: Use REMUX where appropriate
2022-04-12 1:52 ` [FFmpeg-devel] [PATCH 4/4] fate/oma: " Andreas Rheinhardt
@ 2022-04-13 8:19 ` Martin Storsjö
0 siblings, 0 replies; 8+ messages in thread
From: Martin Storsjö @ 2022-04-13 8:19 UTC (permalink / raw)
To: FFmpeg development discussions and patches; +Cc: Andreas Rheinhardt
On Tue, 12 Apr 2022, Andreas Rheinhardt wrote:
> Simplifies the checks.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
> tests/fate/oma.mak | 10 ++--------
> 1 file changed, 2 insertions(+), 8 deletions(-)
>
> diff --git a/tests/fate/oma.mak b/tests/fate/oma.mak
> index a088feff21..7e2020b7d0 100644
> --- a/tests/fate/oma.mak
> +++ b/tests/fate/oma.mak
> @@ -8,14 +8,8 @@ fate-oma-atrac3p-remux: CMD = transcode oma $(TARGET_SAMPLES)/atrac3p/at3p_sampl
> FATE_OMA_REMUX-$(CONFIG_WAV_DEMUXER) += fate-oma-atrac3-remux
> fate-oma-atrac3-remux: CMD = transcode wav $(TARGET_SAMPLES)/atrac3/mc_sich_at3_132_small.wav oma "-c copy" "-c copy -t 0.1"
>
> -FATE_OMA_FFMPEG-$(call ALLYES, FILE_PROTOCOL OMA_MUXER \
> - OMA_DEMUXER FRAMECRC_MUXER \
> - PIPE_PROTOCOL) \
> - += $(FATE_OMA_REMUX-yes)
> -FATE_OMA_FFMPEG_FFPROBE-$(call ALLYES, FILE_PROTOCOL OMA_MUXER \
> - OMA_DEMUXER FRAMECRC_MUXER \
> - PIPE_PROTOCOL) \
> - += $(FATE_OMA_REMUX_FFPROBE-yes)
> +FATE_OMA_FFMPEG-$(call REMUX, OMA) += $(FATE_OMA_REMUX-yes)
> +FATE_OMA_FFMPEG_FFPROBE-$(call REMUX, OMA) += $(FATE_OMA_REMUX_FFPROBE-yes)
> FATE_SAMPLES_FFMPEG += $(FATE_OMA_FFMPEG-yes)
> FATE_SAMPLES_FFMPEG_FFPROBE += $(FATE_OMA_FFMPEG_FFPROBE-yes)
> fate-oma: $(FATE_OMA_FFMPEG-yes) $(FATE_OMA_FFMPEG_FFPROBE-yes)
> --
> 2.32.0
LGTM
// Martin
_______________________________________________
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".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH 1/4] tests/Makefile: Add auxiliary functions for transcode and stream_remux
2022-04-12 1:50 [FFmpeg-devel] [PATCH 1/4] tests/Makefile: Add auxiliary functions for transcode and stream_remux Andreas Rheinhardt
` (2 preceding siblings ...)
2022-04-12 1:52 ` [FFmpeg-devel] [PATCH 4/4] fate/oma: " Andreas Rheinhardt
@ 2022-04-13 8:15 ` Martin Storsjö
3 siblings, 0 replies; 8+ messages in thread
From: Martin Storsjö @ 2022-04-13 8:15 UTC (permalink / raw)
To: FFmpeg development discussions and patches; +Cc: Andreas Rheinhardt
On Tue, 12 Apr 2022, Andreas Rheinhardt wrote:
> Tests using the transcode and stream_remux functions have some common
> requirements (namely the file and pipe protocols as well as the framecrc
> muxer) and also other commonalities: The create a file and read it
> immediately afterwards, so that they typically rely on a corresponding
> muxer+demuxer pair which typically shares the same name; for transcode
> (if it does not use stream copy) the same is true for encoders and
> decoders. This means that using special Makefile-functions instead
> of the general ALLYES is worthwhile. This commit adds such functions.
>
> These functions allow to add arbitrary CONFIG-checks on top of the
> aforementioned ones in order to satisfy special needs (for e.g. parsers,
> filters) that several intended users have.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
> tests/Makefile | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/tests/Makefile b/tests/Makefile
> index e3b41a4f7b..5e4da2c42f 100644
> --- a/tests/Makefile
> +++ b/tests/Makefile
> @@ -74,6 +74,16 @@ ENCDEC2 = $(call ALLYES, $(firstword $(1))_ENCODER $(lastword $(1))_DECODER \
> $(firstword $(2))_ENCODER $(lastword $(2))_DECODER \
> $(firstword $(3))_MUXER $(lastword $(3))_DEMUXER)
>
> +# RAWVIDEO_ENCODER and PCM_S16LE_ENCODER corresponds to the default codecs
> +# for framecrc. These requirements are not always necessary.
> +TRANSCODE = $(call ALLYES, $(firstword $(1))_ENCODER $(lastword $(1))_DECODER \
> + $(firstword $(2))_MUXER $(lastword $(2))_DEMUXER \
> + $(3) FILE_PROTOCOL PIPE_PROTOCOL RAWVIDEO_ENCODER \
> + PCM_S16LE_ENCODER FRAMECRC_MUXER)
> +
> +REMUX = $(call ALLYES, $(firstword $(1))_MUXER $(lastword $(1))_DEMUXER \
> + $(2) FILE_PROTOCOL PIPE_PROTOCOL FRAMECRC_MUXER)
> +
> DEMDEC = $(call ALLYES, $(1)_DEMUXER $(2:%=%_DECODER))
> ENCMUX = $(call ALLYES, $(1:%=%_ENCODER) $(2)_MUXER)
This looks good to me (provided that the rest of the patches using it end
up sensible).
// Martin
_______________________________________________
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".
^ permalink raw reply [flat|nested] 8+ messages in thread