Answer the question
In order to leave comments, you need to log in
How to start and then terminate vlc in Swift 4?
I'm trying to create an application that would allow you to record what is happening on the screen using vlc.
I found a handy line
/Applications/VLC.app/Contents/MacOS/VLC -I dummy screen:// --screen-fps=25 --quiet --sout "#transcode{vcodec=h264,vb072}:standard{access= file,mux=mp4,dst="Desktop/vlc-output-terminal.mp4"}"
which allows you to instantly start recording. Stop recording - ctrl+c.
All this works fine in the terminal. Now I want to pack into an application.
Found this:
https://iswift.org/cookbook/execute-a-shell-command
When I start I get
Couldn't posix_spawn: error 1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question