Skip to main content

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
0 votes
1 answer
13 views

What are brightness, gamma, and lut filters doing to my video? What's the difference, which should I prefer?

I get videos that were recorded at a conference, which I have to edit and produce. Usually there is only modest casual lighting, so no production or studio level lighting. During record, the tech has ...
0 votes
1 answer
32 views

How to properly specify font file for ffmpeg as it's always defaulting to Arial?

When calling ffmpeg it keeps defaulting to Arial-MT / Arial-BoldMT even when specifying a font. How do you correctly specify the fontfile? When specifying any font it will always default back: [...
0 votes
0 answers
4 views

How to prevent "auto-inserting filter 'auto_scale' between the filter..." within the filter_complex?

I'm using filter_complex string with vulkan(by hwupload and download). FFmpeg keep saying that "auto-inserting filter 'auto_scale' between the filter..." and doing something I didn't ...
0 votes
0 answers
8 views

Is it possible to make an HDR video playable on stock macOS, which looks exactly like its source EXR files in Preview?

I have a sequence of OpenEXR files, which use Rec. ITU-R BT.709-3 for primaries and white point. These files have RGB values that may exceed 1.0, where (1.0, 1.0, 1.0) is the same as pure white in ...
1 vote
1 answer
902 views

Concatenate multiple files using FFmpeg

I started to learn FFmpeg syntax a couple of days ago. I'm trying to read the official docs, it's not easy. So I want to build up a video files which consists of different videos, and audios. Let's ...
1 vote
1 answer
70 views

What exactly do FFmpeg options `-itsoffset` and `-itsscale` do?

If I understand correctly, the answer at Lossless A/V delay with ffmpeg seems to suggest that option -itsoffset leads to additional metadata, called "editlist", being added to the video file....
0 votes
1 answer
120 views

ffmpeg libx264rgb error

When i was using ffmpeg i use libx264rgb to convert videos. But when I converted a video there was a error. I will put you a video so that you can see what happened. Original: https://archive.org/...
0 votes
1 answer
130 views

Displaying an image next to a text using ffmpeg

I would like to overlay a text and an image in a video. I know how to overlay text and an image. The problem is the text is not fixed, e.g “Sad, “Happy,” “Excited,” etc. I need to show an image right ...
0 votes
0 answers
6 views

Implement video playback using NodeJS, FFMPEG and HLS.JS

I have RTSP stream coming from camera, which is converted to fragmented mp4 using FFMPEG. It is stored in a folder. Also manifest.m3u8 file is created using FFMPEG. I am using Hls.js player on ...
0 votes
0 answers
11 views

ffmpeg: Apply an expression to dynamically control intensity of lowpass, highpass, aphaser, or aecho

This is an audio question, not a video question, but hope it belongs here. I am constructing complexFilters to procedurally generate audio with ffmpeg via fluent-ffmpeg. The interesting part of my ...
2 votes
1 answer
1k views

FFmpeg: chromakey without green edges

I have a video of a person on green background and I'm trying to turn background transparent: ffmpeg -i bg.mp4 -i man.mp4 -filter_complex '[1:v]colorkey=0x00ff00:0.3:0.3[ckout];[0:v][ckout]overlay[out]...
0 votes
1 answer
31 views

Insert PNG at exact position of a video, with exact duration

Insert PNG at exact position of a video, with exact duration - is it possible with FFMPEG? If not, then may be with other software? I have several hundreds of PNGs. Each needs to be inserted at exact ...
2 votes
2 answers
2k views

Time lapse video with motion blur

Based on some of my videos I would like to make time-lapse videos with motion blur. My inspiration is this YouTube video: Time-lapse with motion blur from video with Avidemux, AviSynth and VirtualDub ...
0 votes
1 answer
281 views

Serving static video content directly vs. via adaptive streaming protocols (HLS, DASH)

Is there an advantage of serving static video content (not a live stream) via adaptive streaming protocols such as HLS or DASH over serving them directly as files using HTTP server in terms of speed? ...
0 votes
0 answers
9 views

Is there any workaround to set drawbox color conditionally?

i want to know if it is possible that setting drawbox color conditionally. With drawtext filter there is option -textfile which gets text value from a local file so that i can get dynamic text value ...
0 votes
0 answers
15 views

Is there a way to convert GOPRO MAX .360 files to .mp4 without using the gopro player app?

I have a gopro max camera that I use to record 360-degree VR footage. Up until now i have been using the official gopro player app to convert my .360 footage to .mp4, however, I am finding that the ...
0 votes
1 answer
122 views

How to efficiently create a video from an mp3 and a single jpeg using ffmpeg?

I have a 329MB MP3 file and a 200K JPEG image, which I'd like to combine into an MP4 file which simply plays the MP3 with the image in the background. The way I go about it today is by using FFMPEG ...
2 votes
1 answer
2k views

Correct method to set font-size in .ASS file

My final video output is 1080:1920 (9:16 aspect ratio), after padding. In .ass file, I set PlayResX: 1080 PlayResY: 1920 and then the font-size=130. But, this font-size doesnt occupy exact 130 pixels ...
0 votes
1 answer
421 views

ffmpeg converting Nikon .mov file to a format for Da Vinci Resolve Linux

Hi folks I've spent 2 days on this now and I'm no closer to finding the perfect ffmpeg command line to do an exact conversion of a Nikon D850 .mov file to a format that Da Vinci Resolve on Linux can ...
0 votes
1 answer
107 views

ffmpeg command to scale, show images at exactly 130bpm

I have a sequence of images which I would like to display to some music that plays at 130bpm. I'll also need to scale down the images, which are a rather strange 2673x2151 pixels, to something that ...
0 votes
1 answer
1k views

FFMPEG - Adding audio stream to existing MKV file (which includes an audio stream already) - Coming out squeaky

I am trying to add an additional audio steam (MP3) to an existing MKV file which currently contains a video and single audio stream, such that the output will have the video, and two alternative audio ...
0 votes
1 answer
42 views

Best ffmpeg compression settings for fast seeking of long 4 hour clip

I've got a low-resolution 4 hour clip, and need to do a lot of seeking in the video to write down when stuff happens. Do you have any suggestions for what format/settings would be the most "seek-...
0 votes
1 answer
39 views

ffmpeg skips first 5 secs

I'm trying to copy the first minute of an mp4 file, but getting a strange result in which I try to play the file output from ffmpeg and the first 5 secs are missing! I have tried using the following ...
2 votes
1 answer
275 views

How to know which ffmpeg encoders are hardware accelerated?

On any given build of ffmpeg, ffmpeg -encoders will list which encoders can be used for encoding video. Of the encoders listed, how can I tell which ones use hardware acceleration?
76 votes
3 answers
170k views

Add an image overlay in front of video using ffmpeg

I have many videos and I need to put an image in front of them for about 5 seconds, but adding it manually and rendering it each time would take really long, so I am asking if it is possible to do so ...
0 votes
1 answer
23 views

ffmpeg: smooth zoompan with no jiggle

I'm trying to apply a smooth zoom effect to my 5-second video using FFmpeg, but I'm encountering a shaky/jittery zoom. Here's the command I'm using: ffmpeg -i island_zoom.mp4 -vf "zoompan=z='min(...
1 vote
1 answer
4k views

Overlay transparent image (png) over video (mp4) with ffpmeg?

We would like to overlay an image throughout the whole video file we have. We no longer have access to the original source, so need to modify the video we have. The current video is in MP4 format. The ...
0 votes
1 answer
33 views

How to create animated gif from images files?

i tried this command line D:\Captured>ffmpeg -framerate 1/2 -start_number 1 -i "D:/New folder (76)/Image%d.png" -loop -1 D:/test.gif but getting error [image2 @ 00000000026324a0] Could ...
3 votes
2 answers
2k views

How to find/detect the real video resolution?

Imagine you have recorded/captured the screen at 1080p, but it was displaying a 480p video maximized to fullscreen. The result file is technically 1080p, but it really is showing a 480p video, that is ...
0 votes
0 answers
33 views

Difference between crf and cq settings in ffmpeg

What is the difference between -crf and -cq parameters of ffmpeg? I am trying to compress 1080p h264 videos into 1080p h265 videos with high quality and low size. I have noticed that in some guides ...
0 votes
1 answer
77 views

Pink and green color on overlay logo

I ran into such a problem with hls streaming, adding filters to the overlay logo, but it was smeared with pink and green stripes. Has anyone come across this. ffmpeg -f concat -safe 0 -re -i <(for ...
5 votes
1 answer
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 ...
0 votes
1 answer
184 views

Two videos on image background

I am sort of new to this. I am trying to create an output video using two videos and a background image. With a bit of gap around the videos and Video A having a larger scale than Video B. And, it ...
1 vote
1 answer
2k views

Split video into equal duration segments

I am currently using ffmpeg to split videos into 10 seconds segments. I have taken two approaches but neither seems to yield the desired results. Approach number one is using basic cutting with the -t ...
1 vote
1 answer
838 views

How do I create an master HLS playlist using existing .m3u8 playlists

I'm using FFmpeg to generate streaming files for a single resolution initially. Here is how my playlist and master-playlist looks like. master.m3u8 #EXTM3U #EXT-X-VERSION:3 #EXT-X-STREAM-INF:BANDWIDTH=...
0 votes
1 answer
311 views

Put two or more images on video

According this I try to put two pictures on video ffmpeg -i video.mp4 -i photo01.jpg -i photo02.jpg -filter_complex "[0:v][1:v] overlay=25:25:enable='between(t,10,20)';[0:v][2:v] overlay=25:25:...
0 votes
1 answer
52 views

How to create a box shadow effect when overlaying an image on a video using FFmpeg?

I'm working on a video project where I need to overlay an image on a background video. I've managed to achieve the basic overlay using the following FFmpeg command: ffmpeg -i background.mp4 -i ...
0 votes
1 answer
126 views

FFMPEG - Creating script to convert a video into audio file (or anything related really) + diverses questions

Good day everyone. Im making my babysteps into ffmpeg, and so far this tool has been really helpfull. Anyway. Im currently using this line as a convertion basis : ffmpeg -i name.mov -c:v libx264 ...
0 votes
1 answer
52 views

How Do I Batch Convert to Ogg Theora with FFmpeg6?

Good evening. I'm struggling to figure out a set of ffmpeg6 commands/flags for the following scenario: I have a large batch of 1080p 5.1ch lossless MKV's (courtesy of MakeMKV) that I want to encode to ...
0 votes
1 answer
56 views

How to calculate the CPU resources required to use ffmpeg to transcode a video stream

I have a SAAS software that does video transcoding using ffmpeg. The hardware is expected to have no GPU and other hardware acceleration technologies. The input video stream will have the following ...
0 votes
1 answer
53 views

How to change resolution without compromising video quality using ffmpeg?

I'm trying to develop a simple video transcoding system. When you upload a video, After extracting the video and audio separately, I want to encode them at 360, 720, and 1080p resolutions respectively ...
0 votes
1 answer
30 views

Impact of reencoding an HEVC file: How much loss if I do it in two steps, vs. going directly to a lower bitrate?

My scenario is as follows: Working with large original 8K file, captured at 100Mb/sec with hvec (h265) codec The file was reencoded at 50Mb/sec for a reasonable balance between size and quality Now ...
1 vote
1 answer
3k views

FFMPEG - Apply opaque white with mask

This seems like a simple thing to do, but for my life I cannot find an answer that does this the way I need to. Using a mask image, I want to make the white parts of the mask still be white (not ...
-1 votes
1 answer
38 views

Why does setting the bitrate with ffmpeg has no affect on the filesize?

I am trying to lower the bitrate of a video using ffmpeg to 1000 bits/s and 500 bits/s using the commands ffmpeg -i __temp__.mp4 -vf "scale=-2:360" -b:v 1000 out_1000.ts ffmpeg -i __temp__....
0 votes
1 answer
57 views

verify lossless in H.264

i've transcoded an interlaced JPEG2000 video file to H.264 using ffmpeg. following the guidelines, i constructed the following command line: ffmpeg -hide_banner -i $input \ -vf tinterlace=0 \ ...
0 votes
2 answers
481 views

ffmpeg mov_text subtitle too small when converting mkv to mp4

I want to remux a mkv file into mp4. I used the following command. ffmpeg -i "input.mkv" -c:v copy -c:a copy -map 0:0 -map 0:1 -map 0:2 -map 0:3 -c:s mov_text "output.mp4" Problem:...
0 votes
1 answer
43 views

How do I get better sound quality when screencasting with ffmpeg without having to increase -r?

I wrote the following script to capture both the screen and the audio from the microphone, both lossless from my laptop: #!/bin/bash d=$(date +"%Y%m%d_%-H%M") dimensions=$(xdpyinfo |grep ...
0 votes
0 answers
21 views

ffmpeg - set dynamic pts on video

I try to set pts for each frame of the input video. Here is the command I use to slowdown frame 1 and speed up frame 2: ffmpeg -i input.mkv -filter_complex "[0:v]setpts='PTS*2*eq(N,0)+PTS*0.5*eq(...
0 votes
2 answers
30 views

ffmpeg input -ss accuracy

As from FFmpeg version 2.1, -ss used as an input option should be frame accurate (when transcoding, not stream-copying). I tried it with different versions of FFmpeg, up to recent ones, and with MPEG-...
0 votes
1 answer
154 views

ffmpeg from 5.1 or 7.1 audio in separate mono streams to stereo

I have a file with 7.1 audio, where each channel is in a separate mono stream. How can I convert all these mono streams to plain stereo? (The documentation suggests to use the -ac 2 option, but that ...

1
2 3 4 5
45