Questions tagged [libx264]

C/C++ library that encode video streams into H.264/MPEG4 AVC format

It provides an C++ implementation for Linux, Windows and OSX to encode video streams in format.

libx264 official site is videolan and the source is available from the repository git://git.videolan.org/x264.git.

241 questions
338
votes
7 answers

FFMPEG (libx264) "height not divisible by 2"

I am trying to encode a .mp4 video from a set of frames using FFMPEG using the libx264 codec. This is the command I am running: /usr/local/bin/ffmpeg -r 24 -i frame_%05d.jpg -vcodec libx264 -y -an video.mp4 I sometimes get the following…
Andy Hin
  • 30,345
  • 42
  • 99
  • 142
140
votes
6 answers

webm to mp4 conversion using ffmpeg

When I try to convert a webm file to mp4 the output is very very choppy and it appears as if many frames have been dropped by ffmpeg I used the following commands to convert ffmpeg -i movie.webm movie.mp4 ffmpeg -i movie.webm -vcodec libx264…
Pavan K
  • 4,085
  • 8
  • 41
  • 72
22
votes
5 answers

How to encode h.264 with libavcodec/x264?

I am attempting to encode video using libavcodec/libavformat. Audio works great, but when I try to encode video I get the following errors: [libx264 @ 0x10182a000]broken ffmpeg default settings detected [libx264 @ 0x10182a000]use an encoding…
szatmary
  • 29,969
  • 8
  • 44
  • 57
16
votes
3 answers

broken ffmpeg default settings detected

I am getting broken ffmpeg error while VideoWrite using X264 Fourcc codec.I have install all the dependencies.How can I rectify this problem.The sample code that I have been using is as follows. VideoWriter oVideoWriter ("path.mp4",…
Ramakrishna
  • 686
  • 1
  • 12
  • 25
15
votes
1 answer

Why sliced thread affect so much on realtime encoding using ffmpeg x264?

I'm using ffmpeg libx264 to encode a 720p screen captured from x11 in realtime with a fps of 30. when I use -tune zerolatency paramenter, the average encode time per-frame can be as large as 12ms with profile baseline. After a study of the ffmpeg…
CurtisGuo
  • 339
  • 1
  • 3
  • 10
14
votes
2 answers

Encoding for fastest decoding with ffmpeg

Encoding with ffmpeg and libx264, are there presets or flags that will optimize decoding speed? Right now it seems that videos transcoded with similar file sizes are decoded at very different speeds using Qtkit, and I was wondering whether there…
nbubis
  • 2,304
  • 5
  • 31
  • 46
13
votes
4 answers

Encoding H.264 CBR videos with FFmpeg

I'm trying to encode a video with ffmpeg into H.264 (via the libx264 library) with a constant bit rate. I know, I know, VBR is often preferred, but for this specific job I'm required to use CBR (just as long as it's so many kilobytes per second; it…
Cornstalks
  • 131
  • 1
  • 1
  • 3
11
votes
1 answer

Unknown decoder 'libx264'

I have ffmpeg with libx264 enabled from BtbN for Windows 10. This is the command: ffmpeg -f gdigrab -c:v libx264 -framerate 30 -i title="FiveM" -f flv rtmp://MYSITE.COM/stream/MYSECRETKEY Unfortunately I get this output: Unknown decoder 'libx264'
10
votes
1 answer

streaming H.264 over RTP with libavformat

I've been trying over the past week to implement H.264 streaming over RTP, using x264 as an encoder and libavformat to pack and send the stream. Problem is, as far as I can tell it's not working correctly. Right now I'm just encoding random data…
Jacob Peddicord
  • 367
  • 2
  • 6
  • 15
8
votes
3 answers

GStreamer x264enc not found

I installed GStreamer-0.10 and all modules (base, good, bad, ugly, ffmpeg) according to these instructions (browse through by clicking prev/next): http://www.linuxfromscratch.org/blfs/view/svn/multimedia/gst-plugins-ugly.html Everything seemed to…
Dominik Schreiber
  • 769
  • 2
  • 15
  • 25
7
votes
2 answers

Creating a video from images using ffmpeg libav and libx264?

I am trying to create a video from images using the ffmpeg library. The images have a size of 1920x1080 and are supposed to be encoded with H.264 using a .mkv container. I have come across various problems, thinking I am getting closer to a…
marikaner
  • 304
  • 1
  • 2
  • 15
7
votes
1 answer

FPS too high when saving video in mp4 container

When I decode frames from avi file and then decode them in x264 and save to mp4 file, the fps of the output file is always 12,800. Therefore the file is played very fast. But, when I save the encoded in h264 frames in avi format and not mp4, so the…
theateist
  • 13,879
  • 17
  • 69
  • 109
6
votes
0 answers

FFmpeg - generate x264 CBR video transport stream with C-API

Using various posts sprinkled around the Internet, including this one here on SO, I've been able to understand how to use the FFmpeg cli to generate a CBR video bitrate using the x264 codec (wrapped in an MPEG-2 transport stream). Note: I'm…
ZeroDefect
  • 663
  • 1
  • 8
  • 27
6
votes
0 answers

ffmpeg conversion x264 [error]: malloc of size 769152 failed

I am trying to convert video recorded from Android smart watch (.mp4 format) to a format (.mp4) which playable on all browsers. The video recorded from smart watch is not playing in the browsers. so, i've used ffmpeg to convert in into a playable…
prashanthp
  • 85
  • 2
  • 8
6
votes
4 answers

How to resolve "ERROR: libx264 not found"?

I needed to install ffmpeg with libx264 support for enabling H.264 encoding . I installed libx264 successfully using the below script with toolchains available in android-ndk-r9d . #!/bin/bash NDK=~/android-ndk-r9d …
davidvarghese
  • 637
  • 2
  • 10
  • 18
1
2 3
16 17