Questions tagged [x265]
23 questions
71
votes
2 answers
How do I convert 10-bit H.265 / HEVC videos to H.264 without quality loss?
My laptop can't handle 10bit H.265 / HEVC videos, so I'm looking to convert them to 10bit H.264. How do I do this using, say, ffmpeg, with the least quality loss? And how can I convert 10-bit H.265 to 8-bit H.265?
HappyFace
- 1,389
4
votes
2 answers
Ffmpeg x265 error: "Color Primaries must be", "Transfer Characteristics must be", "Matrix Coefficients must be"
I'm trying to do the following conversion:
ffmpeg -i video.mp4 -map 0 -c copy -c:v libx265 -crf 30 -vf "scale=-1:\'min(720,ih)\'" -c:a libopus -b:a 44k -map_metadata 0 -loglevel error -hide_banner video.mkv
This works fine except for a specific…
Mister Sir
- 53
4
votes
2 answers
Force ffmpeg to produce constant frame rate
Why does ffmpeg produce variable frame rate output?
I have an input file, that when I run it through MediaInfo it tells me it's a constant frame rate video:
Video
ID : 1
Format …
dropbear
- 143
2
votes
1 answer
Ffmpeg producing worse result than Handbrake using x265 with identical settings
I'm trying to replicate Handbrake settings with ffmpeg, because I'd like to add some metadata and some other things with ffmpeg that Handbrake can not do.
What I've done seems to be close, the resulting file size and encoding time is similar, but…
DD3R
- 95
2
votes
1 answer
FFMPEG: x265 video encode options
There's quite a bit of info about using ffmpeg (more) to encode with x265: HEVC. However, when I try to encode my video from x264 to x265 with scaling to reduce overall bit rate in order to save even more space on my hard drive, I am still missing…
seal2002
- 23
2
votes
0 answers
Time-based instead of frame-based zones (with different CRF) for ffmpeg+x264/x265 encoding?
x264/5 have a zones parameter to support different encode settings for part of a video, but it only accepts frame numbers, not timestamps.
This is a minor inconvenience with constant-frame-rate video, but a major inconvenience when using an ffmpeg…
Peter Cordes
- 6,345
1
vote
1 answer
Encoding a video to AV1 for compression
I wrote a code to encode a 1080p video to AV1 codec to reduce the file size. At the same time, I encoded the same video to x265. As they say, AV1 should reduce the size around 40-50% more than x265. But I didn't achieve it.
The original file size:…
living being
- 1,106
1
vote
0 answers
How to make Apple Vision Pro-compatible MV-HEVC files with x265 4.0 and ffmpeg 7.1?
This blog post contains instructions to encode a side-by-side stereo video into MV-HEVC using x265 and ffmpeg. It warns that it won't be recognized as such on Apple Vision Pro because it lacks the appropriate metadata.
My question is: can the…
antho
- 111
1
vote
1 answer
libx265 & ffmpeg: the better compression, the larger files?
Trying to squeeze the last bit, I made the finding, that my files get larger then smaller. Unfortunately I must have misinterpreted some parameters.
Maybe you can help me.
The reference is -preset placebo:
ffmpeg -y -hide_banner -i \
…
Thomas R.
- 121
0
votes
0 answers
how to Encode multiple video files in multiple folders
how to encode multiple video files (different types)
in one main folder with multiple subfolders
to h265 with new name?
so i found this:
@echo off
set "_x=compressed"
for /r %%i in (*.mkv, *.mp4, *.mov) do ffmpeg -i "%%~fi" -vcodec libx265 -crf 24 …
288
- 1
0
votes
0 answers
Modify Max CLL and Max FLL values in HEVC stream
Is it possible to modify/edit the Maximum Content Light Level and Maximum Frame-Average Light Level values directly in a HEVC stream?
When encoding with x265, these values are set by the max-cll command line option.
FFmpeg has the hevc_metadata…
0
votes
0 answers
Using low end nvidia gt 610 gpu with ffmpeg and linux ryzen 5600
Hi I am Rupesh from India and I have pc with Intel i3 10th gen 10100 and Asus prime H 510 me motherboard and I want to upgrade my PC.
I have chosen AMD Ryzen 5600 cpu which doesn't have integrated cpu and require discrete graphics card and so I have…
0
votes
0 answers
Why can my device through PLEX only play one of these two 4K files?
I have two 4K .mkvs consisting of both video and audio tracks - my device seems to be able to play 4K content just fine for a movie, but won't playback upscaled 120 fps content. Both videos are x265 and the main thing I seem to be able to pinpoint…
bigboss
- 31
0
votes
1 answer
FFmpeg: How to encoding h264 mkv files in h265 mkv and keep the 2 subtitles streams?
I've lots of mkv files in h264 format with 2 languages of subtitle, and I'm trying to convert them in h265 (with cuda) and keep the 2 subtitles streams.
I've tried that:
ffmpeg -i "xxx.mkv" -map 0:a? -map 0:s? -c:v hevc_nvenc -crf 26 -preset medium…
ShkYo
- 11
0
votes
1 answer
ffmpeg convert x264 to x265 with GPU and equivalent options
I usually convert video from x264 to x265 with this ffmpeg command:
ffmpeg -i %arg1% -vcodec libx265 -crf 28 %arg2%
And although it takes some time (from 2 to 15 hours) it gets the job done nicely, reducing the file size to half or less. Recently I…