Playing Videos/media files in c# - flv

I am working on one of the media project (windows application). In this the flv, avi and mpeg are the main file types which i have to play in application. I can use wmpLib, but it will not play flv files. So what procedure should i follow and what tools or libraries should i use.Is there any free opensource libraries to do media work. Thanks in advance

Typically DirectShow is used to play AVI and MPEG. I have no idea on FLV files.

Related

Java HTTP Live Stream segmenter

A few months ago when I looked into HTTP-live streaming I thought I found a Java Library which can act as the segmenter to create a HTTP Live Stream. However, I cannot find it back. Is there anybody who knows about a way to directly segment the files?
Or, with iOS 5, if there are any libraries yet which can create the m3u8 files from a set of encoded files without physical file segmentation?
I have a server running the (Java) Play Framework and will use FFMPEG (possibly in a Java wrapper) to encode and now look for something to create the playlist files.
I am working with Xuggler at the moment, and have a segmenter and encoder working,must the .m3u8 file is not accepted by iOS devices so some work needs to be done, but it has the promise to be successfull.

Can we stream only flash videos throught RTMP?

I am planning to use Red5 streaming server. The documentation says it uses only RTMP - I am confused if I can stream media in formats other than flash.
Is it possible to stream MP4 / RM / AVI files through RTMP - or rather Red5 ?
Thanks !
Please take a look at the red5 google site, from there you can learn, that Red5
is able to stream not only over RTMP
but also RTMPT, RTMPS, and RTMPE
protocols, and
can stream not only FLV but also F4V,
MP4, 3GP, MP3, F4A, M4A and AAC media
formats.
For RM and AVI you must use a converter to create the appropriate streamable formats. The best way in my opinion to do so is using ffmpeg.
If you need to convert media on the fly, you can use ffmpeg from your java classes. It's easy and offers a large list of parameters 'guaranteeing' that you'll get what you need.

http live streaming for mp3 files

I need help in converting mp3 files to Apples Http Live Streaming protocol files. I am working on a music application and wants to use Live streaming in this app.
I got this link http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/ from google but it contains how to live stream video files.
Can anybody help me with mp3 files.
Thanks
With ffmpeg you're also able to convert mp3-files only (no video).
Just use:
ffmpeg -i yourmp3.mp3 ...your arguments... output.mp3
To add to Tim's answer, HLS supports mp3 codec. So if your audio is already in mp3, all you would need is the segmenter

jwplayer can read only flv files?

I have a doubt jwplayer can read only flv files or it can read every files
With over one million active users,
the JW Playerâ„¢ is the Internet's most
popular and flexible open source media
player. It can support playback of any
format the Adobe Flash Player can
handle (FLV, MP4, MP3, AAC, JPG, PNG
and GIF).
http://www.longtailvideo.com/
EDIT
If you need to deal with any other formats, you can run the conversions server side using ffmpeg
Reference
http://www.ffmpeg.org/

Need to play flash videos on iphone

I am building this iphone app for a client and they have a large set of flash video files that they need to play/stream to the iphone. I understand that the iphone doesnt natively support flv playback but isnt there anything I can do to get around this problem?
In case it helps, they are using the akamai flash player on their website to play these video files.
Thanks in advance.
Yes! - You can convert all the videos to m4v format.
There's a javascript hack available, but it will only work if it's installed on the clients web server. It's also pretty clunky and slow and will likely murder battery life.
A workaround, since you're working with video, is to convert to mp4 format.
Short answer: no flash, but conversion will do what you need.
akamai actually supports "auto-packaging" of h.264 content which may be your best option here. By uploading 1 or more h.264 files you can use those to both serve your Flash player, and akamai will also auto-package them for iPhone (chunking them into .ts files and creating an .m3u8 reference file for dynamic mobile streaming).
This allows you to not have separate encodes for mobile and web, thus saving money and time so you can leverage your existing archive.