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

ffmpeg time unit explanation and av_seek_frame method

What does time_base mean in ffmpeg? document(here) says it is "frames per second". and I see in a real example that: AVFormatContext->streams[video_index]->time_base == 1 / 30000 But video's AVCodecContext->time_base == 1001 / 60000 This makes me…
Mr.Wang from Next Door
  • 13,670
  • 12
  • 64
  • 97
7
votes
2 answers

FFMPEG scaling, how to set scale so width AND height don't exceed a certain amount?

I have 2 videos, one is 500 pixels by 100 pixels (just an example, like something recorded sideways on an iphone). And a 1980 x 400 pixels videos. I need the video to convert maintaining aspect ratios. I know of the -vf scale filter such as -vf…
Darius
  • 1,613
  • 5
  • 29
  • 58
7
votes
4 answers

Android video trimming via ffmpeg

I have downloaded video trimming code from github from this link. It’s working perfectly for the first time, but when I try to run it for the second time the code crashes without any exception then again when I try to run it for the 3rd time after…
Karan_Rana
  • 2,813
  • 2
  • 26
  • 35
7
votes
1 answer

extract frames using ffmpeg with corresponding frame number

I am trying to extract frames using FFMPEG using the following command: ffmpeg.exe ' -i ' videoFile ' -r 1/5 ' imgsFolder '\%5d.png' Its extracting frames and assigning frame names in a sequential manner such 0, 1, ... Is it possible to assign the…
ssk
  • 9,045
  • 26
  • 96
  • 169
7
votes
1 answer

Replacing the standard Android H264 software encoder with an ffmpeg based one

In Android ICS and later, a new OpenMax IL API version is in use, making old binary blobs useless/unused. This leads to older devices that otherwise run ICS just fine and dandy to have broken video playback (YouTube HQ and IMBD, for example) because…
rubenvb
  • 74,642
  • 33
  • 187
  • 332
7
votes
2 answers

OpenCV stream captured CAM with H264 (mp4) codec

I like to stream the web cam pictures wich are captured by opencv. I think about a solution with ffmpeg and live555 (poorly they are not document so well). My problems are: How can convert the captured images to a H264 format so the picures/second…
user1200794
  • 159
  • 3
  • 9
7
votes
4 answers

How to change audio tempo and pitch individuality using ffmpeg?

I have managed to play audio files using ffmpeg and AudioTrack class in my android project. I can change the speed of audio using AudioTrack class setRate method. But it also change the pitch of audio, I want to change only Tempo of audio but I…
Vipul Purohit
  • 9,807
  • 6
  • 53
  • 76
7
votes
1 answer

Need help understanding HTML 5 audio/video meta data use and placement

I have spent a significant amount of time researching HTML 5 audio and video, however I am stuck understanding the encoding of the meta data. It seems that in my research, using programs like Handbrake (ffmpeg) it is recommend to check of "web…
nicoz
  • 145
  • 1
  • 7
7
votes
5 answers

Android NDK & FFMPEG build

I'm trying to build FFMPEG library for my android application using the NDK. I have downloaded the source code from it's website and I think I build it (it's my first try working with NDK and ffmpeg). I have created a build.sh file which I'm using…
Android-Droid
  • 14,365
  • 41
  • 114
  • 185
7
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
  • 379
  • 1
  • 4
  • 13
7
votes
2 answers

How to increase performance of bitmap drawing on Android

I created a movie player based on FFmpeg. It works fine. The decoding is quite fast, on LG P970 (Cortex A8 with Neon) I have an average 70 fps with 640 x 424 resolution video stream including YUV2RGB conversion. However, there is one bottleneck. It…
vitakot
  • 3,786
  • 4
  • 27
  • 59
7
votes
8 answers

What transcoding services can people recommend?

A client of mine needs to accept a bunch of different video files and convert them to FLV. My experience with FFMEG on a previous project has highlighted that there will be some troublesome files. Depending on the price my client will pay for a…
Adrian Lynch
  • 8,237
  • 2
  • 32
  • 40
7
votes
5 answers

Why does FFMPEG report the wrong duration?

I have an oldish build of FFmpeg that I can't easily change. We use FFmpeg to find the duration of video and sound files. So far it has been working wonderfully. Recently on an uploaded file, FFmpeg has reported a 30 second file as being 5 minutes…
Adrian Lynch
  • 8,237
  • 2
  • 32
  • 40
6
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,546
  • 20
  • 77
  • 109
6
votes
1 answer

Buffer error in avcodec_decode_audio4()

I have upgraded my ffmpeg version to the latest commit and Now I can see that the audio decoding funciton avcodec_decode_audio3 has been deprecated and when I use the new function avcodec_decode_audio4, as per the changes required in it, I get the…
NitinG
  • 893
  • 3
  • 21
  • 38
1 2 3
99
100