Android :: Unable To Play Rtsp Video (H.264) Stream In Froyo Using MediaPlayer
Oct 3, 2010
I have an app that worked fine on Android 2.1 (Eclair) but is no longer working in 2.2.1 (Froyo). I think this may have to do with the shift from OpenCore to StageFright for video encoding and decoding, but am unsure.
The debug logs show two things I'm not sure about:
Does this mean H.264 baseline is not supported? WARN/QCvdec(59): Parsing Error unsupported profile or level No idea about: ERROR/PVOMXVidDecNode(59): Ln 1373 OMX_EventError nData1 -2147479542 nData2 0
Play the following url (it works fine in VLC, for example): rtsp://nexus3.dropcam.com/6821ec44e37846428850ec195d69969a
The code:.........
The debug result:
CODE:................
View 3 Replies
Jul 16, 2010
I am sending a MPEG4 video stream in RTP format over RTSP to my android emulator using ffmpeg and ffserver. I use the Android VideoView to play the RTSP stream. I do not see the video. The error in LogCat is pasted below. Is there some specific that I need to do? If I use the Android 2.2 to run the same code, the video plays fine.
I also tried coding video using H263, but that stream does not play in 1.6/2.2 emulator =================================================================================== 07-16 15:50:46.073: DEBUG/PlayerDriver(554): buffering (6) 07-16 15:50:46.273: DEBUG/PlayerDriver(554): buffering (6) 07-16 15:50:46.474: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:46.683: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:46.884: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:47.092: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:47.293: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:47.492: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:47.703: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:47.902: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:48.113: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:48.123: DEBUG/PlayerDriver(554): buffering (100) 07-16 15:50:48.162: ERROR/SW_DEC(554): PV SW DECODER is used for MPEG4 07-16 15:50:48.223: INFO/MP(807): onPrepared called 07-16 15:50:48.223: INFO/MP(807): vv start 07-16 15:50:48.252: INFO/mediaDuration3(807): -1 07-16 15:50:48.384: ERROR/PlayerDriver(554): HandleErrorEvent: PVMFErrCorrupt 07-16 15:50:48.652: WARN/PlayerDriver(554): PVMFInfoErrorHandlingComplete 07-16 15:50:48.652: ERROR/MediaPlayer(807): error (1, -10) 07-16 15:50:48.652: ERROR/MediaPlayer(807): Attempt to call getDuration without a valid mediaplayer 07-16 15:50:48.652: ERROR/MediaPlayer(807): error (-38, 0) 07-16 15:50:48.794: ERROR/MediaPlayer(807): Error (1,-10) 07-16 15:50:48.794: DEBUG/VideoView(807): Error: 1,-10 07-16 15:50:48.794: INFO/MP(807): onError called 07-16 15:50:49.063: ERROR/MediaPlayer(807): Error (-38,0) 07-16 15:50:49.072: DEBUG/VideoView(807): Error: -38,0 07-16 15:50:49.072: INFO/MP(807): onError called ===================================================================================
View 10 Replies
View Related
Jul 2, 2009
does android can recieve and play MMS or RTSP audio stream? or just can address for HTTP stream?? i try for MMS stream,but there is nothing to hear..
View 2 Replies
View Related
Feb 18, 2010
I'm using VideoView to play an RTSP video stream. It works fine, however on my Android phone the audio lags the video by about 3 seconds. If I watch it on my computer with VLC both the audio and video are in sync. Has anyone else experienced this audio delay before and how might I go about correcting it on the phone.
View 4 Replies
View Related
Jun 28, 2010
say if android supports an RTSP stack? We've an RTSP server that we'd like to stream video to an android rtsp client if thats possible
View 8 Replies
View Related
Jul 2, 2010
I wanted to stream A/V from my machine to Android over HTTP
(http://lists.mplayerhq.hu/pipermail/libav-user/2010-July/004944.html).
But that does not seem feasible using FFMpeg. I am planning to try FFMpeg streaming over RTSP. But I am not sure whether MediaPlayer or VideoView classes on Android support RTSP playback. Is playing RTSP stream possible in simple application?
View 3 Replies
View Related
Mar 23, 2010
I have managed to get a working video player that can stream rtsp links, however m not sure how to display the videos current time position in the UI, i have used the getDuration and getCurrentPosition calls, stored this information in a string and tried to display it in the UI but it doesn't seem to work code...
View 6 Replies
View Related
Aug 25, 2009
I want to stream a media file on web, and android developer website has said that MediaPlayer.setDataSource() can set the data source (file-path or http/rtsp URL) to use. But I got an error in both G1 device and emulator when streaming a rtsp url file: Command PLAYER_PREPARE completed with an error or info PVMFailure error(1, -1). Does anyone know what is this error, or anyone knows where can I get the error description (1, -1) means? the code can work successfully when playing a audio/video file or streaming a http protocal sudio/video file, but can't stream rtsp protocal file. Is android not supported rtsp streaming?
View 4 Replies
View Related
Oct 12, 2010
There is an online stream that is 512Kb MPEG4 and total size of 312mb online and if I'm correct after looking over docs in order to play the movie I just simply put:
CODE:..................
It is triggered to play after a button press which after a few seconds after pressing the button it plays the audio BUT doesn't show the video, why not? Do I have to use a surface view or something for visual playback of the stream.
View 2 Replies
View Related
Aug 9, 2010
Would someone post an example of how to stream audio/video files using rtsp in android........
View 1 Replies
View Related
Apr 23, 2009
I have this task: Need to play short (0.3-0.4 sec) sounds all the time. When sound is played, it should start again, etc. User can press button to reset sound - it should stop and lunch.
I did many tests. I tried to create 1 MediaPlayer, then do this: MediaPlayer.OnCompletionListener complListener = new MediaPlayer.OnCompletionListener; code...
It works great on emulator and on device if I have eclipse+debugger on. When I disconnect debugger, I have very strange errors - sound can stop at all (till program restart), sound can start "repeating" (play 0.1-0.2 sec, then restart). Can someone please provide me some info about problem?
View 5 Replies
View Related
Jan 18, 2010
Is it possible to have two instances of MediaPlayer to play sounds/ video? How many instances are actually allowed? I can see from the Javadocs that there is a limited amount of instances of MediaPlayer allowed.
View 3 Replies
View Related
Dec 3, 2009
Can anyone tell me if the Android MediaPlayer class is able to play a video stored in a remoted URL? Just for testing purposes, can I use the URL http://localhost/video-name.3gp. Another question is if the MediaPlayer works well on the emulator?
View 2 Replies
View Related
Jun 16, 2010
I have a camera by Cisco and like to stream it's video stream to my android phone. It's coded in MPEG4 so there should be no problem, but it's not working anymore (it worked with another camera a few weeks ago).
CODE:...................
View 1 Replies
View Related
Jul 10, 2010
In my application, RTSP streams play only sound without video, but if i specify the video path as a local file, it plays the video and audio.
How would i get the RTSP streams to show video?
CODE:.................
View 2 Replies
View Related
Oct 27, 2010
I am trying to stream mp3 stream from my local http server indeed hosted on my phone to android media player.When local server gets the new socket , it starts writing some http headers followed by mp3 stream. but mediaplayer socket is throwing "Broken pipe" exception.Wat may be the issue causing this.
View 1 Replies
View Related
Nov 24, 2010
I want to subscribe to tennistv.com so I can watch tennis and would love to watch it on my Samsung Galaxy S phone too.
It uses a WMP DRM'd stream for live matches, is there any media players on android that I can use or maybe a 3rd party service which can transcode the stream in a format the phone can understand?
View 1 Replies
View Related
Apr 2, 2010
Every time I try and stream a video from browser it wont play it. Says its not supported even though it is a type that is.
View 7 Replies
View Related
Jan 24, 2010
I am a sales engineer for a company that specializes in streaming. I have and love my droid, i have tried using it with several of our products for live streaming but with no luck.
I have tried video meant to stream with the Ipod and nothing happens.
I have tried MP4 ASP and it starts to open the video but never plays.
I have tried progressive downloads of both with no luck.
i have tried 3gp with no luck.
Do you know what video formats it can stream?
View 6 Replies
View Related
Jan 18, 2010
I was tried for RTSP stream for a long time, finally I could success to play the RTSP stream from mobile Youtube website:
http://m.youtube.com/
My approach is to copy the stream link and paste it in my code, then, there are sometimes success to work(play) on Android and sometimes will not. I can't figure out why? Is something wrong about Youtube server? Because my code is just the same, and only change is the stream link URL. I used VideoView widget and my Android platform is sdk 1.5 and under x86-based, so I really want to know why and how can I solved for this. This is the logcat when I can't work for the video stream.
W/PlayerDriver( 2116): Using generic video MIO
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
I/ServiceManager( 2112): service 'media.audio_flinger' died
W/MediaPlayer( 3344): MediaPlayer server died!
E/MediaPlayer( 3344): error (100, 0)
E/MediaPlayer( 3344): Error (100,0)
I/ServiceManager( 2112): service 'media.camera' died
D/VideoView( 3344): Error: 100,0
View 2 Replies
View Related
Mar 11, 2009
Is it possible to stream a very large mp3 using MediaPlayer? The mp3 I am interested in is over 270 mb.
View 3 Replies
View Related
Feb 17, 2009
I would like to receive an audio stream from an application running on a PC using the 802.11 connection. I tried the following and received Error (-1, 0) from the MediaPlayer:
mp = new MediaPlayer(); mp.setAudioStreamType(AudioManager.STREAM_MUSIC); mp.setDataSource("http://10.1.201.114:11224");
The MediaPlayer does connect to the application and the application starts sending audio but nothing happens on the G1. Is the setDataSource call above correct? If so, how do I set things like sample rate, etc? If not, any help would be great!
View 2 Replies
View Related
Nov 27, 2009
I am trying to make a very simple radio player for Android and I cannot get the audio streaming to work. In my latest attempt it plays for about 1 second and stops for some streams and it doesnt work at all for some other streams. Logcat doesn't give much useful information to me. I am testing on HTC Hero (Android 1.5).
If I hook the completion and buffer events I see the audio gets a complete event but it keeps buffering. Is there anything wrong with the code below? Should I be able to stream the the audio streams below? Is there a complete example somewhere of a working radio streaming?................
View 5 Replies
View Related
Aug 21, 2010
I'm trying to create a way to adjust volume settings for each of the different streams (media, notification, ringtone, etc) and have a way to preview the output sound level of each stream. I believe I have the correct implementation, but when I set the output stream type, there is no sound that plays.
Here is the code that correctly plays the user's selected alarm sound:
CODE:.................
That commented out line is what is causing me problems. I would like to hear the alarm sound at the volume levels of the different audio streams, but when I include that line for STREAM_ALARM or any other audio stream, no sound at all plays.
View 1 Replies
View Related
Jan 29, 2009
I've been using androids MediaPlayer to stream from an http url and have a question about seeking. Currently, our urls expire after they have been used once or a certain time out has expired to dissuade scraping content. Now, this obviously makes progressive streaming past the buffer impossible with the exact same url as you need to open a new http connection with the same mangled key, which we intentionally don't allow.
However, MediaPlayer seems to do this when seeking before the current position (i.e. seeking from 1:00 in the audio to 0:30). As the file has already been downloaded up to the current position I'm confused as to why MediaPlayer is still trying to initate a new http connection in this case? The only thing I can think of is that MediaPlayer is getting rid of audio its already played up to the current position, and hence needs to restart the connection if you try to seek back on the stream. Is this correct, or is there something else going on?
View 2 Replies
View Related
Aug 22, 2010
one problem i just noticed since i installed LFY1.4 with the smoked theme.. when i try to play videos that i recorded on my phone previous to rooting, and rom'ing i get an error "sorry this video cannot be played". it only happens with certain videos, not all of them. not sure if it has to do with the rom, the theme, launcher pro, rooting or what.. wondering if anyone else has had this problem, or anything similar?
View 2 Replies
View Related
Oct 23, 2010
Isn't playing a video in HQ a matter of selecting it from the menu? So does this review make any sense?
Quote: ...
View 27 Replies
View Related
Mar 1, 2010
So I have had my Droid Eris for about a week now. The other day I decided to play around on YouTube to see what it was like. Here is the thing though, I have literally found like 1 video that will play. Most of the time I get "This video can not be played". Anyone know why this is?
View 4 Replies
View Related
Jul 19, 2010
At first, I believe there was a question that would pop up asking me whether I wanted to use youtube or not, but I must have said don't ask anymore, because I don't get that now (is there a way to get that question back?). Now when I click on a flash file, I get a choice to download or play. I click play, and the screen goes black. There is some sort of spinning 'loading' graphic, then I get a popup that says "Cannot play video Unable to connect to server". This happens on any of the major video sites.
View 29 Replies
View Related
Jul 18, 2010
I need to play an RTSP audio stream on an Android phone, linked to from a web-page. What's the simplest way to achieve this? I hope this will be very simple but unfortunately I don't have a phone on which to test.
View 1 Replies
View Related