FactoryXCode / MfPack

Delphi translations for Microsoft Media Foundation and related API's
Mozilla Public License 2.0
79 stars 22 forks source link

Unable to play videos in the SimplePlayer sample. Access Violation reading address 0x00000020 #9

Closed adaloveless closed 3 years ago

adaloveless commented 3 years ago

Again, THANKS FOR MAKING THIS...

Note: MFPlayerX works, but SimplePlayer sample does not. I get an AccessViolation reading address 0x20 on a thread that seems to be deep in the Api. Screenshot of callstack attached.

image

note that I got this error trying to play a 1080p mp4 file.

I also tried playing a Standard Definition MPG file and got audio-only output, no video.

FactoryXCode commented 3 years ago

Hi, thank you for letting us know.

I tested this on a Windows 10 machine with the latest updates, to see what's going on. When rendering different MP4 mediafiles, including 1080p, the issue does not appear. Depending on the type of MPEG, you can get byte stream errors. This has nothing to do with the API or samplecode, but with the fact that the used API is deprecated ie. not supported anymore (see below).

Notes:

Thank you, Tony.