Play and pause through command line with MATLAB

*nix specific usage questions
Cecix_98
New Cone
New Cone
Posts: 1
Joined: 14 May 2024 17:35

Play and pause through command line with MATLAB

Postby Cecix_98 » 14 May 2024 17:47

Hi all,

I am currently writing a script in MATLAB with the aim of opening a video in vlc, having it paused on the first frame, wait for a keyboard press of the user and then play the video that is already open in vlc.
What I seem to be missing is how to tell vlc to play the video that is already open, and not open another window.

Here is part of the script I am using

openPaused_command = sprintf('"%s" --qt-fullscreen-screennumber=1 --no-video-title-show --start-paused --start-time=0.5 "%s &"', vlcPath, videoPath);

play_command = 'xdotool key space';


system(openPaused_command);
[~, keyCode, ~] = KbStrokeWait;
system(play_command);


I am working on an ubuntu partition.

Thank you to anyone who might have insights on this!
Cheers from Italy :)

Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 51 guests