[FFmpeg-devel] [PATCH] liavcodec: add bit-rate support to RoQ video encoder
Tomas Härdin
git at haerdin.se
Mon Jan 22 23:12:38 EET 2024
mån 2024-01-22 klockan 22:14 +0300 skrev Victor Luchits:
> The bitrate option (-b:v) can now be used to specify the bit rate
> of the video stream of the RoQ encoder.
>
> Original patch by Joseph Fenton aka Chilly Willy
>
> Signed-off-by: Victor Luchits <vluchits at gmail.com>
Still doesn't apply.
> + /* Keyframe when no MOT or FCC codes in frame */
> + if (s->key_frame) {
> + av_log(avctx, AV_LOG_VERBOSE, "\nFound keyframe!\n");
> + rframe->pict_type = AV_PICTURE_TYPE_I;
> + avpkt->flags |= AV_PKT_FLAG_KEY;
> + } else {
> + rframe->pict_type = AV_PICTURE_TYPE_P;
> + avpkt->flags &= ~AV_PKT_FLAG_KEY;
> + }
Looks like framesSinceKeyframe still doesn't get reset
> + if (avctx->bit_rate) {
> + /* no specific bit rate desired, use frame quality */
> + if (frame->quality)
> + enc->lambda = frame->quality - 1;
> + else
> + enc->lambda = 2*ROQ_LAMBDA_SCALE;
> + }
Looks like you got this backwards
/Tomas
More information about the ffmpeg-devel
mailing list