Hi,
I'm not sure why changing frame_rate did not work for you but I just tried
mak_video example and it works pretty good.
You can try to set it up like this when you create Encoder:
params= { \
'type': 0,
'gop_size': 12,
'max_b_frames': 0,
'height': s.get_height(),
'width': s.get_width(),
'frame_rate_base': 1, # <-----
'frame_rate': 2, # <------- real frame rate is
frame_rate_base/frame_rate ( in this case is 2 fps )
'deinterlace': 0,
'bitrate': bitrate,
'id': vcodec.getCodecID( outCodec )
}
print 'Setting codec to ', params
e= vcodec.Encoder( params )
Dmitry/
----- Original Message -----
From: "f rom" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, May 01, 2006 10:49 AM
Subject: [Pymedia-users] jpg to mpeg but with longer delays, how to ?
Hello,
I have tried to combine jpg into mpeg using the sample
make_video. However the jpg's follow each other much
too fast. I have played around with bitrate, frame
rate, frame rate base and so on. However I'm only
guessing and did not manage to make jpg's last for
several seconds. Anyone knows what values I should use
for the encoder to make a jpg frame last say 6
seconds?
Another idea was to repeat the frame but then
make_video immediately stopped?
Kind regards,
J.
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Pymedia-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pymedia-users