CD210 model, WebCarrotMan, fix SpeedTF (#248)

* scc_contro: a_val=> no jerk limitation.

* fix..

* fix..

* fix..

* test. for isg

* carrot web server

* fix.. change branches..

* fix..

* CD210 model..

* fix..

* fix..

* ff

* fix..

* test full screen

* fix..

* fix..

* disable webrtc

* fix..

* fix.. enableWebRTC,

* fix..

* revert dm model.

* register my ip

* fix..

* test

* fix..

* fix..

* fix.. speed TF, more TFs. 0, 10, 20, 30%

* fix..

* fix..

* fix..

* fix..

* fix..

* fix

* fix..

* fix..

* ff

* ff

* fix.. quick link

* fix..

* fix..

* fix quick link... text..

* fix SCC error (canfd)

* fix.. speed TF < 0

* hud

* fix..

* fix.. tf..

* fleet..

* release..

* web cmd

* fix run cmd..

* fix cmd

* cmd allow

* fix..

* fix.. release..
This commit is contained in:
carrot
2026-02-13 11:16:13 +09:00
committed by GitHub
parent 0ab1092298
commit 5d3546b8da
21 changed files with 3636 additions and 28 deletions
+9 -1
View File
@@ -59,7 +59,15 @@ void FfmpegEncoder::encoder_open() {
this->codec_ctx->height = frame->height;
this->codec_ctx->pix_fmt = AV_PIX_FMT_YUV420P;
this->codec_ctx->time_base = (AVRational){ 1, encoder_info.fps };
int err = avcodec_open2(this->codec_ctx, codec, NULL);
//int err = avcodec_open2(this->codec_ctx, codec, NULL);
bool env_dashy = true;
AVDictionary* opts = NULL;
if (env_dashy && codec_id == AV_CODEC_ID_H264) {
av_dict_set(&opts, "preset", "ultrafast", 0);
av_dict_set(&opts, "tune", "zerolatency", 0);
}
int err = avcodec_open2(this->codec_ctx, codec, &opts);
av_dict_free(&opts);
assert(err >= 0);
is_open = true;