reddit / emacs

mpv-start: Failed to connect to mpv

paarulakan · 2022-10-17 19:08
mpv configuration that i have. (use-package mpv) mpv is installed on the system and play videos from command line ``` vanangamudi@karunthulai:~ $ mpv "~/dwhelper/Can't understand the language, but still made me smile! Made.mp4" Playing: /home/vanangamudi/dwhelper/Can't understand the language, but still made me smile! Made.mp4 (+) Video --vid=1 (*) (h264 1280x640 30.000fps) (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz) VO does not support requested hardware decoder, or loading it failed. AO: [pulse] 44100Hz stereo 2ch float VO: [opengl] 1280x640 yuv420p (Paused) AV: 00:00:15 / 00:29:09 (0%) A-V: 0.000 Track switched: (+) Video --vid=1 (*) (h264 1280x640 30.000fps) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz) (Paused) V: 00:00:15 / 00:29:09 (0%) Track switched: (+) Video --vid=1 (*) (h264 1280x640 30.000fps) (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz) AO: [pulse] 44100Hz stereo 2ch float AV: 00:00:04 / 00:29:09 (0%) A-V: 0.000 Dropped: 2 [input] No key binding found for key 'HOMEPAGE'. AV: 00:05:45 / 00:29:09 (19%) A-V: 0.000 ``` when I invoke mpv-play and provide the same file path, i get the following error. ``` mpv-start: Failed to connect to mpv ```
igorepst · 2022-10-17 19:41
What if you replace all of the spaces with, say, underscores and try again. Or use another file without the spaces in yhe path? What if you expand yourself the home path, e. g. use '/home/user/dwhelper'? ( I don't use it, so I am not sure)
paarulakan · 2022-10-17 19:44
tried all that, doesn't look like a path issue.
igorepst · 2022-10-17 20:55
https://github.com/kljohann/mpv.el/blob/2e0234bc21a3dcdf12d94d3285475e7f6769d3e8/mpv.el#L43 Try to customize the mpv path then. Emacs sometimes doesn't have the same PATH as your shell (it depends on various things, and, for ex., I start the systemd unit for Emacs myself after I export the right path)
GahonMelon · 2022-12-11 13:34
Did you fix this?