As of May 31, 2023, we have updated our Code of Conduct.

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
0 answers
18 views

ffmpeg or mplex DVD mpg or vob file with m2v and wav or lpcm

I would like to burn my favorite audios to a DVD with menus and hard links to vob files from the XTRA directory on the DVD. So I will have DVD-Video and MPEG files with artist names on the same DVD. I ...
0 votes
1 answer
106 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 ...
5 votes
2 answers
9k views

Use ffmpeg to create a video from a few images

I trying to create a video using FFmpeg from a few images. I tried several ffmpeg commands but I can't repeat each image for several frames, instead, each image is one frame size and the video result ...
1 vote
1 answer
466 views

Using ffmpeg gdigrab to capture desktop output to h264 yuv420p. Color shift problem

The ffmpeg command below is being used to capture the desktop and create a resulting mp4. ffmpeg log says the input stream is bmp and I specified the target as h264 yuv420p. I found several older ...
1 vote
1 answer
2k 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 vote
1 answer
5k views

YUV to RGB/sRGB color space conversion using ffmpeg

How to convert an mp4 file with YUV color space to RGB or sRGB color space using ffmpeg? I am trying to upload my video to YouTube and I read somewhere that RGB video looks better than YUV one. Thanks....
0 votes
0 answers
18 views

Use of FFMPEG (compiled exe, not linked DLLs) on a commercial closed-source Windows program

I would like to use FFMPEG compiled .exe files in my commercial Windows OS application and I am wondering if it can be used commercially mainly if: a) The compiled ffmpeg.exe is distributed with the ...
0 votes
1 answer
811 views

I need to modify a movie's displayed subtitles and display as an image overlay

I'm kind of at a loss on how to do this. I have access to gimp/inkscape/ffmpeg/vlc, and I can download font styles as needed off the web. So I have a movie. I play the movie in vlc player, I display ...
1 vote
1 answer
46 views

FFMPEG : Add video (partial video effect) under the image with ffmpeg

I have a video, video.mp4, and an image, artwork.png I would like, to use FFmpeg: To display the video.mp4 effect inside the image artwork.png If possible, resize output.mp4 as per the demo ...
0 votes
0 answers
36 views

FFMPEG RTMP stream Non-monotonous DTS in output stream 0:1

Running into a wee issue here. I'm trying to use an rtmp stream as an input and then outputting it to twitch. ffmpeg -re -i rtmp://localhost:1935/live/ -f flv -c:v libx264 -c:a aac rtmp://mad01....
0 votes
1 answer
538 views

ffmpeg - Slow down video and loop/repeat audio

I am trying to use ffmpeg to slow down a video speed by 25% (75% speed) without changing the audio speed. ffmpeg -i input_video.mkv -filter:v "setpts=1.3*PTS" "SlowVideo25.mp4" On ...
0 votes
1 answer
367 views

Changing up gamma with -lavfi and ffmpeg

This is my first time posting on this forum, so don't be too rough on me, haha. I have recently started taking up FFmpeg as a side project for my media class, and I am facing some problems when it ...
0 votes
0 answers
17 views

How to test ffmpeg for streaming encoding at 1x?

I would like to test ffmpeg for encoding a stream on my VM to see how much CPU % it uses, and how many cores. I don't have streams going, but I plan to use webcams to provide the stream in the future. ...
0 votes
2 answers
9k views

Convert HLS stream to fixed FPS mp4

I am using ffmpeg to convert an HLS stream to mp4 using this command: ffmpeg -i https://example.com/xxx.m3u8 -y -vcodec copy -c copy -bsf:a aac_adtstoasc test.mp4 I only have access to this video ...
0 votes
1 answer
110 views

FFmpeg on windows cut and fade question

so i am using the following code to in a windows .BAT file to cut up a video at X time: bin\ffmpeg -hide_banner -loglevel 0 -i "%video%" -c copy -map 0 -f segment -segment_time %...
1 vote
1 answer
511 views

I want to convert .mp4 to .ts using H264 at constant framerate 25fps

I've been trying to do this conversion for a couple of days reading through forums ffmpeg -i in1.mp4 -vcodec libx264 -s 720x576 -vf "fps=25"-vsync cfr -b:v 2300k -acodec aac -b:a 128k out1....
0 votes
1 answer
404 views

Final Cut output to FFmpeg workflow

If I use Apple Compressor, I could just 'Send to Compressor', without first exporting a ProRes master. However, I would like to use FFmpeg/x264 for better quality (at low bitrate). Do I have to ...
0 votes
2 answers
168 views

