All Questions
9,062
questions
389
votes
1
answer
543k
views
How can I crop a video with ffmpeg?
I have an MP4 file of a screen recording that I need to crop down. How can I accomplish this without using expensive tools like Adobe Premier or Final Cut? I prefer ffmpeg because I have used it ...
110
votes
6
answers
259k
views
Repeat/loop Input Video with ffmpeg?
I just want to loop a mp4 video with ffmpeg and keep the current settings and codec.
For example if input.mp4 is 0:10 long, and I would want to loop it 4 times so output.mp4 is 0:40 long, how could I ...
74
votes
2
answers
163k
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 ...
55
votes
11
answers
6k
views
Good open source Video Editors?
Sure, I could Google and find random software. But I rather have the opinion of users that have had hands-on with any open source video editors.
So if you've used one that you like or know of any, ...
53
votes
6
answers
58k
views
How to prevent FFmpeg from dropping metadata?
When I am simply copying a.MOV (from my iPhone) to c.MOV, FFmpeg drops a lot of metadata, including the time and location of the video.
I tried -metadata, but FFmpeg still drops the information. It ...
52
votes
3
answers
167k
views
Fix bad files and streams with ffmpeg so VLC and other players would not crash
It happened me many times that I could end up in corrupted video files:
video downloaded from official sources but with torrent and for some reason not all the pieces are there in .mkv, .ts or .mp4
...
51
votes
3
answers
104k
views
How to downsample 4k to 1080p using ffmpeg while maintaining the quality?
I have some 4K 3840x2160 footage in MP4 format that I need to bring down to 1080p. I tried running
ffmpeg -i orig.mp4 -vf scale=1920:1080 smaller.mp4
but the result is very poor quality, with the ...
47
votes
1
answer
51k
views
Can I use FFmpeg in a commercial product? [closed]
Not sure if I am correct posting my question here and I will of course delete this question if appropriate.
I have a C# desktop app using FFmpeg.
I have a web service using FFmpeg.
I sell both ...
44
votes
3
answers
91k
views
ffmpeg Color Correction: Gamma, Brightness and Saturation
How is ffmpeg used with a video filter circa 2017 to adjust gamma/contrast, brightness and saturation?
Stack Exchange resources that are a few years old point to the filter mp=eq2=, but it seems to ...
43
votes
7
answers
48k
views
How do I turn audio into video (that is, show the waveforms in a video)?
I have to create a video. Part of it involves "showing" a radio interview. Rather than just having a black screen and listening to the audio, I'd like to have a varying waveform on the screen and a ...
39
votes
2
answers
51k
views
How to use FFmpeg Command for Reverse Video?
i am use to FFmpeg library in android for reverse video. I can dump images from video but how to reverse all images and make video. See this link that from i am use to library in my gradle.. Library ...
39
votes
6
answers
58k
views
How to get FFMPEG to join non-sequential image files? (skip by 3s)
I have a bunch of images, that follow this pattern.
0001.png
0004.png
0007.png
0010.png
0013.png
0016.png
0019.png
...
They're in the correct order, but FFMPEG ignores anything after the first file, ...
38
votes
2
answers
259k
views
How do I set up and use FFmpeg in Windows?
I understand that FFmpeg is a powerful tool for video file conversions. I see online in many places people suggesting it for solutions or getting help in how to use it. The problem is, I don't even ...
37
votes
4
answers
92k
views
How to losslessly encode a jpg image sequence to a video in ffmpeg?
I have a large set of jpgs that I want to convert to a video losslessly (or, at the very least, very close to losslessly as long as the encoding time isn't much higher than otherwise).
Naively, I ...
34
votes
8
answers
6k
views
Create a DIY Green Screen / Chroma Key
What are some good resources for people attempting to setup their own green/blue screen, light, record and pull a quality key from it? Particularly on a low budget, or with materials that aren't ...
34
votes
2
answers
28k
views
MP4 / h.264 patent issues?
I know this is not a legal forum but I'm assuming this is a daily issue for most people on this site since h.264 video (AVC / MPEG4 part10) is so ubiquitous (and there is a legal tag here).
I've read ...
34
votes
6
answers
77k
views
Non-Monotonous DTS on concat (ffmpeg)
After running this command ffmpeg -f concat -i mylist.txt -c copy output.mp4 - I'm getting corrupted output.mp4 file and this message:
ffmpeg -f concat -i mylist.txt -c copy output.mp4
ffmpeg version ...
33
votes
1
answer
100k
views
How to deinterlacing with ffmpeg?
I have the following VOB file:
→ ffmpeg -i input.vob output:
ffmpeg version N-77455-g4707497 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
...
32
votes
3
answers
46k
views
How to fade in/out a video/audio clip with unknown duration?
I'm working on a project where I'm using ffmpeg to batch convert some video files, and adding fade in/out effects at the head and tail of each clip.
I've been using this bit of code to add the fade/...
32
votes
4
answers
54k
views
How does YouTube encode my uploads and what codec should I use to upload?
Related to What codecs/formats are appropriate for full motion video recording for youtube? I'm wondering exactly how I can expect Youtube to handle my videos. I know they have a rather zealous ...
31
votes
5
answers
137k
views
How to encode a video at 30 FPS from images taken at 7 FPS
I have no knowledge whatsoever about video encoding, I have an application written in OpenGL and I am saving the frames it generated into png images. The frames from my app are at 7 FPS and I am ...
31
votes
1
answer
92k
views
How do I change frame size, preserving width (using ffmpeg)?
I'm new to this StackExchange site, and to using the FFmpeg encoder. I have a video that is 720x480 (3:2) that I would like to change to 720x406 (16:9) to match the other videos I have for a site. I ...
30
votes
2
answers
54k
views
Convert mp4 to webm without quality loss with ffmpeg
What is the best way to convert a mp4 file to webm without quality loss (using vp8 or vp9) with ffmpeg?
If I do ffmpeg -i in.mp4 out.webm the quality is very bad. I can specify a target bitrate via -...
26
votes
2
answers
23k
views
In Kdenlive, how to select an area for render?
In Kdenlive's render settings I can choose the option to render "selected zone".
How do I select the zone?
"Shift + left click" enables a box selection. However it only selects whole clips, so this ...
24
votes
9
answers
40k
views
Is there a way to pause and resume FFmpeg encoding?
I record a few hours of video footage every day, which I set in queue for encoding with ffmpeg. I use the veryslow preset with x265, so a single hour of video may take up to 20 hours or more to encode....
24
votes
2
answers
81k
views
How to use ffprobe to obtain certain information about mp4/h.264 files
I am but a lowly PHP developer that has been tasked with retrieving some basic information about 100's of thousands of video files. I've had some luck using ffmpeg and extracting the video bitrate, ...
24
votes
7
answers
6k
views
Does version control have a part in the video production workflow?
I'm a software developer and I'm also interested in photography (for four years) and video production (for a few months only).
■ In software development, there is an important rule every developer ...
24
votes
2
answers
83k
views
Is it possible to alter the playback *preview* speed?
Is it possible to change the speed of Premiere's playback of the video without altering the speed of the produced version? Even if I could play it only 1.5x faster, it would mean a lot of time saved ...
24
votes
4
answers
5k
views
What factors are important for DSLR lenses for shooting video?
I'm about to upgrade my DSLR camera from a Canon XSi (450D) to either a Canon 7D or T3i (600D). I'm largely interested in the video features of the camera. I have several mid/high-end lenses that I ...
21
votes
4
answers
22k
views
Render srt subtitles to video?
I have subtitles in .srt file format, and I need to render them on top of video file (prefereably mp4). I have tried handbrake and mediacoder so far, with no luck. What should I do?
20
votes
5
answers
38k
views
How to encode Apple ProRes on Windows or Linux?
Is it also possible to encode video with Apple ProRes on Windows and Linux?
20
votes
4
answers
3k
views
Why do weathermen and amateurs use green screens when professional movie makers use blue screens?
I've seen a lot of "low budget" green screen setups. However, when I watch things about professional filmmaking, it seems everyone is using blue screens instead. (e.g. I've seen Industrial Light and ...
20
votes
4
answers
48k
views
How can I convert .MTS file (AVCHD) to .mp4 by ffmpeg without re-encoding H264 video stream?
Note: I posted same question to stackoverflow a short time before, when I have not found this comunity yet. I repost this since the question is more suitable to this community.
1. What I tried
I ...
19
votes
7
answers
2k
views
Are there any mathematical advantages for higher sampling rates?
Given that most people can't hear so many frequencies above 20kHz anyways, I've never understood the exact arguments for using sampling rates above 48kHz. At 48kHz, I understand that it is easier to ...
19
votes
3
answers
64k
views
Why processor is "better" for encoding than GPU?
I was reading this article and I saw that a CPU is better for video compression than a GPU.
The article only says that happens because the processor can handle more complex algorithms than the GPU, ...
19
votes
5
answers
42k
views
Why does the color red always appear pixelated on TV and videos on the PC?
I hope this isn't off-topic. While technically about video production, it's not about a problem I am having.
Have you ever noticed on TV how the color red is always noticeably pixelated? It's the ...
19
votes
2
answers
44k
views
Is it possible to speed up a video using handbrake?
Is it possible to speed up a video using handbrake ?
I am looking for a software like handbrake to convert videos for faster playback. It should speed up the video up to 30x.
Is it possible with ...
19
votes
2
answers
20k
views
cutting with ffmpeg results in few seconds of black screen, how do i fix this?
i'm using this command to cut a segment from a video from command line
ffmpeg -i %1 -vcodec copy -acodec copy -ss %2 -t %3 %~n1_cut%~x1
and i call it like
cut.bat video.mp4 001:23:45:678 10
and as ...
18
votes
2
answers
29k
views
How to concatenate clips from the same video with ffmpeg
I have a long video with different scenes in it.
I want to extract and concatenate 2 scenes from the video (that do not start on an I-frame) using ffmpeg 2.1.4.
For argument, say I want 5 seconds ...
18
votes
1
answer
26k
views
Can I set the start number for image sequence output?
I am using ffmpeg to convert from video to an image sequence as follows:
ffmpeg -i video.webm image-%03d.png
The first image is labelled 001, but I want it to be labelled 098. Is it possible to set ...
18
votes
3
answers
55k
views
Encode settings for HTML5 background video
I want to create a website with a HTML5 video background.
I have a short 1080p mp4 clip that I want to use (20s). I intend to run the video in a letterbox format (5:2 ish), full screen behind the ...
18
votes
4
answers
16k
views
How do the super resolution filters in FFmpeg work?
I need to incorporate a small amount of 1080p HD shots in a 2160p 4K composition. I'm not impressed by default upscaling techniques like lanczos/bicubic/trilinear; it seems like my television does a ...
18
votes
5
answers
15k
views
How to identify HDR video?
I need to validate if a video file (HEVC encoded) is or is not an HDR video. I know that there are many HDR standards, but I did not find a way to identify it using mediainfo or ffprobe.
The need is ...
18
votes
3
answers
65k
views
Adobe Premiere - Restore Audio to A/V Clip After Deleting
Say I add a bunch of Audio/Video clips to a sequence, then delete all the audio (Alt-select it and delete); I work on it for some time, close Premiere, re-open.. etc.,
Is there any way to restore the ...
17
votes
7
answers
88k
views
Adobe Premiere Pro CC - Crop a video and export at the exact cropped size
I have a video that has 4 up-down-left-right black borders of different sizes.
I want to get rid of these black borders so the exported file has the exact size of the cropped area.
To do this, I ...
17
votes
6
answers
14k
views
Is there a video type for vector animation?
Is there a vector-based video type, preferably open-source, so that an animated clip could be produced using "rules" instead of pixel-compression?
This would mean lossless resolution-independent ...
17
votes
4
answers
53k
views
Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
I am using below command to push the video to Wowza server, since we are pushing raw H.264 video, the RTP packet does not have the timestamp, and we could observe audio video sync issue while playing ...
16
votes
4
answers
13k
views
ffmpeg: Create a black background video from audio, for Youtube upload
I have MP3 audio that I would like to turn into video, by joining the audio with a solid black background. I then want to upload the video to Youtube.
Using ffmpeg, I have tried this command, and a ...
16
votes
3
answers
23k
views
What is KeyInt and min-keyint and no-scenecut
I am absolutely new to video processing, I am building a video streaming site and worked with ffmpeg to generate the formats I need for ShakaPackager.
Sadly I don't understand some of the options ...
16
votes
1
answer
19k
views
ffmpeg: how to add several subtitle streams
I tried to add 2 .srt subtitles to a video, but the resulting file has only the first subtitle. This is the command I used:
ffmpeg -i $movie.mov -i $sub_en.srt -i $sub_de.srt \
-c:v copy -c:a copy \
-...