Convert FFMPEG

I looked at FFMPEG, as well as specifically FFMPEG PHP, and found that FFMPEG PHP has all the functions that I need for some other sections of my site (for example, images), but it lacked the ability to save video files.

What will be the shell command to convert a file start.oggthat has an undefined format (using OGG as an example) to Webm format in a file end.webm, as well as MP4 format in a file end.mp4. I would like the bit rate for video and audio to remain the same.

How can i do this?

+3
source share
1 answer

The manual ffmpeg(1)has the following:

* You can encode to several formats at the same time and
define a mapping from input stream to output streams:
  ffmpeg -i /tmp/a.wav -ab 64k /tmp/a.mp2 -ab 128k /tmp/b.mp2 -map 0:0 -map 0:0

, :

ffmpeg -i /tmp/start.off /tmp/end.webm /tmp/end.mp4

DivX 5 WebM MP4. , .:)

0

All Articles