x42 / xjadeo

X JAck viDEo mOnitor: a tool that displays a video clip in sync with an external time source (jack-transport, LTC and MTC). Applications include: soundtrack composition/editing, video monitoring and -installations.
http://xjadeo.sf.net/
GNU General Public License v2.0
41 stars 7 forks source link

Mac - command line invokation ignores file names with spaces in #31

Open mrlimbic opened 5 years ago

mrlimbic commented 5 years ago

I need to start Jadeo from the command line as will use multiple instances with different video files playing at different offsets.

However, if a video file is specified, it only loads if the filename contains no spaces.

Any idea? Sounds like would be a simple fix.

x42 commented 5 years ago

Which version of xjadeo, which OS? With a quick-test it works just fine here on Linux using xjadeo v0.8.8.

Also remote-control via Ardour is known to work on all major platforms with spaces in the file-name.

mrlimbic commented 5 years ago

Mac OS 10.13.6.

This doesn't load..

/Applications/Jadeo.app/Contents/MacOS/Jadeo /Users/john/Movies/Zombie\ Walk\ Beach\ of\ the\ Dead\ 2011\ -\ Puscifer\ Sour\ Grapes.MP4

When I copied the file and renamed it, it then does load..

/Applications/Jadeo.app/Contents/MacOS/Jadeo /Users/john/Movies/Zombie.MP4

I also tried using quotes instead of backslash method but no different.

How does remote-control specify the file? Is it via CLI interface or native?

x42 commented 5 years ago

I'm away from a mac right now. I'll check next time I have access to one. It may be the wrapper script. Can you try

/Applications/Jadeo.app/Contents/MacOS/Jadeo-bin "/path/to/your/video with spaces.mp4" ?


As for the remote ctrl, see http://xjadeo.sourceforge.net/remote.html
e.g. /Applications/Jadeo.app/Contents/MacOS/Jadeo --remote and interact via standard I/O load /Users/john/Movies/Zombie Walk Beach of the Dead 2011 - Puscifer Sour Grapes.MP4 you could probably try to echo or cat <<EOF the file.

IIRC there is also /Applications/Jadeo.app/Contents/MacOS/xjremote that decouples from a running instance.

mrlimbic commented 5 years ago

Still doesn't load using quotes if spaces. Yeah a wrapper script sounds like a very plausible cause.

This doesn't load with quotes..

/Applications/Jadeo.app/Contents/MacOS/Jadeo "/Users/john/Movies/Zombie Walk Beach of the Dead 2011 - Puscifer Sour Grapes.MP4"

This does load with quotes

/Applications/Jadeo.app/Contents/MacOS/Jadeo "/Users/john/Movies/Zombie.MP4"

Thanks.

mrlimbic commented 5 years ago

Also thanks for the remote control interface info. That doesn't seem to care about spaces. So I could just use that for the time being.

x42 commented 5 years ago

I meant ..../Jadeo-bin "..." (don't use the wrapper script to test, directly start the binary)

mrlimbic commented 5 years ago

Yes using Jadeo-bin directly solves the space issue.

Although when starting via CLI how do you shut it down cleanly? If I hit ctrl-C it just says CAUGHT SIGINT - shutting down. But doesn't actually shut down until I hit ctrl-C a second time. Then it says bye! and actually exits.

In remote mode quit shuts down cleanly first time.

x42 commented 5 years ago

If I hit ctrl-C it just says CAUGHT SIGINT - shutting down.

That sounds like a bug. So it seems like the clean-up phase hangs somewhere. Is the window closed? Maybe it's waiting for some Mac specific GUI event?!

perhaps send a SigQuit directly: ctrl+\ instead of a SigInt ctrl+c

mrlimbic commented 5 years ago

ctrl-\ quits immediately but leaves Mac OS popup "Jadeo quite unexpectedly" so it crashed