Skip to main content

Questions tagged [libx264]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
16 votes
3 answers
60k views

encoding 4:2:2 in 10-bit with libx264

I believe that libx264 is now capable of doing 10-bit 4:2:2 encodings, but I can't seem to get it to work. I'm using ffmpeg (info below), and I've also tried the x264 encoder directly. I've tried ...
stib's user avatar
  • 13.7k
4 votes
2 answers
6k views

Producing small H.264 files with Adobe Media Encoder vs ffmpeg/libx264

I am a terrible ignoramus in the subject, but the coronavirus has thrown me in the business of producing videos with my lectures. I care a bit for video quality and a bit more for small size. My ...
Paolo's user avatar
  • 43
4 votes
3 answers
4k views

h264 settings for large flat areas of slowly changing colour

I'm doing an animation for a projection mapping that simulates the sun casting shadows on a structure as it moves through the sky. Basically it's just big flat areas of colour that change over about ...
stib's user avatar
  • 13.7k
3 votes
2 answers
1k views

Is CABAC encoding lossy or lossless in ffmpeg?

I've been looking into how to compress a video using ffmpeg when I stumbled across CABAC encoding which I could specify by using the libx264 for the video codec and pairing it with the proper ...
Juhmer_Tena's user avatar
3 votes
0 answers
152 views

How do I compress a video and preserve quality in moving areas?

It's easier to notice details in still objects compared to moving ones, so modern codecs save bandwidth by reducing detail during movement. However, this optimization seems far too pronounced to me ...
TigerhawkT3's user avatar
2 votes
1 answer
2k views

How to Create Compatible AVC Video for Muxing Without Re-encode

I want to encode a video that will be compatible with videos created by my phone. That way I can mux the new video with the original without re-encoding the original video. I use FFmpeg with the ...
AntumDeluge's user avatar
2 votes
2 answers
3k views

VOB editing with FFMPEG

I read that it is better to extract from vob H264 files within a .ts to have a lossless and more accurate sample, easy to cut, is that correct ? I used these commands : ffmpeg -i VTS_01_1.VOB -...
Manuhoz's user avatar
  • 41
2 votes
1 answer
647 views

Trim a segment of live, still-encoding H.264/FLV with ffmpeg

I am encoding a video with ffmpeg into H.264 stored in an FLV container. I would like to be able to trim segments of this video out as it is still encoding. The video contains no audio. I am encoding ...
seanr8's user avatar
  • 123
2 votes
2 answers
1k views

How to calculate the length of the video file that was encoded so far?

I am using ffmpeg to convert a video file to H.264 format. If I call ffprobe while ffmpeg is still running the duration of the video is not known. Only when ffmpeg finishes the ffprobe will display ...
VL-80's user avatar
  • 123
2 votes
0 answers
481 views

Efficiently compressing a looping video with h264

I have a video that is initially 19 frames long and lasts for about 0.5 seconds, it's 432kB. I've looped it over three minutes and the resulting file is quite large (200MB). Using FFMPEG is there a ...
Baa's user avatar
  • 121
2 votes
0 answers
414 views

How to get ffmpeg/x264 to use same parameters as input?

I'm trying to accomplish a smart rendering workflow using ffmpeg/x264. In short, get ffmpeg to segment the input file. Locate the segment(s) with changes to be made. Re-encode altered segments with ...
Gyan's user avatar
  • 33.3k
1 vote
1 answer
2k views

H.264 adding dark anti-aliasing even on high444 yuv444p

I have a PNG file with white on red and no antialiasing at all - each pixel is either white or red, but when I encode it to MP4 using ffmpeg -i test.png -profile:v high444 -pix_fmt yuv444p -loop 1 -...
g491's user avatar
  • 113
1 vote
2 answers
2k views

ffmpeg re-encode libx264 without quailty loss?

According to the documentation for libx264 (h264) encoding, we can use a preset of veryfast, faster, fast, medium, slow, etc. https://trac.ffmpeg.org/wiki/Encode/H.264 ...for constant quality ...
Sepero's user avatar
  • 111
1 vote
1 answer
816 views

I want to convert .mp4 to .ts using H264 at constant framerate 25fps

I've been trying to do this conversion for a couple of days reading through forums ffmpeg -i in1.mp4 -vcodec libx264 -s 720x576 -vf "fps=25"-vsync cfr -b:v 2300k -acodec aac -b:a 128k out1....
losing_my_marbles's user avatar
1 vote
1 answer
1k views

I scaled down a video, but the bit rate does not change

