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
6
votes
1 answer

OpenCV VideoWriter using ffmpeg with "Could not open codec 'libx264'" Error

I am new to OpenCV, and I want write Mat images into video using VideoWriter on Ubuntu 12.04. But when constructing VideoWriter, errors came out. It seems that OpenCV invoke ffmpeg API using default parameters and ffmpeg invoke x264 using its…
user2262504
  • 7,057
  • 5
  • 18
  • 23
6
votes
1 answer

Live555: X264 Stream Live source based on "testOnDemandRTSPServer"

I am trying to create a rtsp Server that streams the OpenGL output of my program. I had a look at How to write a Live555 FramedSource to allow me to stream H.264 live, but I need the stream to be unicast. So I had a look at testOnDemandRTSPServer.…
user2660369
  • 245
  • 1
  • 4
  • 11
6
votes
1 answer

What is the difference between H.264 and x.264?

I'm new to video compression; but I see many of the terms repeated over and over again. I'm wondering what's the difference between x.264 and libx264 and H.264?
5
votes
1 answer

ffmpeg libx264 AVCodecContext settings

I am using a recent windows (Jan 2011) ffmpeg build and trying to record video in H264. It is recording fine in MPEG4 using the following settings: c->codec_id = CODEC_ID_MPEG4; c->codec_type = AVMEDIA_TYPE_VIDEO; c->width = VIDEO_WIDTH; c->height =…
integra753
  • 271
  • 1
  • 5
  • 19
5
votes
1 answer

When compressing a set of images with libx264, why does frame rate affect final output size?

I'm using ffmpeg to encode a set of images as a short timelapse video, using libx264 codec. My first attempt, I encoded it at 30 FPS, using: ffmpeg -r 30 -pattern_type glob -i "*.jpg" -vcodec libx264 -crf 30 -pix_fmt yuv420p output.mp4 With 60…
jd20
  • 633
  • 7
  • 11
5
votes
0 answers

Why is ffmpeg transcoding speed going down over time?

I'm executing basic ffmpeg command to transcode input MP4 video to output MP4 video (both using H264 as video codec, and stripping out audio, for simplicity): ffmpeg -i input-video.mp4 -b:v 20000k -an -vcodec libx264 output-video.mp4 Transcoding is…
Nikola R.
  • 51
  • 1
  • 3
5
votes
3 answers

FFMPEG on cygwin failed to compile libx264 error: unknown type name ‘HMODULE’

I am trying to compile libx264 in ffmpeg under cygwin environment. I have followed some directions from several sources from Koohiimaster's blog, FFMPEG compilation guide, SO post 1, SO post 2 but I always stuck at the same step which is the libx264…
Ivan Lee
  • 53
  • 4
5
votes
2 answers

very low latency streaminig with ffmpeg using a webcam

I'm trying to configure ffmpeg to do a real-time video streaming using a webcam. The ffmpeg encoder command I use is as follows. ffmpeg -f v4l2 -input_format yuyv422 -s 640x480 -i /dev/video0 -c:v libx264 -profile:v baseline -trellis 0 -subq 1…
5
votes
1 answer

libx264 encode error Input picture width (40) is greater than stride (0)

I used libx264 in ffmpeg to encode video, I used the configuration below. enCodecContext->bit_rate = 300000; enCodecContext->width = 80; enCodecContext->height = 60; enCodecContext->time_base = (AVRational) {1, 25}; enCodecContext->gop_size =…
alijandro
  • 11,627
  • 2
  • 58
  • 74
5
votes
1 answer

Compiling x264 on a Mac: "No working C compiler found" and "arm-linux-androideabi-gcc: command not found"

I am trying to compile the x264 library for Android, following this post. I have cloned the x264 project git clone git://git.videolan.org/x264.git and tried to compile with the following configuration: NDK=~/development/android-ndk-r10c …
Xavi Gil
  • 11,460
  • 4
  • 56
  • 71
5
votes
2 answers

How to encode H.264 video using FFmpeg C API and then open the output with a media player?

I'm trying to encode a H.264 video with the FFMPEG C API. I have successfully compiled and executed the decoding/encoding example provided by FFMPEG. The problem I'm facing is that the .mpg file (encoded with AV_CODEC_ID_MPEG1VIDEO) the example…
GummiB
  • 78
  • 1
  • 1
  • 4
4
votes
1 answer

What is the difference between libx264 and h264_nvenc?

I am trying to encode some videos but when I use the libx264 they don't work but change the codec to h264_nvenc and they play. If I change the profile to baseline when using the libx264 the videos play. what is the difference? I could use the…
Jonathan Morrall
  • 43
  • 1
  • 2
  • 5
4
votes
2 answers

ffmpeg libx264 encoder different machines different output

I'm new to development with ffmpeg and I was wondering if it is possible to get the same bit exact output by running ffmpeg with the libx264 encoder on different machines (compiled using different compilers) with the same input file and same…
yfu
  • 73
  • 7
4
votes
1 answer

FFMPEG creates incorrect Source duration

When transcoding movies from an AVI to mp4 sometimes FFMPEG sets the "Source Duration" incorrectly. This messes up playback on IOS devices. Specifically, it causes the video to cut out at "Source duration" while the audio still plays. FFMPEG output…
Byron Whitlock
  • 52,691
  • 28
  • 123
  • 168
4
votes
2 answers

Improve ffmpeg CPU usage by compromising quality

I am using FFMpeg for screen capturing. I am looking for a screen capturing tool that will run on 1000 of VMs (windows and mac).The VMs have limited CPU (1 core) and 2GB ram and No GPU. Currently I invoke ffmpeg with ffmpeg -y -framerate 8 -f dshow…
Hardik Juneja
  • 377
  • 1
  • 2
  • 12
1
2
3
16 17