Questions tagged [x264]

x264 is a free, open-source encoder for the h.264 advanced video coding standard.

Filter by
Sorted by
Tagged with
1 vote
0 answers
285 views

Why does the video file (x264) made with ffmpeg have a much higher bitrate compared to when I reencode it using the same settings in Handbrake?

I'm a ffmpeg beginner and am converting a series of .png images taken every 10s into a timelapse video. The images are named pic1.png, pic2.png, etc. For this I'm using the following ffmpeg command: ...
Istria's user avatar
  • 11
0 votes
0 answers
159 views

What is the ideal size to encode X265 by FFmpeg?

If I have 500 Megabytes of video size, what is the reduced ideal size to convert video from x264 to x265 without losing quality using FFmpeg? Another example: Let me tell you that the video I want to ...
krm's user avatar
  • 1
0 votes
0 answers
159 views

Which options are incompatible with CRF, CQP?

What settings should not be used when using CQP, CRF modes. I read that 2pass mode is not compatible with constant quantization modes. It is also recommended to disable adaptive quantization. Maybe ...
Sandrix's user avatar
1 vote
0 answers
59 views

x264 on my Mac keeps giving me "command not found" error

I just installed x264 via Homebrew on my Mac running MacOS 11.4 Big Sur. I'm trying to encode a video but I can't get x264 to run properly. This is the command I am running in the Terminal: x264 --...
hd-dvd's user avatar
  • 11
1 vote
1 answer
725 views

I don't know why this FFmpeg command is not working in android? [closed]

