Mega Search
23.2 Million


Sign Up

Make a donation  
Play MP4 files with TMediaPlayer?  
News Group: embarcadero.public.delphi.multimedia

If I try playing an MP4 file I get an error that says "cannot determine 
device type from the given file extension"

I tried setting the device type in code to dtAVIVideo or dtWaveAudio or 
dtDigitalVideo or dtOther but none worked.

What do I need to do in order to get TMediaPlayer to play mp4 files?

Thanks,

Jeff

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 18-Apr-2013, at 11:09 PM EST
From: Jeff Yankauer
 
Re: Play MP4 files with TMediaPlayer?  
News Group: embarcadero.public.delphi.multimedia
> {quote:title=Jeff Yankauer wrote:}{quote}
> If I try playing an MP4 file I get an error that says "cannot determine 
> device type from the given file extension"
> 
> I tried setting the device type in code to dtAVIVideo or dtWaveAudio or 
> dtDigitalVideo or dtOther but none worked.
> 
> What do I need to do in order to get TMediaPlayer to play mp4 files?
> 
> Thanks,
> 
> Jeff

The mp4 file extension is probably missing from 

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\MCI Extensions

Also you will need a VFW codec that can support the audio and video formats in the mp4. If you don't have one already I'd sugget looking at FFDShow

http://ffdshow-tryout.sourceforge.net/download.php

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 23-Apr-2013, at 9:51 PM EST
From: harrie pearce