[FFmpeg-devel] [RFC] Regression test speed

Stefano Sabatini stefano.sabatini-lala
Sat Dec 5 23:15:58 CET 2009


On date Saturday 2009-12-05 22:36:12 +0100, Reimar D?ffinger encoded:
> On Sat, Dec 05, 2009 at 09:53:54PM +0100, Stefano Sabatini wrote:
> > On date Saturday 2009-12-05 20:04:26 +0100, Reimar D?ffinger encoded:
> > > On Sat, Dec 05, 2009 at 07:26:46PM +0100, Stefano Sabatini wrote:
> > > > Is OK to apply?
> > > 
> > > IMO yes, if I had know it works so easily I would have added -vframes right from the start.
> > > Could you try if it is possible to add a regression test for RoQ like this?
> > > Or is it too slow even when just encoding 1 or 2 frames?
> > 
> > With -vframes 5:
> > 
> > 23.58user 0.28system 0:24.19elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
> > 0inputs+40368outputs (0major+38065minor)pagefaults 0swaps
> 
> Seems acceptable to me.

Having more tests is fine, but should be possible/easy to select just
a bunch of them, otherwise each run will turn to be very impractical.
 
> > Index: ffmpeg/tests/codec-regression.sh
> > ===================================================================
> > --- ffmpeg.orig/tests/codec-regression.sh	2009-12-05 21:17:11.000000000 +0100
> > +++ ffmpeg/tests/codec-regression.sh	2009-12-05 21:52:49.000000000 +0100
> > @@ -241,6 +241,11 @@
> >  do_video_decoding "" "-pix_fmt yuv420p -sws_flags area+accurate_rnd+bitexact"
> >  fi
> >  
> > +if [ -n "$do_roqvideo" ] ; then
> > +do_video_encoding roqvideo.roq "" "-vcodec roqvideo -vframes 5 -an"
> 
> I think you should leave the audio enabled, and -vcodec should not be necessary...

Yes, removed both options.
-- 
FFmpeg = Forgiving & Fast Marvellous Philosofic Ecumenical Guide
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-roq-test.patch
Type: text/x-diff
Size: 1142 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091205/da88def8/attachment.patch>



More information about the ffmpeg-devel mailing list