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.

229 questions
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
  • 415
  • 4
  • 14
3
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
  • 49,611
  • 27
  • 114
  • 164
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
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
  • 317
  • 1
  • 2
  • 9
3
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
  • 111
  • 1
  • 5
3
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
  • 679
  • 2
  • 15
  • 25
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 realtime 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…
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,052
  • 2
  • 22
  • 35
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
  • 6,916
  • 1
  • 25
  • 49
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,095
  • 7
  • 25
  • 48
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…
2
votes
1 answer

x264 / libx264 : Can only one I/P frame to be used as reference for B-frames?

As you know ref parameter can set the number of previous frames each P-frame can use as references. I need the same thing for B-Frames, but ref=1 does not work for B-Frames. I mean an I/P frame to be used as reference for B-frames only. is it…
Mitra M
  • 464
  • 7
  • 22
2
votes
1 answer

FFmpeg : Segment muxer does not work for AVC-MXF

I'm trying to save input stream to separate files every 60 seconds with the following command: ffmpeg -i Input -vcodec libx264 -s 1920x1080 -pix_fmt yuv422p10le -aspect 16:9 -acodec pcm_s24le -ac 2 -ar 48000 -f segment -strftime 1 -segment_time…
Mitra M
  • 464
  • 7
  • 22
2
votes
1 answer

muxing streamable segmented mp4 with libav

currently i have an application that is supposed to send fragmented mp4 data over a websocket to a client for it to be played there. i have a working implementation that pipes the raw frames to a spawned ffmpeg process and then reads fragmented mp4…
2
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
  • 23
  • 1
  • 1
  • 5
1 2
3
15 16