GStreamer Video Output window not registered in MacOS Ventura
Describe your issue
It seems the way gst-launch-1.0
opens the window with title "GStreamer Video Output" via osxvideosink
is not compatible with AppleScript in MacOS Ventura.
The following script:
osascript -e 'tell application "System Events" to set position of first window of application process "gst-launch-1.0" to {3200,0}'
gst-launch-1.0 avfvideosrc ! osxvideosink
The AppleScript (osascript
) allowed me to place the output of osxvideosink
on an external monitor.
Before upgrading MacOS to Ventura, this worked well.
Expected Behavior
The AppleScript would continue to place the osxvideosink
window on another monitor
Observed Behavior
It fails with error:
execution error: System Events got an error: Can't set application process "gst-launch-1.0" to {3200,0}
Setup
- Operating System: MacOS Ventura 13.0.1
- Device: iMac Intel 3.6GHz 8-core i9
- GStreamer Version: 1.20.4
- Command line: zshell
Steps to reproduce the bug
- open terminal and type
gst-launch-1.0 avfvideosrc ! osxvideosink
- should see a window popup with title "GStreamer Video Output"
- open another terminal and type
osascript -e 'tell application "System Events" to get the title of every window of every process'
- AppleScript doesn't seem to know about the window with title "GStreamer Video Output"
How reproducible is the bug?
Always
Additional comments
Adding position (or bounds) properties to osxvideosink
, instead of fixing compatibility with AppleScript, would also fix my issue, if it's more straightforward.
Thanks
Edited by David McArthur