Speak now
Please Wait Image Converting Into Text...
Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Challenge yourself and boost your learning! Start the quiz now to earn credits.
Unlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
General Tech Bugs & Fixes 2 years ago
Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
Turn Your Knowledge into Earnings.
i using this code to encode video stream using vp8 and i decided to give vp9 a try so i changed every thing with starts with vp_* from 8 to 9.
but the vp9 encoder always return a null packet although the encoder doesn't return any error.here is the code i'am using for configuring.
vpx_codec_err_t error = vpx_codec_enc_config_default(vpx_codec_vp9_cx(), &enc_cfg, 0); if(error != VPX_CODEC_OK) return error; enc_cfg.g_timebase.den = fps; enc_cfg.rc_undershoot_pct = 95; enc_cfg.rc_target_bitrate = bitrate; enc_cfg.g_error_resilient = 1; enc_cfg.kf_max_dist = 999999; enc_cfg.rc_buf_initial_sz = 4000; enc_cfg.rc_buf_sz = 6000; enc_cfg.rc_buf_optimal_sz = 5000; enc_cfg.rc_end_usage = VPX_CBR; enc_cfg.g_h = height; enc_cfg.g_w = width; enc_cfg.rc_min_quantizer = 4; enc_cfg.rc_max_quantizer = 56; enc_cfg.g_threads = 4; enc_cfg.g_pass = VPX_RC_ONE_PASS; error = vpx_codec_enc_init(&codec, vpx_codec_vp9_cx(), &enc_cfg, 0); if(error != VPX_CODEC_OK) return error; vpx_img_alloc(&vpx_image,VPX_IMG_FMT_I420 , width, height, 1); configured = true; return VPX_CODEC_OK;
and the code for the encoding
libyuv::RAWToI420(frame, vpx_image.d_w * 3, vpx_image.planes[VPX_PLANE_Y],vpx_image.stride[VPX_PLANE_Y], vpx_image.planes[VPX_PLANE_U], vpx_image.stride[VPX_PLANE_U], vpx_image.planes[VPX_PLANE_V], vpx_image.stride[VPX_PLANE_V], vpx_image.d_w, vpx_image.d_h); const vpx_codec_cx_pkt_t *pkt; vpx_codec_err_t error = vpx_codec_encode(&codec, &vpx_image, 0 REPLY 0 views 0 likes 0 shares Facebook Twitter Linked In WhatsApp
Just came across this post because I faced the same problem. Just for other to know: I solved it with setting
enc_cfg.g_lag_in_frames = 0;
This basically disallows the encoder to consume up to default 25 frames until it produces any output.
No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
General Tech 9 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 2 Answers
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.