RTSP streaming of video files to 3gp - java

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)

Related

How to send a Wowza Stream to Google Cloud Speech API?

Wowza gives me rtsp://, rtmp:// and m3u8 streams. I want to send this to Google Cloud Speech API, so it transcribes the streaming on the fly.
This API seems to be able to receive only pure byte representation, and the samples on Github show how to do it with a file.
How can I achieve this with the Wowza links?
EDIT: My question is different. In the other question I ask for services that offer that functionality and in this I'm talking of Google Cloud Speech specifically, and how to do it with that API.
One way to get the raw data from a RTSP/RTMP stream would be to use FFMPEG as a client piping the data into your app (FFMPEG providing the transcoding as necessary)
https://ffmpeg.org/ffmpeg-protocols.html
rtmp://[username:password#]server[:port][/app][/instance][/playpath]

Streaming Live TV channel from m3u play list

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

Live video Streaming Conversion

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.

Audio Streaming on Android

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.

How to save web audio streaming to file ( c++ / java )

is there any lib or well known method to save audio web streaming ( web radio , mp3 streaming)
to file programmatically ?
You could use libvlc from the VLC project. The wiki seems to be down right now though. The code is in c++.
EDIT: Found this and this via google cache.
You can use the BASS library. It has plenty of support for attaching to network streams and decode them into MP3/WMA/OGG/AAC files. Developed in C, but could easily be used in C++ and many other languages.

Categories

Resources