Questions tagged [video]
Questions about video editing, streaming, conversion, capturing or video output. Use a more specific tag if possible.
6,229
questions
599
votes
9
answers
832k
views
Using ffmpeg to cut up video
I am using ffmpeg to cut out a section of a large file like this:
ffmpeg -i input.wmv -ss 60 -t 60 -acodec copy -vcodec copy output.wmv
The -ss part works fine but the -t is ignored. It correctly ...
313
votes
16
answers
214k
views
Combine one image + one audio file to make one video using FFmpeg
This should be pretty trivial, but I can't find a way to get it to work.
I want FFmpeg to take one JPEG image and an audio file as input and generate a video file of the same duration as the audio ...
191
votes
3
answers
234k
views
How do I trim a video using Handbrake?
I can't seem to figure out the solution to a very simple problem. I want to trim a video in Handbrake and keep the video as is (resolution, encoding, etc), just chop off the first few seconds, but I ...
176
votes
2
answers
126k
views
ffmpeg - replace audio in video
How to replace the audio in a video file using an audio file using ffmpeg?
I imagine the command looks like:
ffmpeg -i v.mp4 -i a.wav -MAGIC video-new.mp4
This is very similar to How to replace an ...
162
votes
6
answers
251k
views
How to retrieve video file information from command line under Linux?
I'd like to see from command line all informations pertaining to a given video file, including length, quality, bitrate, resolution, audio and video formats, number and language of audio streams and ...
113
votes
8
answers
249k
views
How to extract one frame of a video every N seconds to an image?
How can I convert a video file to a sequence of images, for example one frame every N seconds. Can mplayer or ffmpeg do this? I have used MPlayer to grab screenshots manually but I would like to ...
105
votes
4
answers
30k
views
What is a Codec (e.g. DivX?), and how does it differ from a File Format (e.g. MPG)?
I'm so confused... what is the difference between an audio/video codec (which apparently is a shorthand for "encoder/decoder", kind of like how "modem" is really "modulator/demodulator") and an audio/...
105
votes
6
answers
18k
views
Fake broken pixel on Windows 10
A couple of months ago I discovered that I have broken pixel on my laptop screen:
The weirdness of it is that it isn't a broken pixel at all, because as you can see I'm able to screenshot it.
The ...
102
votes
3
answers
240k
views
Converting video from 1080p to 720p with smallest quality loss using ffmpeg
I stack with my high quality movie: 1080p with 60fps. The trouble is lags while playing.
I tried to convert it to 720p with ffmpeg:
ffmpeg -i MyMovie.mkv -r 60 -s hd720 MyMovie_720p.mkv
But I ...
98
votes
9
answers
145k
views
Can HandBrake flip/rotate a video?
I'd like to use HandBrake to compress some video that was taken via a camera that was mounted upside down.
I found a reference to a command-line rotate option, but I can't find it in the GUI.
Am I ...
86
votes
7
answers
118k
views
How do I use ffmpeg to get the video resolution?
I am trying to get resolution of the video with the following command:
ffmpeg -i filename.mp4
I get a long output, but I need just the width and height for my bash script. How should I filter out ...
86
votes
8
answers
46k
views
What are the differences of watching a 1080p and a 720p version of the same media on a 720p screen?
Say I have 1280x720 pixels on my screen and the current resolution is set to 1280x720 as well. What are the differences between the 1080p version and the 720p version of the same media? Is it ...
81
votes
16
answers
226k
views
How can I combine 30,000 images into a timelapse movie?
I have taken 30,000 still images that I want to combine into a timelapse movie. I have tried QuickTime Pro, TimeLapse 3, and Windows Movie Maker, but with such a huge amount of images, each of the ...
80
votes
3
answers
94k
views
FFMPEG Splitting MP4 with Same Quality
I have one large MP4 file. I am attempting to split it into smaller files.
ffmpeg -i largefile.mp4 -sameq -ss 00:00:00 -t 00:50:00 smallfile.mp4
I thought using -sameq would keep the same quality ...
79
votes
1
answer
128k
views
Add audio to video using FFmpeg
I’m trying to add sound to a video using FFmpeg, but for some reason, when I play the resulting file, it doesn't have any sound. I also tried doing it with an aac audio file, as well as leaving out -...
77
votes
5
answers
126k
views
How to block/disable all videos from automatically loading in Chrome?
Many sites now have auto-playing or automatically streaming videos: embedded in news pages, down side bars promoting other content, and some sites even have massive honking-great purely decorative ...
74
votes
6
answers
142k
views
How to open and repair an m4v or mp4 video file?
Yesterday I was filming a scene with my phone but suddenly the application crashed and when I try to open the m4v generated it says that is corrupted.
I have downloaded the video files (around 36MB) ...
72
votes
7
answers
127k
views
What is the correct way to fix keyframes in FFmpeg for DASH?
When conditioning a stream for DASH playback, random access points must be at the exact same source stream time in all streams. The usual way to do this is to force a fixed frame rate and fixed GOP ...
70
votes
1
answer
8k
views
Why does FFmpeg choose 10+20+20 ms instead of an even 16 ms for 60 fps GIF images?
I have a short 60 fps video which I'd like to turn into a GIF file. I run
ffmpeg -i foo.flv foo.gif
and it produces a GIF file. Great!
The only problem is that the motion in the produced GIF video ...
69
votes
2
answers
17k
views
What does Matroska have which WebM doesn't, that made the differentiation necessary?
I've read that WebM is essentially a subset of the Matroska format. What does Matroska support that WebM doesn't, which necessitated "christening" a new format rather than just saying "...
68
votes
3
answers
72k
views
Why does preset "veryfast" in FFmpeg generate the most compressed file compared to all other presets?
The FFmpeg wiki says that the best compression rate is by preset "veryslow".
But when I am trying it with my video then preset veryfast provides the best compression in my case.
The following is the ...
68
votes
3
answers
12k
views
How do ultra-high-frame-rate cameras write so fast?
Recording at 1080p and 100,000 FPS for 1 second in the ProRes 422 codec uses up 73.2 gigabytes of storage. (SOURCE)
How do ultra-high-speed cameras write to SD cards at such quick speeds, like 580.56 ...
60
votes
3
answers
108k
views
Compare two video files to find out which has best quality
Suppose I have same video material encoded in two (or more) files. I'd like to run some utility on them which groundly pointed out which file is "best" in quality. "Groundly" means that I'd like to ...
57
votes
1
answer
50k
views
Why can't Quicktime play a movie file encoded by FFmpeg? [duplicate]
When I try to open a movie I just created with the command:
ffmpeg -pattern_type glob -i '*.JPG' -s 640x480 movie.mp4
I get an error from QuickTime:
The document “movie.mp4” could not be opened.
...
56
votes
8
answers
216k
views
How can I merge two mp4 files without losing quality?
I have two high-quality mp4 files, which are of two parts of the same show.
I want to merge them together into 1 file, and I usually use VirtualDub to merge my files... But it doesn't seem to support ...
56
votes
1
answer
29k
views
Why is YouTube buffering/loading behavior so horrible in Chrome?
I have been suffering from this for months, possibly even years, and I still don't have the slightest clue about the cause.
Let's say I open a video on YouTube in Chrome, like Jamie Hyneman's ...
55
votes
5
answers
60k
views
What is the difference between 1080p, 1080P and 1080i?
Many times, I have seen resolution of 1080p and I know that it means 1080 pixels but I also have seen specifications on some HDTVs to be 1080i. So, I want to know the exact difference between them and ...
55
votes
5
answers
95k
views
Is it possible to use ffmpeg to trim off X seconds from the beginning of a video with an unspecified length?
I need to trim the just the first 1 or 2 seconds off of a series of FLV recordings of varying, unspecified lengths. I've found plenty of resources for extracting a specified duration from a video (e.g....
53
votes
5
answers
167k
views
Getting the video frame number in VLC
I'm running VLC 2.0.5 on Mac OS X 10.6.8.
I have a .mpg video paused, and I would like to know the frame number for this moment in the video. Is there a way to reveal that in VLC?
P.S. I scrubbed ...
52
votes
4
answers
52k
views
How can I get the length of a video file from the console?
Suppose we have a video file some_video.
How can I get its length from a shell script (with mplayer/transcode/gstreamer/vlc/ffmpeg/whatever)?
VIDEO_LENGTH_IN_SECONDS=`ffmpeg .... -i some_video ... | ...
52
votes
6
answers
340k
views
How do I rotate video (MOV) file on Windows?
I recorded a video (on iPhone) in portrait mode. Now I need to rotate it. Right now I have a MOV file. I'm using Windows. What program can I use to rotate and save this video without losing quality?
51
votes
11
answers
93k
views
How do I get the number of frames in a video on the linux command line?
I have a video file and I want to get the number of video frames that are in it. I can use ffmpeg to get the length of the video and the FPS. However I can't see anything obvious for the total number ...
48
votes
2
answers
52k
views
Create video with 5 images with fadeIn/out effect in ffmpeg
With 5 images I have to create a video of 60 seconds in ffmpeg, each image has to display for 15 seconds. after 15 seconds, first image has to fade out and 2nd image has to fade in, after that 2nd ...
48
votes
6
answers
87k
views
Reduce Generated GIF Size Using FFMPEG
I'm developing android application that converts mp4 files into gifs using ffmpeg.
Problem is that generated gifs are huge in size. And another problem is that I can't use anything else than ffmpeg(e....
47
votes
2
answers
95k
views
How to extract a frame out of a video using ffmpeg
I have a video and I want to extract 35-th frame out of this video.
I want it to be a png image if possible.
I know there are a lot of questions like this, but I could not find a solution that was ...
46
votes
4
answers
41k
views
FFmpeg - Apply blur over face
I'm trying to blur a portion of a video using FFmpeg (specifically to blur a face).
I have been trying to use a combination of timeline editing and the various bluring filters, but I cannot find a ...
45
votes
7
answers
65k
views
crossfade between 2 videos using ffmpeg
I've been trying to achieve a crossfade transition between 2 video clips using ffmpeg but have failed so far. I'm new to ffmpeg and am mostly relying on tweaking what I can find in the documentation ...
45
votes
7
answers
351k
views
How to find the stream behind a Flash player
I am watching a Flash stream. I can watch the same stream in two different players (set up by someone else), but I don't like any of them.
Is there a way I can find/get/extract the direct link to the ...
44
votes
3
answers
96k
views
How to add and remove subtitles in an MKV file?
I have a good quality MKV file that has several subtitle options. I want to add an additional subtitle file to the list. I'm using OSX.
Some search online led me to use video converters, and ...
44
votes
5
answers
67k
views
Joining H264 *without* re-encoding
I have two halves of a single show in two .MP4 files, encoded in H264. I would like to join them without re-encoding.
Is this possible?
I managed to create a joined video as a Quicktime file (.mov) ...
43
votes
2
answers
78k
views
convert .mov video to .mp4 with ffmpeg
I am trying to convert a .mov video to .mp4 with ffmpeg:
ffmpeg -i ~/Desktop/Sample.mov ~/Desktop/Sample.mp4
This doesn't work though, and when I try to open the produced video in quicktime it tells ...
43
votes
2
answers
95k
views
Repairing corrupt MP4
I took a video from my Android phone (Sony Xperia P, if you need to know), and before I could stop recording it, the phone memory got full and the phone got hanged too. I rebooted the phone, the video ...
40
votes
3
answers
54k
views
How to create an uncompressed AVI from a series of 1000's of PNG images using FFMPEG
How can I create an uncompressed AVI from a series of 1000's of PNG images using FFMPEG?
I used this command to convert an input.avi file to a series of PNG frames:
ffmpeg -y -i input.avi -an -...
39
votes
4
answers
222k
views
Is there an equalizer for windows that works regardles of audio/video player [closed]
I'm tired of having to tweak the audio on every media application I have installed.
Is there an app that will sit between any media application and my sound-card so that I can set audio levels and ...
38
votes
4
answers
275k
views
Download video from Microsoft Stream
I'd like to download video from Microsoft Teams, or better yet, from Microsoft Stream. I read that this function is available only for the owner.
The problem is the following: from tomorrow my ...
37
votes
13
answers
55k
views
In Google Chrome on Linux, where is the flv if not in /tmp?
I like to keep videos because
I like buffering them and then playing them back-to-back in my media player,
I want to be able to stop/restart my browser without losing all the buffered video, and
...
34
votes
4
answers
30k
views
Accurately cut video files from command line
I'm having trouble finding a cli application that can take a video file (avi, mkv, and mp4 preferably) and cut out very short clips (2-6 seconds) with precision time accuracy. I've tried ffmpeg, ...
34
votes
10
answers
52k
views
How can I disable HTML5 content in popular browsers like Firefox and Chrome?
The bad thing about Flash video was that it required a third-party plugin to play the content. The good thing was I could select which content to play; using the click-to-play feature in Firefox and ...
33
votes
3
answers
25k
views
Is it possible to speed up video with audio using ffmpeg, without changing audio pitch?
Is there a relatively simple way to speed up a video (mp4, with aac encoded audio), by say "x1.25" or "x1.3" while keeping the original audio-video sync, but also retaining the original pitch of the ...
33
votes
5
answers
54k
views
Change framerate in ffmpeg without reencoding
I have a mkv (h264) video that is 23.976 fps (24000/1001) but I want to convert it to 25fps without reencoding and loosing quality.
I know mkvmerge can do it ( with option --default-duration '0:25fps')...