Ffmpeg: compress video?

My question is for an experienced developer with ffmpeg.

Is it possible to compress video using ffmpeg?

What is the difference between encoding and decoding?

Thanks in advance!

+5
source share
2 answers

Yes, it is possible to compress video using ffmpeg (although you almost always lose quality in the process).

Encoding means transferring video (usually in some raw format) through an encoder, converting it to some specific video format (which is then placed in the container file format along with sound and, possibly, additional things such as subtitles).

- , .

( ? , !)

+4

AVI MP4 FFmpeg Ubuntu Debian.

, , 40% 70% .

AVI-

cd , avi , :

ffmpeg -i input.avi -vcodec msmpeg4v2 output.avi

"input.avi" AVI-. : output.avi.

MP4

cd :

ffmpeg -i input.mp4 -acodec mp2 output.mp4

"input.mp4" mp4. : output.mp4.

+20

All Articles