I am new to android and trying to streaming video from my server.
When i run the application it gives Error "sorry,this video is not valid for streaming to this Device.." than i download and push to sdcard of my device(samsung Galaxy 5)this time video is playing.... i convert this video by SOTHINK VIDEO CONVERTER..
Any Help??
Thanks..
We ran into exactly the same problem, and I found a solution at this link:
http://code.google.com/p/android/issues/detail?id=9044
In short, if you have access to a Mac, you can encode the videos using HandBrake. Be sure to check the "Web optimized" checkbox. I'm encoding as format:MP4 file, Video Codec: H.264. After I did this and uploaded I was able to view the videos (or at least listen to them) in a 2.1 simulator, which had been giving that exact warning message before. I have not been able to get a hold of an actual 2.1 device, but I suspect it will work. When I confirm that I'll check back in here to let you know.
It seems that you are talking about sothink video encoder engine. Actually this program only supports the apple devices in ios system, for example, iphone, ipad and ipod.
Here is the official product homepage of sothink video encoder engine, and hope it helps!
http://www.sothinkmedia.com/flash-video-encoder-command-line/
The only issue for error "sorry,this video is not valid for streaming to this Device.." is that there is some problem in video format. Just correct the format/codec of mp4 and then it would run gracfully.
Related
Objective: i) I want to play video that i captured on my android phone to IOS and vice versa.
Problem: Android captures it in mp4 while IOS plays in Mov.
Solution: I can do conversion of formats before uploading to server but thats a slow process
and causing performance issues.
Is there any library or solution that does it without slow it down?
I believe whatsapp does it by only uploading stream and making it correct format when someone requests to play it. Im not sure though how they do it.
Why not play the mp4 video on iOS? What need is there to convert?
EDIT: Also forgot to mention, mp4 and mov are basically the same format. You can literally just rename the extension (on iOS at least) and the video still plays.
I'm facing a strange problem. I tried to play a mp4 video on android devices and it fails to play when video is hosted on my server but same video file plays in same android devices if hosted on other server. I'm facing this problem only in android devices I can play video on my desktop no matter wherever it is hosted. Has anyone else ever faced such problem ?
Obviously its a server problem. But I Cant figure out how to change the settings that enable mp4 to play in android devices!
Server : apache2.2.3
Thanks.
Update your httpd.conf to add the MIME type for mp4
AddType video/mp4 .mp4
If you have a password restriction (like .htaccess), try and remove it and test again. Even if Chrome knows your password, the video player may not, and it doesnt prompt you for it. When played full screen, the player just says 'sorry, this video can not be played'.
I use a VideoView to display on the device a mp4 video file. It work very well on all device but on other such as : galaxy next, LG P500 it display this message "the video is not valid for streaming on this device ?"
Why ?? Thanks
Wether an android device can show the video depends on which video-codecs the device manufacturer has compiled in.
You can ask the CamcorderProfile api if your device supports the requested video format.
The Android Supported Media Formats show you wich codecs should be supported .
Make sure your MP4 is encoded with the H.264 baseline profile. Make sure it is being served up with an HTTP 1.1 response. And also run it through MP4Box. We had numerous device-specific playback issues and doing all of the above has resolved them.
This post may also be helpful: Cannot play certain videos
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.
I want to play the video file and it's like
http://test.XXXX.com/myfile.wmv
am using Video view for that but it saying unable to play video error
I tried using WebView also but it showing only blank page.
Just i want to play that video link file in device online.
How to do that ?
Note : The links are working i tested on Windows browser.
Thanks
You will have to transcode the video to an android supported format and make the result available on your server as well.
http://developer.android.com/guide/appendix/media-formats.html provides an official overview of supported forms, but you may have more practical look googling for instructions on transcoding for android devices.