Need overlay the image on video by taking the array of positions

I need to overlay the image on video by scrolling the image on video . I want to generate the video with the image in scrolling positions
0 votes
0 answers
12 views

ffmpeg: possible to encode zerolatency stream with only P frames?

I'm experimenting with extracting motion vectors from h.264 videos for some vision task and I was wondering whether it's possible with ffmpeg to encode a h.264 stream so that it consists only of P-...
0 votes
1 answer
83 views

Help needed on ffmpeg zoompan filter expression syntax

I have the following command: ffmpeg -loglevel verbose -y \ -i "https://my.domain/workspaces/473/RFP-107718.mp4" \ -i "https://my.domain/workspaces/473/margaritaville/palm_beach.png&...
1 vote
2 answers
609 views

replace video track and keep everything else

I want to use FFmpeg to replace a certain video track but keep everything else including chapters, audio, fonts etc… I know I should be using -map and -map_metadata but not sure how to do it.
2 votes
1 answer
1k views

How to remove background from video without green screen on the command line?

I'm looking for an ffmpeg-like tool to blur/remove/change a static background from a "talking head" video, on the command line with on-device processing. Essentially, ffmpeg-like-tool [--...
1 vote
1 answer
28 views

Is splitting a video for export a good technique?

Currently, I'm making a video that I intend to upload to YouTube. I used After Effects and Premiere Pro for this. Since it's a video that's almost 2 hours long, the export takes me about 16 hours ...
0 votes
0 answers
12 views

FFprobe not showing frames data

As a beginner I don't know much about ffprobe and other video editing command line tools. Please guide me here. I am trying to download a video with yt-dlp and trim it to the nearest key-frame of my ...
0 votes
0 answers
7 views

ffMpeg recording one input into 2 files with one encoder process

need some help after trying days on this. I'm able to process one input to two outputs with two encodings: ffmpeg -f dshow -i video="Integrated Camera" -c:v mpeg2video -b:v 50000k -vf "...
0 votes
0 answers
8 views

ffmpeg - pause video after 1 second

How can I use ffmpeg to create a video such that it pauses after 1 second but retains the full duration of the video? i.e. I am not looking to trim it. For example ffmpeg -i "input.mp4" ...
1 vote
1 answer
892 views

ffmpeg: Why did my capture speed drop? (can no longer capture using same command)

I've been using the following command to capture video with ffmpeg for the past two months using my Blackmagic Intensity Pro 4K capture card: ffmpeg -bm_v210 1 -rtbufsize 1500M -threads 4 -f decklink ...
0 votes
0 answers
22 views

Why would ffmpeg run slower on a GPU than a CPU when doing mp4 compression?

I'm running it on modern equipment with latest drivers. I use it to compress video files, like so: ffmpeg -i 20230502_200913.mp4 -vcodec libx265 -crf 28 -vf "scale=trunc(iw/10)*2:trunc(ih/10)*2&...
1 vote
1 answer
606 views

FFmpeg Batch encoding error: CRF/CQP is incompatible with 2pass

I am trying to create a batch file with 2 passes. Pass 1 scales the video. Pass 2 pads a border around it. They both work separately but will not work together. Pass 1: @echo off REM Scale video to ...
0 votes
1 answer
1k views

How to split,reverse and concatenate video using single command in FFMPEG?

i want to create reverse video with audio and remov from large clip.for that first split video in segment then reverse splits video then concatenate all reverse video as single video file but it take ...
0 votes
1 answer
16 views

Using ffmpeg audio filter loop instead of stream_loop as stream_loop adds a delay

I want to loop an audio file infinitely. The -stream_loop -1 option adds a small pause / jerk between the loops as also mentioned in this question with no resolution. The same question mentions that ...
0 votes
1 answer
836 views

How can i do overlay subtitle with ffmpeg like in the links provided?

I need a script for ffmpeg to do this: Background color (drawbox) for all words like this:
0 votes
0 answers
19 views

Place logo + change its opacity and scale + add text at random position

I have 3 complex filters and can't figure how do i make it in one command to work: Random text position ffmpeg -i video.mp4 -vf drawtext=\"fontsize=40:fontfile=FreeSerif.ttf:fontcolor={color}:...
0 votes
1 answer
26 views

change output order of FFprobe

How can I change the output order of FFprobe? ffprobe -hide_banner -show_streams -show_format space.mkv -of json=c=0 -o output.json creates a json output file with the streams sections first and the ...
0 votes
0 answers
13 views

