Video recording output type from script

Typically: "How do I... ", "How can I... " questions
Post Reply
Morgan
Posts: 2
Joined: 27 Apr 2020, 20:32

Video recording output type from script

Post by Morgan »

Hello,

how can I change codec in Video Recorder tool from child script?
I try autostart recording at simulation start writing to a init function customization script:

Code: Select all

sim.setBoolParameter(sim.boolparam_video_recording_triggered,1)
but I have error: "The video compressor failed initializing" with AVI/H.263+ codec (OS Windows 10). I can change the codec manually, but I need to change it from a customization script. When I restart the simulator, the codec is set to H.263

Perhaps someone knows how to get rid of this error and add codec AVI/H.263+ ? Or how change codec from script?

coppelia
Site Admin
Posts: 10366
Joined: 14 Dec 2012, 00:25

Re: Video recording output type from script

Post by coppelia »

Hello,

this is currently not possible. In next release (out next month) you will be able to do this via:

Code: Select all

sim.setInt32Parameter(sim.intparam_videoencoder_index,index)
Cheers

Post Reply