Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick Stream Improvement!! #90

Closed
thanamaha2002 opened this issue Mar 12, 2020 · 13 comments
Closed

Quick Stream Improvement!! #90

thanamaha2002 opened this issue Mar 12, 2020 · 13 comments
Labels
enhancement New feature or request will be fixed in the next relase fix is already done and will be included in the next release
Milestone

Comments

@thanamaha2002
Copy link

After playing with the stream feature I have a new idea for Rclone Browser to improvement and this is a quick one.

I using the mpv player for stream file and it supports setting a window title via command line, for example:

01

02

What if we implement a parameter which Rclone Browser will replace it with a file name, it would be nice! for example:

Stream command: .\mpv.exe --title="%file_name%" -

When Rclone Browser run the command it will replace %file_name% with a file name, so the window title of the player will be the filename too!

@kapitainsky kapitainsky added the enhancement New feature or request label Mar 12, 2020
@kapitainsky
Copy link
Owner

are there any length restrictions on --title ? Because file names can be very looong.

@thanamaha2002
Copy link
Author

thanamaha2002 commented Mar 12, 2020

On Windows, the maximum command-line length is 32767 characters. Which I think more than enough since when people upload their files from Windows, for example, the full-path length limit is 260 characters. It's the NTFS limitation since Windows NT 3.1... I wish M$ change this non-sense limit.

@thanamaha2002
Copy link
Author

thanamaha2002 commented Mar 12, 2020

I check the Mac OS the full-path length limit around 1016 characters and the Linux is 255 to 4096 characters depending on the disk format.

The maximum command-line length is a lot higher. So, in the very extremely rare case that they will have file name length more than the command line limit length.

(Someone who crazy enough to create or rename file on the cloud with the non-sense looooooong name, if the cloud support file that long name)

@kapitainsky
Copy link
Owner

kapitainsky commented Mar 12, 2020

I think most filesystems only allow 255 as maximum file name length
but question is about mpv player --title parameter. Will it accept 255 character? Could you check?

I am only thinking about $FileName variable containing only file name (without full path)

@kapitainsky
Copy link
Owner

kapitainsky commented Mar 12, 2020

And note to myself:) for VLC

"/Applications/VLC.app" --meta-title "window title" -

--meta-title can be 255 character long

@thanamaha2002
Copy link
Author

I manage to find the limit length of mpv --title by brute force because I can't find this information in the mpv's docs ...

The limit of mpv --title length is exactly 1,000 characters.

@thanamaha2002
Copy link
Author

I tested with the prohibited characters \, /, :, *, ?, <, >, | on Windows, it also works but not with the " it not show this characters on the window title (read below).

And after testing it's safer to use command like this .\mpv.exe - --title="test" than this .\mpv.exe --title="test" -

Because if we have " in the file name it will bug and mpv window won't show if the command is .\mpv.exe --title="\/:*?<>|"" -

But with this .\mpv.exe - --title="\/:*?<>|"" it works, just not show " on the window title (see pictures below).

01

02

So, for your VLC is /Applications/VLC.app" - --meta-title "window title"

@kapitainsky
Copy link
Owner

kapitainsky commented Mar 12, 2020 via email

@kapitainsky kapitainsky added the will be fixed in the next relase fix is already done and will be included in the next release label Mar 15, 2020
@thanamaha2002
Copy link
Author

I want to test this if you have a free time to compile for me, thanks. :)

@kapitainsky
Copy link
Owner

kapitainsky commented Mar 16, 2020 via email

@kapitainsky
Copy link
Owner

you test #93 (comment)

file name substitution is $file_name

@thanamaha2002
Copy link
Author

Then, I'll close this issue and I'll report on that one instead. Thank for your hard-work!

@kapitainsky
Copy link
Owner

command copy issue has been fixed. It will make into final release.

@kapitainsky kapitainsky added this to the 2.0.0 milestone Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request will be fixed in the next relase fix is already done and will be included in the next release
Projects
None yet
Development

No branches or pull requests

2 participants