extracting/exporting images from a video at every scenechange

How can I extract images from a video at each scene change (i.e. the 1st image from each new scene in a video) ? FFmpeg is said to be able to detect scene changes but I don't know how to adapt the ...
0 votes
2 answers
49 views

ffmpeg nearest-neighbor downscale not working as expected

I'm trying to downscale a video with nearest-neighbour scaling, but the results are very poor. To try and get to the bottom of it, I created this image which is a repeating pattern of various colours. ...
0 votes
1 answer
134 views

Hue Cycle .gif files with ffmpeg as percentage of duration

Suppose I have a set of 1000 .gif files, each of different durations, and I want to cycle the hue (hue as in the HLS color space) of each .gif file once over its duration. So, for example, at the ...
0 votes
1 answer
238 views

Applying colorkey twice in FFMpeg

I have a video with green screen. Unfortunately there is a shadow on the green screen. Increasing the tolerance got side effects. Thus I thought of the obvious, just apply colorkey twice. I tried this,...
0 votes
1 answer
506 views

Create 4x2 grid mosaic

trying to create a 4x2 grid from 8 videos using the terminal on a mac. The code I am using is not working: ffmpeg -i input0.mov -i input1.mov -i input2.mov -i input3.mov -i input4.mov -i input5.mov -i ...
0 votes
0 answers
85 views

FFMPEG merging videos Non-monotonous DTS in output stream 0:1

When i use this command it in generally works with no issues but I get this warning and the video is super long (should be 20 or 30 seconds and is 24 minutes) ffmpeg -f concat -safe 0 -i manual.txt -c ...
1 vote
1 answer
148 views

FFMpeg kmsgrab record pixels in incorrect order

ffmpeg -f kmsgrab -i - -framerate 60 -vf 'hwdownload,format=bgr0' -preset ultrafast out.mkv This is how a video frame should look like This is how it is recorded by ffmpeg https://drive.google.com/...
0 votes
0 answers
39 views

FFmpeg is dropping a lot of frames but I can't see why

I have very little experience with FFmpeg but a process that worked flawlessly on one video (60fps @1920x1080) is dropping frames like crazy on another (58.56fps @1920x1080). I believe I have my ...
0 votes
1 answer
743 views

Using FFmpeg -lavfi to calculate the SSIM of each frame

I would like to be able to take a single video, run it through ffmpeg, and have it spit out a log containing the SSIM of each frame with respect to the previous - that is, I want the SSIM scores ...
0 votes
1 answer
39 views

frame rate vs extracted frames

Newbie here. This is my input.mp4 video, according to VLC: codec: H265 – MPEG-4 AVC (part 10) (avc1) Encoder: Lavf58.29.100 FPS: 70.476432 Resolution: 1824 x 1216 Duration: 0m31s I need to ...
1 vote
1 answer
437 views

Extract subtitles in time range using ffmpeg

I have original video (with subs) and cropped version of it (without subs). I need to add subtitles from original video into cropped in appropriate time range. I think the best way to do is: Extract ...
1 vote
2 answers
1k views

FFmpeg for m2t and Sony Bravia - not working

-f mp4 -c:v libx264 -preset veryslow -tune grain -profile:v high422 -flags +ildct+ilme I am preparing video to be streamed (DLNA) from my NAS to an older Sony Bravia. I have successfully created ...
0 votes
1 answer
302 views

ffmpeg best parameteres for fastest compression on FullHD mp4?

I need to compress a bunch of FullHD(1920x1080, 3Gb, mp4) videos, each ~2 hrs long. Some loss of quality is okay as is the lower resolution. I'm shooting for a 500Mb output video in ~10 min processing ...
0 votes
1 answer
953 views

FFmpeg Media Source Extension Examples and Adaptive VOD and Live Streaming

I have a quick questions. Has anybody examples or links for the use of FFmpeg with the Media Source Extension for pure JavaScript adaptive VOD-, or Live-Streaming? I mean really pure not HLS or DASH. ...
0 votes
2 answers
69 views

Append part of the audio at the end of another audio

With audio files A and B: A : |--- Some content ---|--- Extra content --- | B : |--- Some content ---| Assume the end of B is where the start of the extra content in A. I want to append that extra ...
0 votes
1 answer
31 views

What improvements can I make to my FFMPEG script?

I am trying to create an FFMPEG script for some of my emulated game captures. I normally use Virtualdub2 (formerly Virtualdubmod) to upscale and trim my game captures for YouTube. With my laptop gone ...

1
2
3 4 5
41