Fading with HEVC x265

Questions involving a Windows version of FFmpeg.
Post Reply
mikal
Posts: 3
Joined: Mon Oct 28, 2019 8:56 pm

Fading with HEVC x265

Post by mikal » Mon Oct 28, 2019 9:06 pm

Hi!

This command is usable for fading 3 sec at the end of a mp4:

Code: Select all

ffmpeg -i "source.mp4" -filter_complex "[0:v]fade=t=out:st=199:d=3[v]; [0:a]afade=t=out:st=199:d=3[a]" -map "[v]" -map "[a]" "target.mp4"
Target is AVC x264. And this files mostly very big.

But how can I get HEVC x265 in target? :roll:
To add

Code: Select all

-f mp4 libx265
doesn't acts anything. What's the right parameter for this goal?

Thanks!

pandy
Posts: 255
Joined: Mon Feb 24, 2014 1:46 pm

Re: Fading with HEVC x265

Post by pandy » Tue Oct 29, 2019 8:32 pm

incorrect syntax '-f mp4' is used to select MP4 container not codec - to select codec you need use '-c:v libx265'

Code: Select all

ffmpeg -i "source.mp4" -filter_complex "[0:v]fade=t=out:st=199:d=3[v]; [0:a]afade=t=out:st=199:d=3[a]" -map "[v]" -map "[a]" -c:v libx265 -f mp4 "target.mp4"

mikal
Posts: 3
Joined: Mon Oct 28, 2019 8:56 pm

Re: Fading with HEVC x265

Post by mikal » Thu Oct 31, 2019 1:06 pm

Many thank's pandy!! :)

mikal
Posts: 3
Joined: Mon Oct 28, 2019 8:56 pm

Re: Fading with HEVC x265

Post by mikal » Thu Nov 14, 2019 9:20 pm

Good evening!

Another question: how can I get better sound? Think since I use additional parameter

Code: Select all

-c:v libx265 -f mp4
can hear some clink.
Sorry for this bad english. Hope it can be understood.

Deutsch: seit ich die Videos mit dem o. a. Zusatz kodiere habe ich das Gefühl, manchmal ein Klirren zu hören. Kann man trotz 265 den Sound ein bisschen besser bekommen oder werden die Dateien dann wieder so groß wie ohne den zus. Parameter?

Thanks!

Post Reply
'