08-27-2019, 12:24 PM | #1 |
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 5,265
|
GetSetProjectInfo resets audio/video codecs if called quickly (FIXED)
The following snippet successfully sets the render output video and audio codecs to MJPEG/24-bit PCM.
Code:
reaper.GetSetProjectInfo_String(0, 'RENDER_FORMAT', 'UE1GRgMAAAACAAAAAAgAAAMAAACAAAAAgAcAADgEAAAAAPBBAQAAAF8AAAA=', true) Code:
reaper.GetSetProjectInfo_String(0, 'RENDER_FORMAT', 'UE1GRgMAAAACAAAAAAgAAAMAAACAAAAAgAcAADgEAAAAAPBBAQAAAF8AAAA=', true) reaper.GetSetProjectInfo(0, 'RENDER_SRATE', 0, true) -- randomly resets a/v codecs?! Code:
reaper.GetSetProjectInfo_String(0, 'RENDER_FORMAT', 'UE1GRgMAAAACAAAAAAgAAAMAAACAAAAAgAcAADgEAAAAAPBBAQAAAF8AAAA=', true) reaper.defer(function() reaper.GetSetProjectInfo(0, 'RENDER_SRATE', 0, true) -- less likely to reset the codecs end)
__________________
🎁 Donate (PayPal) | Sponsor (GitHub) | The Endless Journey (Keyboard Ensemble) ReaPack, a package manager for REAPER | SWS 2.14 is now available in ReaPack [new!] Developer tools: Lua profiler | Interactive ReaScript | ReaPack Editor | ReaImGui |
08-30-2019, 11:12 AM | #2 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,117
|
Ah, fixing!
|
Thread Tools | |
Display Modes | |
|
|