Register new media codec in FMX media player in C++ Builder - firemonkey

When I try to play an .mp4 video file using the TMediaPlayer FMX control in C++Builder, it reports an error:
unsupported media file
So, I tried to register an MP4 codec in FMX's Media Codec Manager using the below code:
TMediaCodecManager::RegisterMediaCodecClass(".mp4", "mp4", TMediaType::Video, TWindowsMediaCodec);
But it also reporte an error:
TWindowsMediaCodec is undefined symbol
How do I register a new codec in FMX's Media Player in C++Builder?

Download and install the K_Lite_Codec-Pack_1612. I am using the Standard Pack but any of the three variants will do the trick.

Related

FFMPEG Directshow capture windows media player compatible

I am using an FFMPEG component in embarcadero C++ Builder to capture video from a Direct show video camera. The capture works fine and gives me good quality mp4 files which I can play back using VLC player or FFMPEG, but the video file is not compatible with windows media player and windows won't give the nice video image when you view a file list with windows explorer.
I have seen suggestions which say you simply need to set the capture format to YUV420P, however if I do this, FFMPEG raises an exception -5 (input / Output error) and the capture device will not open.
Is there any other setting I should be looking at to allow FFMPEG to open the camera and capture the stream so media player will accept it.

Playing mp3 Audio files in WP7

I want to stream an audio from server using windows phone 7
the audio extension is mp3. I have tried Mp3MediaStreamSource class but the problem was that it downloads all the audio then start playing it.
I want to know what is the best way to play audio in WP7 for platform 7.0 ( with buffering -> not waiting until the entire audio file is downloaded.
Thanks in advance
I use Background Audio agent do stream mp3 radio broadcast. Take a look at this tutorial http://msdn.microsoft.com/en-us/library/hh202978(v=VS.92).aspx

Streaming to a mediaelement

I'm playing around with streaming to a simple mediaelement in silverlight from VLC, but i'm having no such luck. I'm using the following code;
mediaelement.Source = new Uri("http://localip:8080", UriKind.Absolute);
mediaelement.play();
On the VLC end i'm using the following video settings (which i believe WP supports)
Method: HTTP
Container: MP4
Video: H-264
Audio: MP3
All i get is a black screen, no error, no video and no sound. I've read that WP doesnt like playing media etc whilst zune is running, so i've ran the project with my phone connected using wpconnect instead but still have the same issue.
Can anyone give me a few tips?
thanks
See this article for configuration and compatible audio and video formats:
From this article:
http://ipaddress:port;stream.nsv :sout=#transcode
vcodec=WMV2,vb=5000,fps=30,scale=1,acodec=wma2,ab=128,channels=1,samplerate=44100}:std{access=mmsh,mux=asfh,dst=MyIP:PortNo}
:no-sout-rtp-sap :no-sout-standard-sap :sout-keep

Play audio stream using Cocoa

How can I stream audio from a .pls using cocoa?
Right now I'm trying to use this Xcode project, but it only works with a URL pointing to an actual audio file like .mp3.
Where I can find something to start with?

QTMovieView supported formats

I am developing a media player using QTKit framework in Mac OS X (v 10.6). I have used QTMovieView control for the same but there is a problem. The issue is that mov files are played perfectly but avi files and similar formats are not playing properly by properly I mean that though I have added a document type for public.avi file type but only sound is coming and there is no visual output in the player. Been trying to play the same using Quicktime (v 10) but no avail.
Could anyone point me in the right direction?
AVI as well as MOV are just movie containers. Usually a movie file contains a video track and an audio track. When in comes to playback it depends on the particular codecs used to compress the tracks. Quicktime can read AVI files, but it needs the certain codec to play the video.
You need to find out what video codec was used in your movie. There are number of apps that can display this information. For example VLC Player.
If Quicktime does not play it with default set of codecs, most likely the codec is Divx.
After you have found out what codec is used install the certain Quicktime component.
From documentation..and see supported formats..
Audio formats
AIFF, MP3, AU, WAV, uLaw
Video formats
AVI, AVR, DV, M-JPEG, MPEG-1, MPEG-2, MPEG-4
Codecs
AAC, AVI, AVR, DV, M-JPEG, MPEG-1, MPEG-2, MPEG-4, , OpenDML, 3GPP,
3GPP2, AMC, H.264
Web streaming formats
HTTP, RTP, RTSP

Resources