📜 ⬆️ ⬇️

Webm and Android

The other day, I received a comment from Google about how to code Webm for Android and whether it is planned to make any presets so that the video is played for sure.

Here is what I got in return:

Most of the current decoders in Android are implemented programmatically and therefore will not cope with the playback of HD video.
')
We recommend using the usual 360p preset, distributed with our ffmpeg patches.

Our tests showed that 480p files are played on some devices. As soon as we have 480p presets ready, we will, as usual, post them.


What patches do developers mean?

Since not all the features of libvpx are supported in the current implementation of ffmpeg, the webm command puts out patches that add presets and full library support (encoder command mappings).

You can get the latest patches from here: http://code.google.com/p/webm/downloads/list

360p preset, which was discussed above, is used via the -vpre parameter

ffmpeg -i "$inputFileName" -s 640x360 -vpre libvpx-360p -b 500k -acodec libvorbis -aq 2 -ac 2 -ar 44100 -f webm -threads 12 -y "$finalName"

Source: https://habr.com/ru/post/118438/


All Articles