I am able to show the live streaming from my ip camera through jframe and applet , I need to convert this mpg stream to mp4 format so that i can show this in html5 video tag ..Can anybody suggest how to do that and video should be still live without any time lag ....One more thing to view streaming I am hitting the public ip of camera and this is how I am capturing video, is there any effect on the efficiency if large number of people are watching the video at the same time ..
Please suggest ...thanks in advance
First, know that you can't do live streaming with regular MP4 video format. "Progressive download" MP4 files have an index at the beginning of the file, this cannot be written before you finished encoding the entire movie. There is a variant of MP4 which indexes every small chunk of video separately, but it is not widely supported by HTML5 browsers.
I can suggest several options:
Use FLASH rather than HTML5 and convert the video to FLV. However, I'm not aware of a Java tool to do this conversion.
Use HTTP live streaming and set up a dedicated streaming server to do the transcoding. There is plenty of server software that can do that, such as Wowza server, Adobe FMS, and even Microsoft's Expression Encoder+IIS. You can also find SaaS solutions for that and EC2 images of such servers.
Related
I am trying to develop an app for live channels streaming
But getting trouble when try to play from m3u play list .
http://jan.newmarch.name/android/StreamingAudio.html
This above link describe Streaming Audio from m3u play list . But I want to
Streaming Video from m3u play list .
Look into VLC as it has strong streaming capabilities, and support for probably any video/audio format. You will need to integrate libvlc in your app and pass command-line options to the libvlc.
If i understood your question correctly, you want to set up a video streaming server. The mostly common video streaming format for internet is HLS, which uses m3u8 playlists. You can start with ffmpeg using this tutorial (or any of tens of the others):
http://www.bogotobogo.com/VideoStreaming/ffmpeg_http_live_streaming_hls.php
However there are a lot of possible approaches depending on your project scale and requirements.
Finally I got the answer
You can parse m3u play list Using by m3u playlist parser Library in java or U Can create custom m3u play list parser also.
I would like share the link one of the m3u playlist parser Library
I need to either play or download audio/video files hosted on a server.
While downloading, I need the file to be downloaded in compressed size.
How to achieve that?
Any help would be appreciated.
Audio and video file formats typically employ compression already, so you can't generally do any further compression on them. Thus the good news is that you have nothing to do - your current downloading mechanism already includes compression!
I am working on a software that receives an MJPEG stream from an IP camera and displays it on the screen. Now I'd like to record the stream at the same time in some movie format.
I'm still quite new to Java and got a little lost in the jungle of libraries etc. that are available. What I found was JMF but it looks terribly outdated and unmaintained.
Does anyone here have any suggestions for proper video encoding libraries (must at least support Linux, but OS independent would be perfect)?
Thanks.
One of my friend wants to build a mobile site. He also has a couple of video files that should be streamed on to visitors mobile when chosen. I want to know if there exists a library to stream a video over rtsp in java. I tried this one http://www.csee.umbc.edu/~pmundur/courses/CMSC691C/lab5-kurose-ross.html. But it had too many incomplete code and was giving errors.
VLC has a nice streaming (over RTSP) functionality. Maybe you could look at streaming in VLCj: http://code.google.com/p/vlcj/wiki/Streaming
May be you should try Xuggle with this tutorial: http://www.javacodegeeks.com/2010/05/rtmp-to-rtsp-re-stream-using-wowza-and.html
RTSP is the negotiation protocol you can use something like JBoss Netty for tat. Then you need something to stream the media itself which is done via RTP. You can use Gstreamer (which has Java binding)
I need to create an audio streamer for Android. I want it to play MP3(and other formats too if possible). I also want to be able to progressive download the audio. Does anyone knows a good way to do that?
Thanks!
You should start by checking this link: http://developer.android.com/guide/topics/media/index.html
Apparently this is already done for video, since you can specify a URL as the source for your stream.
You also will have to check some references about audio streaming and the size of the buffering you should use, as well as its dependency with the rate at which you're getting data from the stream in question.