Get file path of movie playing in VLC
That's an easy one

osascript -e 'tell application "VLC" to get path of current item'

That returns the path to the currently playing movie. If you want more I suggest you select "Open Dictionary.." in the File menu of "Script Editor", select VLC and have a good look. Then do man osascript on the command line for the man page of osascript.