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

x264: Using NAL size limitation ruins the stream

I'm using x264 to compress a video stream from a webcam with this settings: x264_param_default_preset(¶m, "veryfast", "zerolatency"); param.i_threads = 1; param.i_fps_den = 1; param.b_annexb = 1; param.i_keyint_max = 30; param.rc.i_rc_method =…
Dan Tumaykin
  • 1,213
  • 2
  • 17
  • 37
4
votes
2 answers

libavcodec/libx264 do not produce B-frames

I am writing an application in C++ that uses libavcodec with libx264 to encode video. However, the encoded data ended up being much larger than I expected. I analyzed the results and discovered that my encoding never produced B-frames, only I- and…
Rob Schmidt
  • 121
  • 1
  • 5
4
votes
2 answers

Convert OpenGL output to H264 with x264

I want to convert the output of an OpenGL Program to h264 and stream the output. I got collected most of the code somewhere and I get an output file but I have no Idea what to do with it, or if it is valid. Currently the output is just saved in…
user2660369
  • 245
  • 1
  • 4
  • 11
3
votes
0 answers

x264 Faster decode speed

I'm using x264 to encode videos for a flash video streaming site. I use -tune fastdecode, which turns off cabac and deblock, which I've heard are the features which take most cpu to decode. However, I've still had reports of jerky video playback and…
Cameron Martin
  • 5,952
  • 2
  • 40
  • 53
3
votes
2 answers

Weird and unpredictable crash when using libx264 cross-compiled with MinGW

I'm working on a C++ project using Visual Studio 2010 on Windows. I'm linking dynamically against x264 which I built myself as a shared library using MinGW following the guide at http://www.ayobamiadewole.com/Blog/Others/x264compilation.aspx The…
Daniel
  • 1,417
  • 2
  • 12
  • 20
3
votes
1 answer

Does libx264 encoder support 12 bit pixel format such as yuv444p12le?

Libx264 show support for following input pixel formats: yuv420p yuvj420p yuv422p yuvj422p yuv444p yuvj444p nv12 nv16 nv21 yuv420p10le yuv422p10le yuv444p10le nv20le gray gray10le For libx264 can support be added for 12 bit format like…
bazz01
  • 33
  • 2
3
votes
0 answers

x264 encoded frames into a mp4 container with ffmpeg API

I'm struggling with understanding what is and what is not needed in getting my already encoded x264 frames into a video container file using ffmpeg's libavformat API. My current program will get the x264 frames like this - while(…
PJD
  • 53
  • 5
3
votes
3 answers

X264 encoding using Opencv

I am working with a high resolution camera: 4008x2672. I a writing a simple program which grabs frame from the camera and sends the frame to a avi file. For working with such a high resolution, I found only x264 codec that could do the trick…
user573193
  • 31
  • 1
  • 2
3
votes
1 answer

FFMPEG RTSP stream to MPEG4/H264 file using libx264

Heyo folks, I'm attempting to transcode/remux an RTSP stream in H264 format into a MPEG4 container, containing just the H264 video stream. Basically, webcam output into a MP4 container. I can get a poorly coded MP4 produced, using this code: //…
Phi
  • 467
  • 5
  • 16
3
votes
2 answers

Fast Video Compression on Android

I want to upload video files to server and compress before uploading. I'm using ffmpeg libx264. I have seen viber can upload 30 second video file of size 78MB within a minute [reduce it's down to 2.3MB]. I want to know how do they do it so…
3
votes
1 answer

How to set x264 encode parameters through ffmpeg AVCodecContext

I'm trying to use ffmpeg/libx264 to encode and transmit a real-time video, when I use av_dict_set(&opts, "tune", "zerolatency", 0); the system works well. As the X264 encode parameters are set by ffmpeg using av_dict_set, for some research purpose…
songqi
  • 31
  • 1
  • 3
3
votes
2 answers

How to set x264 baseline profile with libav in C++

I am writing a small tool, which converts a video into a raw h264 file. These files shall be played later by a SIP phone. I have the following code: eccx->pix_fmt = PIX_FMT_YUV420P; eccx->width = VIDEO_FRAME_WIDTH; eccx->height =…
Denis Loh
  • 2,194
  • 2
  • 24
  • 38
3
votes
1 answer

Given an x264 stream and an ogg vorbis stream, how do I make a muxed stream that mplayer/VLC can read?

I'm confused and a bit stuck with this question. All I can find on Google is basic usage of transcoding software, which is not related to the question. I'm making a game and I'd like to include native capture ability to stream video. I would much…
dascandy
  • 7,184
  • 1
  • 29
  • 50
2
votes
1 answer

How to solve libx264 not found when building ffmpeg-with-libx264-enabled for android?

i am trying build android-ffmpeg-x264 downloaded from git. Link https://github.com/halfninja/android-ffmpeg-x264 After running ./config_make_everything.sh i am getting following error ERROR: libx264 not found If you think configure made a…
Sureshkumar Menon
  • 1,165
  • 7
  • 27
  • 49
2
votes
1 answer

How do I build ffmpeg including x264 library for android?

Lots of question and answer available on the ffmpeg and android. But I did not get thing that directly address ffmpeg building with x264 library. Actually I want to make a movie from some still images in android. Still do not get any solution to…
1 2
3
16 17