Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What formats of video will play in emulator?

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?

like image 750
Peter vdL Avatar asked Feb 05 '11 22:02

Peter vdL


2 Answers

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
like image 182
hez Avatar answered Oct 16 '22 09:10

hez


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.

like image 26
Octavian A. Damiean Avatar answered Oct 16 '22 09:10

Octavian A. Damiean