问题
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