Media player won't play a .mp4?

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts Page 1 of 1
Contributors
User avatar
lesan101
Top Poster
Top Poster
Posts: 193
Joined: Tue Jun 29, 2010 8:10 am

Media player won't play a .mp4?
lesan101
I have the windows media player component. Instead of giving it a path i sign it a website link.

it wont play a .mp4 link ?

Any ideas?
Code: Select all
AxWindowsMediaPlayer1.URL = "http://www.jpl.nasa.gov/videos/wise/20120608/wise20120608-1280.m4v"
The code above will work, however if i find a link that is a .mp4 it won't play.
User avatar
visualtech
VIP - Donator
VIP - Donator
Posts: 265
Joined: Sat Nov 19, 2011 2:19 pm

Might be a problem with the codec. Use ffmpeg to inspect the stream and check the codec and then make sure that your component supports that codec; I'm pretty sure Windows Media Player doesn't support that format. It's a m4v: compression, bit-rate, etc. must be different for the component to play.

An alternative is https://github.com/ZeBobo5/Vlc.DotNet. Built on top of VLC, so you can be sure that it'll play almost anything; I've used it in one of my projects and I have to say it's pretty powerful! :)

Edit: Here's the documentation, pretty straight forward. https://vlcdotnet.codeplex.com/documentation
Image
User avatar
lesan101
Top Poster
Top Poster
Posts: 193
Joined: Tue Jun 29, 2010 8:10 am

visualtech wrote:
Might be a problem with the codec. Use ffmpeg to inspect the stream and check the codec and then make sure that your component supports that codec; I'm pretty sure Windows Media Player doesn't support that format. It's a m4v: compression, bit-rate, etc. must be different for the component to play.

An alternative is https://github.com/ZeBobo5/Vlc.DotNet. Built on top of VLC, so you can be sure that it'll play almost anything; I've used it in one of my projects and I have to say it's pretty powerful! :)

Edit: Here's the documentation, pretty straight forward. https://vlcdotnet.codeplex.com/documentation
Thanks for the reply, i will take a look at this. cooll;
User avatar
visualtech
VIP - Donator
VIP - Donator
Posts: 265
Joined: Sat Nov 19, 2011 2:19 pm

I hope it works fine. Any problem, ask me! :)
Image
4 posts Page 1 of 1
Return to “Coding Help & Support”