Questions tagged [ffmpeg]

Only questions about programmatic use of the FFmpeg libraries, API, or tools are on topic. Questions about interactive use of the command line tool should be asked on Super User or Video Production. FFmpeg is a free, open source project that produces libraries and programs for handling multimedia data.

Questions about interactive use of the ffmpeg command line tool are off-topic. Please ask them on the Super User or Video Production sites.

Questions here should relate to automating or integrating FFmpeg, or usage of the libav* libraries or API. See also: , , .

FFmpeg is a free, open source project that produces libraries and programs for handling multimedia data. The most notable components are:

  • libavcodec – an audio/video/subtitle codec library used by many other projects.
  • libavformat – an audio/video/subtitle container (de)muxing library.
  • ffmpeg – a command line program for transcoding multimedia files.
  • ffprobe – a command line program for viewing detailed information about multimedia files.
  • ffplay - a command line program for playing media files. It is mostly used as a testbed for the various FFmpeg APIs.

FFmpeg is published under the GNU Lesser General Public License 2.1+ or GNU General Public License 2+ (depending on which options are enabled).

See the FFmpeg documentation and FFmpeg Wiki for additional information.

26084 questions
7
votes
3 answers

How to stream to ffserver from android

I need to stream from an android camera/ file to a remote ffserver which will broadcast my video. I can do this on the desktop in ubuntu by issuing a command like: ffmpeg -f video4linux2 -s 640x480 -r 25 -i /dev/video0…
kev
  • 1,148
  • 2
  • 14
  • 29
7
votes
1 answer

ffmpeg command to combine audio and images

I'm trying to achieve something which I earlier thought should be a simple task. Is there a ffmpeg command that can do the following: convert an audio.wav file to a video, Add some 100 pics (img%d.png) to the video so they "automatically" stretch to…
jeet
  • 745
  • 3
  • 10
  • 15
7
votes
1 answer

gcc is unable to create an executable file when installing FFmpeg

I'm trying to install FFmpeg directly from the source and I keep getting this error: gcc is unable to create an executable file. If gcc is a cross-compiler, use the --enable-cross-compile option. Only do this if you know what cross compiling…
keithp
  • 352
  • 1
  • 4
  • 13
7
votes
5 answers

How to install JavaCV on Android and use FrameGrabber

Could someone tell me where I'm doing wrong? These are the steps that I have followed: Downloaded the adt-bundle-windows from android developer website Created a new project and a libs/armeabi folder Extract all the *.so files from…
Mark
  • 346
  • 2
  • 5
  • 18
7
votes
3 answers

FFmpeg command with -ss option fails on .flv files

I am using FFmpeg to extract screenshot from a video with the following command /usr/bin/ffmpeg -ss 15 -y -i test.flv -vcodec mjpeg -vframes 1 -an -f rawvideo test.png But the command fails. Last 3 lines of the response are frame= 0 fps= 0…
7
votes
1 answer

How do I encode KLV packets to an H.264 video using libav*

Currently I am using libav* to encode H.264 videos. I want to add KLVPackets to the bitstream but do not know where to implement it. There is a struct within avcodec, but I am unsure of how to write it out to the frame metadata typedef struct { …
JonnyCplusplus
  • 881
  • 3
  • 12
  • 22
7
votes
4 answers

Issue when calling ffmpeg.c twice that makes the app crashes?

I'm trying to call ffmpeg.c to trim a video based on this code 'video-trimmer'. So when I try to run the activity (that loads and uses the native lib) the first time I click trin it works and I could trim the video but when I try to run it again it…
Jimmy
  • 10,427
  • 18
  • 67
  • 122
7
votes
4 answers

Cannot open ".mp4" video files using OpenCV 2.4.3, Python 2.7 in Windows 7 machine

I am currently working on a project that involves reading mp4 video files. The problem I encountered is that it using Python 2.7 (32 bit), OpenCV 2.4.3 (cv2.pyd) in a Windows 7 machine. The code snippet is as follows: try: video =…
TJ Monserrat
  • 139
  • 1
  • 1
  • 10
7
votes
3 answers

What are open source ffmpeg players for iOS/Android?

I have been searching for open source ffmpeg player, and I found somes. But I think there is a lot more out there. If you know one, please drop a line in the comment or answer. I'm working on iOS but really want to look further to see what has been…
jAckOdE
  • 2,402
  • 8
  • 37
  • 67
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
7
votes
2 answers

sh: /usr/bin/ffmpeg: not found

I'm trying to execute ffmpeg from PHP using shell_exec or exec but it fails. Why can this be? The command /usr/bin/ffmpeg works from the terminal, so I tried &1", $out, $ret); if ($ret){ echo "There…
Rio
  • 14,182
  • 21
  • 67
  • 107
7
votes
2 answers

Bambuser ffmpeg - "arm-linux-androideabi-gcc is unable to create an executable file."

I know this may be possible duplicate of some questions. but answers for those threads are not helping me. I am trying to compile ffmpeg library for android using Bambuser's ffmpeg. I downloaded Archive for client versions 1.3.7 to 1.6.0. from…
Chaitanya Chandurkar
  • 2,142
  • 3
  • 24
  • 43
7
votes
5 answers

while build a demo about ffmpeg , it occurs : undefined reference to `av_register_all'

This problem has bothered me for days. After I compile and install ffmpeg , I try to build a demo using it, but it always fails. The demo is: #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" int main(int argc,char *argv[]) { …
Cody
  • 71
  • 1
  • 3
7
votes
1 answer

Enabling MP4 demuxer in FFmpeg configure command

I want to enable MP4 muxing and demuxing, H264 decoding and MJPEG encoding and disable everything else in FFmpeg configure command. I know that I can use --disable-everything option and enable the needed components. When I list the demuxers and…
geekowl
  • 331
  • 1
  • 6
  • 17
7
votes
1 answer

run ffmpeg from PHP web script

I need to manage the recording/capture of a website mindwhile it is running a slide-show to get videos form these slides. My approach is:
it6
  • 71
  • 2