Avatar of Dinesh Bali
Dinesh Bali

asked on 

Video compression without quality loss using FFMPEG


I wanted to compress Video with high quality using FFMPEG
The quality of video coming is not as per expectation. FFMPEG is conveting video of 11.3GB to 797 MB only.

Orignal Video is 11.3 GB Codec details of video is available here: https://drive.google.com/file/d/1VsPYrGTUHsV6Vb4uWxjWyEY80IwD1rPF/view?usp=sharing

I wanted to convert video in MP4 - Codec: H264 with high quality.

11.3 GB should be compressed to 4 GB. Expected media information can be seen at: https://drive.google.com/file/d/1RVeY6So_9YiSGyYvBTCtIbCcutrf4Eec/view?usp=sharing

and Medium size should be compressed to 1.25 GB. Expected media information can be seen at: https://drive.google.com/file/d/1evaiFgPPj0ydag5md53q1Sxas3p1ZeJ4/view?usp=sharing

I ran below commands which produces me the output as follows:

File sizes can be seen here: https://drive.google.com/file/d/1drbzzbNqr5dbgHwvmb9Qmt_gK1ZVjMF0/view?usp=sharing

ffmpeg -i Orignal-Video.mov -s 720x576 -b 512k -vcodec mpeg1video -acodec copy Compressed-Video_Output_1.mov

Open in new window

Produces video of 787 MB

ffmpeg -i Orignal-Video.mov -c:v libx264 -crf 24 -b:v 1M -c:a aac Compressed-Video-Output_2.mp4

Open in new window

Produces video of 413 MB

ffmpeg -i Orignal-Video.mov -map_metadata -1 -c:v libx265 -crf 20 -c:a aac -b:a 128k -ac 2 -vol 512 -tag:v hvc1 -sn Compressed-Video-Output_3.mp4

Open in new window

Produces video of 797 MB

Please advise on this.

Kind Regards,
Linux* FFmpegMultiMedia Applications* Video EditingProgramming Languages-Other

Avatar of undefined
Last Comment
David Favor

8/22/2022 - Mon