Convert .ogv file to .mp4, .webm, .avi in Linux using ffmpeg: различия между версиями

Материал из support.qbpro.ru
imported>Vix
(Новая страница: «'''Convert .ogv file''' To install the ffmepg package, open your terminal and enter the following command. You will be prompted for your password. sudo apt-get i…»)
 
imported>Vix
Нет описания правки
 
Строка 20: Строка 20:
и еще один вариант тут:
и еще один вариант тут:
[http://www.cyberciti.biz/faq/linux-unix-bsd-appleosx-convert-ogv-to-avi-video-audio/ несколько вариантов...]
[http://www.cyberciti.biz/faq/linux-unix-bsd-appleosx-convert-ogv-to-avi-video-audio/ несколько вариантов...]
* Максимальное сжатие video:
ffmpeg -i input.mp4 -vcodec h264 -acodec aac output.mp4

Текущая версия от 03:40, 17 октября 2022

Convert .ogv file

To install the ffmepg package, open your terminal and enter the following command. You will be prompted for your password. sudo apt-get install ffmpeg Once the package has been installed CD to the directory of where your .ogv file is located, and enter the following command below.

Replace {filename} with the filename you wish to convert, and replace new_filename with the new name for the mp4 file:

ffmpeg -i {filename}.ogv {new_filename}.mp4

If you wanted to convert your .ogv file to .webm format you would use the following command

ffmpeg -i {filename}.ogv {new_filename}.webm

If you wanted to convert your .ogv file to .avi format you would use the following command

ffmpeg -i {filename}.ogv {new_filename}.avi

We have only just skimmed the surface of what is achievable using ffmepg. For further information click on the related link below. AVI to MKV using FFmpeg:

ffmpeg -i <filename>.avi -vcodec ffv1 -acodec pcm_s16le <filename>.mkv
mencoder file.avi -ovc -oac -o output.mkv

и еще один вариант тут: несколько вариантов...

  • Максимальное сжатие video:
ffmpeg -i input.mp4 -vcodec h264 -acodec aac output.mp4