[Vnc2swf-users] I have one more fix for mpeg generation ...
Status: Alpha
Brought to you by:
euske
From: alf <les...@ya...> - 2006-10-28 15:53:32
|
Hi, I tried to generate mpeg video clip out of the swf but the result was not very good. It looked like old fashioned movie with blinking picture frames. I dug into pymedia a little and was able to fix it by replacing following code: ## params = { ## 'frame_rate_base': 125, ## 'deinterlace': 0, ## 'height': self.screen.out_height, ## 'width': self.screen.out_width, ## 'id': vcodec.getCodecID(self.mpeg_codec), ## 'format': vcodec.formats.PIX_FMT_YUV420P ## } ## params['frame_rate'] = int(params['frame_rate_base'] * self.info.framerate) params = { 'type': 0, 'gop_size': 12, 'frame_rate_base': 125, 'max_b_frames': 0, 'height': self.screen.out_height, 'width': self.screen.out_width, 'frame_rate': 2997, 'deinterlace': 0, 'id': vcodec.getCodecID(self.mpeg_codec), 'format': vcodec.formats.PIX_FMT_YUV420P } in output.py. Again I use python2.4 and the latest pymedia/pygame libs. The solution is not perfect as the mpeg players show the movie length in thousands seconds instead of minutes. I will wrap up all my fixes/improvements and post it a week or so. First I have to finish my screen casts :-) ... -- alf |