Skip to content

Cannot use spaces or quotes in player arguments for vlc #665

Closed

Description

@zuluwi

When I enter the following code to specify the snapshot folder in the player arguments, it gives an error due to spaces even though the folder path is in quotation marks

--language en --extraintf=luaintf:http --http-port=12342 --http-password=vlcpassword --snapshot-path "D:\stok\test folder\snapshots"

resim

also the arguments where I use quotation marks without spaces don't work. In cmd I can run the following code properly

"C:\Program Files\VideoLAN\VLC\vlc.exe" --extraintf=luaintf:http --http-port=12342 --http-password=vlcpassword --snapshot-path "D:\stok\test folder\snapshots" --snapshot-format="jpg" --snapshot-prefix="image-" 

Is this a bug or am I not entering these characters properly?

Version and platform:

  • OS: Windows 10 Pro 22H2 64-bit
  • Syncplay version and build type: Syncplay 1.6.9 portable
  • Media player and version: VLC 3.0.20 64-bit

Activity

  1. Et0h commented on Jan 24, 2024

    @Et0h
    Contributor

    Thanks for reporting this issue. I've had a look and I think it's a bug. As far as I can see if you want a space in a snapshot path that for now you will need to either manually set it in VLC preferences or use mpv/mpv.net.

  2. added
    help wantedAnyone willing to help can fix/implement this
    on Jan 24, 2024
  3. zuluwi commented on Jan 24, 2024

    @zuluwi
    Author

    Thanks for your reply! I specifically wanted to be able to specify the snapshot location by entering arguments. By the way, when I try with mpv, I get the same result, in the syncplay.ini file the folder path seems to be separated even though there are quotation marks

    perplayerarguments = {'c:\\program files\\videolan\\vlc\\vlc.exe': ['--extraintf=luaintf:http', '--http-port=12342', '--http-password=vlcpassword', '--snapshot-path="D:\\stok\\test', 'folder\\snapshots"', '--snapshot-format="jpg"', '--snapshot-prefix="image-"', '--drawable-hwnd=1'], 'd:\\stok\\test folder\\snapshots\\mpv.exe': ['--screenshot-dir="D:\\stok\\test', 'folder\\snapshots"']}
  4. Et0h commented on Jan 24, 2024

    @Et0h
    Contributor

    Just checked and you're right, it is incorrectly splitting stuff in syncplay.ini.

  5. Et0h commented on Jan 26, 2024

    @Et0h
    Contributor

    I've tried to fix the issue in PR #668

    @zuluwi could you please test out the Syncplay build at https://github.com/Syncplay/syncplay/actions/runs/7671885102?pr=668 (Syncplay-1.7.1-Setup.exe or Syncplay_1.7.1_Portable) to let me know if it fixes the issue and allows --snapshot-path="D:\stok\test folder\snapshots"?

  6. zuluwi commented on Jan 26, 2024

    @zuluwi
    Author

    I tried it and it worked with no problem. Thank you so much for your hard work 🙏

  7. Et0h commented on Jan 28, 2024

    @Et0h
    Contributor

    I've also tested this with mpv and mpv.net using the arguments title="mpv (Syncplay)" keep-open=always osd-msg1="Test" and it fixes the issue for mpv as well. As such, I'll be accepting the PR. If people find any problems with this change then please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions