[FFmpeg-devel] [PATCH] use multithreading in dnxhdenc regression

Baptiste Coudurier baptiste.coudurier
Sun Oct 11 06:44:01 CEST 2009


Hi Reimar,

On 10/10/09 9:55 AM, Reimar D?ffinger wrote:
> Hello,
> since the DNxHD encoder produces the same results with multiple threads,
> and we have a fallback for systems where no threading support is
> available, I propose to do at least the slowest of the tests with -threads 4.
> Another option would be to add an extra test with -threads 4, doing
> all with -threads (probably providing the best code coverage) and
> many other possibilities.
> -threads 2 might make more sense with the current implementation, since
> -threads 4 is likely to be quite slow on one- and two-CPU systems.
> What do you think?
> Index: tests/codec-regression.sh
> ===================================================================
> --- tests/codec-regression.sh   (revision 20199)
> +++ tests/codec-regression.sh   (working copy)
> @@ -374,7 +374,7 @@
>   fi
>
>   if [ -n "$do_dnxhd_720p_rd" ] ; then
> -do_video_encoding dnxhd-720p-rd.dnxhd "" "-mbd rd -s hd720 -b 90Mb -pix_fmt yuv422p -an"
> +do_video_encoding dnxhd-720p-rd.dnxhd "" "-threads 4 -mbd rd -s hd720 -b 90Mb -pix_fmt yuv422p -an"
>   do_video_decoding "-r 25" "-s cif -pix_fmt yuv420p"
>   fi
>

Good idea.

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-devel mailing list