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

ffmpeg compresses upto 32 kbps only

I have created a PHP code which compresses mp3 while uploaded to 32kbps bit rate I have referred this thread How to compress or convert to low quality Mp3 file from PHP used this code exec("ffmpeg -i inputfile.mp3 -ab 24000 outputfile.mp3") but…
raju
  • 207
  • 1
  • 4
  • 11
6
votes
2 answers

Understanding FFMPEG Video Encoding

Got this from the encoding example in ffmpeg. I can somewhat follow the authors example for audio encoding, but I find myself befuddled looking at the C code (I commented in block numbers to help me reference what I'm talking about)... static void…
SetSlapShot
  • 1,248
  • 1
  • 16
  • 45
6
votes
1 answer

MPEG-4 and alpha transparency - the ongoing saga

I'd like to reach some sort of definitive answer for the following questions: Is alpha transparency supported in MPEG-4-based codecs? Is there any way to be reasonably certain that there is no alpha-channel from the output of ffprobe? Some links…
OrangeDog
  • 30,151
  • 11
  • 105
  • 177
6
votes
2 answers

How to use libffmpeg.so in Android project?

I am trying to create a screen recording app in Android. For this, i am using FFmpeg. I have created the libffmpeg.so file. Now i would like to use the same in Android project for calling it's native function. How can i do that..?
Neernay
  • 309
  • 1
  • 4
  • 12
6
votes
2 answers

How to batch convert mp4 files to ogg with ffmpeg using a bash command or Ruby

I am running a OSX, don't know tons about video conversions. But I have like 200 videos that are all in mp4 format and won't play in Firefox. I need to convert them to ogg to use the html5 video tag. These files live in a folder structure that…
TJ Sherrill
  • 2,249
  • 6
  • 46
  • 80
6
votes
2 answers

How to send MPEGTS streams over UDP

I am developing a realtime video-streaming system which is composed basically by a server and several clients. For now, let's ignore how packets are forwarded among the server and the clients, let's focus just on how the server can send a MPEGTS…
pAkY88
  • 5,916
  • 11
  • 43
  • 54
6
votes
2 answers

Why does ffmpeg report different durations?

Source videos: http://www.artworknotavailable.com/tmp/ffmpegtest Quicktime Pro 7.7.1 Inspector (Win 7) reports the following for the file 2398.mov 4.19MB H.264 Movie FPS: 23.98 Data Rate: 2.35 mbits/Sec Duration 14:97 ffmpeg reports the…
kenitech
  • 1,089
  • 12
  • 17
6
votes
1 answer

Converting audio files and preserving album artwork with ffmpeg

I am wondering if it is possible to convert audio files which have embedded artwork to MP3 and preserve the artwork using ffmpeg? I have ffmpeg installed on my server, and the conversion to MP3 works fine, including all metadata apart from embedded…
Nick
  • 3,930
  • 14
  • 62
  • 107
6
votes
1 answer

How to use FFMPEG with java?

I'm using the following command to convert sequence of images to a video. ffmpeg -r 1 -i sample%d.png -s 320x240 -aspect 4:3 output.flv This works fine for me! Now i'm trying to use the above command to run through java code. How can i run the…
Shyam
  • 811
  • 5
  • 14
  • 28
6
votes
2 answers

C# - Parsing ffmpeg standard output when extracting images

I am extracting single Video frames by starting a ffmpeg process from my c# code. The default behaviour is to write these images to disk. However to speed up processing I want to redirect the ffmpeg standard output to receive the stream and process…
leepfrog
  • 341
  • 6
  • 22
5
votes
4 answers

External command does not execute completely - Java

So, I am building a program that converts .flv files to other formats. For that I'm using ffmpeg which does its job perfectly when executing it via command line. For example: ffmpeg -i C:\test.flv -acodec libmp3lame -y C:\test.mp3 This example…
5
votes
2 answers

Does ffmpeg play the entire video file to extract image

I have a multimedia application which involves lot of videos. I use FFMPEG to generate the thumbnails from the video at a particular time duration. Now the problem is my console application which is used to extract the images from the video is…
user735647
  • 395
  • 2
  • 9
  • 19
5
votes
2 answers

Recommendation on the best quality/performance H264 encoder for video encoding?

I am looking for a video encoder that is fast, requires less CPU power and produces very good quality mp4 video. The input videos can be in any format and uploaded by users. Only thing I know is FFMPEG library. Is there anything else that is…
kheya
  • 7,079
  • 15
  • 72
  • 106
5
votes
3 answers

make: $LD_RUN_PATH is ignored

I'm compiling FFmpeg from source. ./configure --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-x11grab --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora…
htoip
  • 417
  • 5
  • 19
5
votes
3 answers

using FFmpeg, how to decode H264 packets

I'm new to FFmpeg and struggling to decode H264 packets which can be obtained as an array of uint8_t. After many of investigations, I think it should be able to just put the array into an AVPacket like the below AVPacket *avpkt = (AVPacket…
Jun
  • 171
  • 1
  • 3
  • 7