Repository navigation
nwcommands 3.32.0
Added
nwmovie export()on Linux:.mp4and.webmare made withffmpeg(libx264 and libvpx-vp9) from a GIF that the viewer draws at 25 frames per second;.gifis written by the viewer itself and needs nothing. Withoutffmpeg(or without that encoder) the command stops at once with error 498, before anything is launched. On macOS and Windows nothing changes: the viewer encodes the video itself. Where a viewer engine can encode WebM through WebCodecs it does so with the vendoredwebm-muxer.js(MIT; registered inNOTICE.md).
Fixed
nwmovie export(): a failure, a stall (120 s without progress), a viewer that has disappeared without a file, or a Linux session without a display ends the command with error 498, and the viewer is stopped. On macOS the command stops at once (error 498) when the screen is locked; other viewer windows are never touched.nwmovieerases every temporary file it made (pages, keyframe files, export files, the staged viewer and its profile folder) on success and on failure.- Two exports started together no longer collide: temporary file and viewer names are unique per Stata process. The random stream is unchanged, so seeded layouts stay the same.
export()withoutfname()no longer writesmovie.htmlinto the current folder; the page goes to the temp folder.nwinstall, remove path()no longer stops in console Stata at the window menu.
Tested on macOS (Stata 17): test_nwmovie, test_nwmovie_kill, test_nwinstall_ancillary, test_nwcoefplot, test_nwcore_plots, test_nwcore_plots2, test_dlg_options and test_dlg_plots pass (in test_nwinstall_ancillary only the final real-export step stops, with the expected locked-screen error 498). The real macOS viewer export was not run for this release because the screen was locked; the macOS code path is unchanged, and an earlier build of the same branch produced an .mp4 on the Mac. The .mp4, .webm and .gif exports, concurrent exports and the cleanup were tested on Linux (Ubuntu 22.04) and on Windows 11 (both StataNow 19.5 MP). Stata 18 was not run for this release.