troubleshooting Question

Video compression without quality loss using FFMPEG

Avatar of Dinesh Bali
Dinesh Bali asked on
Programming Languages-OtherLinuxMultiMedia Applications* Video Editing* FFmpeg
7 Comments1 Solution20 ViewsLast Modified:
Hello,

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
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
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
Produces video of 797 MB

Please advise on this.

Kind Regards,
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros