ffmpeg and fps issues
Posted: Sun Mar 14, 2004 1:57 am
well I'm ignoring the non-320x240 issues for now and falling into the fold :) But I'm wondering how to make proper use of recorded events and mpeg generation with ffmpeg. I had set a Max FPS of 16 but then going to generate an mpeg from an event I got an error:
Creating video file Event-15.mpg for event 15
/usr/local/bin/ffmpeg -y -hq -intra -r 15 -s 320x240 -i %03d-capture.jpg Event-1
5.mpg > mpeg.log
[mjpeg @ 0x8263444]mjpeg: JFIF header found (version: 1.1)
[mjpeg @ 0x8263444]get_buffer() failed
Input #0, image, from '%03d-capture.jpg':
Duration: 00:00:06.8, bitrate: N/A
Stream #0.0: Video: rawvideo, yuvj420p, 320x240, 15.00 fps
Output #0, mpeg, to 'Event-15.mpg':
Stream #0.0: Video: mpeg1video (hq), 320x240, 15.00 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
[mpeg1video @ 0x8263444]removing common factors from framerate
[mpeg1video @ 0x8263444]MPEG1/2 doesnt support 15/1 fps
Error while opening codec for stream #0.0 - maybe incorrect parameters such as b
it_rate, rate, width or height
Error: 1 at /usr/local/bin/zmvideo.pl line 263.
So is this sort of a "don't do that, then" situation? I generated an mpeg successfully by asking for 2x framerate and got a 30fps mpeg. of course, the motion was 2x normal speed :) Is setting a max FPS and then using those events to generate mpegs an incompatible pair of options? just wondering. thanks!
Creating video file Event-15.mpg for event 15
/usr/local/bin/ffmpeg -y -hq -intra -r 15 -s 320x240 -i %03d-capture.jpg Event-1
5.mpg > mpeg.log
[mjpeg @ 0x8263444]mjpeg: JFIF header found (version: 1.1)
[mjpeg @ 0x8263444]get_buffer() failed
Input #0, image, from '%03d-capture.jpg':
Duration: 00:00:06.8, bitrate: N/A
Stream #0.0: Video: rawvideo, yuvj420p, 320x240, 15.00 fps
Output #0, mpeg, to 'Event-15.mpg':
Stream #0.0: Video: mpeg1video (hq), 320x240, 15.00 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
[mpeg1video @ 0x8263444]removing common factors from framerate
[mpeg1video @ 0x8263444]MPEG1/2 doesnt support 15/1 fps
Error while opening codec for stream #0.0 - maybe incorrect parameters such as b
it_rate, rate, width or height
Error: 1 at /usr/local/bin/zmvideo.pl line 263.
So is this sort of a "don't do that, then" situation? I generated an mpeg successfully by asking for 2x framerate and got a 30fps mpeg. of course, the motion was 2x normal speed :) Is setting a max FPS and then using those events to generate mpegs an incompatible pair of options? just wondering. thanks!