简体   繁体   中英

Encoding H264 videos for Android, advice needed

After porting my iOS app to a new tablet I bought a couple of days ago, I've noticed that my videos weren't playing when using StageVideo.

I was using a high quality video (the tablet has a 2560x1600 resolution and the video occupies 2/3 of the screen) and what happened was that I got a black screen (with sound) after I click "play" in the stream.

After lots of tests and googling, I've found out that the issue was the video I was using, or at least it was part of the problem.

When I switched the high quality video for another one of a lower quality and suspect specs too, the video started just fine.

So a new world opens before me, the encoding universe, which I know nothing about.

Any experience about this is very welcomed, since start to investigate about encoding to gain non-trivial knowledge would be very time consuming for what I've read.

Thanks.

这个问题有点笼统,所以我认为最好的出发点是研究一下: http : //developer.android.com/guide/appendix/media-formats.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM