Questions tagged [ffmpeg]

FFmpeg is a free software project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files.

Filter by
Sorted by
Tagged with
5 votes
1 answer
7k views

Interpreting pts_time in FFmpeg

I have been learning ffmepg for a couple of days. I'm struggling to understand how pts or dts works. This is the command I entered ffprobe -show_entries packet -read_intervals 10%+#3 Input ...
helming's user avatar
  • 83
5 votes
2 answers
3k views

How can I make a slideshow with ffmpeg?

I have a certain number of pictures that I want to repeat until the melody ends. The problem is that when I make settings it does not work. the process goes on forever ffmpeg -pattern_type glob -...
Иван Иванов's user avatar
5 votes
1 answer
6k views

How should I encode my 4K video stream?

I'm capturing uncompressed 4K video from my Sony A7R II via a video capture device, and am using ffmpeg to save the video. My problem is I don't know what codec to use. The two options I tried are: ...
Dmitri Nesteruk's user avatar
5 votes
1 answer
6k views

ffmpeg drawtext text parameter expressions

I am trying to write text on a video in such a way that the text "writes itself" - letter by letter. To do this I was able to do something like this: -vf "[in]drawtext=text='a':fontfile='/Windows/...
eof's user avatar
  • 83
5 votes
3 answers
2k views

Converting GIMP curves files to Photoshop (.acv) for ffmpeg

I've seen a number of scripts for converting Photoshop .asv .acv files to a GIMP friendly format. Does anyone know if such a tool exists to do the opposite, i.e. converting a GIMP curve file to .asv ....
moorej's user avatar
  • 273
5 votes
2 answers
2k views

Crop a video with a moving crop area of fixed size

I have 3840 × 2160 videos where I want to cut out a moving person on stage (e.g. music video). The crop area is fixed (1080 x 1920). The problem is, the person is moving around. Not much, but in a ...
user3185993's user avatar
5 votes
1 answer
2k views

Bad quality encodes to Prores4444 with alpha from ffmpeg

EDIT: This bug has been fixed. If you're experiencing the problem below, try updating ffmpeg I need to supply video with alpha as a prores4444 encoded file. I've been trying to use ffmpeg, but for ...
stib's user avatar
  • 13.7k
5 votes
1 answer
6k views

How to automatically enrich a video stream with dynamic overlay (text, images, ...)

In my company, we are currently looking for a solution to enrich a given video stream (which is being broadcasted via RTMP) from a remote webcam with some dynamic information, such as current date/...
hg.m's user avatar
  • 51
5 votes
1 answer
8k views

Extract key frame from video with ffmpeg

I have a need to generate a thumbnail for videos for a web application and I am currently doing that with this command: ffmpeg -ss <seconds> -i <input file> -vframes 1 -y <output file&...
SpongeBobPHPants's user avatar
5 votes
1 answer
1k views

Video transitions and filters - how to create custom ones?

I am wondering if there is a possibility to do custom video transitions or filters. Like the video spiraling out, little squares appearing, circling out or something like that. Wiping the video out ...
Toskan's user avatar
  • 163
5 votes
0 answers
1k views

Merge Insta360 INSV files into 360 video with ffmpeg 360vr filter

Insta produces 2 video files, from back and front camera. They have .INSV extenstion, but they are acutally mp4 video files. That's how they look: And expected result is 360 panorama video: Can I ...
user1209216's user avatar
5 votes
1 answer
1k views

FFMPEG demux concat dropping audio at stitch points

I am trying to use FFMPEG (v.3.3.3) concat demuxer and as the file is stitched the audio drops at concat points. As I have files of same codecs, bitrates and so on - it doesn't make much sense to ...
Michal's user avatar
  • 53
5 votes
1 answer
2k views

Largest input image size when encoding a video?

I got a bunch of really large 16 bit videos, approaching 65535×65535 pixels in size. These are essentially high quality timelapse panoramas. I want to convert them to a 7680×4320 movie (8K UHD, 8 bit)....
Mikhail's user avatar
  • 173
5 votes
0 answers
2k views

Extract the frame (in image format) at exactly every minute (or second) from a video (by ffmpeg)

