android,not able to play some videos from urls? - android

I have 5 videos(from server) .
Here is the result for that.
Motorola Milestone 2.1update:
I am able to play only one video.
In other three videos i am able to play only audio(video can't be seen).
In one i am getting "sorry,this video cannot be played"
Galaxy tab 10.1 3.1 honeycomb:
Able to play 4 videos.
In one i am getting "sorry,this video cannot be played"
so i have simply download that video that cannot be played.Below is the results for both.
Motorola milestone 2.1update:-can hear audio but not able to see video
Galaxy tab 10.1 3.1 honeycomb:-not able to play at all.But here one interesting thing this that if i copy this(.mp4) video to sdcard it ask me
No if i select yes it converts the video to wmv and i can play this video.But if i select no then get the error "Sorry,this video cannot be played."
can anybody give me clue what could be problem?if there is a problem with video(i am able to play all these videos with my pc(browser))?

Phones cannot play all formats of video. MP4 is just a wrapper for a range of different video formats. The "Convert" option is converting your video into a format the phone can understand.

Related

Way to play videos captured from iPhone on Android device?

I am aware that some unsupported .MP4 videos doesn't play in Android.
Video is recorded from default camera app in iPhone and shared to android device.
I've also checked for any available answers. I found FFmpeg library. I guess it is used to stream online videos but I want to play local video stored on SDcard.
I tried to fire an intent and let user choose to play video from any installed player eg. mxPlayer. It shows the error "can't play video" but after clicking on OK it starts playing the same video. Other players like vlc n moboplayer doesn't play the video.
So is there a way to play every recorded video from iPhone in Android?

Video uploading and streaming using the samsung note 3 is not working

I am working on an android application. In my application, I am implementing video uploading to the server and also streaming the uploaded video from the server to my mobile in real time like streaming in you tube. I am able to upload and stream videos taken from mobile like micromax, nexus 7 and moto g. But when I tried with samsung devices, though i successfully uploaded the video taken from samsung device, and when I tried to stream it I am getting some error like "IOexception . setdatasource failed". Even the media player wgich is trying to stream the video is displaying the duration of video as 00:00. Please help me. Thanks in advance, Prince

Play h264 encoded videos on android device from stream

I'm working on certain project that allows some video editing, uploading edited video to server (Amazon S3) and playing this video on device.
The iOS version is already completed. I'm using there GPUImage to edit and encode videos.
I'm using quicktime container and h264 codec.
Now I'm working on android version of this project and have encountered several problems.
While I'm able to download and play these videos (encoded on iPhone) on the android devices, I'm not able to play the stream of these videos on most of android devices.
I have done some research and one of advices was to add some code to iOS postencoding that converts to mp4 and fixes MooV http://fabiensanglard.net/mobile_progressive_playback/index.php, but it doesn't help.
The only thing that I have achieved after that "fix" is to hear audio track and not getting error message on Galaxy SII device, but on other devices there is the same story.
After that I have downloaded VLC player from play store and it plays these videos.
So my question is, what do I need to do to play h264 stream?
How can I implement my own video player or how can I use VLC source code to play these videos.

Android MP4 playback issue from URL

I am trying to play mp4 video from URL but my phone always give me error "sorry this video can not be played" instead if i download video from same URL then video plays fine at phone.
http://beta-vidizmo.com/hilton.mp4
Please tell me what i am doing wrong?
It also depends on the android version. Droid X and Samsung Captivate had a lot of trouble streaming MP4 files when it was in version 2.1, but after the Gingerbread update a lot of androids had this problem fixed.
Make sure you encode the video so that the moov atom is bought to the beginning. I think you can do this with QT Faststart.

Samsung Galaxy Tab doesn't play 3gp or mp4 with h.263, but plays mp4 with h.264/youtube

I'm trying to play some videos from web, using VideoView.setVideoPath()
This videos are .mp4's
Using MediaInfo, I found some important lines:
Codec (Human Name)................................MPEG-4 Visual
Codec Profile.....................................Simple#L1
Codec Settings (Matrix)...........................Default (H.263)
This videos don't play on Galaxy Tab, but play well on any HTC and other Samsung with Android.
I also tried to play a .3gp, but this also doesn't play on Galaxy Tab and plays on any other android smartphone.
The only video that I could make to play on Galaxy Tab are .mp4's from Youtube.
Can anyone recommend me how to make .mp4's with H.263 to play on Galaxy Tab without changing encoding?
And, maybe more important:
Does anyone knows any other possible Android devices on which this videos won't play?
Update: Maybe an important information: when I download the video and play it locally, with integrated browser, any of the above videos play well. The only problem is that GalaxyTab doesn't support even progressive video streaming of h.263/.3gp
Thanks in advance!
I transcode my videos to XviD which play nicely on my Galaxy Tab. They're just dvd rips for my kids to watch.
My understanding is that there's no H.263 codec available for the tab.

Categories

Resources