Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Media Player Classic

Questions and comments specific to a particular plugin should go here.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Media Player Classic

Post by Pako »

molitar wrote:.. now my fullscreen is on different display so don't know if that is making the difference or not.]
Oh, it looks like the cause of the problem. You can try this feature on the primary monitor?
Unfortunately, I do not normally an opportunity to work with two monitors, so it will take some time to solve (if it really cause a problem).
Pako
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: Media Player Classic

Post by molitar »

Yeah appreciate that.. I use mine as an htpc also.. so I have my fullscreen showing on my HDTV and only in windowed mode does it show on the primary monitor.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Media Player Classic

Post by Pako »

I think I found a solution.
Try please the new version.
__init__.py
Version 1.4
(78.71 KiB) Downloaded 569 times
It's been all right?
If so, how do you evaluate these new features?
Are beneficial for you?
Pako
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: Media Player Classic

Post by molitar »

Pako wrote:I think I found a solution.
Try please the new version.
__init__.py
It's been all right?
If so, how do you evaluate these new features?
Are beneficial for you?
Pako
Yes worked great.. tried it and it returned the windows back to normal windows.. showed menu.. exited menu and it went back to fullscreen.. great job.
User avatar
zian
Site Admin
Posts: 569
Joined: Wed Jun 24, 2009 3:54 pm

Re: Media Player Classic

Post by zian »

Howdy,
I would like a way to hit a button on my remote and have it delete the video file I just watched in MPC on WinXP.
I'm not 100% sure but I believe this is NOT an option within MPC.

I normaly start watching video files in MPC just by clicking the file within a directory/folder or dragging the file to my MPC shortcut on the desktop. This means that when I'm done watching the file it is already highlighted in the folder where it is located on my PC.

Would it be hard to make a Python script that will delete whatever file is highlighted in the window behind MPC (or window in front after MPC is closed)?
Or maybe even get the file name from within MPC and just find the file, kill it and delete it.

If this is possible it would also be cool to tweak the same script and apply it to VLC (that I sometimes use) or any other media players that folks might use but doesn't have a delete feature already.
Does this make sence?

BTW...I did do a little bit of searching just yesterday on how to go about deleting files using Python but My Python "skills" are 100% NON existent and it made my head hurt.
eventghost.net
Be there or be square.
confirmator
Posts: 22
Joined: Sat Apr 05, 2008 7:10 pm

Re: Media Player Classic

Post by confirmator »

Hi,


First of - thanks for the great improvements you have made to the MPC plugin, Pako. They are very useful and your work is highly appreciated :)

I am experiencing some trouble with your implementation of "On Screen Go To". No matter what monitor I select as output, the menu is always displayed on the primary monitor.
The "Show MPC Menu"-menu is displaying correctly on the selected monitor, even if it is not the primary one.

Using the current MPC-HC nightly (1.3.2018.0) and the newest version of your MPC plugin (1.4.1093) and EG (0.3.7.r1462).


Regards,
confirmator
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Media Player Classic

Post by Pako »

confirmator wrote:I am experiencing some trouble with your implementation of "On Screen Go To". No matter what monitor I select as output, the menu is always displayed on the primary monitor.
Thank you for your bug report. I have only one monitor connected, and therefore could not show for me.
Please download the new version. I put it into the SVN repository.
Pako
confirmator
Posts: 22
Joined: Sat Apr 05, 2008 7:10 pm

Re: Media Player Classic

Post by confirmator »

After fixing the version string

Code: Select all

version = "1.5." + "$LastChangedRevision: 1093 $".split()[1],
it works like a charm and fixes the multi display issue.
Thanks a lot for the quick and convenient fix, Pako :)
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: Media Player Classic

Post by molitar »

confirmator wrote:After fixing the version string

Code: Select all

version = "1.5." + "$LastChangedRevision: 1093 $".split()[1],
it works like a charm and fixes the multi display issue.
Thanks a lot for the quick and convenient fix, Pako :)
Thanks for the version string fix.
Jto
Posts: 1
Joined: Wed Sep 14, 2011 10:51 pm

New key IDs

Post by Jto »

