Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: ramiroelliot on February 21, 2025, 02:00:54 AM

Title: How to cut mp4 without losing quality?
Post by: ramiroelliot on February 21, 2025, 02:00:54 AM
Hello everyone,

I use Avidemux a lot to cut videos quickly and now I have a video with black frames that I want to remove.. but to do this I have to use some codec to apply a filter (instead of just using the "copy" option).

Any recommendations on which one to use? And what settings should I render the new file with to get the same quality as the original video file?
Title: Re: How to cut mp4 without losing quality?
Post by: Elstar` on February 21, 2025, 03:26:32 AM
If not cutting on keyframes then saving in copy mode, only lossless codec will get you the same quality as before.
Title: Re: How to cut mp4 without losing quality?
Post by: sark on February 21, 2025, 04:21:36 PM
If you select AVC(x264) in the Video Output list, and then in the Configure settings, set the slider to 18, you should produce output that is indistinguishable from the original.

Truly lossless encoding is rarely practical for general playback due to the large file size, and possible incompatibility with some devices.
Title: Re: How to cut mp4 without losing quality?
Post by: Elstar` on February 23, 2025, 12:17:08 AM
Quote from: sark on February 21, 2025, 04:21:36 PMIf you select AVC(x264) in the Video Output list, and then in the Configure settings, set the slider to 18, you should produce output that is indistinguishable from the original.
Remember to turn off mbtree (Advanced RC -> Macroblock-tree Rate Control) and psy_rd (Analysis -> Psychovisual Rate, Trellis = 0,00), else you will see much more blurred video in output.
Title: Re: How to cut mp4 without losing quality?
Post by: sark on February 23, 2025, 02:08:43 PM
Quote from: Elstar` on February 23, 2025, 12:17:08 AMRemember to turn off mbtree (Advanced RC -> Macroblock-tree Rate Control) and psy_rd (Analysis -> Psychovisual Rate, Trellis = 0,00), else you will see much more blurred video in output.

Yes, but inactive by default unless you enable the Use Advanced Cofiguration checkbox.