VirtualBox

Opened 6 years ago

Closed 5 years ago

#17861 closed defect (fixed)

"VBoxManage modifyvm <UUID> --videocap on" doesn't work

Reported by: vboooo Owned by:
Component: other Version: VirtualBox 5.2.12
Keywords: Video Cc:
Guest type: all Host type: Windows

Description

Since 5.2.x video recording doesn't start together with startvm.

VBoxManage modifyvm "%_VM_NAME%" --videocap on

works until VBox 5.1.32

Under VBox 5.2.x the video icon on VBoxGUI is running around, but no *webm file exist. After

VBoxManage controlvm "%_VM_NAME%" videocap on

the *.webm file is created.

  • To reproduce *
    set PATH=%PATH%;C:\Program Files\Oracle\VirtualBox
    
    pushd %~dp0
    
    set _VM_NAME=test-5p1_001
    
    VBoxManage createvm --name "%_VM_NAME%" --register --basefolder "%CD%"
    VBoxManage modifyvm "%_VM_NAME%" --memory 512 --acpi on --boot1 dvd
    VBoxManage modifyvm "%_VM_NAME%" --ostype Debian
    VBoxManage createhd --filename %_VM_NAME%.vdi --size 10000
    VBoxManage storagectl "%_VM_NAME%" --name "IDE Controller" --add ide
    VBoxManage storageattach "%_VM_NAME%" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium %_VM_NAME%.vdi
    
    VBoxManage modifyvm "%_VM_NAME%" --videocapfile "%CD%\%_VM_NAME%.webm"
    
    ::VBox 5.1.32: create video, if VM started
    ::VBox 5.2.12: doesn't work, if VM started (but videocap icon on VBox GUI rotate)
    VBoxManage modifyvm "%_VM_NAME%" --videocap on
    
    VBoxManage startvm "%_VM_NAME%" --type gui
    
    ::VBox 5.2.12: additional necessary to create video
    rem VBoxManage controlvm "%_VM_NAME%" videocap on
    
    ping localhost -n 5 >nul 2>nul
    VBoxManage controlvm "%_VM_NAME%" poweroff
    dir *.webm
    
    pause
    

Change History (2)

comment:1 by vboooo, 6 years ago

Fixed with:

VirtualBox 5.2.20 (released October 16 2018)

Video recording: fixed starting video recording on VM power up (bug #17307)

comment:2 by janitor, 5 years ago

Resolution: fixed
Status: newclosed

Thanks for the reminder.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use