Streaming Live TV channel from m3u play list - java

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

Related

Upload multiple .ts files to YouTube as one video?

I have a multiple ts files and would like to upload it to YouTube as one video. This basically breaks the question into two parts and would like to know if it's possible.
Can multiple individual files be uploaded in a sequence as one video to YouTube through their API?
Does YouTube truly supports ts files upload?
1. Can multiple individual files be uploaded in a sequence as one video to YouTube through their API?
YouTube is a video upload platform and does not provide any functionality for video editing. Hence, if you'd like to upload these files as one video, you'd have to join these yourself and then upload. However, you could upload these videos as a playlist in your channel. For which, take a look at the playlist and Insert video section of the YouTube API documentation.
2. Does YouTube truly supports ts files upload?
Here is a list of supported Youtube file formats. Unfortunately, it doesn't seem like TS is one of them.
Hope this helps.

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.

Video converting into mp3 on Java, Android

I need to convert mp4/flv files info mp3 in my Android application, but I don't know C/C++ and Android NDK. Do you know libraries/methods for easy converting on Java? Thank you for anyway.
Your question is how to extract audio from MP4/ FLV files and save as mp3 file. Right ?
Then, very sorry, Android SDK does not provide any API for transformating or track extraction.
Also using available media framework to achieve the same is also not trivial (and even if you do, you will lose portability).
What I would suggest is to use your MP4 & FLV Parser to extract audio track, do transcoding (if audio track is non-mp3), and save the transcoded (if audio track extracted is mp3, then extracted data) data.
Or you can port FFMPEG code base and use the same. This again may be overkill for your small task.
Suppose you just want to extract mp3 track from MP4, then you understand the native mp4 parser and use the APIs for extraction. You may have to replicate some code from stagefright / opencore.
Shash
it's probably irrelevant for you anymore but if some one still need a mp4 to mp3 parser here's an api that can do the job

RTSP streaming of video files to 3gp

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)

java framework for manipulate audio and video

I'm searching a java framework for manipulate audio and video files, I need functions like:
Split video and audio files
Get a frame from a video
Key Frame extraction
I tried Xuggle and I want to know if there are other frameworks.
any advice?
I found Xuggler: http://www.xuggle.com/xuggler/
Which audio and video format you are dealing with? For MPEG-2, Project X may be a solution.

Categories

Resources