I have a 3000 by 3000 VR video encoded in H264. I scaled down the video by ffmpeg -i input.mp4 -vf scale=2160:2160 output.mp4 To my surprise, the bit rate of output.mp4 did not decrease (in fact, it ...
shintaroid's user avatar
1 vote
1 answer
3k views

What does it mean when encode a yuv422 file to yuv420 by libx264 lossless encoding?

I have an AVI file input.avi encoded in HQ which has yuv422 format according to ffprobe. Now, if I run the following command ffmpeg -i input.avi -c:v libx264 -crf 0 -pix_fmt yuv420p out.mp4 Will ...
shintaroid's user avatar
1 vote
1 answer
473 views

FFMPEG demux .264 for burning in scenarist

I have a very specific pipeline I need to set up, it starts with an mov file from Avid which gets transcoded to mkv for internal review and .264 for burning to Blu-ray in Scenarist. It goes: .mov (...
Spencer's user avatar
  • 309
1 vote
1 answer
4k views

ffmpeg rtsp over http not working

I put this conf on ffserver HTTPPort 1234 RTSPPort 1235 <Stream live.h264> Format rtp Feed feed1.ffm VideoCodec libx264 VideoFrameRate 24 VideoBitRate 100 VideoSize 480x272 AVOptionVideo flags ...
kooli's user avatar
  • 11
1 vote
1 answer
2k views

Ffmpeg error: 2nd pass has more frames than 1st pass

I'm recording video in windows 10 with gdigrab so want the capture as fast as possible in pass 1 and encode to a smaller file in pass 2. No matter what I do I always get this error when executing ...
Geordie's user avatar
  • 123
0 votes
1 answer
119 views

Encoding to the same H.264 size as YouTube

I am unable to re-encode an H.264 video that I downloaded from Youtube back to its original size. The MediaInfo is pasted below. The size of the video stream is 20 MB. I decoded the video into raw YUV ...
er0's user avatar
  • 111
0 votes
1 answer
573 views

Real time ffmpeg / x264 encoder behavior when input resolution suddenly changes

I want to take a live HD-SDI signal being captured by a capture card and encode it in real time to X.264. What happens when the input resolution suddenly changes? eg, from HD SDI 1080/50i to HD SDI ...
Danny's user avatar
  • 115
0 votes
1 answer
120 views

Why do different libx264 encoding presets yield different H264 profiles? For same video: Same source, same target dimension + framerate + CRF

Original Issue ffmpeg -i macos-sreenrecording-2560x1600-h264-FPS60.mov -movflags faststart -an -c:v libx264 -crf 18 -preset veryslow 2560x1600-CR18-FPS60.mp4 Yields an MP4 with H.264 at High@L6 (aka ...
porg's user avatar
  • 151
0 votes
0 answers
338 views

Extracting multiple video streams using FFmpeg

I have a video file that contains 4 streams, 3 videos streams and one steam for metadata. Stream Info: Input #0, matroska,webm, from 'output_master.mkv': Metadata: title : Azure Kinect ...
Ashutosh Singla's user avatar
0 votes
1 answer
120 views

ffmpeg libx264rgb error

When i was using ffmpeg i use libx264rgb to convert videos. But when I converted a video there was a error. I will put you a video so that you can see what happened. Original: https://archive.org/...
Fernando11101's user avatar
0 votes
1 answer
268 views

What x264 encoder is better for upscaling pixel art? Is it x264 8bit or 10bit?

I mostly use Virtualdub2 to upscale my videos (although I am looking for other methods) via two resize filters, Nearest Neighbor and Lanzcos3. Recently I am looking at the x264 encoder to encode my ...
GAP's user avatar
  • 51
0 votes
0 answers
58 views

How do you batch resizes of Genesis videos in FFMPEG?

I am trying to a create 4:3 video upscale encodes with Sega Genesis videos that are usually around 320 x 224 using FFMPEG. While I had been advised to use FFMPEG (and AVISynth) in the past, it was ...
GAP's user avatar
  • 51
0 votes
0 answers
188 views

Best ffmpeg configuration for universal video codec compatabiltiy across browsers

I intend to get a transcoding setting to support all browsers at the same time including, chrome, firefox and safari. Currently I am using following, yet this does not provide a valid video with ...
london_utku's user avatar
0 votes
0 answers
177 views

Slideshow compilation takes 10 minutes for 3 images

I want to make a slideshow from images. The first image has 6932x4683 pixels, so I got an error height not divisible by 2 and I found this thread. I understand that libx264 is implicit in the output ...
emonigma's user avatar
  • 149
0 votes
2 answers
982 views

libx264 for ffmpeg on linux

I am running ffmpeg on ubuntu. I tried to set the codec to libx264 but it was not recognised by ffmmpeg. Is there a way too install that codec for use by ffmpeg?
Scorb's user avatar
  • 189
-1 votes
3 answers
563 views

Re-encoding Lossy formats with Lossless formats

I was re-encoding videos downloaded from YouTube with Lossless H.264 (using FFmpeg) because I'm experimenting with CRF=0. I found that resulting videos are much bigger (1 gigabyte) than the original ...
Joy Jin's user avatar
  • 99