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.

22667 questions
5
votes
1 answer

Flac Converter Objective-C?

Does anyone know how to convert .mp3 to .flac in Objective-C using FFmpeg for iOS? Or other solutions to convert? I want to use Google's speech recognition api and of course they only support .flac audio.
Smoothie
  • 261
  • 4
  • 11
5
votes
2 answers

Is it possible to use FFMPEG to generate F4V videos?

I need to generate a script that converts videos to F4V's for use with Flash Media Server 4.5...is this possible? I have it converting files to MP4s and then swapping the extension. This works fine, but seems like a dirty work around. I'd prefer…
James Raber
  • 53
  • 1
  • 5
5
votes
1 answer

what is the best open source framework for programmatically producing .mov or .flv video files?

I would like to programmatically produce a simple animation video. Don't think "Toy Story" level of animation, think simple stick figures moving around the screen and other very simple lines and dots in black and white only. The point of the video…
Andrew Arrow
  • 4,005
  • 8
  • 37
  • 69
5
votes
2 answers

FFMPEG - 60 seconds from any part of video

What I want to do is create a 60 second FLV from a video that is uploaded. But I dont want to always get the first 60 seconds, if possible I would like to get the middle part of the video. but if not I want to get a random 60 second part of a video…
RussellHarrower
  • 5,971
  • 17
  • 81
  • 163
5
votes
4 answers

Unable to compile i386 compatible ffmpeg dylibs on Mac OS X

I'm running 64-bit Lion but I need to compile a 32-bit version of ffmpeg because another library I'm using is only available as 32-bit. I've tried a number of different configurations but they're all giving me errors. Here's what I've…
simon.d
  • 2,341
  • 3
  • 30
  • 51
5
votes
2 answers

How to add text to a video with ffmpeg and python

I've been trying to add text to an avi with ffmpeg and I can't seem to get it right. Please help: import subprocess ffmpeg = "C:\\ffmpeg_10_6_11.exe" inVid = "C:\\test_in.avi" outVid = "C:\\test_out.avi" proc = subprocess.Popen(ffmpeg + " -i " +…
Jay
  • 2,827
  • 6
  • 34
  • 49
5
votes
1 answer

Good library for encoding videos in a dynamic language?

I'm looking for an effective library for encoding videos. I would prefer something in one of the Ruby/Python ilk type languages, but I'd use libraries in C or PHP that were good. Essentially, I'm looking for something that wraps ffmpeg, and would…
rybosome
  • 4,974
  • 6
  • 40
  • 64
5
votes
1 answer

Drawtext, drawbox or overlay on only a single frame using FFmpeg

I'm using the drawtext and drawbox avfilters on FFmpeg, two of the most poorly documented functions known to man. I'm struggling to work out if and how I can use them on only a single frame, i.e., drawtext on frame 22. Current command: ffmpeg -i…
waxical
  • 3,616
  • 7
  • 40
  • 66
5
votes
1 answer

FFMPEG API: How to connect to RTSP stream using av_open_input_file?

I'm trying to connect to some RTSP stream using av_open_input_file() like this: AVFormatContext* ic; avcodec_register_all(); av_register_all(); av_open_input_file(&ic, "rtsp://login:password@xxx.xxx.xxx.xxx/videoinput_1/mjpeg/media.stm", NULL, 4096,…
Alexander Kulyakhtin
  • 45,879
  • 35
  • 103
  • 155
5
votes
1 answer

PHPVideoToolkit Execution error

When I try to convert a video to flv using PHPVideoToolkit I get the following errors(output of the getErrors() method): Array ( [0] => PHPVideoToolkit Error: Execute error. Output for file "" was not found. Please check server write…
Nick.h
  • 3,275
  • 4
  • 19
  • 22
5
votes
3 answers

Can't run ffmpeg as subprocess in Ruby

I am trying following code to determine video resolution by running ffmpeg utility as subprocess and gain its output and parse it: IO.popen 'ffmpeg -i ' + path_to_file do |ffmpegIO| # my parse goes here end ...but ffmpeg output is still…
Eskat0n
  • 929
  • 9
  • 21
5
votes
1 answer

FFmpeg/X264: Split video mid-GOP without reencoding entire stream

I've got an H264 video (Stored in an MP4 file). Each GOP is approx 10s long. I want to trim the first couple of seconds off the video, which means I need to split the first GOP. Is there a way to do this without re-encoding the entire video? I've…
yoda_alex
  • 310
  • 1
  • 3
  • 9
5
votes
3 answers

Get video duration of file hosted on Amazon S3

I'm starting a portal which distributes videos. The idea is to upload the videos to Amazon S3 and gather the necessary data using PHP from my server. So far everything works fine... the only thing I could not manage to get is the duration of the…
Michi
  • 2,150
  • 2
  • 26
  • 38
5
votes
3 answers

Parsing frame-by-frame from .mov using ffmpeg

I'm trying to parse H.264 frames from a .mov file. I think I've come to the conclusion that mov.c from AVFormat-part of FFMPEG is the way to go. But mov.c is ~2600 lines of next to uncommented code. I'm looking for examples of usage of FFMPEG,…
Robin Rye
  • 480
  • 7
  • 20
5
votes
2 answers

combining separate audio and video files into one file C++

I am working on a C++ project with openCV. It is a simple web cam application with basic features like capturing pictures and videos. I have already been able to save video (w/o audio). Since openCV doesnot support audio processing, I was wondering…
1 2 3
99
100