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

Reimar Döffinger Reimar.Doeffinger
Sat Oct 10 18:55:43 CEST 2009


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
 




More information about the ffmpeg-devel mailing list