What formats of video will play in emulator?

▼魔方 西西 提交于 2020-01-12 08:00:10

问题


What formats of video file are supported in the Android emulator?

I understand that it probably won't play in real time, but what ones will play at all?


回答1:


It supports H.263 encoding and decoding, H.264 AVC and MPEG-4 SP both only decoding.

On an emulator the playback quality in terms of speed or lags might be a bit cumbersome.

Checkout the chart of all supported media formats for more information.




回答2:


The secret is that the emulator will play the MP4 baseline profile, while real devices will also play better MP4 profiles.

In order to get a video file that plays properly in the emulator, try these settings:

ffmpeg -i inputvideo.wmv -vcodec libx264 -vprofile baseline outputvideo.mp4


来源:https://stackoverflow.com/questions/4910222/what-formats-of-video-will-play-in-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!