All Questions
Tagged with ffmpeg video-editing
180
questions
0
votes
1
answer
11
views
How can I delay a particular rectangular region in a video relative to the rest of it using FFMPEG or other software?
I am watching a video which is a power-point presentation but it also has a view of the speaker in the bottom left corner. Unfortunately, the powerpoint-view and the speaker-view are not synchronized. ...
1
vote
1
answer
56
views
FFmpeg: To trim a video using 'trim' and specifying time in HH:MM:SS format
The following command trims a video from 5s to 10s:
ffmpeg -y -i input.mp4 -vf trim=5:10,setpts=PTS-STARTPTS output.mp4
But if I try to specify start and end time using HH:MM:SS format, FFmpeg ...
1
vote
0
answers
90
views
Trimming a video using FFmpeg leads to black screen
I try to figure out how to use FFmpeg to trim videos. I have created a 30 second .mov screen capture using Apple's QuickTime player, and then tried to trim it using three different ways:
Using -...
0
votes
1
answer
89
views
FFMPEG extract chapters not copying correct title
The original ffmpeg file has the chapters like
Menu
00:00:00.000 : en:Chapter 01
00:07:02.083 : en:Chapter 02
00:13:40.833 ...
0
votes
0
answers
81
views
Pausing the video for 15 seconds
I have a video which is 40 seconds long, I want to make it 55 seconds long, I wanted that the video's first frame along with it's audio freezes (frame freezes) for the first 15 seconds and after the ...
0
votes
0
answers
60
views
Setting transfer characteristics for overlaying multiple videos
I just wanna know whether I can set unique values of transfer characteristics/gamma for each videos while overlaying it on top of a single video.
For example :-
FFmpeg command : ffmpeg -f lavfi -i ...
5
votes
0
answers
491
views
It is possible to use QTGMC deinterlacing with FFmpeg?
I'am using the media-autobuild_suite (on Windows). This tutorial describes how to install and use QTGMC with AviSynth+. My question is can one use FFmpeg only to deinterlace video files with QTGMC?
...
0
votes
1
answer
79
views
Create a slideshow video with the date added as a text automatically
Is there a way to Create a slideshow with the date as a caption automatically?
So basically, I want to create a slideshow video of family photos and as each image is displayed the date and time of the ...
0
votes
0
answers
211
views
Positioning an ffmpeg text while wrapping text in newlines
I would like to automatically wrap text in multiple lines if it is too long to fit on the screen.
I know about the subtitle option but it is not what I am seeking for. When generating a long video ...
1
vote
1
answer
112
views
ffmpeg, need help to make small thumbnail slideshow video from long video
With ffmpeg command, I am trying to create a small thumbnail slideshow video of a large video
by selecting one frame every 60 seconds and then combining those frames to make a video in a way that each ...
0
votes
0
answers
400
views
Remove frames from a video depending on black pixel ratio
We have a surveillance camera recording taken at intervals of a month. It is necessary to remove the dark time of the day (night recordings) from the record or from the video file by deleting all ...
0
votes
0
answers
87
views
How to add audio every x time [ffmpeg]
I have a file video.mp4 and file audio.mp3, how to with the audio inserted every 2 seconds of video i try it but doesn't seem right. Please help me!
ffmpeg -i video.mp4 -i audio.wav -filter_complex &...
0
votes
1
answer
88
views
ffmpeg hangs when trying to convert analog static from fpv drone
I am trying to convert a .MOV file to an .mp4 file using moviepy, which as I understand is a wrapper for ffmpeg. I have had prior success, but was disappointed when ffmpeg ground to a halt at 89%. I ...
0
votes
0
answers
228
views
Change 50fps video into 25fps and keep the duration without reencoding
I have a 50fps video, where every second frame is a duplicate of the previous frame. I want to upload this video to youtube and I want youtube to think it's a 25fps video. Is this possible?
For ...
3
votes
1
answer
319
views
FFmpeg - Cut video from the beginning until a certain pixel is colored at a specific color
I am new to working with FFmpeg and would like to automate video trimming but can't find a way to do it.
So, what I would like to achieve is this: I want to delete the beginning of a video file until ...
0
votes
1
answer
199
views
How do I start 15 seconds before each video in this filter_complex expression in ffmpeg?
I have 4 videos basically of 4 people playing together in a coop game. It starts at the same cut scene and then shows each player s screen.
I am trying to merge them together in a 4 x 4 grid with all ...
0
votes
0
answers
2k
views
Extract only video from file using FFMPEG
I have an mp4 file named "input.mp4" and I need to extract only the video stream into another mp4 file, without re-encoding. How can I do that? I found a way to extract the audio stream but ...
0
votes
0
answers
545
views
ffmpeg - How to interpolate frames at a single instance in a video?
I have a 5 second video with 60 fps. It is a single take shot except a minor cut at 00:00:02.208. I have found some resources that use interpolation in the entire video in order to increase frame rate ...
2
votes
0
answers
1k
views
FFMPEG Concat Demuxer causes freeze between clips
I wrote a program that takes multiple clips from a video, then concats them into a single, shorter video, using FFMPEG. The issue that I have come across is that, in the output video, the clips freeze ...
0
votes
1
answer
377
views
Trim .tp files without re-encoding
I'm currently using ffmpeg -ss xx:xx -to yy:yy -i input -c copy output to cut some files and it works fine with .ts and .mp4, but it can't handle .tp files. Here's what I get:
[mpegts @ 0x198acd0] PES ...
1
vote
1
answer
609
views
Overlay video on top of Image - Do not resize Video, simply create a "larger" canvas around video
Is the following possible with ffmpeg?
Basically I want to leave the original video size alone, just make the video centered over a larger image, so it creates a border effect, as per following:
:
3
votes
1
answer
344
views
How can a color blindness simulation in FFmpeg be done?
How a can color blindness simulation in FFmpeg be done?
I am asking this question because I want to make a YouTube video with simulated color blindness.
0
votes
1
answer
277
views
how to combine two ffmpeg commands into one?
I am currently using this command to cut the first 10 seconds of all videos in a folder so the output is the whole video minus first 10 seconds.
FORFILES /M "*.mkv" /c "cmd /c ffmpeg -...
4
votes
1
answer
5k
views
Cut off from beginning to key frame using FFMPEG
How to cut away a piece at the start of video from beginning to the next key frame?
I know the -ss option
ffmpeg -y -noaccurate_seek -ss 00:00:30 -i "%%~ni.mp4" -avoid_negative_ts make_zero -...
1
vote
0
answers
315
views
Ffmpeg chunks to final video or final video with HLS
i want to optimize the speed of the ffmpeg video creation.
At the moment:
Creating small videos and concatenating them with xfade and using HLS after all video chunks are made. So it does take time to ...
1
vote
1
answer
880
views
splitting mp4 with ffmpeg does not remove chapters
I created a bunch of mp4 videos from DVD images using handbrake. I need to split them, and this appears to work with the solution from this question FFMPEG Splitting MP4 with Same Quality. For ...
0
votes
1
answer
1k
views
FFmpeg. Combine drawtext, fade and afade filters with filter_complex
I have these two codes that work fine, separately
ffmpeg -i in.mp4 -filter_complex "drawtext=fontfile=Lato-Light.ttf:text='TEXT':fontsize=60:fontcolor=white:alpha='if(lt(t,2),0,if(lt(t,4),(t-2)/...
1
vote
0
answers
171
views
Combining video with several audio files
I need to combine several audio files with a video file. Each audio file should have a specific volume, time and delay. Combined as a whole it works fine. The problem arises with the volume of the ...
1
vote
0
answers
307
views
How to display instant preview without exporting FFmpeg video?
I am using FFMPEG to generate video from images but the problem is that I can only show the preview of the video after executing FFMPEG command and it’s takes time to generate output.
On terminal I ...
1
vote
0
answers
1k
views
How to edit/properly fix a DVD VOB/BUP/IFO file?
Intro
I have a DVDISO file, and opening it doesn't work because my built-in disk mounter can't read it.
So, I open it up with VLC and all looks fine. When booting it up it's supposed to take you to a ...
0
votes
1
answer
130
views
Fade-in turns whole video stream to black
I've adapted the following crossfade from Gyan to create a video from an image and an audio file, and then crossfade it with an outro. This works fine, but I also want to have the first video stream ...
0
votes
1
answer
237
views
How to specify size of color filter dynamically
I've been using the following crossfade from Gyan as part of my workflow for a while, as I've found it to look superior to other crossfade solutions and easy to adapt for different inputs. However, I'...
0
votes
0
answers
194
views
merging 2 editing videos without saving them using ffmpeg
I want to combine 2 videos assume even they are edited among themselves
How normally we do
video 1:
ffmpeg -i 1.mp4 -filter:a "volume=0.0" test1.mp4
video 2:
ffmpeg -i 2.mp4 -filter:a "...
1
vote
1
answer
553
views
FFMPEG: Images are being loaded wrong at wrong FPS
On my video I am adding multiple overlays, 1 that will always be shown (Overlay/overlay.png) and I got a progress bar in PNGs named 0 to the last frame num.
I tried ffmpeg -i 6875126077795372290.mp4 -...
0
votes
0
answers
365
views
Use time or frame number for still image in FFmpeg filter
I'm trying to do a transition from image a.jpg to image b.jpg using FFmpeg filter. But it seems that FFmpeg won't recognize any time related options for still images, and the frame number I get is ...
0
votes
0
answers
464
views
Image overlay on video between two times using mobile-ffmpeg android
I am trying to add image overlay on video using "mobile-ffmpeg-full-gpl:4.4" library but faced following error
Error when evaluating the expression 'between(t' for enable
I have a class ...
3
votes
1
answer
2k
views
How to add still image before and after a video, for a specific duration
What i have is a list of 80 video files (mp4), 2-5s each, of a person pronouncing a word. For each file, i need to add some amount of silent still face at the beginning and/or and the video.
The way i'...
3
votes
2
answers
2k
views
Replace part of a video (without replacing the audio) in ffmpeg
I have a video file that is divided into three different sections. I want to replace the middle part of this video with another clip. However, I still want to keep the audio of the original video. Can ...
1
vote
0
answers
749
views
ffmpeg -t frame duration
I want to cut a video using ffmpeg.
I want to use the -t option for that. And did already some testing to get a satisfying comand together.
All I wondering is how carefull I have to be with -t or -to ...
2
votes
1
answer
1k
views
FFmpeg lenscorrection filter creates bad moire patterns
I'm trying to create a barrel distortion effect using FFmpeg. The lenscorrection filter can do this, but depending on the source material the results can be pretty bad, with moire patterns / bad ...
1
vote
0
answers
136
views
Trim video into multiple sections ffmpeg
I need to trim a video into multiple sections of unequal duration and output them as separate files.
For example a .mp4 100 seconds long and I need to extract and keep
output0.mp4 from 5 - 10sec
...
2
votes
2
answers
1k
views
ffmpeg - video and audio out of sync
This seems to be a common problem, but the answers I found don't seem to apply to my situation.
I'm merging 6 videos (one of them is a short background that loops) into 1 output video, and the audio ...
0
votes
1
answer
369
views
ffmpeg - multiple videos in panes, background image - unacceptable rendering speed
In this ongoing saga of me putting together a video, I have one more step I'm trying to add.
My requirements look like this:
In these days of COVID, our choir director is recording a video which is ...
0
votes
1
answer
149
views
ffmpeg - add multiple videos in panes, one master track, give offset start times how?
In these days of COVID, our choir director is recording a video which is the accompaniment, and then each choir member (at home) is listening to the accompaniment in headphones, singing along, and ...
0
votes
1
answer
823
views
ffmpeg - add multiple videos in panes, give offset start times how?
In these days of COVID, our choir director is recording a video which is the accompaniment, and then each choir member (at home) is listening to the accompaniment in headphones, singing along, and ...
1
vote
0
answers
77
views
FFMPEG complex_filter_script adds long trailing blank video
I generated a complex_function_script to concatenate certain clips of an input video at different speeds.
When I start from the beginning of the input video, the output is
mostly correct, but has a ...
8
votes
5
answers
10k
views
What are the minimum requirements/specs for ffmpeg?
I am currently using a small software program I made in Python that utilises ffmpeg on my personal laptop that is overqualified to run it (core i7, 16gb ram etc), but I would like to move it over to ...
0
votes
1
answer
432
views
how can i add an additonal output to ffmpeg to also pull out a frame for an image after segmenting
this is my command. i need to add something to the end to pull out a vframe every second or specified seconds and save to file. i've see how to do that on its own but not as a second output. i keep ...
0
votes
1
answer
742
views
Delete specific streams from a media file without creating a copy of the media file
The context
I have a file with four streams: 1 video stream, 3 audio streams (see proof below).
$ ffprobe -v quiet -of flat -show_entries stream=codec_type,index:stream_tags=title 'my_input_file.mkv'
...
1
vote
2
answers
3k
views
Is there way to increase speed of adding subtitles to a video?
Currently I do it this way: ffmpeg -i video.mp4 -vf ass=subs.ass output.mp4.
But with some videos it takes too long.
Is there way to increase speed of that: may be saving output file with lesser ...