ffmpeg h265
时间: 2023-09-23 17:03:13 浏览: 97
FFmpeg is a free and open-source software used for video and audio conversion, as well as other multimedia processing tasks. H.265 (also known as HEVC) is a video compression standard that offers higher video quality and smaller file sizes compared to its predecessor, H.264.
To use FFmpeg to encode a video in H.265 format, you can use the following command:
ffmpeg -i input.mp4 -c:v libx265 -preset medium -crf 28 -c:a copy output.mp4
In this command, "input.mp4" is the name of the input video file, "libx265" is the video codec used for encoding in H.265 format, "medium" is the preset used for encoding speed and quality, and "28" is the constant rate factor (CRF) used for video quality (lower CRF values result in higher quality but larger file sizes). The "-c:a copy" option is used to copy the audio stream without re-encoding it.
After executing this command, FFmpeg will create a new video file called "output.mp4" that is encoded in H.265 format.
阅读全文