Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
7 views

ffmpeg zoompan filter cut short my video

how to use ffmpeg zoompan filter cut short my video can you help me write code use ffmpeg zoom ! Thanks in advance!
0
votes
0answers
12 views

how to use ffmpeg zoom video with full screen video interlaced

how to use ffmpeg zoom video with full screen video interlaced I have a sample video. how to use the zoompan command to zoom the video mixed with the sample video Can you help me use with ffmpeg : ...
0
votes
1answer
17 views

(Efficiently) Extract multiple clips from a long video, possibly with ffmpeg

I've got a long video (2 hours at high resolution). We might as well assume it's in mp4 format, because it's in an AVCHD, and I'll have to extract and convert it to mp4 anyhow. I'd like to extract ...
0
votes
1answer
16 views

How to make ffmpeg to generate NUMBER_OF_BYTES tag for every stream in file output?

Can ffmpeg count size of stream in bytes? I want to write NUMBER_OF_BYTES tag for every stream in file output on the fly. Like MKVToolNix does. Input #0, matroska,webm, from 'm:\S01E18.mkv': ...
0
votes
0answers
21 views

Best way to handle stream with ffmpeg and GPU

So in my project, I need to capture a video stream, decode the video, run the individual frames through an object detection algorithm and then play the output as a video. This whole operation is ...
0
votes
1answer
31 views

How to extract the “real frames” without rely on fps?

I noticed if I extract frames with this command: ffmpeg -i sample_nosound.mp4 $filename%03d.jpg It will extract depends on fps by default. ffmpeg -i shows this video has 6 fps, so it extracted 1630 ...
0
votes
1answer
17 views

FFmpeg change overlay color (with audiovisualiser)

There is a padding (default black) under the audio visualiser in the script below ,how could one change the color of this padding ? I tried adding option "overlay :colors= Blue" but received an error=...
0
votes
0answers
37 views

How to use subtitles filter to a video VFR ( variable frame rate ) video?

I have created a VFR (variable frame rate) video from a list of images by using the following ffmpeg command. ffmpeg -f concat -i concat.txt -vsync vfr -pix_fmt yuv420p output.mp4 where the concat....
0
votes
1answer
27 views

Question about ffmpeg's overlay variable t

I've got an ffmpeg command that overlays a line on a video and moves it from left to right while the video plays: ffmpeg -i clip.mp4 -i line-with-transparent-white.png -filter_complex "[0:v][1:v]...
0
votes
0answers
17 views

Desktop Capture Has Become Choppy/Jerky with FFmpeg

Recently, videos produced by capturing a window on my system using FFmpeg have become choppy/jerky, as if frames have been dropped or duplicated. FFmpeg will sometimes report that a number of frames ...
0
votes
1answer
15 views

Configure CQP (CRF) for h264_nvenc

Encoding on CPU can be done via: ffmpeg -i input.mp4 -vcodec h264 -crf 23 -acodec copy h264.mp4 GPU's alternative for the codec is h264_nvenc. How can I pass the same options to it? I googled and ...
0
votes
1answer
41 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 ...
0
votes
0answers
17 views

FFmpeg Can't Capture Window Rendered with Secondary GPU

Edit: I am using the terms "primary" & "secondary" cards below loosely. I'm just assuming the Intel card is considered the first card. I recently discovered how to use my secondary graphics card (...
0
votes
0answers
21 views

GUI equivalent for ffmpeg eq filter parameters

I was wanting to know if anyone is aware of a GUI tool that mimics or is similar to the eq video filter parameters in ffmpeg. The eq filter is used to set brightness, contrast, saturation, gamma, etc....
1
vote
0answers
20 views

ffmpeg - switch between two streams from /dev/video* and record to disk

I'm trying to capture two webcams on /dev/video0 and /dev/video1 and write the live feed to disk. I'd like to be able to switch between the two sources every 10 seconds so the resulting video on disk ...
0
votes
0answers
19 views

How to give puzzle like effect to the image inside the video using FFMEPG

I want to add an image want to animate an image just like this: https://streamable.com/qvqed. Input video is this: https://streamable.com/y68e0 How would I achieve this?
1
vote
0answers
27 views

ffmpeg video compression : Compress captured video being before saving to file

Is there a way one can compress captured video input before saving to file? I have raspberry pi that I am using to record youtube videos. 1-2 min video takes over a Gb of space. I cant compress the ...
1
vote
1answer
17 views

