On date Monday 2009-01-05 15:04:15 +0000, [email protected] encoded: > All, > Firstly congratualtions on the development progress on the SNOW wavelet > codec. I worked on Dirac sometime ago and so was very interested to read > about SNOW. > I have a small test harness which I have built with ffmpeg api support > with an aim to test the SNOW codec. I am keen to learn more about the > improvements done over Dirac and Schroedinger as > > I have a question however regarding setting the AVCodecContext > structure. I am currently capturing raw YUV420P at 176x144 res. at about > 10-15 FPS and I am setting the following AVCodecContext params: > > > c->time_base= (AVRational){1,25}; > c->width=ffmpegData->width; > c->height=ffmpegData->height; > c->pix_fmt = PIX_FMT_YUV420P; > c->gop_size = 10; // emit one intra frame every ten frames > c->me_method=9; //SNOW specific
9? You should use the corresponding enum named value instead (check avcodec.h). > Is this sufficient (or even correct) for SNOW ? or do I need to tweak > anymore.? > > Also...I running one thread for encoding and one for decoding - do I > need to call avcodec_init() for both threads? No you call avcodec_init() just one time at the initialization, and it fills tables and other stuff used by codecs. > Your help is much appreciated and keep up the fantastic work. > > > Regards, Regards. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
