-
Notifications
You must be signed in to change notification settings - Fork 3k
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
How to automatically play DVD or Blu-ray ISO files? #13712
Comments
For the lua script, you can refer to the relevant implementation in the open_dialog.lua script. |
@dyphire interesting, I will check it out, thanks. |
I am new to lua, how to get file path/basename in |
|
when printing
|
mp.register_event('file-loaded', function()
print(mp.get_property('filename'))
end) |
it works! Thanks! |
with my test lua script I can redirect dvd iso file to local function open_dvd(path)
mp.set_property('dvd-device', path)
mp.commandv('loadfile', 'dvd://')
end but not for bluray iso 😢
Unlike dvd iso it can't start playback bluray iso file, so we will never get to this point in lua script: mp.register_event('file-loaded', function() update: I have some progress with 'start-file' event mp.register_event('start-file', function() |
I have some progress with the script. I can redirect bluray iso file to Like: path = and I need to get |
I figured out how to play DVD or Blu-ray ISO files from the terminal using:
mpv bd:// --bluray-device=[path-to-bluray-iso]
for Blu-ray ISOand
mpv dvd:// --dvd-device=[path-to-dvd-iso]
for DVD ISOThe question is how to play those iso files automatically? Like
mpv [path-to-iso]
will detect if it's DVD ISO or Blu-ray ISO and will play it.Is there a condition I can put into mpv.conf?
Or maybe it's possible with some lua script? Maybe there is already such script?
The text was updated successfully, but these errors were encountered: