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

Can't use with mpv #38

Closed
kohane27 opened this issue Nov 14, 2023 · 2 comments
Closed

Can't use with mpv #38

kohane27 opened this issue Nov 14, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@kohane27
Copy link

Hello there. Hope you're doing well. Thank you for creating this modern version of dragon!

Description

I tried to use ripdrag to drag subtitle to mpv, but it'd kill mpv and the ripdrag's window would stay remain. The same workflow works with dragon.

Reproducible steps

  1. list current directory structure:
➜ ls
sample.mkv  sample.srt
  1. run mpv sample.mkv:
➜ mpv sample.mkv
   cplayer:  (+) Video --vid=1 (*) (hevc 1280x718 23.976fps)
   cplayer:  (+) Audio --aid=1 --alang=eng (*) (ac3 6ch 48000Hz)
   cplayer:      Subs  --sid=1 '21.srt' (subrip) (external)
Cannot load libcuda.so.1
    ffmpeg: AVHWDeviceContext: Cannot load libcuda.so.1
    ffmpeg: AVHWDeviceContext: Could not dynamically load CUDA
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Cannot load libcuda.so.1
    ffmpeg: AVHWDeviceContext: Cannot load libcuda.so.1
    ffmpeg: AVHWDeviceContext: Could not dynamically load CUDA
ffmpeg/video: hevc_v4l2m2m: Could not find a valid device
ffmpeg/video: hevc_v4l2m2m: can't configure decoder
        vd: Could not open codec.
ao/pipewire: The --audio-stream-silence option is set. This will break certain player behavior.
   cplayer: AO: [pipewire] 48000Hz 5.1(side) 6ch floatp
   cplayer: VO: [gpu] 1280x718 yuv420p10
statusline: (Paused) AV: 00:00:18 / 00:23:22 (1%) x1.80 A-V:  0.000
  1. ripdrag --verbose sample.srt

  2. drag ripdrag's window to mpv

  3. mpv is killed and ripdrag's window persists

Error from mpv:

statusline: (Paused) AV: 00:00:18 / 00:23:22 (1%) x1.80 A-V:  0.000
      file: Cannot open file '': No such file or directory
    stream: Failed to open .
   cplayer:
statusline: (Paused) AV: 00:00:18 / 00:23:22 (1%) x1.80 A-V:  0.000
   cplayer:      Subs  --sid=1 (subrip)
   cplayer: No video or audio streams selected.
   cplayer:
   cplayer: Exiting... (Some errors happened)

Version

Linux 6.1.62-1-lts
mpv 0.36.0
ripdrag 0.4.4

Thank you in advance!

@nik012003 nik012003 added the bug Something isn't working label Nov 14, 2023
@nik012003
Copy link
Owner

nik012003 commented Nov 14, 2023

Hi, thank you for the report!
I was able to reproduce it and I started looking into it. The problem is probably due to how mpv checks if the dropped file is a subtitle ( https://github.com/mpv-player/mpv/blob/master/player/external_files.c#L57 )
I don't have much time to spend on it right now, but I'll try to fix it in the weekend

EDIT: I got nerdsniped, I'll push the fix in a few minutes ahah

@kohane27
Copy link
Author

Confirmed it's working. Thank you so much for such a quick reply and fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants