Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: media player mp4 problem



Permlink Replies: 10 - Last Post: Jan 4, 2016 1:52 AM Last Post By: Björn Schreiber
Liste Listeler

Posts: 49
Registered: 7/26/07
media player mp4 problem
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 6, 2015 12:38 PM
Hi,
I am using media player on Firemonkey (Rad 10 and Windows 10)
I play mp4 files on windows media player
But if I play mp4 file there is error message "Unsupported Media file ab.mp4."
that program can work on Android.
I read lost of document about that but there is no solution.
Is anyone can help me?

Edited by: Liste Listeler on Dec 6, 2015 12:38 PM
Gilbert Padilla

Posts: 315
Registered: 3/8/04
Re: media player mp4 problem [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 6, 2015 1:51 PM   in response to: Liste Listeler in response to: Liste Listeler
You must register the Codec for your file using the TMediaCodecManager,

http://docwiki.embarcadero.com/Libraries/Seattle/en/FMX.Media.TMediaCodecManager
Liste Listeler

Posts: 49
Registered: 7/26/07
Re: media player mp4 problem [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 6, 2015 10:14 PM   in response to: Gilbert Padilla in response to: Gilbert Padilla
Gilbert Padilla wrote:
You must register the Codec for your file using the TMediaCodecManager,

http://docwiki.embarcadero.com/Libraries/Seattle/en/FMX.Media.TMediaCodecManager
I do that on form show
TMediaCodecManager.RegisterMediaCodecClass('.mp4', SVMP4Files,
TMediaType.Video, TWindowsMediaCodec);

Project can compile but mp4 files is not working.

if I install media.player.codec.pack.v4.4.0 it is working.
But I don't want to install all the client that program.
I want to find a solition in my own program.
Gilbert Padilla

Posts: 315
Registered: 3/8/04
Re: media player mp4 problem [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 12, 2015 11:46 PM   in response to: Liste Listeler in response to: Liste Listeler
if I install media.player.codec.pack.v4.4.0 it is working.

That’s probably the answer to your problem

But I don't want to install all the client that program.

the mp4 is not a windows native format that’s why you have to supply the
codecs with you application.

I want to find a solition in my own program.

You might be able to distribute a codec with your installer.
Liste Listeler

Posts: 49
Registered: 7/26/07
Re: media player mp4 problem [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 12, 2015 2:40 AM   in response to: Gilbert Padilla in response to: Gilbert Padilla
How can I register the Codec ?
is there any example code?

Gilbert Padilla wrote:
You must register the Codec for your file using the TMediaCodecManager,

http://docwiki.embarcadero.com/Libraries/Seattle/en/FMX.Media.TMediaCodecManager
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: media player mp4 problem [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 13, 2015 12:49 AM   in response to: Liste Listeler in response to: Liste Listeler
Am 06.12.2015 um 21:38 schrieb Liste Listeler:
Hi,
I am using media player on Firemonkey (Rad 10 and Windows 10)
I play mp4 files on windows media player

Does it mean Windows Media Player can play that file type without
installing an extra codec but FMX media player cannot, or can Windows
Media Player only play the file after you installed the codec you
mentioned somewhere?

Greetings

Markus
Liste Listeler

Posts: 49
Registered: 7/26/07
Re: media player mp4 problem [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 26, 2015 5:46 AM   in response to: Markus Humm in response to: Markus Humm
it mean Windows Media Player can play that file type without
installing an extra codec
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: media player mp4 problem [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 27, 2015 12:51 AM   in response to: Liste Listeler in response to: Liste Listeler
Am 26.12.2015 um 14:46 schrieb Liste Listeler:
it mean Windows Media Player can play that file type without
installing an extra codec

Then it might just be that you just need to register the coded Windows
media player uses to FMX so it knows about that one.

I just don't know how to do this, but that's how I understood the other
posts in this thread.

Greetings

Markus
Liste Listeler

Posts: 49
Registered: 7/26/07
Re: media player mp4 problem [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 27, 2015 10:17 PM   in response to: Markus Humm in response to: Markus Humm
is anyone know how to register the coded Windows
media player uses too FMX ?

Markus Humm wrote:
Am 26.12.2015 um 14:46 schrieb Liste Listeler:
it mean Windows Media Player can play that file type without
installing an extra codec

Then it might just be that you just need to register the coded Windows
media player uses to FMX so it knows about that one.

I just don't know how to do this, but that's how I understood the other
posts in this thread.

Greetings

Markus
Bob Carson

Posts: 62
Registered: 10/8/04
Re: media player mp4 problem [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 28, 2015 7:55 AM   in response to: Liste Listeler in response to: Liste Listeler
I tried the trial download for this: http://www.flashavconverter.com/download and it looks good to me.
Björn Schreiber

Posts: 11
Registered: 10/7/06
Re: media player mp4 problem [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 4, 2016 1:52 AM   in response to: Liste Listeler in response to: Liste Listeler
Am 06.12.2015 um 21:38 schrieb Liste Listeler:
I am using media player on Firemonkey (Rad 10 and Windows 10)
I play mp4 files on windows media player
But if I play mp4 file there is error message "Unsupported Media file ab.mp4."
that program can work on Android.

There are several interfaces on Windows to play media files. For
example the old Media Control Interface (MCI, used by earlier Delphi
versions), DirectShow and the new Microsoft Media Foundation (introduces
in Windows Vista as a replacement for DirectShow).

Regarding the documentation
(http://docwiki.embarcadero.com/RADStudio/Seattle/en/Audio-Video_in_FireMonkey),
FireMonkey still uses DirectShow on Windows, where the Windows Media
Player uses the new Media Foundation. And that is your problem: both
interfaces use different codecs to play media files.
So if you hold on using the FireMonkey Media Player, you will have to
install the correct DirectShow codecs in order to play your files. Or
you have to switch to the Media Foundation, too.

hth,
Björn
--
DRIGUS GmbH

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02