You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Linux version:NAME="EndeavourOS" / archlinux
- Kernel Version:
- GPU Model:
- Mesa/GPU Driver Version:
- Window Manager and Version:
- Source of mpv:
- Latest known working version:
- Issue started after the following happened:
Reproduction Steps
Givien that https://aa.com/ is protected by a self-signed CA and TLS client authentication
I add char *mp_get_user_path(void *talloc_ctx, struct mpv_global *global, const char *path); calls at these lines, and it works.
However, I don't know talloc and mpv well and don't know:
what to fill the 1st arg (talloc_ctx)
whether free the return value of mp_get_user_path or not after av_dict_set calls
Actual Behavior
mpv does not expand the user path and tries to load '~/.ssl/pubkey.pem', which does not exist.
Log File
[ffmpeg] tls: Unable to set cert/key files ~/.ssl/pubkey.pem and ~/.ssl/privkey.pem: Error while reading file.
Failed to open https://aa.com/bbb.mp4.
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
I tested with the latest mpv version to validate that the issue is not already fixed.
I provided all required information including system and mpv version.
I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
I attached the full, untruncated log file.
I attached the backtrace in the case of a crash.
The text was updated successfully, but these errors were encountered:
mpv Information
Other Information
Reproduction Steps
mpv https://aa.com/bbb.mp4 --tls-cert-file=~/.ssl/pubkey.pem --tls-key-file=~/.ssl/privkey.pem --tls-ca-file=~/.ssl/ca.pem
Expected Behavior
mpv expands ~/.ssl/pubkey.pem to /home/user/.ssl/pubkey.pem and reads it
mpv/stream/stream_lavf.c
Lines 202 to 207 in 139591a
I add
char *mp_get_user_path(void *talloc_ctx, struct mpv_global *global, const char *path);
calls at these lines, and it works.However, I don't know talloc and mpv well and don't know:
av_dict_set
callsActual Behavior
mpv does not expand the user path and tries to load '~/.ssl/pubkey.pem', which does not exist.
Log File
[ffmpeg] tls: Unable to set cert/key files ~/.ssl/pubkey.pem and ~/.ssl/privkey.pem: Error while reading file.
Failed to open https://aa.com/bbb.mp4.
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.The text was updated successfully, but these errors were encountered: