Android RTSP live streaming with videoview - android

I have an app which shows live streaming of a channel. I was using HTTP at first but now I want to use RTSP because is is supposed to work on more devices. Anyway, my RTSP URI works fine on a 4.3 device. However it does not work on a 2.3.5 device. I only get audio and not video on the 2.3.5 device. Anyway I thought it was a codec problem, so I found a video that played well on both devices and compare their formats:
This is for the video that does not play:
This is for the video that plays well:
I cannot see why one plays fine and one only plays the audio. I think is not a code problem as I have been using any possible solution I could find online.

I solved the issue. The problem was the resolution of the videos; All devices support up to 480 x 360 px in SD and only some of the devices support up to 1280 x 720 px in HD.

Related

Android Youtube API HQ mode make video bigger

I want to play video from youtube link https://www.youtube.com/watch?v=yi-AImV09q0. I am using Youtube Player to play video but it have some problems.
This video is bigger than real video (on web) so I just only see a part of video. However,if I turn off HQ mode - with lower quality, this video work fine.
This problem also happens in Youtube App. I'm testing with Samsung S2 device
Anyone can give me some advice? Thank in advance

Android Video doesn't start on samsung s3

So i have a problem with a videos that are displayed in a activity.
So every thing worked fine on my samsung s4. so i thought everything is fine.
But my friend noticed on his samsung s3 mini that the video is not playing.
The resolution of the video is 1280 720 and the format is H.264 form mp4. i really don't know what to do if somebody could help me that would be great
Probably s3 does not support your video format. You can check if your format is here: http://developer.android.com/guide/appendix/media-formats.html
If not, then it does not have to be supported by a manufacturer.

HLS streaming on Galaxy S3

We are developing music streaming application for Android devices with adaptive bit rate support. We are using Wowza as streaming server which will stream songs using HLS. We have converted each song into four bitrates and have created smil files which are referred in HLS URLs. So basically final URL will look something like this.
http://streaming.server.name:1935/vod/smil:audiofile.smil/playlist.m3u8.
We have tested the app on multiple android devices ( Android version 4.0 or later ) including Galaxy S2, Galaxy Note I, Sony Experia, Google Nexus etc.. On all these devices the songs are getting streamed except on Galaxy S3. On Galaxy S3 the song starts and plays till 6 secs. After that the song goes in loop and plays again and again 6 sec part.
The same behavior is observed when the above URL is accessed through browser.
We have tried to check wowza logs but no errors were reported.
Has anyone tried such thing on S3 devices. Any guidance on how to debug this issue will be greatly appreciated.
The Android documentation states (not clearly enough though) that the TS container format only supports AAC audio. Your are trying to play HLS with TS segments containing MP3 audio data (which is supported by iOS).
I can share the observation that doing so works on most Android devices, but not on all.
The S-III is an example of that.
Please refer to the Android Supported Media Formats section in the documentation.

HD video streaming in gingerbread and ICS

i am really not getting anything on net related to this topic. I wanted to do HD video streaming on gingerbread and on ICS. I tried to play various HD video(mp4) locally on blaze ported with gingerbread, but not able to play. First of all i am not getting why it's not able to play video locally.
And the second thing i kept videos on server, but on pandaboard, i am able to hear sound only no picture.
I am wondering no body ever tried to do streaming of HD video. And do we always need to compress those videos to do streaming.
I am really helpless and i searched alot, but there is no solution for this.
Please help.
go through this link http://developer.android.com/guide/appendix/media-formats.html
part to check
Video Encoding Recommendations
Table 2. Examples of supported video encoding parameters.
SD (Low quality) SD (High quality) HD (Not available on all devices)
I guess the device your using is not supporting HD

Android Video Streaming - Device supported?

Ok. So there are a bagillion different Android devices. I have a video streaming service, works wonderfully for iOS. My app has a live video feature and a saved video clip playback feature (which streams to the device too). I've run some tests on different Android devices and get a whole bunch of different playback results. I am using a 640x480 h.264 base profile video. Streaming that video works only on some devices. For other devices, that same video stream can be made to stream at low resolution and that works on some devices, but still not others. The high profile streaming goes through http://www.wowzamedia.com/ (rtsp) and doesn't work on any Android device (but works on iPhone). The lowest and worst option is Motion JPEG, which works on all tested devices so far.
So my question is, how can I figure out (without having to test every device out on the market) if the device will play: 640x480 h.264 base profile - if that wont work then play the low resolution video - if that doesn't work, default to Motion JPEG.
Also, any idea why my rtsp transcoded through wowza works on the iPhone but not on any Android device (not even the Motorola Atrix)?
Streaming on android is an absolute mess. Most devices don't support anything higher than Baseline 3.0. If you encode for iPhone 3, it should generally work via RTSP. Newer versions of android support HLS, but it's hit or miss and largely dependent on specific devices.
I resolved this problem. Check RTP-realization in your streaming service and x264 profile. My RTSP-server works fine on 90% devices.
p.s
Some video frameworks in different Android versions can implement RTP and RTSP protocols with some differences.
These are some of the links/issues which I have come across, while trying to make streaming work in varied devices.
MediaPlayer seekTo doesn't work for streams
MediaPlayer resets position to 0 when started after seek to a different position
MediaPlayer seekTo inconsistently plays songs from beginning
Basic streaming audio works in 2.1 but not in 2.2
MediaPlayer.seekTo() does not work for unbuffered position
Streaming video when seek back buffering start again in videoView/Mediaplayer
Even the big shots in stackoverflow are wondering about this
If you want just streaming without seeking (which is lame), this can be achieved. But then if you receive a call while you are watching, you will end up from the start.

Categories

Resources