flathub version of makemkv here that I use to digitize my personal movie collection and here is what I have so far... ( xdotool is awesome )
I always start with either physically pushing the eject button on my LG bluray burner, or clicking my custom made gui button that has the command
eject -T /dev/sr0
in it.. then insert the bluray movie, then launch the bash script below to get the ball rolling..Here is what happens when I run the makemkv flatpak application via terminal ( obviously my hopes were to see specific messages that would give me an indication as to when /how to go about adding applicable next commands in the script to automate what I need to automate
command to run it =
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=makemkv com.makemkv.MakeMKV
results in terminal ....
Code: Select all
Gtk-Message: 17:36:02.054: Failed to load module "xapp-gtk3-module"
Qt: Session management error: Could not open network socket
info string reallocated, size=538
info string reallocated, size=562
info string reallocated, size=769
info string reallocated, size=565
info string reallocated, size=565
info string reallocated, size=589
info string reallocated, size=565
== If a movie has no problem being done with the basic quick 1st scan part...usually between 12 and 17 seconds to then reach the next part where you have the big button in the middle that more thoroughly " reads" the movie to acquire all titles per whatever Settings rules one sets. ( for me..it is to ignore all titles below 999 seconds of run time)
Code: Select all
#!/bin/bash
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=makemkv com.makemkv.MakeMKV
eject -T /dev/sr0
xdotool sleep 20 key Tab sleep 0.5 key Return
xdotool sleep 20 mousemove 150 1350 sleep 0.2 click 3 sleep 0.2 key u
## command or commands involved in auto sense when the task of ripping/attempting to rip is finished pops up..then
xdotool sleep 0.25 key Return
xdotool sleep 0.33 mousemove 265 1175 sleep 0.2 click 1
sleep 1 && pkill makemkv
xdotool mousemove
command moves the mouse on my screen to the precise point and click 3 sleep 0.2 key u
right clicks and UNselects all titles, then I have to take it manually from there. ( which isn't a big deal because I always hand type custom movie names and sometimes change the output directory/path too )***but***
I'd love to know how to add the applicable content that tells the system to search literally every 15 or so seconds for when the message of " failed blah blah " or " success blah blah " in makemkv's gui pop up when it's done trying to rip the movie.... upon either of those messages....it auto executes that
eject -T /dev/sr0
OR sometimes I noticed when I do that manually myself via that eject command.nothing happens and it's as have makemkv has taken over ejecting functions of the drive.... so... xdotool mousemove ### #### sleep 0.2 click 1 to the rescue.... be it the eject -T command or the mousemove click 1 deal... I want to it automate the last part I just explained + do the bashscript part I mentioned above all in one script if possible.
I have a feeling the content involves something about " While " and " If " statements or variables...etc etc...But unsure how to wrap my brain around it yet.
So..