Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [x264]

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

3
votes
0answers
28 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 ...
1
vote
2answers
202 views

How do I convert 10-bit H.265 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 ...
1
vote
2answers
1k 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 ...
0
votes
0answers
138 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 ...
0
votes
0answers
290 views

FFMPEG Encoding

You have a DVB ts file. Resolution 720x576. File size is 2,5 Gt. Format MPEG VIDEO and MPEG AUDIO 448 kb / s. And the duration of 1 hour. You want to encode it in x264 MP4 format in such a way that ...
0
votes
0answers
211 views

extract all attachements (fonts) from mkv video and add them other without

how can I extract all attachments (fonts) from Mkv video and add them other without adding one by one and without knowing their name? (without programs just FFmpeg working from CLI - MKV MKVToolNix ...
0
votes
1answer
309 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/...
1
vote
0answers
103 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="$...
1
vote
0answers
214 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 ...
1
vote
0answers
206 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,...
2
votes
0answers
240 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, ...
2
votes
2answers
2k 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 ...
1
vote
2answers
6k 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-...
0
votes
0answers
1k 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 "...
1
vote
0answers
165 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: ...
0
votes
0answers
730 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 ...
5
votes
3answers
3k 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 ...
0
votes
1answer
596 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 ...
0
votes
1answer
681 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 ...
1
vote
0answers
209 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 ...
2
votes
2answers
2k 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 ...
2
votes
0answers
264 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 ...
1
vote
1answer
2k 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 (...
1
vote
0answers
165 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 ...
-1
votes
1answer
330 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 ...
3
votes
0answers
243 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 ...
0
votes
0answers
456 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 ...
1
vote
0answers
128 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 ...
1
vote
1answer
2k 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 ...
0
votes
0answers
849 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:...
4
votes
2answers
11k 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 -...
6
votes
1answer
420 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 ...
0
votes
1answer
274 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 ...
1
vote
0answers
954 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 ...
0
votes
0answers
248 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, ...
0
votes
0answers
448 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 ...
1
vote
0answers
1k 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 ...
3
votes
0answers
876 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://...
1
vote
3answers
5k 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 ...
1
vote
0answers
181 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 ...
0
votes
1answer
1k 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 ...
0
votes
1answer
73 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 ...
0
votes
1answer
558 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 ...
1
vote
2answers
10k views

Create an FFmpeg preset file from x264 options

I want to create an FFmpeg preset file. If I run a sample command it shows the currently used presets $ ffmpeg -i infile.mp4 outfile.mp4 [libx264 @ 0000000002a9a5c0] 264 - core 140 r2377 1ca7bb9 - H....
2
votes
1answer
5k views

Realtime transcoding to H264+AAC in Matroska container

Scenario I have a movie library which I'm looking to make streamable to my Android tablet using VLC for playback. I want to use H264+AAC for best possible visual quality over a mobile internet ...
4
votes
2answers
3k views

How to convert video for slow Android device

I know there is no best video codec or format. Because, each codec is designed for its corresponding job and situation. I have an Android Tablet, that can play any video with any codec or format, but ...
5
votes
3answers
9k views

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 ...
1
vote
0answers
120 views

Preserve text readability while encoding game screencasts

I have a bunch of (almost lossless) 3d game screencasts which now occupy considerable amount of my hdd space. I would like to reduce their size. Overall image quality isn't of great concern, except ...
0
votes
1answer
636 views

x264 Debug window parameters

I am using x264 to encode a video. The debug window shows the message : x264 [debug]: frame=1928 QP=35.00 NAL=2 Slice:P Poc:72 I:0 P:32 SKIP:67 size=62 bytes PSNR Y:36.84 U:39.56 V:41.84 I understand ...
1
vote
0answers
644 views

x264 to convert odd-sized image sequence

I've been using this command to convert series of JPEG images to h264 encoded videos, and it's been working quite well. x264 "/path/to/input/%04d.jpg" --crf 18 -o /my/output/file.mp4 until recently ...