Please Save My Day D/FFmpeg (10151): Build.CPU_ABI : arm64-v8a D/FFmpeg (10151): ffmpeg is ready! [GETX] CLOSE TO ROUTE /UploadView D/FFmpeg (10151): Running publishing updates method I/message (...
Rishabh Shukla's user avatar
64 votes
2 answers
58k views

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 ...
Faisal's user avatar
  • 751
1 vote
1 answer
338 views

x264 stream - no video output

I've got a RTMP server with ffmpeg attached to it, encoding the input to x264 and segmenting it into HLS. ffmpeg -i rtmp://127.0.0.1:1935/publish/R6rPCgHpT0OTuqC5hbc6GQ_vdV8UmAPS-CStRP7H+Ew2g_1_15 -...
Patryk Cieszkowski's user avatar
0 votes
1 answer
2k views

FFMPEG using forced_subs_only does not burn in forced subs

I am trying to encode A Quiet Place... I know for a fact there are forced subs, but when trying to encode it from 4K (native) to either 4K (x265) or 1080 (x264), the forced subs are not burned in on ...
Van Nguyen's user avatar
11 votes
3 answers
23k views

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, ...
RvidD's user avatar
  • 374
1 vote
0 answers
488 views

x264 Is giving this error: x264_encoder_open failed, are the input file parameters wrong?

I'm having some trouble getting x264 to work. I'm using x264 t_mod_New version r2970. x264 keeps giving this error though: x264 [error]: can't open file '0' x264 [error]: x264_encoder_open failed ...
Markus29's user avatar
1 vote
1 answer
244 views

How to encode x264 remotely but build file locally?

Eg .avs script created on local Windows machine. Video source is also on local machine. But encoding is done on remote Linux machine? And the new encoded file is not stored on Linux machine, but is ...
user3108268's user avatar
3 votes
0 answers
484 views

ffmpeg does not produce smooth videos from mkv h265

It's kind of subjective, but I'm not able to produce 100% smooth videos with ffmpeg. As input I use https://www.libde265.org/hevc-bitstreams/tos-1720x720-cfg01.mkv as a example.This is a h264 mkv ...
user3776738's user avatar
60 votes
2 answers
114k views

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 ...
HappyFace's user avatar
  • 1,118
6 votes
2 answers
25k views

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 ...
Thomas R.'s user avatar
  • 121
0 votes
0 answers
434 views

FFMPEG 4 Transcoding MKV to MP4 Has Weird Issue With DASHJS

I'm not entirely sure I know what the issue is or where to begin troubleshooting. On my CentOS 7 box I have 4.0.1-static https://johnvansickle.com/ffmpeg/ installed and I'm trying to transcode MKV ...
Mike's user avatar
  • 109
0 votes
1 answer
977 views

compiling latest version of libx264 for ffmpeg fails on Ubuntu 17.10 (Artful)

I'm running Ubuntu 17.10 on bare metal. My plan is to compile the latest version of ffmpeg including the encoding libraries. I'm following the CompilationGuide of ffmpeg (https://trac.ffmpeg.org/wiki/...
Steffen Roller's user avatar
1 vote
0 answers
472 views

FFMPeg + x264 install. Pthreads not workng? "libpthread.a" errors

Nothing I've tried so far works. x264 is already installed. OpenSSL and FDKaac are also installed. Configure line for FFMPeg: PKG_CONFIG_PATH="$HOME/ffmpeg/lib/pkgconfig" ./configure --prefix="$...
supredoe's user avatar
3 votes
0 answers
510 views

delay in audio sync after converting ac3 to aac

I have a MKV video consist of a video and an audio of duration 10 minutes, after using ffmpeg to extract ac3 to aac audio, its duration became 10:50, which lead to audio out of sync with the video ...
samer metwally's user avatar
2 votes
0 answers
761 views

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, ...
Peter Cordes's user avatar
  • 5,691
1 vote
1 answer
779 views

Does an FFmpeg preset have any use if I'm using -crf 0?

I'm encoding a video for upload to YouTube and Facebook using libx264 and setting -crf 0. Is there any benefit to using a preset as well? My understanding is that the preset affects encoding speed/...
Westicle's user avatar
3 votes
0 answers
850 views

Why is the first frame timestamp 0.066667 and not 0?

I have a stream of TGA files created on disk and I programmaticaly build a h264 video using the x264vfw codec. Options CRT 23, medium preset, Fast Decode, keyint 30 (video is 60 fps), no cut scenes, ...
Proviste's user avatar
4 votes
3 answers
7k views

"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 ...
Zombo's user avatar
  • 1
0 votes
3 answers
17k views

x264: which -tune for best live streaming quality without increased bitrate?

I am trying to stream an FPS shooter game from OBS 20.0.1 at the lowest bitrate possible whilst maintaining the best quality possible (i.e. less blocky pixels). I am concerned that more reference-...
Trr1ppy's user avatar
  • 25
0 votes
0 answers
3k views

FFMPEG: Mux Elementary stream: timestamps are unset

I try to mux a h264 elementary-stream and an aac audio-stream to a mp4-file with ffmpeg. The h264-stream was encoded with x264. The muxed mp4 plays fine. But ffmpeg allways throws the warning "...
FlintEastwood's user avatar
2 votes
0 answers
418 views

"muxavformat: avformat_write_header failed!" - why?

I'm backing up a DVD using handbrake 0.10.2 (x86_64) on Linux Mint 18.2. With 1-pass encoding - it works, but with 2-pass encoding, I get the following: [15:44:44] starting job [15:44:44] sync: ...
einpoklum's user avatar
  • 8,844
1 vote
0 answers
3k views

FFmpeg Unrecognized option 'x264opts'

I'm using FFmpeg for a project concerned DASH (Dynamic Adaptive Streaming over HTTP). For the build and installation of ffmpeg I've followed the "Original Guide" Compile FFmpeg on Ubuntu, using the ...
VanBaffo's user avatar
  • 111
6 votes
3 answers
12k views

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 ...
shalin's user avatar
  • 61
0 votes
1 answer
897 views

Converting WMV—from Ashampoo Snap 7—to MP4

I've taken a (partial) desktop video using Ashamphoo Snap 7 in .wmv format. I couldn't find any option which allowed me to record in other formats. I want to convert it to .mp4, preferable x264 (I'm ...
Khalid Hussain's user avatar
0 votes
2 answers
2k views

Fraps -> Huffyuv -> x264 encoding: The colors looks washed out

I recorded a game using fraps. The recorded video looked great. Then I edited the video and encoded it with Huffyuv lossless codec. The video looked great. Finally, I encoded the video with x264 in ...
ClearSky's user avatar
1 vote
0 answers
436 views

FFmpeg CRF compression slower on master than old version

I use FFmpeg to compress videos (amongst other things) on Android. I have been using an FFmpeg build from 2015 for some time now and wanted to upgrade, preferably to the git master. I built FFmpeg ...
Jon G's user avatar
  • 307
3 votes
2 answers
3k views

x264 vs x265 at high bitrates

I currently have a large collection of songs (regional) which are 1080p Remuxes from BluRays (these are not copyright protected FYI). I intend to compress them to save space as they are currently take ...
Umer's user avatar
  • 407
3 votes
0 answers
429 views

FFMPEG motion compensation and search

I'm trying to modify the motion detection part of FFMPEG. What I want to do is to extend the search space, so that whenever the macroblock hits the rightmost edge of the frame, I need it to still move ...
Tina J's user avatar
  • 579
1 vote
1 answer
4k views

How to convert a video file from mkv to a format supported by the TV set?

I have a mkv video file which contains the following content: > mkvmerge --identify original.mkv File 'original.mkv': container: Matroska Track ID 0: video (V_MPEGH/ISO/HEVC) Track ID 1: audio (...
Alex's user avatar
  • 580
2 votes
0 answers
291 views

How to smooth out jaggy lines with AviSynth?

I have a quite crappy quality video in 480p, I then transcode it with AviSynth and MeGUI. I use a few scripts to enhance the quality, as well as upscaling the video to 720p. As you can see in the ...
Happy Face's user avatar
-1 votes
1 answer
499 views

How far can I resize a x264 video without blurriness?

I have an x264 video at 700x400 encoded at 1400 Kbps with High Profile Level 3 which I want to play at 1366 x 768 screen resolution. How far can I change or resize the video player window without ...
user12132's user avatar
2 votes
0 answers
495 views

FFMPEG / x264: Single pass: how do you raise start time bitrates?

When using single-pass mode with a VBV size specified, libx264 will initially "sandbag" the bitrate, presumably due to lack of evidence (or perhaps even a bug). (This is an ironic followup to this ...
Mark Gerolimatos's user avatar
0 votes
0 answers
683 views

FFMPEG / x264: can I use pass 1 from one encoding session as pass 2 for another?

Question: Is it legal to use a "pass 1" encoding of a source video at one resolution/bitrate as the input to a "pass 2" encoding of the same source at a different resolution/bitrate? I tried it and ...
Mark Gerolimatos's user avatar
3 votes
0 answers
235 views

How do you keep FFMPEG / libx264 from producing a high bitrate at the start of the video?

I have noticed that the Linux version of FFMPEG tends to blow its bit budget like a drunken sailor at the very beginning of a video. Is there a way to prevent this and/or suppress it? I looked thru ...
Mark Gerolimatos's user avatar
2 votes
1 answer
8k views

why is mpeg4 encoder faster than libx264 using ffmpeg

I have been padding mp4 videos so they can become of the size 1920x1080 instead of 1920x800. I used initially used mpeg4 encoder using ffmpeg, the encoding was quick but the size of the file was more ...
Falah Abu Hassan's user avatar
0 votes
0 answers
2k views

ffmpeg + libx264: use preset

I'm trying to encode raw movie using ffmpeg with libx264. I use the following command: ffmpeg -y -f rawvideo -s '3840x2160' -r 23.98 -i <my source> -pass 1 -x264-params 'bitrate=13500:fps=23.98:...
avtomaton's user avatar
  • 111
7 votes
2 answers
20k views

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 -...
HindenPeter's user avatar
6 votes
1 answer
646 views

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 ...
Louis Waweru's user avatar
0 votes
1 answer
496 views

batch replace of video track with x264 (or ffmpeg, or avconv)

I have a bunch of .mkv files with diverse content, so I don't know about their audio, subtitle, chapter and attachment contents. Common denominator: They all have one video track. I want to batch ...
emk2203's user avatar
  • 714
1 vote
0 answers
2k views

Why does VLC cut off the end of my video when transcoding?

I am trying to "bake in" a custom made subtitle file (Advanced SubStation Alpha) for a short (3:46) video. However, despite trying an assortment of commandline options, VLC seems to always cut off the ...
Doktor J's user avatar
  • 2,333
0 votes
0 answers
276 views

Ubuntu Screencasting: Libavdevice segmentation fault

I'm trying to stream to twitch a screencast of a remote desktop, but I meet some segmentation fault. The OS is: Xubuntu 14.04 , xfce, x2go I tried with Ubuntu 14.04, Ubuntu 12.04, ffmpeg and avconv, ...
Muad'Dib's user avatar
  • 175
0 votes
0 answers
736 views

ffmpeg - cannot fade to white in x264

I have a directory full of images that I am converting into a video using ffmpeg. The first frame is a black title frame that fades/morphs into the first video frame, with a 5-frame morph. I do ...
Encoderer's user avatar
  • 133
1 vote
1 answer
3k views

Difference between downscaling 1080p to 720p in real time and downscaling during encoding?

Suppose a high quality, uncompressed video is re-encoded twice, with almost identical encoding settings at a relatively low bitrate of 4mbps, but at different resolutions, first at 1080p, and then at ...
Cyber-Logic's user avatar
4 votes
0 answers
1k views

Packets are not in the proper order with respect to DTS when using libx264 for video

I'm trying to use the following command to transcode one stream to a different format and send it over to RTMP server for live streaming. This is the command I am using: ffmpeg -f mxg -i http://...
tomsseisums's user avatar
4 votes
3 answers
15k views

Exr file sequence to mov with ffmpeg

When I convert an EXR file sequence with x264 using FFmpeg and convert the colorspace from linear to SRGB (with gamma 0.45454545) I get some heavy banding issues (most visible on a dark gradient). For ...
user1863947's user avatar
1 vote
0 answers
203 views

Recommended bit-rate value for x264 1st pass

I use x264 to encode content for an Adaptive Bit-Rate workflow. So I run a 1st pass to find the "optimal"GOP structure (but with a --keyint target value) to a given bit-rate X. And next I run ...
alexbuisson's user avatar