Changeset 42471 in vbox for trunk/src/VBox
- Timestamp:
- Jul 31, 2012 7:46:57 AM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxHeadless
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r42467 r42471 471 471 " \"TCP/Address\" - interface IP the VRDE server\n" 472 472 " will bind to\n" 473 " --settingspw 474 " --settingspwfile 473 " --settingspw <pw> Specify the settings password\n" 474 " --settingspwfile <file> Specify a file containing the settings password\n" 475 475 #ifdef VBOX_WITH_VIDEO_REC 476 476 " -c, -capture, --capture Record the VM screen output to a file\n" … … 486 486 #ifdef VBOX_WITH_VIDEO_REC 487 487 /** 488 * Parse the environment for variables which can influence the VIDEORECsettings.488 * Parse the environment for variables which can influence the FFMPEG settings. 489 489 * purely for backwards compatibility. 490 490 * @param pulFrameWidth may be updated with a desired frame width … … 613 613 unsigned fCSAM = ~0U; 614 614 #ifdef VBOX_WITH_VIDEO_REC 615 unsigned f VIDEOREC= 0;615 unsigned fFFMPEG = 0; 616 616 unsigned long ulFrameWidth = 800; 617 617 unsigned long ulFrameHeight = 600; … … 755 755 #ifdef VBOX_WITH_VIDEO_REC 756 756 case 'c': 757 f VIDEOREC= true;757 fFFMPEG = true; 758 758 break; 759 759 case 'w': … … 931 931 #ifdef VBOX_WITH_VIDEO_REC 932 932 IFramebuffer *pFramebuffer = 0; 933 RTLDRMOD hLdr VideoRecFB;934 PFNREGISTER VIDEORECFB pfnRegisterVideoRecFB;935 936 if (f VIDEOREC)933 RTLDRMOD hLdrFFmpegFB; 934 PFNREGISTERFFMPEGFB pfnRegisterFFmpegFB; 935 936 if (fFFMPEG) 937 937 { 938 938 HRESULT rcc = S_OK; … … 940 940 RTERRINFOSTATIC ErrInfo; 941 941 942 Log2(("VBoxHeadless: loading VBox VideoRecFB and libvpx shared library\n"));942 Log2(("VBoxHeadless: loading VBoxFFmpegFB and libvpx shared library\n")); 943 943 RTErrInfoInitStatic(&ErrInfo); 944 rrc = SUPR3HardenedLdrLoadAppPriv("VBox VideoRecFB", &hLdrVideoRecFB, RTLDRLOAD_FLAGS_LOCAL, &ErrInfo.Core);944 rrc = SUPR3HardenedLdrLoadAppPriv("VBoxFFmpegFB", &hLdrFFmpegFB, RTLDRLOAD_FLAGS_LOCAL, &ErrInfo.Core); 945 945 946 946 if (RT_SUCCESS(rrc)) 947 947 { 948 Log2(("VBoxHeadless: looking up symbol VBoxRegister VideoRecFB\n"));949 rrc = RTLdrGetSymbol(hLdr VideoRecFB, "VBoxRegisterVideoRecFB",950 reinterpret_cast<void **>(&pfnRegister VideoRecFB));948 Log2(("VBoxHeadless: looking up symbol VBoxRegisterFFmpegFB\n")); 949 rrc = RTLdrGetSymbol(hLdrFFmpegFB, "VBoxRegisterFFmpegFB", 950 reinterpret_cast<void **>(&pfnRegisterFFmpegFB)); 951 951 if (RT_FAILURE(rrc)) 952 952 LogError("Failed to load the video capture extension, possibly due to a damaged file\n", rrc); … … 956 956 if (RT_SUCCESS(rrc)) 957 957 { 958 Log2(("VBoxHeadless: calling pfnRegister VideoRecFB\n"));959 rcc = pfnRegister VideoRecFB(ulFrameWidth, ulFrameHeight, ulBitRate,958 Log2(("VBoxHeadless: calling pfnRegisterFFmpegFB\n")); 959 rcc = pfnRegisterFFmpegFB(ulFrameWidth, ulFrameHeight, ulBitRate, 960 960 pszMPEGFile, &pFramebuffer); 961 961 if (rcc != S_OK) … … 984 984 { 985 985 # ifdef VBOX_WITH_VIDEO_REC 986 if (f VIDEOREC&& uScreenId == 0)986 if (fFFMPEG && uScreenId == 0) 987 987 { 988 988 /* Already registered. */ -
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.h
r42467 r42471 2 2 * 3 3 * VBox frontends: VRDE (headless Remote Desktop server): 4 * Header file with registration call for VideoRecframebuffer4 * Header file with registration call for ffmpeg framebuffer 5 5 */ 6 6 … … 31 31 32 32 /** 33 * Callback function to register an VideoRecframebuffer.33 * Callback function to register an ffmpeg framebuffer. 34 34 * 35 35 * @returns COM status code. … … 41 41 * @retval retVal The new framebuffer 42 42 */ 43 typedef DECLCALLBACK(HRESULT) FNREGISTER VIDEORECFB(ULONG width,43 typedef DECLCALLBACK(HRESULT) FNREGISTERFFMPEGFB(ULONG width, 44 44 ULONG height, ULONG bitrate, 45 45 com::Bstr filename, 46 46 IFramebuffer **retVal); 47 typedef FNREGISTER VIDEORECFB *PFNREGISTERVIDEORECFB;47 typedef FNREGISTERFFMPEGFB *PFNREGISTERFFMPEGFB; 48 48 49 49 #endif // __H_VBOXHEADLESS -
trunk/src/VBox/Frontends/VBoxHeadless/VideoCapture/Makefile.kmk
r42467 r42471 19 19 include $(KBUILD_PATH)/subheader.kmk 20 20 21 DLLS += VBox VideoRecFB22 VBox VideoRecFB_TEMPLATE = VBOXMAINCLIENTDLL21 DLLS += VBoxFFmpegFB 22 VBoxFFmpegFB_TEMPLATE = VBOXMAINCLIENTDLL 23 23 24 24 ifdef VBOX_WITH_VPX 25 VBox VideoRecFB_DEFS += \25 VBoxFFmpegFB_DEFS += \ 26 26 VBOX_WITH_VPX 27 27 endif 28 28 29 29 ifdef VBOX_WITH_VPX 30 VBox VideoRecFB_SDKS = VBOX_FFMPEG VBOX_LIBPNG VBOX_ZLIB VBOX_VPX30 VBoxFFmpegFB_SDKS = VBOX_FFMPEG VBOX_LIBPNG VBOX_ZLIB VBOX_VPX 31 31 else 32 VBox VideoRecFB_SDKS = VBOX_FFMPEG VBOX_LIBPNG VBOX_ZLIB32 VBoxFFmpegFB_SDKS = VBOX_FFMPEG VBOX_LIBPNG VBOX_ZLIB 33 33 endif 34 34 35 35 ifdef VBOX_WITH_VPX 36 VBoxVideoRecFB_SOURCES += \ 37 VideoRecFB.cpp \ 38 EbmlWriter.cpp \ 39 EncodeAndWrite.cpp 36 VBoxFFmpegFB_SOURCES += \ 37 FFmpegFB.cpp \ 38 EbmlWriter.cpp 40 39 else 41 VBox VideoRecFB_SOURCES += \42 VideoRecFB.cpp40 VBoxFFmpegFB_SOURCES += \ 41 FFmpegFB.cpp 43 42 endif 44 43 45 VBox VideoRecFB_CXXFLAGS.linux += -fPIC44 VBoxFFmpegFB_CXXFLAGS.linux += -fPIC 46 45 47 46 include $(FILE_KBUILD_SUB_FOOTER)
Note:
See TracChangeset
for help on using the changeset viewer.