The original RoQ format was extremely rigid. First, there was the fact that width and height both needed to be powers of 2. And then FPS was hardcoded to 30 fps.Chilly Willy wrote:Yes. The -qscale option works for the svq1 codec, but not the roqvideo codec. Oh, it also only outputs 30 FPS. I can't change that either. I think the ffmpeg encoder is just hardcoded for these things.Multimedia Mike wrote:Did you try the '-qscale' option?Chilly Willy wrote:Is there some way to control the bitrate on ffmpeg when encoding as roq? I've tried virtually every option and nothing changes. It's permanently at q = 0.0.
I should fix the FFmpeg RoQ muxer to allow arbitrary framerate. But if you're comfortable changing and recompiling FFmpeg source, look in libavformat/idroqenc.c (very short file). You'll see this data structure:
Code: Select all
static const uint8_t header[] = {
0x84, 0x10, 0xFF, 0xFF, 0xFF, 0xFF, 0x1E, 0x00
};