Hey guys! Since a couple of actions stopped working with newer versions of MPC-HC (e.g. next/prev. subtitle track) I invested some time to figure out that some key IDs had changed. I edited them - and the actions work again - but I have no clue about python, so I can't tell if any further edits are necessary. Also, I commented out actions which I couldn't find in MPC-HC, ergo new ID unknown. There may also be new actions in the software, I just looked for the ones listed in the python file.
Here are the new action IDs for MPC-HC 1.5.2.3456 (__init__.py).

Code: Select all

ACTIONS = (
(eg.ActionGroup, 'GroupMainControls', 'Main controls', None, (
    ('Exit', 'Quit Application', None, 816),
    ('PlayPause', 'Play/Pause', None, 889),
    ('Play', 'Play', None, 887),
    ('Pause', 'Pause', None, 888),
    ('Stop', 'Stop', None, 890),
    ('JumpForwardSmall', 'Jump Forward Small', None, 900),
    ('JumpBackwardSmall', 'Jump Backward Small', None, 899),
    ('JumpForwardMedium', 'Jump Forward Medium', None, 902),
    ('JumpBackwardMedium', 'Jump Backward Medium', None, 901),
    ('JumpForwardLarge', 'Jump Forward Large', None, 904),
    ('JumpBackwardLarge', 'Jump Backward Large', None, 903),
    ('JumpForwardKeyframe', 'Jump Forward Keyframe', None, 898),
    ('JumpBackwardKeyframe', 'Jump Backward Keyframe', None, 897),
    ('IncreaseRate', 'Increase Rate', None, 895),
    ('DecreaseRate', 'Decrease Rate', None, 894),
    ('ResetRate', 'Reset Rate', None, 896),
    ('VolumeUp', 'Volume Up', None, 907),
    ('VolumeDown', 'Volume Down', None, 908),
    ('VolumeMute', 'Volume Mute', None, 909),
    ('BossKey', 'Boss Key', None, 944),
    ('Next', 'Next', None, 922),
    ('Previous', 'Previous', None, 921),
    ('NextPlaylistItem', 'Next File', None, 920),
    ('PreviousPlaylistItem', 'Previous File', None, 919),
    ('OpenFile', 'Open File', None, 800),
    ('OpenDVD', 'Open DVD', None, 801),
    ('QuickOpen', 'Quick Open File', None, 969),
    #('OpenDirectory', 'Open Directory', None, 33208),#not found
    ('FrameStep', 'Frame Step', None, 891),
    ('FrameStepBack', 'Frame Step Back', None, 892),
    ('GoTo', 'Go To', None, 893),
    ('AudioDelayAdd10ms', 'Audio Delay +10ms', None, 905),
    ('AudioDelaySub10ms', 'Audio Delay -10ms', None, 906),
)),
(eg.ActionGroup, 'GroupViewModes', 'View modes', None, (
    ('Fullscreen', 'Fullscreen', None, 830),
    ('FullscreenWOR', 'Fullscreen without resolution change', None, 831),
    ('PnSIncSize', 'Pan & Scan Increase Size', None, 862),
    ('PnSDecSize', 'Pan & Scan Decrease Size', None, 863),
    #('PnSTo169', 'Pan & Scan Scale to 16:9', None, 4100),#not found
    #('PnSToWidescreen', 'Pan & Scan to Widescreen', None, 4101),#not found
    #('PnSToUltraWidescreen', 'Pan & Scan to Ultra-Widescreen', None, 4102),#not found
    ('ViewMinimal', 'View Minimal', None, 827),
    ('ViewCompact', 'View Compact', None, 828),
    ('ViewNormal', 'View Normal', None, 829),
    ('AlwaysOnTop', 'Always On Top', None, 884),
    ('Zoom50', 'Zoom 50%', None, 832),
    ('Zoom100', 'Zoom 100%', None, 833),
    ('Zoom200', 'Zoom 200%', None, 834),
    ('VidFrmHalf', 'Video Frame Half', None, 835),
    ('VidFrmNormal', 'Video Frame Normal', None, 836),
    ('VidFrmDouble', 'Video Frame Double', None, 837),
    ('VidFrmStretch', 'Video Frame Stretch', None, 838),
    ('VidFrmInside', 'Video Frame Inside', None, 839),
    ('VidFrmOutside', 'Video Frame Outside', None, 840),
    ('PnSReset', 'Pan & Scan Reset', None, 861),
    ('PnSIncWidth', 'Pan & Scan Increase Width', None, 864),
    ('PnSIncHeight', 'Pan & Scan Increase Height', None, 866),
    ('PnSDecWidth', 'Pan & Scan Decrease Width', None, 865),
    ('PnSDecHeight', 'Pan & Scan Decrease Height', None, 867),
    ('PnSCenter', 'Pan & Scan Center', None, 876),
    ('PnSLeft', 'Pan & Scan Left', None, 868),
    ('PnSRight', 'Pan & Scan Right', None, 869),
    ('PnSUp', 'Pan & Scan Up', None, 870),
    ('PnSDown', 'Pan & Scan Down', None, 871),
    ('PnSUpLeft', 'Pan & Scan Up/Left', None, 872),
    ('PnSUpRight', 'Pan & Scan Up/Right', None, 873),
    ('PnSDownLeft', 'Pan & Scan Down/Left', None, 874),
    ('PnSDownRight', 'Pan & Scan Down/Right', None, 875),
    ('PnSRotateAddX', 'Pan & Scan Rotate X+', None, 877),
    ('PnSRotateSubX', 'Pan & Scan Rotate X-', None, 878),
    ('PnSRotateAddY', 'Pan & Scan Rotate Y+', None, 879),
    ('PnsRotateSubY', 'Pan & Scan Rotate Y-', None, 880),
    ('PnSRotateAddZ', 'Pan & Scan Rotate Z+', None, 881),
    ('PnSRotateSubZ', 'Pan & Scan Rotate Z-', None, 882),
)),
(eg.ActionGroup, 'GroupDvdControls', 'DVD controls', None, (
    ('DVDTitleMenu', 'DVD Title Menu', None, 923),
    ('DVDRootMenu', 'DVD Root Menu', None, 924),
    ('DVDSubtitleMenu', 'DVD Subtitle Menu', None, 925),
    ('DVDAudioMenu', 'DVD Audio Menu', None, 926),
    ('DVDAngleMenu', 'DVD Angle Menu', None, 927),
    ('DVDChapterMenu', 'DVD Chapter Menu', None, 928),
    ('DVDMenuLeft', 'DVD Menu Left', None, 929),
    ('DVDMenuRight', 'DVD Menu Right', None, 930),
    ('DVDMenuUp', 'DVD Menu Up', None, 931),
    ('DVDMenuDown', 'DVD Menu Down', None, 932),
    ('DVDMenuActivate', 'DVD Menu Activate', None, 933),
    ('DVDMenuBack', 'DVD Menu Back', None, 934),
    ('DVDMenuLeave', 'DVD Menu Leave', None, 935),
    ('DVDNextAngle', 'DVD Next Angle', None, 961),
    ('DVDPrevAngle', 'DVD Previous Angle', None, 962),
    ('DVDNextAudio', 'DVD Next Audio', None, 963),
    ('DVDPrevAudio', 'DVD Prev Audio', None, 964),
    ('DVDNextSubtitle', 'DVD Next Subtitle', None, 965),
    ('DVDPrevSubtitle', 'DVD Prev Subtitle', None, 966),
    ('DVDOnOffSubtitle', 'DVD On/Off Subtitle', None, 967),
)),
(eg.ActionGroup, 'GroupExtendedControls', 'Extended controls', None, (
    ('OpenDevice', 'Open Device', None, 802),
    ('SaveAs', 'Save As', None, 805),
    ('SaveImage', 'Save Image', None, 806),
    ('SaveImageAuto', 'Save Image Auto', None, 807),
    ('LoadSubTitle', 'Load Subtitle', None, 809),
    ('SaveSubtitle', 'Save Subtitle', None, 810),
    ('Close', 'Close File', None, 804),
    ('Properties', 'Properties', None, 814),
    ('PlayerMenuShort', 'Player Menu Short', None, 949),
    ('PlayerMenuLong', 'Player Menu Long', None, 950),
    ('FiltersMenu', 'Filters Menu', None, 951),
    ('Options', 'Options', None, 815),
    ('NextAudio', 'Next Audio', None, 952),
    ('PrevAudio', 'Previous Audio', None, 953),
    ('NextSubtitle', 'Next Subtitle', None, 954),
    ('PrevSubtitle', 'Prev Subtitle', None, 955),
    ('OnOffSubtitle', 'On/Off Subtitle', None, 956),
    ('ReloadSubtitles', 'Reload Subtitles', None, 2302),
    ('NextAudioOGM', 'Next Audio OGM', None, 957),
    ('PrevAudioOGM', 'Previous Audio OGM', None, 958),
    ('NextSubtitleOGM', 'Next Subtitle OGM', None, 959),
    ('PrevSubtitleOGM', 'Previous Subtitle OGM', None, 960),
)),
(eg.ActionGroup, 'GroupToggleControls', 'Toggle player controls', None, (
    ('ToggleCaptionMenu', 'Toggle Caption Menu', None, 817),
    ('ToggleSeeker', 'Toggle Seeker', None, 818),
    ('ToggleControls', 'Toggle Controls', None, 819),
    ('ToggleInformation', 'Toggle Information', None, 820),
    ('ToggleStatistics', 'Toggle Statistics', None, 821),
    ('ToggleStatus', 'Toggle Status', None, 822),
    ('ToggleSubresyncBar', 'Toggle Subresync Bar', None, 823),
    ('TogglePlaylistBar', 'Toggle Playlist Bar', None, 824),
    ('ToggleCaptureBar', 'Toggle Capture Bar', None, 825),
    ('ToggleShaderEditorBar', 'Toggle Shader Editor Bar', None, 826),
    #('ToggleElapsedTime', 'Toggle OSD Elapsed Time', None, 32778),#not found
)),
)
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: Media Player Classic

