All Questions

Filter by
Sorted by
Tagged with
341 votes
1 answer
459k 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 ...
  • 3,519
98 votes
6 answers
221k 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 ...
  • 1,091
67 votes
2 answers
142k 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 ...
  • 673
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, ...
  • 651
42 votes
7 answers
46k 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 ...
  • 521
42 votes
1 answer
46k 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 ...
42 votes
3 answers
83k 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 ...
41 votes
3 answers
142k 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 ...
  • 1,424
40 votes
6 answers
45k 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 ...
39 votes
3 answers
74k 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 ...
  • 1,463
38 votes
6 answers
55k 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, ...
  • 517
35 votes
2 answers
213k 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 ...
  • 2,034
34 votes
4 answers
87k 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 ...
  • 441
34 votes
3 answers
42k 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 ...
33 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 ...
  • 661
32 votes
3 answers
44k 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/...
  • 651
32 votes
4 answers
51k 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
1 answer
88k 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 ...
  • 423
31 votes
2 answers
26k 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 ...
  • 671
31 votes
6 answers
71k 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 ...
30 votes
5 answers
132k 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 ...
  • 403
28 votes
1 answer
85k 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) ...
  • 383
25 votes
2 answers
20k 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 ...
  • 931
25 votes
2 answers
42k 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 -...
  • 421
24 votes
9 answers
34k 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....
  • 1,463
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 ...
  • 672
23 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 ...
22 votes
2 answers
75k 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, ...
  • 302
22 votes
2 answers
75k 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 ...
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
36k views

How to encode Apple ProRes on Windows or Linux?

Is it also possible to encode video with Apple ProRes on Windows and Linux?
  • 2,279
20 votes
4 answers
47k 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 ...
  • 343
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
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 ...
19 votes
5 answers
39k 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 ...
18 votes
2 answers
28k 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 ...
  • 183
18 votes
3 answers
63k 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 ...
  • 283
17 votes
3 answers
62k 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, ...
17 votes
7 answers
84k 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 ...
  • 283
17 votes
3 answers
54k 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 ...
17 votes
5 answers
10k 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 ...
16 votes
6 answers
13k 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 ...
  • 671
16 votes
1 answer
21k 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 ...
16 votes
4 answers
9k 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 ...
  • 273
16 votes
2 answers
37k 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 ...
16 votes
2 answers
16k 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 ...
  • 161
16 votes
2 answers
20k views

Why does all timecode start at 1 hour? (01:00:00:00)

Is there a reason timecode in Final Cut 7 and timecode in Pro Tools starts at the 1 hour mark? eg. 01:00:00:00? As opposed to all zeros? Some old broadcast standard that I don't know about?
  • 313
16 votes
1 answer
498 views

What is this strange second camera?

I don't know is this is the correct place to ask this but ... I've watched several "making of" of current movies and noticed a thing i cannot explain. What is this strange "secondary" camera you ...
's user avatar
15 votes
3 answers
55k views

encoding 4:2:2 in 10-bit with libx264

I believe that libx264 is now capable of doing 10-bit 4:2:2 encodings, but I can't seem to get it to work. I'm using ffmpeg (info below), and I've also tried the x264 encoder directly. I've tried ...
  • 13.5k
15 votes
3 answers
16k views

H.264 or VP9 for encoding for YouTube?

I make short films which I distribute through YouTube. I know YouTube uses VP9 for streaming, but YouTube still recommends uploading with h.264. It makes more sense to me to upload in as similar a ...

15 30 50 per page
1
2 3 4 5
175