Video Encoding Settings - android

Hi I was wondering if anyone could advise on what are the best encoding settings for video to be viewed on devices like the Nexus One, Desire, Desire HD and the Galaxy Tab.
What resolution should the video be?
What is the maximum file size for use over mobile networks and WiFi (Film Trailers and Music Videos)?
What format H.264, MPEG 4?
What audio frequency?
What bitrate?
Thanks in advance.

This page may be of interest to you:
http://developer.android.com/guide/appendix/media-formats.html

Related

Can I record video on Android device and encode it in h.264 (Baseline profile) on it?

I need to determine how can I record video in Android device and encode it in h.264 Baseline profile in mp4 container. I can't find information about this because smartphone manufacturers usually don't show it. All I know is that Sony Z3 encodes all recorded video in H.264 High Profile (L3-L6), HTC One M8 - H.264 Baseline, Samsung Galaxy S3 - partially in High and Baseline.
It helps me:
http://writingminds.github.io/ffmpeg-android-java/
I used this ready-made solution because I had problems with compiling ffmpeg libs with Cygwin64 and Android NDK on Windows 7.

Android Video doesn't start on samsung s3

So i have a problem with a videos that are displayed in a activity.
So every thing worked fine on my samsung s4. so i thought everything is fine.
But my friend noticed on his samsung s3 mini that the video is not playing.
The resolution of the video is 1280 720 and the format is H.264 form mp4. i really don't know what to do if somebody could help me that would be great
Probably s3 does not support your video format. You can check if your format is here: http://developer.android.com/guide/appendix/media-formats.html
If not, then it does not have to be supported by a manufacturer.

Android RTSP live streaming with videoview

I have an app which shows live streaming of a channel. I was using HTTP at first but now I want to use RTSP because is is supposed to work on more devices. Anyway, my RTSP URI works fine on a 4.3 device. However it does not work on a 2.3.5 device. I only get audio and not video on the 2.3.5 device. Anyway I thought it was a codec problem, so I found a video that played well on both devices and compare their formats:
This is for the video that does not play:
This is for the video that plays well:
I cannot see why one plays fine and one only plays the audio. I think is not a code problem as I have been using any possible solution I could find online.
I solved the issue. The problem was the resolution of the videos; All devices support up to 480 x 360 px in SD and only some of the devices support up to 1280 x 720 px in HD.

HD video streaming in gingerbread and ICS

i am really not getting anything on net related to this topic. I wanted to do HD video streaming on gingerbread and on ICS. I tried to play various HD video(mp4) locally on blaze ported with gingerbread, but not able to play. First of all i am not getting why it's not able to play video locally.
And the second thing i kept videos on server, but on pandaboard, i am able to hear sound only no picture.
I am wondering no body ever tried to do streaming of HD video. And do we always need to compress those videos to do streaming.
I am really helpless and i searched alot, but there is no solution for this.
Please help.
go through this link http://developer.android.com/guide/appendix/media-formats.html
part to check
Video Encoding Recommendations
Table 2. Examples of supported video encoding parameters.
SD (Low quality) SD (High quality) HD (Not available on all devices)
I guess the device your using is not supporting HD

Android video streaming not valid on some device

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

Categories

Resources