Post by molitar »

Jto, Thanks for the updated actions. After the update I changed my actions to all key command calls for them so that it did not matter what they changed to. But this is very useful and I modified my plugin with the new actions.
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: Media Player Classic

Post by molitar »

Is it possible to toggle default subtitles on or off? Sometimes I find for some strange reason that italicized subtitles will stop functioning until I relog on windows.. so would be nice when that happens I can just switch style to default and when done go back to normal subtitles with an action.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Media Player Classic

Post by Pako »

I can not promise anything.
But if I have to think about it, I must understand this requirement.
Please describe in detail !
I do not understand. I watch a lot of movies with subtitles, but I do not know this behavior.
Can you show some examples (screenshots, subtitle files, ...) ?
What do you mean by "italicized subtitles will stop functioning until I relog on windows" ?

Pako
molitar
Experienced User
Posts: 209
Joined: Fri Sep 11, 2009 6:44 am

Re: Media Player Classic

Post by molitar »

Not sure why it does.. maybe some other program causes it to happen but any font that has italics will not display. But if I go to the Play Menu > Subtitles > Default Style for subtitles than the built in style set in Media Player Classic will work and these Subtitles will display fine. So it seems the custom fonts used in the subtitles stop displaying that have italics in them.

I know it's strange but its is what I finally figured out what is going on in my Windows 7 Ultimate with Media Player Classic in CCCP. CCCP does not have any idea why this happens so maybe some other program I am running causes this but what I have no idea.. Kaspersky Internet Security, Domdom Soft Manga Downloader, uTorrent, Anidb O'matic, Event Ghost, Trillian 3.x, Logitech Gaming Keyboard, or Logitech G9x Software any of these might be the culprit to name some of the software that is running. So to fix this I found show default style subtitle fixes this problem by switching to the internal default fonts.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Media Player Classic

Post by Pako »

Oh.
I did not know that there is such an item in the menu.
But because this is so, help is easy.
You can use the action Send user's message as follows:
MPC-HC_Subtitles-Default_Style.png
BTW - I tried, how it works in my case. The only result is that the subtitles are no longer displayed :) .

Pako
Post Reply