Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: James Almer <jamrial@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH] tests/fate/ffmpeg: add tests for -max_error_rate
Date: Sun, 4 Jun 2023 11:11:13 -0300
Message-ID: <72382980-feb6-ccf7-2e70-965ecfc6ed3e@gmail.com> (raw)
In-Reply-To: <20230603170323.7215-1-anton@khirnov.net>

On 6/3/2023 2:03 PM, Anton Khirnov wrote:
> ---
> Please upload https://up.khirnov.net/sq.mkv to mkv/h264_tta_undecodable.mkv.
> Thanks

Done.

> ---
>   tests/fate/ffmpeg.mak                 | 6 ++++++
>   tests/ref/fate/ffmpeg-error-rate-fail | 0
>   tests/ref/fate/ffmpeg-error-rate-pass | 0
>   3 files changed, 6 insertions(+)
>   create mode 100644 tests/ref/fate/ffmpeg-error-rate-fail
>   create mode 100644 tests/ref/fate/ffmpeg-error-rate-pass
> 
> diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak
> index 800f3a03d2..223bc97f8e 100644
> --- a/tests/fate/ffmpeg.mak
> +++ b/tests/fate/ffmpeg.mak
> @@ -227,3 +227,9 @@ FATE_SAMPLES_FFMPEG-yes += $(FATE_TIME_BASE-yes)
>   # test -r used as an input option
>   fate-ffmpeg-input-r: CMD = framecrc -r 27 -idct simple -i $(TARGET_SAMPLES)/mpeg2/sony-ct3.bs
>   FATE_SAMPLES_FFMPEG-$(call FRAMECRC, MPEGVIDEO, MPEG2VIDEO) += fate-ffmpeg-input-r
> +
> +# file with completely undecodable TTA audio stream
> +# by default should exit with error code 69
> +fate-ffmpeg-error-rate-fail: CMD = ffmpeg -i $(TARGET_SAMPLES)/mkv/h264_tta_undecodable.mkv -c:v copy -f null -; test $$? -eq 69
> +fate-ffmpeg-error-rate-pass: CMD = ffmpeg -i $(TARGET_SAMPLES)/mkv/h264_tta_undecodable.mkv -c:v copy -f null - -max_error_rate 1
> +FATE_SAMPLES_FFMPEG-$(call ENCDEC, PCM_S16LE TTA, NULL MATROSKA) += fate-ffmpeg-error-rate-fail fate-ffmpeg-error-rate-pass
> diff --git a/tests/ref/fate/ffmpeg-error-rate-fail b/tests/ref/fate/ffmpeg-error-rate-fail
> new file mode 100644
> index 0000000000..e69de29bb2
> diff --git a/tests/ref/fate/ffmpeg-error-rate-pass b/tests/ref/fate/ffmpeg-error-rate-pass
> new file mode 100644
> index 0000000000..e69de29bb2
_______________________________________________
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".

      reply	other threads:[~2023-06-04 14:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-03 17:03 Anton Khirnov
2023-06-04 14:11 ` James Almer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=72382980-feb6-ccf7-2e70-965ecfc6ed3e@gmail.com \
    --to=jamrial@gmail.com \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git