Android :: Video Stream - MPEG4 Video - Not Showing On Android Using MediaPlayer
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
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
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
View Related
Sep 17, 2009
We have a clent that has videos online that stream. we are taking the same videos an converting them to MPEG4 for mobile playback. they work for fine for most of the phones that we tested except the Andiod Phone? Does anyone have any solutions. the test allowed audio playback but the video was black?
View 6 Replies
View Related
Sep 23, 2010
I have two questions regarding video recording on the Droid X.
1. What options are there for encoding? On my HTC Hero I can encode in MPEG4 or H.263. What about the Droid X?
2. My friend sent me a video from her Droid X, but I can't hear anything as far as audio in a normal setting. The only way I can pick up anything she's saying is if I max out the Media volume and hold the speaker directly up to my ear. Is there something she's doing wrong when she's recording the video? This has happened twice now.
View 1 Replies
View Related
Jan 20, 2010
Attached is my code, I cannot see the video while playing a MPG file.
CODE:................
View 6 Replies
View Related
Sep 29, 2010
I try to play video, but all I get is sound and black screen. I don't understand what's wrong with the code. That video is 3gp, it works on my phone if I run it using standard phone player (without my program). I tryed VideoView, but no result...
Here's code:
CODE:...................
View 3 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
Jun 16, 2009
I have the following native source code that is supposed to display video. It plays 3gp file ok and I can hear the audio, but the video is not shown.
CODE:..............
View 4 Replies
View Related
Feb 14, 2009
I'm just trying to play a local video that is a resource with the MediaPlayer class in the most simple way possible. I have confirmed that the video works with players that I download from the marketplace, so I'm assuming that's not the issue.
The problem is that I just get a black screen with no video. There is audio from the file playing though, so I know that the file resource is being accessed correctly, it's just not showing anything on the screen in the emulator.
The one other note is that at any time whenever I try to access getVideoWidth() or getVideoHeight() I get this (non-blocking) error:
ERROR/MediaPlayerService(24): getVideoSize returned -1
Any ideas as to what I could be doing wrong?
import android.app.Activity; import android.os.Bundle; import android.view.SurfaceView; import android.view.SurfaceHolder; import android.media.MediaPlayer;
Code...
View 9 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
Oct 2, 2010
I want to play video file that exists in one of my servers. I am using MediaPlay and VideoView classes and it works fine but the problem is that the video start to play only when it finished downloading the whole file. How can i stream it, meaning play the video while it continues to download?
View 4 Replies
View Related
Aug 31, 2009
I want to stream a video to Android, preferably over RTP. Session setup would be done with SIP. Any ideas where to start? I looked at sipdroid, but there is only audio.
View 2 Replies
View Related
Jul 10, 2009
I want to get the stream and send it to server directly by using MediaRecorder.
Actually, I am able to record the video,and able to store it into sdcard. Now I want to it to stream (live stream) to server rather than storing it.
View 5 Replies
View Related
Oct 4, 2010
I am trying to play the streaming video using the API demo application. I set the path to mp4 link from the web.
when i run it with Nexsus 1 (SDK 2.2.1) it is working as expected but on HTC Dream (SDK 1.5) it throws the following exception:
CODE:.......................
View 4 Replies
View Related
May 24, 2010
Currently I am developing an application that will stream video using RTP and SIP. I have this mostly working with audio working fine both ways using Java (and native) codecs. I can stream out video also from the camera to a windows client.
The problem comes from when I want to receive and decode the video on the android platform. I understand at this stage that Mediaplayer only supports RTSP streams. Ironically it does what I need (by getting the SDP information from using RTSP SETUP call and using that RTP/UDP information to receive the stream). But I can't seem to access this functionality, all it takes as input is a RTSP url. If you are unfamiliar the difference between RTSP using RTP and SIP using RTP. You can read about the differences here<http://www.cs.columbia.edu/~hgs/rtsp/faq.html#rtsp_sip> .
What I need to do is take an RTP stream encoded with h.263-1998 and somehow pass it to the mediaplayer (or even a lower level api if somebody can provide an example).
The only way I can think around this is to write another service to receive the RTP stream and provide an RTSP interface... but this is a really ugly solution.
View 10 Replies
View Related
Apr 30, 2010
I bought a cable, manufactured by HTC, which is supposed to give you the ability to stream video out via the device's usb connector. It has a usb connector on one end and splits out to three rca plugs on the other (the usual red, white, and yellow for audio and video). HTC claims that the cable is compatible with my phone (the HTC Eris). When I connected the cable and it didn't work, I wrote to HTC support, which replied that I need software to enable the phone to do this. I searched the anroid market and the web and could not find any such software. I wrote back to HTC asking for them to suggest software to me and they never responded. Does anyone know of such software? Would HTC manufacture a cable in anticipation of somebody developing the proper software?
View 4 Replies
View Related
Nov 28, 2010
Has anyone gotten vuze to stream video to their phone? If so what on the phone needs to be done, some app or setting? PS3 works great, although that I can actually see the vuze device fine. In vuze it see's my phone in the devices but I'm not sure what to do other than copy over the movie to the phone in vuze. Plus it looks like the phone is grayed out in vuze.
View 2 Replies
View Related
Feb 24, 2010
I would like to be able to capture the video from an android phone camera, and then process this video. Processing involves adding a layer of AR to the live stream. Is this possible on android? Pretty sure it should be. I have looked at the android site [http://developer.android.com/guide/topics/media/index.html] but this seems to be concerned with video capture and storage. I would like to be able to play with the video pre-storage.
View 1 Replies
View Related
Mar 9, 2010
I've searched several forums but it's been hard to find a clear-cut answer for the app I'm looking for. There is an app for iphone called "here file file" that from what I understand allows a user to access and play pretty much any file such as audio and video on their iphone that is on their Mac. You don't have to be at home using your own wifi connection or any wifi connection for that matter. So basically you can access your Mac files from anywhere and play them on your iphone. I've seen remote desktop apps but I'm not sure they do the same thing and I've seen mention of things like orb and vlc but does anyone know if they do what I'm looking for? I have a new Samsung Moment and would love to be able to do this.
View 16 Replies
View Related
Jul 18, 2010
I have a Samsung Moment with Android 2.1 on it and lately I cannot stream music or video in any app that I try. The YouTube app says "Sorry, this video cannot be played." for every single video, and if I try to use something like DroidLive (for shoutcast and such) it has a connection error every time. Grooveshark has an "Unknown MediaPlayer error." I tried a few other random apps off of the market to try to rule things out and none of them would play. Music that is stored on my SD card plays just fine.
It doesn't only not work sometimes, it doesn't work 100% of the time now. Happens when I have 3G and even if I'm connected to Wifi. I did a factory reset last night thinking that maybe an app had messed with a setting somewhere and it still doesn't work. I have no clue what else I could possibly try.
EDIT: As requested by the stickied thread:
1.) Model Number - SPH-M900
2.) Firmware Version - 2.1-update1
3.) Baseband Version - S:M900.8.0S.DD03
4.) Kernel Version - 2.6.29
5.) Build Number - ECLAIRDD03
And the hardware version is M900.8.0
View 2 Replies
View Related
Jun 29, 2010
playing youtube videos in android. I have tried the RTSP but it fails to stream the video.
View 2 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
Jun 23, 2012
I'm developing an application that makes video stream to an internal network, so I need to broadcast to listeners devices (connected to this network), found an application called VPLAYER receiving video stream, but it performs HTTP, which makes the broadcast. So, I wonder if there is any player that receives video stream and run under the UDP or whether it is possible to develop an application that receives the video stream and pass to the player's native android.
View 1 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
Jul 31, 2010
Is there any way to Stream video From iPhone Or Android to RTMP Server using Red5??
i searched over internet and there is only 2 application that mange to do this successfully
(UStream , Qik)
the problem they closed source So if anyone could help me find some code snippets that make this possible ??
View 1 Replies
View Related
Aug 3, 2010
I used to have the iphone 3gs, but now i have a Samsung Galaxy with Android 2.1.
I had a great program called Air Video, it was so great, i almost chose not to upgrade to android cause it wasnt on the Andriod platform.
You installed a client on the phone, and a transcode server software on your pc, and then the magic began, you could stream any kind of video format straight from your PC to your phone in realtime. It supported mkv, divx and a whole lot of other formats. I could even stream video from my satelite tuner straight to my phone with this software. It was totaly mindblowing, and it worked both on 3g and over wifi, you just adjusted the quality of the stream in the client program on the phone. I could lay in bed, and watch my whole video archive straight from my pc on my phone, i could watch it from work and anywhere with 3g coverage.
The great thing about this program, was that everything was on the fly, and went automaticly, you didnt have to convert EVERY video file to mp4 (or simular) before you started streaming.
View 9 Replies
View Related
Jul 22, 2013
What's the best way to stream video between Android devices? (wirelessly)
A bonus would be if I could choose where the video decoding happened (on the source or destination)...
View 2 Replies
View Related
Sep 16, 2010
Does anyone knows some convinient method to capture video to file or stream from OpenGL app on Android device? For example, can we capture video from a view, opengl view?
I just found out the following:
1) We can get frames using glReadPixels. (No video on this step?)
2) MediaRecorder can encode video, but how can we provide it our raw source, if possible?
3) Any working ports of ffmpeg(for example) or other encoding libraries? There are some tutorials of portng ffmpeg to use withing NDK. So, having raw frames and working port of ffmeg we can create video? Any issues on this step? Anyone managed to port any encoding library successfully? What components do I need from ffpmeg?
View 1 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