- Timestamp:
- Nov 9, 2018 9:17:06 AM (6 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 6 edited
- 10 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Makefile.kmk
r75341 r75344 804 804 VBoxC_DEFS += VBOX_WITH_LIBVPX 805 805 VBoxC_SOURCES += \ 806 src-client/ VideoRec.cpp \807 src-client/ VideoRecInternals.cpp \808 src-client/ VideoRecStream.cpp \809 src-client/ VideoRecUtils.cpp806 src-client/Recording.cpp \ 807 src-client/RecordingInternals.cpp \ 808 src-client/RecordingStream.cpp \ 809 src-client/RecordingUtils.cpp 810 810 else 811 $(error "VBox: No alternative for VPX when using video capturing support yet")811 $(error "VBox: No alternative for VPX when using recording support yet") 812 812 endif 813 813 endif … … 818 818 VBoxC_DEFS += VBOX_WITH_LIBOPUS 819 819 else 820 $(error "VBox: No alternative for Opus when using audio support for video capturing yet")820 $(error "VBox: No alternative for Opus when using audio support for recording yet") 821 821 endif 822 822 endif … … 933 933 src-client/AudioDriver.cpp \ 934 934 $(if $(VBOX_WITH_AUDIO_VRDE),src-client/DrvAudioVRDE.cpp,) \ 935 $(if $(VBOX_WITH_AUDIO_VIDEOREC),src-client/DrvAudio VideoRec.cpp,)935 $(if $(VBOX_WITH_AUDIO_VIDEOREC),src-client/DrvAudioRec.cpp,) 936 936 937 937 VBoxC_SOURCES.win = \ -
trunk/src/VBox/Main/include/ConsoleImpl.h
r75341 r75344 25 25 #include "ConsoleWrap.h" 26 26 #ifdef VBOX_WITH_VIDEOREC 27 # include " VideoRec.h"27 # include "Recording.h" 28 28 #endif 29 29 -
trunk/src/VBox/Main/include/DrvAudioRec.h
r75343 r75344 25 25 26 26 #include "AudioDriver.h" 27 #include " VideoRec.h"27 #include "Recording.h" 28 28 29 29 using namespace com; -
trunk/src/VBox/Main/include/Recording.h
r75343 r75344 1 1 /* $Id$ */ 2 2 /** @file 3 * Video recording code header.3 * Recording code header. 4 4 */ 5 5 … … 27 27 using namespace com; 28 28 29 #include " VideoRecInternals.h"30 #include " VideoRecStream.h"29 #include "RecordingInternals.h" 30 #include "RecordingStream.h" 31 31 32 32 class Console; -
trunk/src/VBox/Main/include/RecordingInternals.h
r75343 r75344 1 1 /* $Id$ */ 2 2 /** @file 3 * Video recording internals header.3 * Recording internals header. 4 4 */ 5 5 -
trunk/src/VBox/Main/include/RecordingStream.h
r75343 r75344 1 1 /* $Id$ */ 2 2 /** @file 3 * Video recording stream code header.3 * Recording stream code header. 4 4 */ 5 5 … … 29 29 #include <VBox/settings.h> 30 30 31 #include " VideoRecInternals.h"31 #include "RecordingInternals.h" 32 32 33 33 class WebMWriter; -
trunk/src/VBox/Main/include/RecordingUtils.h
r75343 r75344 1 1 /* $Id$ */ 2 2 /** @file 3 * Video recording utility header.3 * Recording utility header. 4 4 */ 5 5 -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r75341 r75344 63 63 #endif 64 64 #ifdef VBOX_WITH_AUDIO_VIDEOREC 65 # include "DrvAudio VideoRec.h"65 # include "DrvAudioRec.h" 66 66 #endif 67 67 #include "Nvram.h" … … 84 84 85 85 #ifdef VBOX_WITH_VIDEOREC 86 # include " VideoRec.h"86 # include "Recording.h" 87 87 #endif 88 88 … … 5621 5621 if (RT_BOOL(fEnable) != fIsEnabled) 5622 5622 { 5623 LogRel((" VideoRec: %s\n", fEnable ? "Enabling" : "Disabling"));5623 LogRel(("Recording: %s\n", fEnable ? "Enabling" : "Disabling")); 5624 5624 5625 5625 pDisplay->i_videoRecInvalidate(); … … 5657 5657 5658 5658 if (RT_FAILURE(vrc)) 5659 LogRel((" VideoRec: %s failed with %Rrc\n", fEnable ? "Enabling" : "Disabling", vrc));5659 LogRel(("Recording: %s failed with %Rrc\n", fEnable ? "Enabling" : "Disabling", vrc)); 5660 5660 } 5661 5661 else /* Should not happen. */ … … 7009 7009 return VINF_SUCCESS; 7010 7010 7011 LogRel((" VideoRec: Starting ...\n"));7011 LogRel(("Recording: Starting ...\n")); 7012 7012 7013 7013 int rc = Capture.mpVideoRecCtx->Start(); … … 7019 7019 7020 7020 if (RT_FAILURE(rc)) 7021 LogRel((" VideoRec: Failed to start video recording (%Rrc)\n", rc));7021 LogRel(("Recording: Failed to start video recording (%Rrc)\n", rc)); 7022 7022 7023 7023 LogFlowFuncLeaveRC(rc); … … 7034 7034 return VINF_SUCCESS; 7035 7035 7036 LogRel((" VideoRec: Stopping ...\n"));7036 LogRel(("Recording: Stopping ...\n")); 7037 7037 7038 7038 int rc = Capture.mpVideoRecCtx->Stop(); … … 7049 7049 ComAssertComRC(hrc); 7050 7050 7051 LogRel((" VideoRec: Stopped\n"));7051 LogRel(("Recording: Stopped\n")); 7052 7052 } 7053 7053 else 7054 LogRel((" VideoRec: Failed to stop video recording (%Rrc)\n", rc));7054 LogRel(("Recording: Failed to stop video recording (%Rrc)\n", rc)); 7055 7055 7056 7056 LogFlowFuncLeaveRC(rc); … … 10162 10162 } 10163 10163 else 10164 LogRel((" VideoRec: Failed with %Rrc on VM power up\n", vrc2));10164 LogRel(("Recording: Failed with %Rrc on VM power up\n", vrc2)); 10165 10165 10166 10166 /** Note: Do not use vrc here, as starting the video recording isn't critical to -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r75331 r75344 126 126 #endif 127 127 #ifdef VBOX_WITH_AUDIO_VIDEOREC 128 # include "DrvAudio VideoRec.h"128 # include "DrvAudioRec.h" 129 129 #endif 130 130 #include "NetworkServiceRunner.h" -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r75341 r75344 55 55 #ifdef VBOX_WITH_VIDEOREC 56 56 # include <iprt/path.h> 57 # include " VideoRec.h"57 # include "Recording.h" 58 58 59 59 # ifdef VBOX_WITH_LIBVPX -
trunk/src/VBox/Main/src-client/DrvAudioRec.cpp
r75343 r75344 86 86 #include "LoggingNew.h" 87 87 88 #include "DrvAudio VideoRec.h"88 #include "DrvAudioRec.h" 89 89 #include "ConsoleImpl.h" 90 90 … … 322 322 if (cChannels > 2) 323 323 { 324 LogRel((" VideoRec: Warning: More than 2 (stereo) channels are not supported at the moment\n"));324 LogRel(("Recording: Warning: More than 2 (stereo) channels are not supported at the moment\n")); 325 325 cChannels = 2; 326 326 } … … 330 330 if (orc != OPUS_OK) 331 331 { 332 LogRel((" VideoRec: Audio codec failed to initialize: %s\n", opus_strerror(orc)));332 LogRel(("Recording: Audio codec failed to initialize: %s\n", opus_strerror(orc))); 333 333 return VERR_AUDIO_BACKEND_INIT_FAILED; 334 334 } … … 344 344 pEnc = NULL; 345 345 346 LogRel((" VideoRec: Audio codec failed to set bitrate (%RU32): %s\n", uBitrate, opus_strerror(orc)));346 LogRel(("Recording: Audio codec failed to set bitrate (%RU32): %s\n", uBitrate, opus_strerror(orc))); 347 347 return VERR_AUDIO_BACKEND_INIT_FAILED; 348 348 } … … 357 357 pEnc = NULL; 358 358 359 LogRel((" VideoRec: Audio codec failed to %s VBR mode: %s\n", fUseVBR ? "enable" : "disable", opus_strerror(orc)));359 LogRel(("Recording: Audio codec failed to %s VBR mode: %s\n", fUseVBR ? "enable" : "disable", opus_strerror(orc))); 360 360 return VERR_AUDIO_BACKEND_INIT_FAILED; 361 361 } … … 398 398 if (RT_SUCCESS(rc)) 399 399 { 400 LogRel((" VideoRec: Recording audio to audio file '%s'\n", pszFile));400 LogRel(("Recording: Recording audio to audio file '%s'\n", pszFile)); 401 401 } 402 402 else 403 LogRel((" VideoRec: Error creating audio track for audio file '%s' (%Rrc)\n", pszFile, rc));403 LogRel(("Recording: Error creating audio track for audio file '%s' (%Rrc)\n", pszFile, rc)); 404 404 } 405 405 else 406 LogRel((" VideoRec: Error creating audio file '%s' (%Rrc)\n", pszFile, rc));406 LogRel(("Recording: Error creating audio file '%s' (%Rrc)\n", pszFile, rc)); 407 407 } 408 408 break; … … 454 454 } 455 455 456 LogRel((" VideoRec: Error creating sink (%Rrc)\n", rc));456 LogRel(("Recording: Error creating sink (%Rrc)\n", rc)); 457 457 } 458 458 … … 484 484 if (pSink->Con.WebM.pWebM) 485 485 { 486 LogRel2((" VideoRec: Finished recording audio to file '%s' (%zu bytes)\n",486 LogRel2(("Recording: Finished recording audio to file '%s' (%zu bytes)\n", 487 487 pSink->Con.WebM.pWebM->GetFileName().c_str(), pSink->Con.WebM.pWebM->GetFileSize())); 488 488 … … 526 526 AssertFailed(); 527 527 528 LogRel2((" VideoRec: Support for surround audio not implemented yet\n"));528 LogRel2(("Recording: Support for surround audio not implemented yet\n")); 529 529 return VERR_NOT_SUPPORTED; 530 530 } … … 656 656 PDRVAUDIOVIDEOREC pThis = PDMIHOSTAUDIO_2_DRVAUDIOVIDEOREC(pInterface); 657 657 658 LogRel((" VideoRec: Audio driver is using %RU32Hz, %RU16bit, %RU8 %s\n",658 LogRel(("Recording: Audio driver is using %RU32Hz, %RU16bit, %RU8 %s\n", 659 659 pThis->CodecParms.PCMProps.uHz, pThis->CodecParms.PCMProps.cBytes * 8, 660 660 pThis->CodecParms.PCMProps.cChannels, pThis->CodecParms.PCMProps.cChannels == 1 ? "channel" : "channels")); … … 663 663 if (RT_FAILURE(rc)) 664 664 { 665 LogRel((" VideoRec: Audio recording driver failed to initialize, rc=%Rrc\n", rc));665 LogRel(("Recording: Audio recording driver failed to initialize, rc=%Rrc\n", rc)); 666 666 } 667 667 else 668 LogRel2((" VideoRec: Audio recording driver initialized\n"));668 LogRel2(("Recording: Audio recording driver initialized\n")); 669 669 670 670 return rc; -
trunk/src/VBox/Main/src-client/Recording.cpp
r75343 r75344 1 1 /* $Id$ */ 2 2 /** @file 3 * Video recording (with optional audio recording) code.3 * Recording (with optional audio recording) code. 4 4 * 5 5 * This code employs a separate encoding thread per recording context … … 44 44 45 45 #include "ConsoleImpl.h" 46 #include " VideoRec.h"47 #include " VideoRecInternals.h"48 #include " VideoRecStream.h"49 #include " VideoRecUtils.h"46 #include "Recording.h" 47 #include "RecordingInternals.h" 48 #include "RecordingStream.h" 49 #include "RecordingUtils.h" 50 50 #include "WebMWriter.h" 51 51 … … 145 145 146 146 if (RT_FAILURE(rc)) 147 LogRel((" VideoRec: Encoding thread failed with rc=%Rrc\n", rc));147 LogRel(("Recording: Encoding thread failed with rc=%Rrc\n", rc)); 148 148 149 149 /* Keep going in case of errors. */ -
trunk/src/VBox/Main/src-client/RecordingInternals.cpp
r75343 r75344 1 1 /* $Id$ */ 2 2 /** @file 3 * Video recording internals code.3 * Recording internals code. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #include " VideoRecInternals.h"18 #include "RecordingInternals.h" 19 19 20 20 #include <iprt/assert.h> -
trunk/src/VBox/Main/src-client/RecordingStream.cpp
r75343 r75344 1 1 /* $Id$ */ 2 2 /** @file 3 * Video recording stream code.3 * Recording stream code. 4 4 */ 5 5 … … 36 36 #include <VBox/com/VirtualBox.h> 37 37 38 #include " VideoRec.h"39 #include " VideoRecStream.h"40 #include " VideoRecUtils.h"38 #include "Recording.h" 39 #include "RecordingStream.h" 40 #include "RecordingUtils.h" 41 41 #include "WebMWriter.h" 42 42 … … 165 165 if (RT_FAILURE(rc)) 166 166 { 167 LogRel((" VideoRec: Failed to open file '%s' for screen %RU32, rc=%Rrc\n",167 LogRel(("Recording: Failed to open file '%s' for screen %RU32, rc=%Rrc\n", 168 168 pszFile ? pszFile : "<Unnamed>", this->uScreenID, rc)); 169 169 } … … 200 200 else 201 201 { 202 LogRel((" VideoRec: Setting encoder deadline to '%s'\n", value.c_str()));202 LogRel(("Recording: Setting encoder deadline to '%s'\n", value.c_str())); 203 203 this->Video.Codec.VPX.uEncoderDeadline = value.toUInt32(); 204 204 #endif … … 211 211 this->ScreenSettings.featureMap[RecordFeature_Video] = false; 212 212 #ifdef VBOX_WITH_AUDIO_VIDEOREC 213 LogRel((" VideoRec: Only audio will be recorded\n"));213 LogRel(("Recording: Only audio will be recorded\n")); 214 214 #endif 215 215 } … … 223 223 } 224 224 else 225 LogRel((" VideoRec: Only video will be recorded\n"));225 LogRel(("Recording: Only video will be recorded\n")); 226 226 #endif 227 227 } … … 248 248 } 249 249 else 250 LogRel((" VideoRec: Unknown option '%s' (value '%s'), skipping\n", key.c_str(), value.c_str()));250 LogRel(("Recording: Unknown option '%s' (value '%s'), skipping\n", key.c_str(), value.c_str())); 251 251 252 252 } /* while */ … … 291 291 && this->File.pWEBM->GetAvailableSpace() < 0x100000) /** @todo r=andy WTF? Fix this. */ 292 292 { 293 LogRel((" VideoRec: Not enough free storage space available, stopping video capture\n"));293 LogRel(("Recording: Not enough free storage space available, stopping video capture\n")); 294 294 return true; 295 295 } … … 715 715 if (RT_FAILURE(rc)) 716 716 { 717 LogRel((" VideoRec: Failed to create the capture output file '%s' (%Rrc)\n", pszFile, rc));717 LogRel(("Recording: Failed to create the capture output file '%s' (%Rrc)\n", pszFile, rc)); 718 718 break; 719 719 } … … 725 725 if (RT_FAILURE(rc)) 726 726 { 727 LogRel((" VideoRec: Failed to add video track to output file '%s' (%Rrc)\n", pszFile, rc));727 LogRel(("Recording: Failed to add video track to output file '%s' (%Rrc)\n", pszFile, rc)); 728 728 break; 729 729 } 730 730 731 LogRel((" VideoRec: Recording video of screen #%u with %RU32x%RU32 @ %RU32 kbps, %RU32 FPS (track #%RU8)\n",731 LogRel(("Recording: Recording video of screen #%u with %RU32x%RU32 @ %RU32 kbps, %RU32 FPS (track #%RU8)\n", 732 732 this->uScreenID, Settings.Video.ulWidth, Settings.Video.ulHeight, Settings.Video.ulRate, 733 733 Settings.Video.ulFPS, this->uTrackVideo)); … … 741 741 if (RT_FAILURE(rc)) 742 742 { 743 LogRel((" VideoRec: Failed to add audio track to output file '%s' (%Rrc)\n", pszFile, rc));743 LogRel(("Recording: Failed to add audio track to output file '%s' (%Rrc)\n", pszFile, rc)); 744 744 break; 745 745 } 746 746 747 LogRel((" VideoRec: Recording audio in %RU16Hz, %RU8 bit, %RU8 %s (track #%RU8)\n",747 LogRel(("Recording: Recording audio in %RU16Hz, %RU8 bit, %RU8 %s (track #%RU8)\n", 748 748 Settings.Audio.uHz, Settings.Audio.cBits, Settings.Audio.cChannels, 749 749 Settings.Audio.cChannels ? "channels" : "channel", this->uTrackAudio)); … … 768 768 } 769 769 #endif 770 LogRel((" VideoRec: Recording %s to '%s'\n", szWhat, pszFile));770 LogRel(("Recording: Recording %s to '%s'\n", szWhat, pszFile)); 771 771 } 772 772 … … 828 828 this->Blocks.Clear(); 829 829 830 LogRel((" VideoRec: Recording screen #%u stopped\n", this->uScreenID));830 LogRel(("Recording: Recording screen #%u stopped\n", this->uScreenID)); 831 831 } 832 832 833 833 if (RT_FAILURE(rc)) 834 834 { 835 LogRel((" VideoRec: Error stopping recording screen #%u, rc=%Rrc\n", this->uScreenID, rc));835 LogRel(("Recording: Error stopping recording screen #%u, rc=%Rrc\n", this->uScreenID, rc)); 836 836 return rc; 837 837 } … … 846 846 if (RT_SUCCESS(rc)) 847 847 { 848 LogRel((" VideoRec: Closed file '%s'\n", this->ScreenSettings.File.strName.c_str()));848 LogRel(("Recording: Closed file '%s'\n", this->ScreenSettings.File.strName.c_str())); 849 849 } 850 850 else 851 851 { 852 LogRel((" VideoRec: Error closing file '%s', rc=%Rrc\n", this->ScreenSettings.File.strName.c_str(), rc));852 LogRel(("Recording: Error closing file '%s', rc=%Rrc\n", this->ScreenSettings.File.strName.c_str(), rc)); 853 853 break; 854 854 } … … 983 983 if (rcv != VPX_CODEC_OK) 984 984 { 985 LogRel((" VideoRec: Failed to get default config for VPX encoder: %s\n", vpx_codec_err_to_string(rcv)));985 LogRel(("Recording: Failed to get default config for VPX encoder: %s\n", vpx_codec_err_to_string(rcv))); 986 986 return VERR_AVREC_CODEC_INIT_FAILED; 987 987 } … … 1003 1003 if (rcv != VPX_CODEC_OK) 1004 1004 { 1005 LogRel((" VideoRec: Failed to initialize VPX encoder: %s\n", vpx_codec_err_to_string(rcv)));1005 LogRel(("Recording: Failed to initialize VPX encoder: %s\n", vpx_codec_err_to_string(rcv))); 1006 1006 return VERR_AVREC_CODEC_INIT_FAILED; 1007 1007 } … … 1010 1010 this->ScreenSettings.Video.ulWidth, this->ScreenSettings.Video.ulHeight, 1)) 1011 1011 { 1012 LogRel((" VideoRec: Failed to allocate image %RU32x%RU32\n",1012 LogRel(("Recording: Failed to allocate image %RU32x%RU32\n", 1013 1013 this->ScreenSettings.Video.ulWidth, this->ScreenSettings.Video.ulHeight)); 1014 1014 return VERR_NO_MEMORY; … … 1065 1065 if (this->Video.cFailedEncodingFrames++ < 64) /** @todo Make this configurable. */ 1066 1066 { 1067 LogRel((" VideoRec: Failed to encode video frame: %s\n", vpx_codec_err_to_string(rcv)));1067 LogRel(("Recording: Failed to encode video frame: %s\n", vpx_codec_err_to_string(rcv))); 1068 1068 return VERR_GENERAL_FAILURE; 1069 1069 } -
trunk/src/VBox/Main/src-client/RecordingUtils.cpp
r75343 r75344 1 1 /* $Id$ */ 2 2 /** @file 3 * Video recording utility code.3 * Recording utility code. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #include " VideoRec.h"19 #include " VideoRecUtils.h"18 #include "Recording.h" 19 #include "RecordingUtils.h" 20 20 21 21 #include <iprt/asm.h> -
trunk/src/VBox/Main/src-client/VBoxDriversRegister.cpp
r70496 r75344 32 32 #endif 33 33 #ifdef VBOX_WITH_AUDIO_VIDEOREC 34 # include "DrvAudio VideoRec.h"34 # include "DrvAudioRec.h" 35 35 #endif 36 36 #include "Nvram.h"
Note:
See TracChangeset
for help on using the changeset viewer.