- Timestamp:
- Nov 17, 2017 1:20:17 PM (7 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r68990 r69724 2765 2765 rc = rc2; 2766 2766 } 2767 2768 if (RT_FAILURE(rc)) 2769 LogRel(("VideoRec: Failed to start video recording (%Rrc)\n", rc)); 2770 2767 2771 return rc; 2768 2772 } -
trunk/src/VBox/Main/src-client/VideoRec.cpp
r69683 r69724 207 207 bool fHasVideoData; 208 208 #endif 209 /** Number of failed attempts to encode the current video frame in a row. */ 210 uint16_t cFailedEncodingFrames; 209 211 } Video; 210 212 } VIDEORECSTREAM, *PVIDEORECSTREAM; … … 1044 1046 1045 1047 pStream->pCtx = pCtx; 1048 1046 1049 /** @todo Make the following parameters configurable on a per-stream basis? */ 1047 pStream->Video.uWidth = pCfg->Video.uWidth; 1048 pStream->Video.uHeight = pCfg->Video.uHeight; 1050 pStream->Video.uWidth = pCfg->Video.uWidth; 1051 pStream->Video.uHeight = pCfg->Video.uHeight; 1052 pStream->Video.cFailedEncodingFrames = 0; 1049 1053 1050 1054 #ifndef VBOX_VIDEOREC_WITH_QUEUE … … 1174 1178 if (rcv != VPX_CODEC_OK) 1175 1179 { 1176 Log Flow(("Failed to initialize VP8 encoder: %s\n", vpx_codec_err_to_string(rcv)));1180 LogRel(("VideoRec: Failed to initialize VP8 encoder: %s\n", vpx_codec_err_to_string(rcv))); 1177 1181 return VERR_INVALID_PARAMETER; 1178 1182 } … … 1180 1184 if (!vpx_img_alloc(&pVC->VPX.RawImage, VPX_IMG_FMT_I420, pCfg->Video.uWidth, pCfg->Video.uHeight, 1)) 1181 1185 { 1182 Log Flow(("Failed to allocate image %RU32x%RU32\n", pCfg->Video.uWidth, pCfg->Video.uHeight));1186 LogRel(("VideoRec: Failed to allocate image %RU32x%RU32\n", pCfg->Video.uWidth, pCfg->Video.uHeight)); 1183 1187 return VERR_NO_MEMORY; 1184 1188 } … … 1338 1342 if (rcv != VPX_CODEC_OK) 1339 1343 { 1340 LogFunc(("Failed to encode video frame: %s\n", vpx_codec_err_to_string(rcv))); 1341 return VERR_GENERAL_FAILURE; 1342 } 1344 if (pStream->Video.cFailedEncodingFrames++ < 64) 1345 { 1346 LogRel(("VideoRec: Failed to encode video frame: %s\n", vpx_codec_err_to_string(rcv))); 1347 return VERR_GENERAL_FAILURE; 1348 } 1349 } 1350 1351 pStream->Video.cFailedEncodingFrames = 0; 1343 1352 1344 1353 vpx_codec_iter_t iter = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.