x264 is a free, open-source encoder for the h.264 advanced video coding standard.
Questions tagged [x264]
77 questions
74
votes
3 answers
Why does preset "veryfast" in FFmpeg generate the most compressed file compared to all other presets?
The FFmpeg wiki says that the best compression rate is by preset "veryslow".
But when I am trying it with my video then preset veryfast provides the best compression in my case.
The following is the output of my samples:
Preset ultrafast
ffmpeg -y…
Faisal
- 851
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
57
votes
1 answer
Explanation of x264 tune
Running this command:
ffmpeg -i xr.mp4 -tune ya zu.mp4
reveals the possible tune values for x264 and in turn FFmpeg:
[libx264 @ 0000000002167100] Possible tunes: film animation grain stillimage psnr ssim
…
Zombo
- 1
40
votes
4 answers
How can I set a h.264 profile level with ffmpeg?
I have a movie (m4v/h.264/AAC) which plays fine on my Mac but I recently discovered that it wont play on my Apple TV3. After looking at the properties of this movie file I see that it has a profile High@4.1 but Apple TV3's only suport up to…
sion
- 601
31
votes
9 answers
Is there any way to distribute x264 encoding jobs across multiple computers (to increase the encoding speed)?
Does anyone know of a current, active solution to encoding x264 videos across many computers (via the network) to increase encoding FPS?
Brownie points for cross-platform and open source, but just so you all know, I usually use Windows.
Programs…
Breakthrough
- 34,847
23
votes
3 answers
How can I get high quality/low size MP4s like the LOL release group?
Release group LOL does an excellent job at encoding their releases on The Vampire Diaries (on other shows like How I Met Your Mother the bitrate is higher, so doesn't seem this effective).
About 200 MB each ~45mins MP4 file, amazing quality…
thankyouinadv
- 231
14
votes
3 answers
Will I get any visual benefit if I use CRF values below 17/18 in x264 (FFmpeg)?
Will I get any visual benefit if I use CRF (Constant Rate Factor) values below 17/18 in x264 (FFmpeg)? Will there be any differences other than size?
CRF 17/18 are visually lossless.
CRF 0 means, every pixel of the frame will be determined by its…
RvidD
- 434
7
votes
3 answers
Unknown encoder 'x264' in FFmpeg despite following proper installation instructions
I’m having an issue with FFmpeg after configuring it exactly to their own wiki’s instructions where I’m receiving the following:
ffmpeg -stats -i uncompressed.video.mkv -codec x264 -preset veryslow -pass 2 -an compressed.video.mkv
[Removed for…
HindenPeter
- 90
6
votes
1 answer
Does x264 support time-based rate control constraints?
I’m aware of techniques to give the encoder freedom to ramp up bitrate for relatively complex sequences, but this has the consequence of inflating the overall bitrate compared to whatever was desired for the more typical scenes.
Is it possible to…
Louis Waweru
- 25,409
- 45
- 137
- 203
6
votes
3 answers
Compiling x264 with mp4 support
I need x264 for my project.
I have one at /opt/local/bin/x264, but when I execute the following command:
x264 --qpfile cuepoints.qp --output output.mp4 input.mp4
it says:
x264 [error]: not compiled with MP4 output support
I decided to compile x264…
Ivan Zamylin
- 165
6
votes
2 answers
Using CRF and setting a maximum bitrate with x264 in FFmpeg
I am trying to transcode a video to H.264/MP4. I am using the crf = 20 option but according to the requirements I also want to limit the maximum bitrate to 3 MBit/s.
I was trying to cheat though it by using x264opts like this
-x264opts…
hermit
- 91
- 1
- 1
- 3
6
votes
1 answer
Convert png sequence to x264 with ffmpeg
I am trying to convert a series of pngs into an mp4 video. I am using ffmpeg, and want to encode the video with the H.264 codec. Using the command
ffmpeg -y -r 30 -b 1800k -i _tmp%04d.png -vcodec libx264 out.mp4
I get the following warning…
apdnu
- 161
6
votes
2 answers
ffmpeg: how to create an interlaced h.264 video?
I would like to convert a high quality non interlaced input video into a less quality but wider distributable H.264/MP4 format. The output should have some constraints - in particular: it should be interlaced!
I tried the following command, where…
Thomas R.
- 121
6
votes
3 answers
"height not divisible by 2" with "min"
Using this command:
ffmpeg -loop 1 -r 1 -i q.jpg -t 5 -pix_fmt yuv420p -vf 'scale=-2:min(1080\,ih)' z.mp4
I get this message:
[libx264 @ 00000000004d0ec0] height not divisible by 2 (954x953)
I can avoid the error like this:
ffmpeg -loop 1 -r 1 -i…
Zombo
- 1
6
votes
3 answers
FFMPEG multiple outputs performance (Single instance vs Multiple instances)
I am working on creating multiple encoded streams from the single file input (.mp4). Input stream has no audio.
Each encoded stream is created by cropping different part of the input and then encoded with the same bit-rate on 32 core system.…
shalin
- 61