To a good post
habrahabr.ru/post/171213Some time ago, FFMPEG in Ubuntu announced non grata. A replacement project, AVCONV, is being developed as a replacement.
The principle of operation is similar, but there are some minor differences.
')
I will give an example of solving a popular task - preparing a video for publication in the HTML5 video tag.
- Convert a video from arbitrary format to a set of FLV, MP4 and OGV
- Impose watermark
- Save to file, for example encode.sh
- We give the right to perform
- Call as ./encode.sh {FROM} {TO} {WATERMARK}
Options
{FROM} - full path to the source video
{TO} - the path to the result, without extension
{WATERMARK} - full path to the watermark
As a watermark PNG with alpha reliably works.
You can modify in any way, at your discretion.
It can be made a function of CMS, but it is necessary to provide that the interpreter does not hang, waiting for the end of decoding. For PHP, it is decided by the script output direction in / dev / null. I will not give details, since much has already been written about this in Habré.