Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 | Link |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
Modified Remoti.co remote app for MPC-HC/BE (on Android), madVR JS remote, bscpylgtv
I decided to create a separate post for this (original post is here), so this can be found easily and maybe it will give you guys ideas how to create one with pure javascript or html5 of somebody wants to work on it.
With this app there's no need for any other 3rd party frontend to play stuff from the couch, it includes every necessary feature that I need. 1. Preface There are couple of remote apps for MPC-HC/BE but Remoti.co Lite (by Kostia Dombrovsky) the only one that is simple and well working all the time. It lacked of certain features, so I tried to contact Kostia, but he had other things to do. So, I decided to try to modify the app itself (without having the source code ![]() (It has also a version for Apple devices, but I only modded the Android one.) 2. Changes - added 1 button to change source level with MadVR - added 2 buttons for subtitle delay - fixed and refactored the after playback entries - modded the default skip interval from 5 sec to 10 sec - switched the size and location of the FF/RW with PrevTrack/NextTrack buttons in portrait mode, since we use them more frequently - removed ads - added new skin(s) 3. Known issues - if a favorite folder is selected, sometimes app crashes: if you run (start) the app again, this feature will work well afterwards 4. Download - mpc-rc_5.1_mod-1.0.apk 5. Notes about button for MadVR It required a small hack to interact with MadVR since it doesn't have an interface for remote controlling different properties, but it does provide keyboard shortcuts for couple of them. So, the idea is that we send actual MadVR keyboard shortcuts as a parameter to MPC-HC/BE and the player itself will actually trigger these keyboard shortcuts with an external helper script. I'm using Windows Host Script (which comes with newer Windows, >Win7, I think), which should be run with 'cscript.exe': - cgi script receives 1 url encoded argument (the keystroke), url decode it, then send it to the foreground (!!!) application. MPC-HC/BE web interface setup: - x Serve pages from: ./webroot (we don't have to change Default page value (default is: 'index.html;index.php')) - CGI handlers: '.vbs=c:\Windows\System32\cscript.exe' Save this into file called 'sendkeys.vbs' in 'webroot' subdirectory of directory of MPC-HC/BE (you don't have to deploy anything else to here, all the other pages will be served as well if you need them). The file extension does matter! Code:
'!c:/windows/system32/cscript //nologo ' Toggle source level in MadVR (CTRL+SHIFT+ALT+i = ^+%i = %5e%2b%25i) ' get shell object Set WshShell = WScript.CreateObject("WScript.Shell") ' get Process array that includes the query string Set wshUserEnv = WshShell.Environment("Process") ' urldecode querystring param = unescape(wshUserEnv("QUERY_STRING")) ' send keystroke WshShell.SendKeys param ' delete used objects Set wshUserEnv = Nothing Set WshShell = Nothing ' quit script with exit code 0 Wscript.Quit 0 Code:
http://192.168.1.6:13579/sendkeys.vbs?%5e%2b%25i - since it can only send keystrokes to the foreground application, and I don't include a check whether it is MPC-HC/BE or not (i tried, and it worked, but it was so slow, that the whole thing became unusable), so you can get some funky stuff Good thing: - it won't kick out MadVR from Fullscreen Exclusive mode 6. Final notes - I won't add any new feature to the app (it was a pain in the ass to mod it without having the source code ) - I considered uploading the reverse engineered source code to somewhere but I failed to do so at that time (more than 2 years ago) - if you like the app then support the original dev, Kostia 7. madVR JS remote Lightweight remote controller for madVR written in HTML/JS/CSS: madVR JS remote 8. bscpylgtv Library to control webOS based LG Tv devices, a basic, smaller and faster version of aiopylgtv (without calibration related features), optimized for command line usage: bscpylgtv Enjoy!
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config Last edited by chros; 19th September 2021 at 16:55. |
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
Unfortunately I don't have spare time for this myself, but if someone is willing to start to work on this (e.g. as an opensource project), I can help with pointers or uploading a sample html file that I use sometimes for additional MadVR functionality.
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config |
![]() |
![]() |
![]() |
#4 | Link |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config |
![]() |
![]() |
![]() |
#5 | Link |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
I've published a small madVR remote in the 7. point of the first post.
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config |
![]() |
![]() |
![]() |
#6 | Link | |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
Quote:
- rewritten code - MPC-HC/BE is set to active window when a keystroke is sent - ability to run external scripts - optional color attribute of buttons - support tabs Thanks to @SirMaster for the ideas!
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config Last edited by chros; 17th April 2021 at 21:32. |
|
![]() |
![]() |
![]() |
#7 | Link |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
v0.0.3 is released.
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config |
![]() |
![]() |
![]() |
#8 | Link |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
bscpylgtv v0.0.4 is out.
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config |
![]() |
![]() |
![]() |
#9 | Link |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
bscpylgtv v0.1.0 (probably won't be any newer version for a while)
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config |
![]() |
![]() |
![]() |
#10 | Link |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config |
![]() |
![]() |
![]() |
#11 | Link |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config |
![]() |
![]() |
![]() |
#12 | Link |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config |
![]() |
![]() |
![]() |
#13 | Link |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config |
![]() |
![]() |
![]() |
#14 | Link |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
bscpylgtv v0.4.0, it's mostly about calibration changes, lot of new stuff has been added.
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config |
![]() |
![]() |
![]() |
#15 | Link |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config |
![]() |
![]() |
![]() |
#16 | Link |
Registered User
Join Date: Jul 2022
Posts: 1
|
Could this be used to modify the display profile used for the LG C2 menu overlays? For example, open Netflix and while just looking at the box art you'll notice that changes to your picture settings have no effect (other than oled backlight). Move the color slider to 0 and your box art is still in full way overblown color, but play a movie and then you'll see that the video is black and white as expected. If one of the built in picture modes is used for the menu overlays, I can't figure out which one it is, but my goal here is to modify whatever is needed to adjust the picture mode that is used for the menus. Any thoughts?
|
![]() |
![]() |
![]() |
#17 | Link |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
Good question, I haven't even noticed what you raised so far (I don't really use the built in apps).
Here you can see the available inputs on a C2, maybe ip or photo or even browser is used for it. Or it can also happen that these overlays are treated differently in the active picture preset, I'm not sure. "movie" and "photo" are for the internal media player app when playing video and images, and other internal apps (netfix, plex, etc) uses "default" input. You can use set_picture_settings method to set any properties of a preset of a given input, e.g. color to 0 (you have to switch back and forth between presets then to activate the new setting). Let me know if you found something interesting. Code:
bscpylgtvcommand 192.168.1.18 set_picture_settings "{\"color\": 0}" expert2 default bscpylgtvcommand 192.168.1.18 set_current_picture_mode expert1 bscpylgtvcommand 192.168.1.18 set_current_picture_mode expert2
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config Last edited by chros; 21st December 2022 at 00:33. |
![]() |
![]() |
![]() |
#18 | Link |
Registered User
Join Date: Dec 2007
Posts: 124
|
bscpylgtv
Hi
very likely stupid question...: how do one get/create the needed ".aiopylgtv.sqlite key config file" needed for calibration tasks? And: will bscpylgtv work on "B1" models (uploading LUTs)? There seem to be issues... Thanks |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|