Android :: Video Playback - Sound Doesnt Play Correctly
Jul 22, 2010
What could be the reason that a mp4 video file without sound doesn't play correctly when using the VideoView class? The video plays just fine in vlc, mplayer and ubuntu media player. It has been created on the device using ffmpeg. It is like 5 seconds long, so nothing especially big. Codec is H263 with AAC-Audio, though the audio signal is just empty. The problem is, that the video plays, but the image doesn't change, or at least doesn't change a lot. It seems more like a still image, though small movements is sometimes visible but not at all what has been encoded. I noticed that the VideoView stops playing but the time continues to step up, so it doesn't stop counting after 5 seconds but just goes on counting.
I'm using the emulator. Can that be related? I see the following messages in logcat:
CODE:......................
View 3 Replies
Mar 1, 2013
i have the golf channel app installed, on telus network. I cant get the videos to play, keep getting message "cant play video at this time:
View 4 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
Nov 27, 2010
I am trying to get a profile setup for my wifi but that doesnt seems to work very correctly
Here is what i did
Cell near<scanned cells near my house> ---> wifi set on
Wifi near<my SSId>
<-- wifi set off
Now i did this thinking if in my area using scanned cells plus in range of my wifi----> it should turn on
And if the above criteria doesnt match then it should go off
Please advise if i am doing it wrong
I was also thinking when i reach back home phone should say welcome home or something ( was trying just for fun) but that doesnt work properly either i was using it with my wifi profile but the it keeps on reading the message few times i was thinking everytime phone changes the cell it reads the message to me.
View 3 Replies
View Related
Oct 7, 2010
I have had my Evo since launch day. I have recorded some videos for fun and they play back on the phone nicely. But today, I connected the phone to my PC and wanted to play a video. I got video with no sound. I tried several I recorded some at 720fps and some at VGA. Same results. Videos I downloaded from You Tube play fine. Just the ones I recorded on my phone. I have a relatively new HP running Widows 7 and have used Quick Time and Windows Media Player. Neither would play the sound. Anyone have a problem like this?
View 4 Replies
View Related
Aug 27, 2010
Been struggling with this since receiving my X. Seems like no matter what player I use the playback is jerky. It's very subtle, almost as if the video is dropping a frame or so every second. I've tried the stock player, Astro, Rockplayer, mPlayer, Zimly, Act, and the list goes on and the problem still persists.
I've encoded (using handbrake) with all of the settings suggested on the boards and have tweaked things on my own trying to find the proper setting, but still no luck. The strange and frustrating thing is that the exact same files play just fine on my 1st gen iPod touch (clearly an inferior piece of hardware) and on my wife's incredible. These encodes are of standard def DVDs at average settings (a full movie is about 1.3gb, all h.264 mp4 files.
I was able to improve playback by rebooting the X and then playing the video, but this doesn't seem like an acceptable solution every time I want to watch something. I tend to encode and watch a lot of stuff on my commute to/from work, and I'd really like to replace my touch with the X, but the media capabilities are falling way short. Considering switching to the Inc as I know it's able to play my media properly, but I'd prefer to keep the X for the larger screen size (though the Inc does seem to feel better when using one-handed). I'm on the fence right now, but if the X can't function as expected then it might be going back. Unfortunately I only have until the 1st to return it so I don't think I can hold out and see if 2.2 fixes this issue.
View 1 Replies
View Related
Apr 26, 2010
I am having problems getting videos to play on my HTC Desire. I have converted my .avi files into Mpeg4 so as the device could read them ok. I'm using the free programme 'Handbrake' to convert the files. And it does so with no problems. The new mpeg4 files play with sound and image.
The problem occurs when I transfer the images onto the phones SD card. The video files are picked up via the camera folder (where you can play videos as there is no actual video player) as well as on the video player app I downloaded today - 'mVideoPlayer', without any problems but when I click to play the video the screen is black and only the sound works (even though on my pc the file played fine).
Do I need to download a codec or something? I would have thought that as the Desire was compatible with mpeg4 files that it would play them straight off without having to add software.
View 5 Replies
View Related
Aug 7, 2011
Im using Eclipse created new android project.First thing i added to the menifest xml file two lines:
Code:
uses-permissionandroid:name="android.permission.INTERNET"></uses-permission>
<uses-permissionandroid:name="android.permission.STORAGE"></uses-permission>
And this is the complete menifest file code:
Code:
xmlversion="1.0"encoding="utf-8"?>
manifestxmlns:android="http://schemas.android.com/apk/res/android"
package="com.AllFormatsVideoPlay"
android:versionCode="1"
android:versionName="1.0">
[code]....
Now i tried to play a video file .3gp from the internet youtube link via my android device ! not emulator. And it worked! But when i tried to play a video file .3gp or .mp4( i converted the mp4 from 3gp ) its not working. Im getting error "Cannot play video Sorry, this video cannot be played"
Tried to play with the link to my device wich is: I:DCIM100MEDIAVIDEO0030.3gp or .mp4 or tried this: I:/DCIM/100MEDIA/VIDEO0030.3gp with "" like: "I:/DCIM/100MEDIA/VIDEO0030.3gp ";
I tried to remove the I: but it didn't change anything.This is the main code im using to play the video files on my device. And there some lines i marked with // wich i used to play from the internet and im not using now.
Code:
com.AllFormatsVideoPlay;
import
android.app.Activity;
import
android.graphics.PixelFormat;
import
[code]....
View 7 Replies
View Related
Aug 13, 2010
Does android support overlaying of one video playback on top of another video ?
For example, let's say one media is getting played in android player in full screen and on top of this i want to overlay another video.
View 2 Replies
View Related
Sep 9, 2010
I just got my Fascinate and loving it! I just had a quick question: when I type anywhere, the tapping sound doesnt seem to keep up with the rate of my typing. Is that normal?
View 4 Replies
View Related
Aug 4, 2010
I have an application with a lot of media data (images and videos) that were previously stored on the sdcard. With that, images and videos are displayed fine in my app.
Now, in order to secure the content more, I wanted to move the content to the internal storage / data dir of the app, which I did. I copied all media with a routine within my app to the data folder (/data/data/com.myapp/some/folders/video.mp4) and adjusted the path in my app so that it would look for the media in the internal storage data directory and not the sdcard anymore.
Everything works fine, images are being displayed (decoded) properly, but videos don't play. They files do exist though - I do not get a FileNotFound exception. But an IOException: java.io.IOException: Prepare failed.: status=0xFFFFFFFC
Why is that? Everything is handled within my one app and the videos have been copied with the same routine as the images, thus having the same permission settings. Looking at the stack trace, it all runs in process id 18060).
Why I cannot playback the video from internal storage? Or how can I?
CODE:......................
View 2 Replies
View Related
Sep 3, 2010
When i record a video on my desire and then open it on my PC with VLC, i get no sound at all......? It has been like this since i rooted and using 2.2. Does anyone else have this issue? and more importantly how to fix it!
View 18 Replies
View Related
Nov 13, 2010
I'm having sound drop outs when playing back media from the headphones or even the speaker , this is only fixed by a restart but after a while the sound goes off again . I've had the phone since end of July and had no problems with the sound before this week . I've tried a hard reset but this still hasn't fixed the problem . I've searched the web but can't find a solution or fix. firmware 2.1 - running for a few weeks with no sound probs until now
View 3 Replies
View Related
Oct 5, 2010
I'm trying to build a live streaming player by downloading video segments (which are generated in real-time) and then playing them back in sequence. While I can get the segments to play, I need to get it so that there isn't a pause between playback of successive segments. I've tried using both MediaPlayer (with an appropriate SurfaceView) and VideoView, but there's always a small gap between segments.
If I try to load a new video into a MediaPlayer when the first segment finishes playing, it seems to take half a second or so before the next segment is loaded and starts playing. I have also tried having multiple SurfaceViews within a single ContentView (with only the active one being visible), but it seems like you can't prepare a video until the associated SurfaceView is visible. I also tried having multiple ContentViews that I switch between, but again, this has similar issues.
Any ideas or suggestions? Is it possible to somehow get the next segment to begin decoding as soon as the first one is decoded (which could be before it finishes playing)? Am I going to need to build a custom video player in order to do this?
View 3 Replies
View Related
Aug 28, 2009
I never used an android phone before and i'm thinking to get myself a samung galaxy, but before that I'd like to know a couple of things concerning video playback on android. First of all, is there any way to play DIVX and XVID on an android phone WITHOUT converting? Do you need some particular paid application from the market or you can do it with the default player? How much this application would cost?
Another question: lot of my movies are quite big in resolution (you know the normal size that you use for pc's). Is there any need of resizing the movie to let it play on an android phone? I used to have a samsung omnia (rip); winmo sucked badly but it can play any video at almost any resolution very smoothly with free players also.
View 7 Replies
View Related
Aug 19, 2010
I have noticed that during playback of video I take with my Motorola droid, I hear a sort of a pop every now and then. The first time I heard it, I thought it was something going on around me when taking the video, but it's not, it appears that the sound is coming from the droid, though I do not hear the pop when recording. There is no rhyme or reason to it. Sometimes you don't hear it at all, sometimes it's every 30 seconds, and a lot of times, I hear the pop right at the end of the video, but sometimes it happens right in the middle.
View 2 Replies
View Related
Nov 9, 2010
How to scale down a video playback as there is a memory constraint and the video playback uses software codecs...
View 3 Replies
View Related
Feb 14, 2012
I recently switched to CM7 on my Galaxy S I9000 and it seems I lost all the codecs Samsung bundled with their phone. Video playback is choppy and buggy. I have Googled for possible solutions and tried most of the available players on the market but the problem remains. So how do other non-Samsung Android phone owners cope with this situation?
View 1 Replies
View Related
Mar 22, 2010
I am developing a video rating tools which use Android's MediaPlayer class to playback the video sequences. I used the APIdemo at Android SDK to playback my encoded sequences but the picture stalled at the first frame on the emulator. Since I didn't have the commercial Android phone so I don't know whether this problem comes from my video coding profiles or the emulator itself. Here are the two sequences I used to test:
http://www.megaupload.com/?d=5I4AGSCX [url] I use x264 to encode, with baseline profile and bitrate=400k, fps=30or25.
And by the way, how can I install an apk package to the Zoom2 MDP, besides using the adb tools. I am wondering there's someone who is familiar with Zoom2 and Android so I put the question here.
View 5 Replies
View Related
Oct 15, 2009
I am trying to play a video in my app. It has to be embedded.I am able to play my video using VideoView as mentioned in this discussion. But there are a few problems.
1. I need full screen video, how to stretch videoview to full screen ? will that stretch the video too ?
2. i dont need the default play forward stop buttons at all. basically I need continuous loop playing of the video.
What is the string format should look like if i have my video file in res/raw directory ? I really dont want video file played from sdcard. how can it be bundled along with the app ?if any of these 2 approaches works, i will be better off.
View 2 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
Dec 8, 2009
How can implement video rotation during playback (or before starting playing)? I tried: private SurfaceView video = null; video = new SurfaceView(); video.getHolder().setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); video.getHolder().lockCanvas().rotate(90);
it gives me error: 12-08 15:39:54.551: WARN/System.err(17811): android.view.SurfaceHolder $BadSurfaceTypeException: Surface type is SURFACE_TYPE_PUSH_BUFFERS.
If somebody could give me simple example or just references how to establish it, that would be great. Maybe Android does not support video rotation at all. Could somebody confirm that?
View 3 Replies
View Related
Jun 1, 2009
I am using Tablet skin for running emulator output. All the menu and list items are displayed properly e.g. Horizontally whereas Videos are being played vertically. How can I change the direction of video? Kindly reply as soon as possible.
View 2 Replies
View Related
Jun 26, 2010
iPhone 4 vs Galaxy S, part deux: HD video playback (video)
View 16 Replies
View Related
Sep 23, 2010
I need to know that if Reverse landscape (Changing phone direction in clockwise direction) is possible in android.If yes please give some pointers on that topic. Currently video playback is possible in normal landscape mode. Can I change that from applications side or it needs support from framework.
View 2 Replies
View Related
Aug 11, 2010
What codec settings will produce valid videos for playback on Android (videoView) and iOS UIWebView)?
View 1 Replies
View Related
Sep 17, 2010
I am developing the application which displays Video on the SurfaceHolder. When i run my video it plays well. But if i switch my application using "Home key", & go to some other application. Now if i come back by long Home key press to my application, my video does not get displayed but audio continues.
This happens because, onPause() is called for Activity when Application is switched. Thus the "SurfaceHolder" is destroyed, & next time no video is displayed.
View 2 Replies
View Related
Apr 26, 2010
I am workin on a video player app in which I want only the landscape orientation active coz right now when the user tilts the phone during video runtime, it restarts playback in that orientation.
How can I easily avoid this?
You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
View 4 Replies
View Related
Aug 5, 2010
What is the best format to playback video through the HDMI onto the tv? It claims you can stream it in 720p to the tv, but I can't get any better than 480p. I'm using the old iphone 3gs format. mp4 480x320.
View 1 Replies
View Related
Jul 9, 2010
I am working on an Android application which is supposed to play videos over HTTP on Android devices. Before we setup a server to host the video files just wanted a few things clarified: As per the developer documentation, Android supports .mp4 and .3gp container formats for video.
The audio-video codec used for our media files is H.263(video) and AAC LC (Audio). I did a little experiment and passed URL of one of the video files to the MediaPlayer class and got the following error: Command PLAYER_INIT completed with an error or info PVMFErrContentInvalidForProgressivePlayback.
From the docs, I came to know that for progressive playback, the video's index (e.g moov atom) should be at the start of the file. How do we make our videos Android-ready? What are the different considerations that we need to make?
View 4 Replies
View Related