FFmpeg encode variable input framerate

I have a Qt application running, i hijack the openGL frameBuffer when a new frame has been rendered. A new frame is drawned when only some changes appear in the scene, so no constant frameRate. Now i ...
1
vote
1answer
51 views

FFMPEG demux .264 for burning in scenarist

I have a very specific pipeline I need to set up, it starts with an mov file from Avid which gets transcoded to mkv for internal review and .264 for burning to Blu-ray in Scenarist. It goes: .mov (...
1
vote
0answers
33 views

FFmpeg: Align Video & Audio of Desktop Capture

I am using FFmpeg's built-in gdigrab & dshow to record the display & audio of my system. I am encoding to uncompressed H.264/AVC video & uncompressed PCM/WAV audio. I had been having two ...
0
votes
1answer
13 views

Comparing FFProbe to WavAgentBeta

Wav Agent outputs the following when I drag the same file in, so the data has to be in the file somewhere, and I just don't know how to look for it. WavAgent: StartTC: 13:09:21:18 Now FFMpeg with the ...
0
votes
2answers
41 views

Audiovisualiser not visible

The code below runs a perfect red audiovisualiser when run on a "black" colored background.But when used with any other colored jpg image the visualiser just doesn't show up.What's missing? ffmpeg ...
0
votes
2answers
36 views

Error:-[libx264 @ 000001fa2ffdd080] height not divisible by 2 (244x207)

I was looking to put an audio visualiser filter on my podcast file(mp3)and got the necessary code from here.But on running the code,the terminal gave an error"height not divisible by 2".I tried my ...
0
votes
0answers
18 views

FFmpeg for fade in doesn't get applied to the final video

This is the way I'm trying to apply fade in inside a filtercomplex of FFmpeg command. [v]fade=t=in:s=0:n=30[vfadein] This command doesn't return error but the result is a video without fade in ...
0
votes
1answer
21 views

ffmpeg quadruple video and audio play speed

I have a video file and I want to quadruple the video and audio play speed. I followed the instructions here https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video So I ...
0
votes
0answers
27 views

Reduce CPU usage when downscaling HD>SD>Low on the same codec (H264)

I'm using ffmpeg over 3 years now mainly I'm doing live broadcasting on my site , currently I'm preparing to do 5 livebroadcast on the same time using my VPS server CPU E3-1240 v5 OpenVZ Since I'm ...
1
vote
1answer
35 views

How can you convert a WebM with transparency to MP4 with a background color using ffmpeg?

I'm trying to convert a webm file that has a transparent background to an mp4 file. Mp4 doesn't have transparency so I'm trying to using this color: #D9DADB. How can I make this conversion happen with ...
0
votes
2answers
64 views

How to add Photos in background to a Video using FFMPEG

I saw one app and I'm willing to add photos similar to how that app does. Following is the screenshot of the video that I got from that app: I'm not sure what is the black part in there on the right-...
0
votes
1answer
25 views

FFMPEG: Make video with non-constant framerate from image filenames

I have a large group (tens of thousands) of images which were captured to an SSD at the max speed possible, which was therefore not a constant frame rate. Because of this, when using FFMPEG to turn ...
0
votes
1answer
22 views

How to slow down ProRes file from 25fps to 16fps without re-encoding?

This works to change the speed, but it also changes the codec to MPEG4 Video (H264). ffmpeg -y -r 16 -i at25fps.mov -filter:v "setpts=25/16*PTS" at16fps.mov I need the codec to stay untouched: ...
0
votes
0answers
28 views

FFMPEG tee muxing, map chapters to all outputs

I am trying to encode 2 video files from: 1 source video, 2 source audio files, and 1 source chapter marks file. Because the video file only needs to be encoded once I am using tee muxing for ...
1
vote
1answer
11 views

Error when using the tee pseudo-muxer in FFMPEG

I am trying to output both an .264 and .mkv at the same time, while not having to encode it twice. The way to do this is of course with the "tee" muxer, however I am getting an error that I cannot ...
0
votes
0answers
23 views

Upscale the key frames while decoding!

I would like to apply some kind of super-resolution (SR) to the keyframes in an H.264 video. The SR process should target the keyframes and upscale them by a factor of 2. For the past few days, I've ...
0
votes
0answers
16 views

How to Build Custom FFMPEG for Android

i wanted to build ffmpeg for android support. I want to build custom ffmpeg which supports openGL i followed insturctio given in below link but at the end of process i got error "--enable-gpl" not ...
0
votes
1answer
23 views

ffmpeg : how to reduce bit rate of transport stream

I'm aiming to reduce the bit rate of a video contained in a transport stream. The command (ffmpe.exe) is as follows : ffmpeg -i "udp://127.0.0.1:40101" -map 0:v -c:v libx264 -b:v 256k -maxrate 256k -...
3
votes
1answer
61 views

How to replace background green color

I'm using lenscorrection filter on a video and the result contains green background as canvas! How Can i replace this color with different one or an image? This is the command i used: ffmpeg -i out....
0
votes
1answer
44 views

Joining files fail with “h264_mp4toannexb filter failed to receive output packet”

I've always joined my MOV recordings with ffmpeg -f concat -safe 0 -i <(printf "file '$PWD/%s'\n" ./*.mov) -c copy o.mov however, due to a small glitch in one particular file, I get ...
0
votes
0answers
29 views

Non-monotonous DTS when concatenate slowed down video

I try to concatenate multiple videos to achieve the following: All my videos are in mp4 format. One video is first slowed down, then mixed with audio Videos are concatenated in the following order: ...
0
votes
0answers
27 views

Win 10 cmd Error: 'At least one output file must be specified' [SOLVED]

I need to compress many videos. I have udes Python script, run in folder with videos, but there is error, that I cannot fix. Could anyone help me?
1
vote
0answers
40 views

FFmpeg spliting video without re-encode

Using the recent ffmpeg I am trying to split an arbitrary video to 10 equal parts of 1 seconds every given interval. The Audio is not important to me and should not be in the output. I used ffmpeg -...
0
votes
2answers
28 views

FFmpeg - Folder Convert

I am use FFmpeg v4.1 . How can I convert all '.mp3' files in the "ab1" folder to the "cd2" folder with the same file names as '.mp3'? The process I'm going to do is: -acodec libmp3lame -b:a 192k -...
1
vote
0answers
18 views

Decrease Output file size, without loss in quality

Currently I am using: ffmpeg -hwaccel cuvid -i input -c:v hevc_nvenc -qp 1 output I want to know how to compress the file but lossless.
0
votes
1answer
20 views

Invalid video duration when frame rate is not 60

I have a python script, that generates a ffmpeg command for creating a slideshow with the "Ken Burns" filter. For example, I have 10 images and want to create an 1-minute video at 30 FPS. It ...
-1
votes
1answer
31 views

Can't set ffmpeg request header when using file for input

I'm attempting to set headers (as suggested here) for my ffmpeg concat command like so: ffmpeg \ -f concat \ -safe 0 \ -protocol_whitelist file,http,https,tcp,tls \ -headers $'Content-...
-1
votes
0answers
38 views

Fail to use .acv photoshop curve with ffmpeg

I have made my own curves in photoshop for color matching but when it comes to use it with ffmpeg curve filter while transcoding video files fails. For example, i have this command to screenshot a ...
1
vote
1answer
43 views

FFMPEG : Merging Two Audio Files

I am using following command to merge two audio file, which works fine. ffmpeg -i main.mp3 -filter_complex "amovie=tag.wav:loop=0,asetpts=N/SR/TB[tag]; [0][tag]amix=duration=shortest,volume=2" tag-...
0
votes
0answers
46 views

FFmpeg only and only change H264 profile and level?

I am use FFmpeg v4.1 . I want to change H264 profile and level but I want other settings to stay the same. I just want to change the profile of H264. I'm using this code, but I'm getting the error. -...
0
votes
0answers
31 views

FFmpeg: blackdetect filter - 2 events instead of 1

I run the following FFmpeg command: ffmpeg -i INPUT.mpg -vf "blackdetect=d=2:pix_th=0.00" -f null - It shows the event from the blackdetect filter with information about the black interval: [...
-1
votes
0answers
29 views

Add the image on top of the video not a overlay

I have tried this command ffmpeg -i video.mp4 -i image.png -filter_complex "[1:v]scale=320:-1[bottom];[0:v][bottom]vstack" output.mp4 The error is [11] => Input #0, png_pipe, from 'download.png'...
-1
votes
0answers
33 views

ffmpeg How to reduce file size based in percentage

Using ffmpeg, how can I reduce file size specifying the percentage? Like, reducing 35% of file size. I want apply it on a for loop to reduce many file sizes. Thank you!