LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows Media Player ActiveX not playing image, but WMP stand alone application does. Why?

Solved!
Go to solution
I use my Windows Media Player v11 with additional codec to play mp4 files (mp4 are not supported by default with WMP 11, so I had to install a codec). It works fine in the stand alone application, but when I use the ActiveX control in NI, it does not use the codec and I get only the sound... no image. I thought the ActiveX was simply an interface to the same core application used by NI and the stand alone media player. And if it is the same core, it should use the same codec. What am I missing?
0 Kudos
Message 1 of 6
(5,416 Views)
Solution
Accepted by topic author stha
I have a tip for you. If you download Quicktime 7(QT), you may select the QT activex player(see picture). It plays mp4 and looks better. And QT is free so it should not any problem. Try and see if it do you any good 😉


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 2 of 6
(5,413 Views)

This comes up a lot. The ActiveX interface is flaky, at best. In principle, the ActiveX interface should work like the core application, but in practicality it doesn't. It is highly dependent on the version of Windows Media Player and the version of LabVIEW. What version of LabVIEW are you using? Is this a main VI or a subVI (there's been issues with this as well). Is the VI configured as a "dialog"? If you post your VI as well as a link to an mp4 file someone else can try it for you.

 

Or, you can follow the alternate advice of using a real media player. Smiley Wink

Message 3 of 6
(5,399 Views)

It works with QT. The problem with this player (or the file?) is when I use large files (70MBytes for example) and try to set the start time 5 of 10 minutes ahead. It takes forever to seek. It is working if I seek few seconds ahead only. The same file, when played with the stand alone WMP 11, can seek anywhere and there is no lag at all. Could it be the file that does not comply correctly to the mp4 standard? The file was recorded using this product: http://www.haivision.com/products/oscar/ and the encoding is done with MPEG-4 AVC H.264.

 

 

0 Kudos
Message 4 of 6
(5,382 Views)

Just for the records...

 - WMP11.0

 - LabVIEW 8.5

 - No sub-VI used in my tests

0 Kudos
Message 5 of 6
(5,381 Views)

At the end, we were able to have Windows Media Player 11 to work properly with LabVIEW 8.5.

 

Use the following example: WMA.vi

Re-install the codecs: ffdshow (fork)

 - download

 - Installation instructions

 

It now works fine for me. People say the decoding is not as clear as in QT, but now I can seek and WMP takes only a fraction of a second to resume playback at the desired position.

0 Kudos
Message 6 of 6
(5,228 Views)