[FFmpeg-devel] [PATCH 01/12] timecode: add write regressions tests.

Stefano Sabatini stefasab at gmail.com
Tue Jan 24 13:38:47 CET 2012


On date Monday 2012-01-23 17:04:20 +0100, Clément Bœsch encoded:
> From: Clément Bœsch <clement.boesch at smartjog.com>
> 
> ---
>  tests/lavf-regression.sh |   34 ++++++++++++++++++++++++++++++----
>  tests/ref/lavf/dv_fmt    |    4 ++++
>  tests/ref/lavf/gxf       |    4 ++++
>  tests/ref/lavf/mov       |    4 ++++
>  tests/ref/lavf/mpg       |    4 ++++
>  tests/ref/lavf/mxf       |    6 +++++-
>  6 files changed, 51 insertions(+), 5 deletions(-)
> 
> diff --git a/tests/lavf-regression.sh b/tests/lavf-regression.sh
> index af34e86..56029a4 100755
> --- a/tests/lavf-regression.sh
> +++ b/tests/lavf-regression.sh
> @@ -13,13 +13,35 @@ eval do_$test=y
>  
>  ENC_OPTS="$ENC_OPTS -metadata title=lavftest"
>  
> -do_lavf()
> +do_lavf_nocrc()
>  {
>      file=${outfile}lavf.$1
>      do_avconv $file $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src $DEC_OPTS -ar 44100 -f s16le -i $pcm_src $ENC_OPTS -b:a 64k -t 1 -qscale:v 10 $2
> +}
> +

> +do_lavf()
> +{
> +    do_lavf_nocrc "$@"
>      do_avconv_crc $file $DEC_OPTS -i $target_path/$file $3
>  }

I'm not sure why you don't want do_crc with timecodes.

Alternatively you may check on the presence of the third parameter
(e.g. with [-n $3]) and compute CRC only in that case.

>  
> +do_lavf_timecode_nodrop()
> +{
> +    do_lavf_nocrc $1 "$2 -timecode 02:56:14:13" "$3"
> +}
> +
> +do_lavf_timecode_drop()
> +{
> +    do_lavf_nocrc $1 "$2 -timecode 02:56:14;13 -r 30000/1001" "$3"
> +}

Here the $3 is ignored if I'm not wrong.

[...]

Looks fine otherwise.
-- 
FFmpeg = Faithful Fundamentalist Minimalistic Ponderous Eretic Game


More information about the ffmpeg-devel mailing list