I have a mp4 file which is to be used in an application. Currently i am in the stage of figuring out the technology to be used for this job. I am familiar with flex and am hoping that i be able to use it for the application. But i can not figure out a way to play the file in flex. I have been able to play the file only in windows media player and that required the installation of three codecs : Mp4Audio.ax, Mp4Video.ax, Mp4Src.ax.
As i see it, it will be very convenient if i could embed a windows media player plugin in flex or i could specify the audio and video codecs in the flash player.
Else i will have to learn .Net, i guess.
Kindly help me out. Thanks in advance.
If you are creating an air app then you are able to start the windows-media-player using the NativeProcess. Anyway if you have a flex web app then you do not have any options on this. :(
My recommendation: Convert the video file to a valid mp4 file that can be played by flex. I suggest you to check ffmpeg library (and you could use it to convert the file to H264 format)
Related
Is it possible to create a web application which can record audio or video using ffmpeg or libav?
Or are these only for creating desktop aplications for encoding, decoding, recording audio/video?
It depends what platforms you are interested in.
Only PC? You can use ffmpeg or libav, but you'll need to create separate plugin for different web-browsers. Alternatives are Flash or signed Java applet loading a native module from a server.
On mobile platforms Flash is not an option usually. Usual approach is to provide a stand-alone application.
I am trying to convert from wmv to mp4.
First of do I need to implement my IMFTransform to do this ?
Do i need to convert the video to MFVideoFormat_I420 ?
As far as I know if you create the topology correctly this should be handled automatically.
So I created my profile showed in the
http://msdn.microsoft.com/en-us/library/windows/desktop/ff819476%28v=vs.85%29.aspx
but i get a MF_E_TRANSCODE_NO_MATCHING_ENCODER.
I have windows 7 so, i should have the encoder.
Also Does anyone know where the source code for that tutorial is. It is not under SDK samples.
Thanks.
You don't show code - noone knows what is wrong.
Take a look at this transcoding sample, which comes with source code and does exactly what you are trying to do: transcoding from ASF into MP4.
http://blogs.msdn.com/b/mf/archive/2009/12/02/mfsimpleencode.aspx
MFSimpleEncode.exe - This is a command line tool that transcodes files
from one media format to another. The source code is provided to use
as a reference if you write your own transcode application. This tool
uses the Media Foundation transcode API, which was introduced in
Windows 7.
Examples:
Transcode ASF to MPEG-4:
MFSimpleencode.exe –i Input.wmv –o output.mp4 –p TranscodeProfileMPEG4.xml
I have been searching for ways to play an M3U8 media live stream on WIndows Mobile using the media framework.
Kindly share any info on this.
You need to read and parse the m3u8 file (it's a simple text file). Then stream the parsed Uri(s).
After more research i found out that m3u8 is a format supported by APPLE.
Unfortunately we cannot play the m3u8 files on windows phone directly.
Rather we can use the streaming media framework to play .manifest files.
The .manifest files are generated by the SMOOTH STREAMING MEDIA SERVER.
.manifest files are equivalent of m3u8 files. It is also a playlist file just like the
m3u8 file.
SMOOTH STREMAING SERVER, is a part of windows media servies that works on a IIS server.
You can use Windows Phone Streaming Media free library, it worked fine for me, there is a blog post about it:
3ivx live streaming 3ivx although this is not free
First add reference.
xmlns:local="clr-namespace:Microsoft.PlayerFramework;assembly=Microsoft.PlayerFramework"
xmlns:smmedia="clr-namespace:SM.Media.MediaPlayer;assembly=SM.Media.MediaPlayer.WP8"
<local:MediaPlayer Name="player"
HorizontalContentAlignment="Stretch"
AutoPlay="True"
Volume="0.7"
Source="http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"
IsPlayPauseVisible="True">
<local:MediaPlayer.Plugins>
<smmedia:StreamingMediaPlugin />
</local:MediaPlayer.Plugins>
</local:MediaPlayer>
Can anyone suggest me webplayer which can play MP3 files in Firefox browser?
I tried jPlayer, however it needs ogg files. I tried converting MP3 to OGA using FFMPEG, however, even the generated file is not being played in JPlayer.
Is there any alternate player which can play MP3 files in Firefox.
I don't want to use Flash.
..alternate player which can play MP3 files in Firefox.
Combine these 3 for an answer.
Java Sound for the ability to play audio.
The MP3 plug-in SPI of JMF, to supply support for MP3, which Java Sound does not support by default.
Applet - to embed that ability in a web page.
Note
I am pretty sure there are easy ways to embed sound in web pages that does not require Java, or requires plug-ins that have higher usage (like Flash). If there is not something custom you wish to do, I recommend investigating alternatives.
I came across a H.264 video which i would like to play in my c++ application. Could anyone suggest what could be the easiest way of doing it? Or What library can be used for the purpose.
Thanks in advance..
Windows API are DirectShow and Media Foundation (mind availability across Windows verions). You need a codec installed in Windows to be able to play the file, stock codec is only provided with Windows 7 editions. A choice of third party codecs is available.
Another option is to use a different framework such as ffmpeg which includes support for container formats and decoders.