AntonyCorbett / OnlyM

Simple Media Player (audio, video and images) for use in meetings.
MIT License
178 stars 45 forks source link

Widows Media Foundation crash #376

Open johnparsonsja opened 3 years ago

johnparsonsja commented 3 years ago

Windows 10, latest Only M 16.0.06 Playing video under Windows Foundation either crashes or fails to display (window flashes on/off then nothing Ffmpeg works but the sound glitches every 20 secs No issues displaying still images

Nickyes commented 3 years ago

Since a month I have the same issue

I use JWLibrary + JwlMediaWin opened (with "enable fix - JWlibrary" and "Keep on top" parameters checked) + Digital clock 4 opened (a tool to add a layer with a counter and/or a message on top of the monitor to provide some additional time information. Project page: https://sourceforge.net/projects/digitalclock4/) ... and recentrly, of course, a Zoom meeting opened.

I noticed that sometimes this issue does not occur first time i play a video, but if I do a test (playing the entire video), sometimes the second time I want to play the video does not open, and the stop button does not respond. The entire app is frozen and is no possible to close or force-close by CTRL Alt canc.

AntonyCorbett commented 3 years ago

@johnparsonsja @Nickyes This may be related to the Media Foundation bug reported elsewhere in the Issues pages. The symptoms are that it works ok on the primary monitor but not a secondary monitor.

zokradonh commented 3 years ago

I noticed that sometimes this issue does not occur first time i play a video, but if I do a test (playing the entire video), sometimes the second time I want to play the video does not open, and the stop button does not respond. The entire app is frozen and is no possible to close or force-close by CTRL Alt canc.

I often had exactly the same issue and found a solution: All files that were flagged by windows as coming from untrusted zone can only be played one time. The second time the Media Foundation raises MediaFailed event with FileNotFound inner exception and OnlyM goes into frozen state.

All files downloaded by JW Library are flagged as untrusted zone.

As soon as you trust the file, this problem never happens again. At least on my machine.

How to trust a file? Windows File properties in German: image

Or with PowerShell:

Unblock-File .\filename.mp4