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

failed with long path #5

Closed
zaza42 opened this issue Dec 18, 2017 · 5 comments
Closed

failed with long path #5

zaza42 opened this issue Dec 18, 2017 · 5 comments

Comments

@zaza42
Copy link

zaza42 commented Dec 18, 2017

When i'm watching a video linked on facebook with a very long link, thumbnails can't be created

Playing: https://l.facebook.com/l.php?u=https%3A%2F%2Fyoutu.be%2F-E-FKChxM18&h=ATNoW6c2D1VOu07rOg7VBoAFNy6W3Bd0UU4fQAZX-vsz7ZjZRYnlkCwnlBmYO7tStj2J7aV6_GRwNAVarz_r7KMcLu9cHQ84MrwgmKbGmmmApxBdlu1BMMlUuUAzW3-uYnX5fK-P8Y3My3UdLEqxhq8GM1noRSBa_xuWogxZLSNuHWGI43M4yA0z0F3dcyCvGFIZ_Y_E-Tk5Lb0KPPOUnHV_ayjmaM_ofiqtSQn-UmC3dp4RC0Zb_AHq--hZ5FxY-qsyZkYI9UYV9EClexI4Kbn7B_XkDTzVCMxl
 (+) Video --vid=1 (*) (h264 640x480 25.000fps)
 (+) Audio --aid=1 --alang=und (*) 'DASH audio' (aac 2ch 44100Hz) (external)
Failed to create  for shader cache (No such file or directory)---disabling.
AO: [pulse] 44100Hz stereo 2ch float
[mpv_thumbnail_script_client_osc] Creating /dev/shm/DC-1_runtime/cache/mpv_thumbnails/-E-FKChxM18hATNoW6c2D1VOu07rOg7VBoAFNy6W3Bd0UU4fQAZX-vsz7ZjZRYnlkCwnlBmYO7tStj2J7aV6_GRwNAVarz_r7KMcLu9cHQ84MrwgmKbGmmmApxBdlu1BMMlUuUAzW3-uYnX5fK-P8Y3My3UdLEqxhq8GM1noRSBa_xuWogxZLSNuHWGI43M4yA0z0F3dcyCvGFIZ_Y_E-Tk5Lb0KPPOUnHV_ayjmaM_ofiqtSQn-UmC3dp4RC0Zb_AHq--hZ5FxY-qsyZkYI9UYV9EClexI4Kbn7B_XkDTzVCMxl-0
VO: [opengl] 640x480 yuv420p
[mpv_thumbnail_script_client_osc] mkdir: cannot create directory ‘/dev/shm/DC-1_runtime/cache/mpv_thumbnails/-E-FKChxM18hATNoW6c2D1VOu07rOg7VBoAFNy6W3Bd0UU4fQAZX-vsz7ZjZRYnlkCwnlBmYO7tStj2J7aV6_GRwNAVarz_r7KMcLu9cHQ84MrwgmKbGmmmApxBdlu1BMMlUuUAzW3-uYnX5fK-P8Y3My3UdLEqxhq8GM1noRSBa_xuWogxZLSNuHWGI43M4yA0z0F3dcyCvGFIZ_Y_E-Tk5Lb0KPPOUnHV_ayjmaM_ofiqtSQn-UmC3dp4RC0Zb_AHq--hZ5FxY-qsyZkYI9UYV9EClexI4Kbn7B_XkDTzVCMxl-0’: File name too long

You should use some kind of hash.

@TheAMM
Copy link
Owner

TheAMM commented Dec 18, 2017

I was going to at first, but decided that it was nicer to see what thumbnails belong to what file (directory names), though I forgot about horribly long urls.

@TheAMM TheAMM closed this as completed in 034c337 Dec 18, 2017
@TheAMM
Copy link
Owner

TheAMM commented Dec 18, 2017

https://github.com/TheAMM/mpv_thumbnail_script/releases/tag/0.3.2

@zaza42
Copy link
Author

zaza42 commented Dec 18, 2017

thx, it fixed!

(i very like this script! :-> )

@TheAMM
Copy link
Owner

TheAMM commented Dec 19, 2017

Nice to hear. I don't use it much myself, but it's an interesting project.

@zaza42
Copy link
Author

zaza42 commented Dec 19, 2017

I'm using it very often with chromium's open-with extension, so i can open any link or page within mpv (especially youtube+facebook), then I look for a part of the video which is the most interesting for me. I use other special features/plugins for mpv, so watching videos outside of the browser is a musthave for me.

I think mpv_thumbnail could be the part of the main mpv project in the near future.

baodrate pushed a commit to baodrate/mpv_thumbnail_script that referenced this issue Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants