Page 1 of 1

Controlling VLC in Mac from Terminal

Posted: 09 Oct 2020 07:10
by emoperez46
I'm using the following command on Terminal to play a video on VLC:

$ /Applications/VLC.app/Contents/MacOS/VLC ~/Desktop/Test.m4v --intf=rc

I plays and I can hear the audio but it does not open the video window to show video and I get the following errors:

was not found
[00007fb59b7258b0] caopengllayer vout display error: No drawable-nsobject found!
[00007fb59b7258b0] macosx vout display error: No drawable-nsobject nor vout_window_t found, passing over.
[00007fb59d00ecf0] main video output error: video output creation failed
[00007fb59b5b1dc0] main decoder error: failed to create video output
[h264 @ 0x7fb59b861a00] get_buffer() failed
[h264 @ 0x7fb59b861a00] thread_get_buffer() failed
[h264 @ 0x7fb59b861a00] decode_slice_header error
[h264 @ 0x7fb59b861a00] no frame!

I have try different option like:

$ /Applications/VLC.app/Contents/MacOS/VLC ~/Desktop/Test.m4v --intf=rc --sout-display-video

$ /Applications/VLC.app/Contents/MacOS/VLC ~/Desktop/Test.m4v --intf=rc --fullscreen --autoscale

but I still get the same result.

Is there a way to make this work from command?

Re: Controlling VLC in Mac from Terminal

Posted: 21 Dec 2020 11:36
by ePirat
You need to start the main interface and use the rc as secondary: /Applications/VLC.app/Contents/MacOS/VLC --extraintf=rc ~/Desktop/Test.m4v