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
32 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 --...
user avatar
  • 11
1 vote
1 answer
386 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 (...
user avatar
47 votes
2 answers
34k 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 ...
user avatar
  • 581
1 vote
1 answer
126 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 -...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
6 votes
3 answers
15k 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, ...
user avatar
  • 164
1 vote
0 answers
294 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 ...
user avatar
1 vote
1 answer
177 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 ...
user avatar
3 votes
0 answers
329 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 ...
user avatar
40 votes
2 answers
76k 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 ...
user avatar
  • 751
3 votes
2 answers
18k 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 ...
user avatar
0 votes
0 answers
342 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 ...
user avatar
  • 109
0 votes
1 answer
858 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/...
user avatar
1 vote
0 answers
373 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="$...
user avatar
1 vote
0 answers
399 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 ...
user avatar
1 vote
0 answers
639 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,...
user avatar
  • 5,092
1 vote
1 answer
571 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/...
user avatar
3 votes
0 answers
611 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, ...
user avatar
3 votes
3 answers
6k 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 ...
user avatar
  • 9,630
0 votes
3 answers
15k 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-...
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 "...
user avatar
2 votes
0 answers
360 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: ...
user avatar
  • 7,302
1 vote
0 answers
2k 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 ...
user avatar
  • 111
5 votes
3 answers
10k 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 ...
user avatar
  • 51
0 votes
1 answer
835 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 ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
1 vote
0 answers
387 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 ...
user avatar
  • 247
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 ...
user avatar
  • 377
3 votes
0 answers
414 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 ...
user avatar
  • 479
1 vote
1 answer
3k 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 (...
user avatar
  • 459
2 votes
0 answers
236 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 ...
user avatar
-1 votes
1 answer
446 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 ...
user avatar
2 votes
0 answers
451 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 ...
user avatar
0 votes
0 answers
610 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 ...
user avatar
2 votes
0 answers
195 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 ...
user avatar
2 votes
1 answer
7k 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 ...
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:...
user avatar
  • 111
7 votes
2 answers
19k 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 -...
user avatar
6 votes
1 answer
603 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 ...
user avatar
  • 22.8k
0 votes
1 answer
442 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 ...
user avatar
  • 704
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 ...
user avatar
  • 2,253
0 votes
0 answers
269 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, ...
user avatar
  • 175
0 votes
0 answers
686 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 ...
user avatar
  • 133
1 vote
1 answer
2k 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 ...
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://...
user avatar
4 votes
3 answers
12k 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 ...
user avatar
1 vote
0 answers
198 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 ...
user avatar
0 votes
2 answers
2k views

How to determine 'Output bit depth' of the libx264 library in ffmpeg?

According to the x264 Encoding Guide, the crf scale depends on whether x264 is 8-bit or 10-bit. Supposedly x264 --help shows the Output bit depth. But on Windows ffmpeg -h full doesn't say anything ...
user avatar
  • 307
0 votes
1 answer
85 views

ClassX installation "codec not found" due to dependencies

ClassX is an interactive lecture streaming system developed in the Electrical Engineering Department at Stanford University. Unlike conventional lecture capturing systems, ClassX requires very simple ...
user avatar
  • 101
0 votes
1 answer
807 views

ffmpeg 2nd pass segfault

I'm trying to get an old transcoding server up and running in a new environment and I'm experiencing some issues getting the well tested ffmpeg commands to work in the new environment. It's a 2 pass ...
user avatar