Motivation: I would like to seek the frame, then take high quality and exact time screenshots (images) from a video. The video is length is 00:48:43.71 and 23.98 fps (we can think it is 24 fps, isn't ...
midnite's user avatar
  • 151
4 votes
2 answers
10k views

Mux mkv and dts file, change default audio stream and language

I want to mux (combine) two files into one mkv file. The first one is an mkv file that contains a video and an audio stream in German. The second one is an English audio stream in dts format.I want ...
MoritzLost's user avatar
  • 5,412
4 votes
1 answer
14k views

ffmpeg encode in all-i mode h264 and h265 streams

Which params I can use to obtain a transcode all-i based? No B and P frames? I know that this is not efficient for compression purposes but this is not my case now. I guess i have to fiddle a bit ...
user3450548's user avatar
  • 1,660
4 votes
4 answers
5k views

ffmpeg: Normalize audio in an avi file

Ι have an avi file that has different levels of audio. Is there a way to decrease and increase appropriately where needed the audio of my file using ffmpeg?
zinon's user avatar
  • 151
4 votes
4 answers
25k views

How do I specify baseline H264 profile using FFmbc?

I am using FFmbc (a FFmpeg derivative) to transcode some video files to H264 (in a mov wrapper). I want to specify baseline profile (to reduce CPU usage) but can't figure out how. There doesn't seem ...
Darren Greaves's user avatar
4 votes
2 answers
13k views

FFMPEG: Loop video to the length of audio

E.g. if video is 1 minute, but audio is 1 hour. Make video loop throughout for 1 hour of the audio track. I use this solution to loop image through the lenght of the audio ffmpeg -y -loop 1 -r 6 -i ...
user3108268's user avatar
4 votes
2 answers
9k views

How to work with R3D and RMD files? FFMPEG?

I am getting collections of files of the types A0123-random-name.RMD A0123-random-name.R3D Googling tells me R3D is a raw RED file and RMD is Red Meta Data - data about the processing to be applied. ...
tomsv's user avatar
  • 233
4 votes
2 answers
6k views

How do I remove audio from all files in a directory with ffmpeg?

I have a directory full of short video clips in .AVI format, and I want to remove the audio from all of them. I'm using Ubuntu 12.04. I tried this command: find -name '*.avi' -exec ffmpeg -i {} -an -...
Questioner's user avatar
4 votes
1 answer
6k views

Loudness control LUFS level adjustments

Is there a tool that can adjust the loudness level of a video? for example I need to make the loudness to be -23 LUFS with max deviation of 0.5 lu. is there a simple tool/cloud service that doesn't ...
Chen Kinnrot's user avatar
4 votes
1 answer
6k views

Adding blurred background to portrait videos with ffmpeg

I have a lot of videos that are either 720x1280 or 1280x720. I want to convert all of them to 1280x720, but for the ones that are portrait I would like to show the full video with the remaining space ...
Blixt's user avatar
  • 143
4 votes
2 answers
24k views

FFMPEG convert video with multiple audio streams?

Ok so I have a video made from dxtory. The video is using dxtory video codec and unknown audio codec. When I pop the file into avimux, I can clearly see two audio tracks/sources. I have successfully ...
Kyle's user avatar
  • 153
4 votes
1 answer
14k views

FFmpeg overlaying and blending videos

I am trying to use FFmpeg to overlay one video on top of the other using an additive blend. One video is the actual video I want to transcode, the other is a ~10 second long video I want to put into ...
Manny's user avatar
  • 211
4 votes
1 answer
18k views

restart encoding with ffmpeg when bad source

I have an ffmpeg process which saves a stream from wowza server, but when the stream in wowza is interrupted for a second or so sometimes ffmpeg cycles in: [segment @ 0x671a10] st:0 PTS: 9600015 DTS: ...
neoX's user avatar
  • 41
4 votes
2 answers
6k views

Producing small H.264 files with Adobe Media Encoder vs ffmpeg/libx264

I am a terrible ignoramus in the subject, but the coronavirus has thrown me in the business of producing videos with my lectures. I care a bit for video quality and a bit more for small size. My ...
Paolo's user avatar
  • 43
4 votes
1 answer
3k views

.srt subtitles added to mkv with ffmpeg are not displayed

I try to add .srt subtitles to the mkv file and it doesn't work. I use the following very simple command: $ ffmpeg -y -i original.mkv -i sub_original.srt -map 0 -map 1 -c copy ~/temp.mkv ffmpeg ...
Kirill Smirnov's user avatar
4 votes
3 answers
8k views

How do I fade in and out in FFmpeg?

I understand there is a module built in FFmpeg which allows you to fade your clips in and out, however, no one really explains how to use the module with your own input. How do I simply fade both the ...
ProTechXS's user avatar
4 votes
1 answer
9k views

FFMPEG - How can I add black bars to top and bottom of my video?

I have about 100 videos. I would like to add a 30 pixel horizontal black bar to the top and bottom of each video without ruining the dimenions(so even if they go over the video). How can I achieve ...
Bob Milon's user avatar
4 votes
2 answers
1k views

How to optimize already-encoded videos of still images (e.g. presentation slides)?

I have a H264 video that is, for the most part, just a video of presentation slides. It doesn't seem to me that it's as well-compressed as it could be. Given that it's a video of presentation slides, ...
user541686's user avatar
4 votes
2 answers
4k views

ffmpeg repackaging AVI (h264) into mp4 gives choppy playback in html5 video on chromium

I have file.avi which contains a h264 video: $ ffmpeg -i file.AVI Input #0, avi, from 'file.AVI': Duration: 00:00:20.61, start: 0.000000, bitrate: 1530 kb/s Stream #0:0: Video: h264 (Main) (...
Trees4theForest's user avatar
4 votes
1 answer
4k views

Using ffmpeg with avfoundation, capture_cursor and capture_mouse_clicks options are ignored

Situation: cash-strapped ivory tower visionary and ffmpeg newbie manacled to a 2nd hand 2010 Macbook Pro concealing a 'Black Screen of Death' NVIDIA GeForce GT 330M graphics chip. With the help of ...
user1019696's user avatar
4 votes
2 answers
3k views

How is possible for YouTube and Vimeo transcode so fast?

For the bit I read YouTube and Vimeo rely on servers powered by some modified libs i guess like libavcodec and tools like ffmpeg in a serious custom build. Let's assume a transcode to h264 but the ...
user3450548's user avatar
  • 1,660
4 votes
3 answers
6k views

Using ffmpeg to cut out a scene by original timestamp

I have a recording (a simple, unprocessed TS from my satellite receiver, not encrypted) that has uneccessary stuff at the beginning and the ending. I want to cut out the main feature now with ffmpeg. ...
zero0's user avatar
  • 161
4 votes
3 answers
4k views

h264 settings for large flat areas of slowly changing colour

I'm doing an animation for a projection mapping that simulates the sun casting shadows on a structure as it moves through the sky. Basically it's just big flat areas of colour that change over about ...
stib's user avatar
  • 13.7k
4 votes
1 answer
4k views

How to concatenate two mxf files with ffmpeg, preserving both audio channels?

I have mxf files which went over the 2G limit, so were split up in the camera to produce two mxf files. They have two audio streams, one from each mic, like this: Duration: 00:10:01.60, start: 0....
fastmultiplication's user avatar
4 votes
1 answer
3k views

replace black frames with previous frames

I have problematic footage from diving due to my camera/SD card - every 4th or so frame is just black, and I want to replace all those black frames with either an interpolation between the previous ...
Hug's user avatar
  • 143
4 votes
1 answer
6k views

RTSP to RTMP converting fails after specific time only when IP camera enters night mode

I have bought a cheap IP camera Escam QF002 producing output in RTSP. I'd like to secure it with RTMP or HLS stream served by nginx with nginx-rtmp-module. For this I'd copy the video stream (h264) ...
mjktfw's user avatar
  • 191
4 votes
1 answer
47k views

capture RTSP stream from IP camera ffmpeg

I used the following command to get the frames from RTSP h264 codec. I could not able to get the frames from the ip camera. $ ffmpeg -i rtsp://xxxx:[email protected]:xx/tcp/av0_0 -f image2 -vf fps=fps=...
kranthi sai's user avatar
4 votes
2 answers
3k views

Add black (or other color) padding when doing vstack (or hstack)

I am using the following filter_complex to put 2 videos of resolution 320 x 240, one right next to the other: -filter_complex "[v1][v2]hstack=inputs=2[videoout]" This works great, but now I was ...
Enrique Moreno Tent's user avatar
4 votes
2 answers
7k views

Streamable Container for HEVC (H.265)

flv is a container which can be used to stream videos while they are being encoded. flv supports h.264 codec. However, flv doesn't support hevc codec. Is there any container for hevc which is ...
shivams's user avatar
  • 143
4 votes
1 answer
4k views

ffmpeg input from images stream out video

I am using ffmpeg to capture a video recording device and would like to add an overlay to it . I have images being rendered on the fly and I would like to use them as the overlay . How can I take a ...
Clover Fox's user avatar
4 votes
3 answers
10k views

How to do a video live stream through a VPS?

I've been looking at a million resources and I can't find a definitive answer to this. I'm looking to do a small scale (max 50 viewers possibly), low quality live video stream, with nothing but my ...
takosuke's user avatar
  • 173
4 votes
1 answer
5k views

How to turn off ffmpeg dithering?

I am trying to convert a video to an animated gif, and I actually want it to have banding, so I'm trying to turn off dithering. Here's what I've tried: ffmpeg -ss 1:24 -t 2 -i *.mkv -filter_complex &...
Bemmu's user avatar
  • 143
4 votes
2 answers
7k views

Can I add motion blur to make animation less jerky?

I am doing an animation, and if I do things the easy way, fast moving objects end up jerking across the screen, rather than appearing to move smoothly – in other words, I have a temporal aliasing ...
Steve's user avatar
  • 179
4 votes
1 answer
1k views

Extracting video fields Respectively

Extracting individual video fields is my previews question. Based on the Mulvya's answer I can extract the top fields (only) or the bottom fields (only) individual. Now, I need to extract the video ...
Maria's user avatar
  • 223
4 votes
1 answer
4k views

Use ffplay to check how much to brighten video before using ffmpeg?

I have a video which is a bit dark that I'd like to re-encode and brighten up with ffmpeg. As a smarter/faster alternative to running ffmpeg in trial/error mode, is there a way to simply use ffplay ...
Gulbahar's user avatar
  • 153
4 votes
1 answer
2k views

FFmpeg pan filter and clipping

I have a file that has one video stream and one audio stream with 8 channels. I want to create a new file that will only contain the first 2 channels of the audio stream (no video). I can do this ...
charisk's user avatar
  • 183
4 votes
1 answer
756 views

How to filter out overlapping audio? Given a mixed track and one stem track, what's the best way to "subtract" the stem from the mix?

Given two audio streams, I'd like to remove the audio in one stream that also exists in another. In this particular case the 1st stream contains everything mixed, and the 2nd stream contains just the ...
Chris's user avatar
  • 140

1 2 3
4
5
44