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.

Filter by
Sorted by
Tagged with
8
votes
2answers
13k views

Combine multiple videos as separate streams in one mkv file

So I have multiple videos of the same scenery from different angles. These are stored as separate files. Can I combine these as multiple video streams within one file? For example I know this is ...
8
votes
1answer
21k views

What CRF or settings I should choose for h265 in order to achieve a similiar quality of h264?

I'm doing some experiments with HEVC x265. I have a raw footage and the quality of details of h264 with same CRF setting looks better than h265. Shouldn't be the opposite? Maybe my setup isn't the ...
8
votes
4answers
4k views

Moving Crop in Video

I have an HD video of a speaker giving a lecture. I would like to resize the video by cropping each frame, but the cropping rectangle needs to be centered on the speaker's head as he moves around the ...
8
votes
1answer
2k views

Batch resize videos with “pan and scan” cropping

I am trying to prepare a collection of ~120 video clips to be played in VLC Player and projected on a low-res (1024x768) projector during a DIY electronic music event. The source clips are all super ...
8
votes
0answers
5k views

How to produce a zoom animation of a video source with ffmpeg?

I'd like to create a zoom-in animation over numerous frames of a video clip. I've tried a couple of approaches without much luck. ffmpeg -i test-10s.mp4 -vf "zoompan=z='zoom+0.001'" zoompan-10s.mp4 ...
8
votes
0answers
3k views

Using ffmpeg to cut videos with more precision than key frames allow

I'm trying to cut a video (a debate on TV) with FFmpeg without re-encoding, and I need to cut between 2 sentences a guy pronounce. I think the precise moment is between two keyframes, because whatever ...
7
votes
3answers
6k views

ffmpeg- What's the difference between “NN000/1000 fps” and “NN000/1001 fps”?

I'm trying to select the correct capture options for ffmpeg and I'm confused by this kind of listing: [decklink @ 00000000010564c0] 17 3840x2160 at 24000/1001 fps [decklink @ 00000000010564c0] ...
7
votes
2answers
927 views

How do I move (rearrange) the orientation of a video? Using ffmpeg

I want to crop the video at some position and move the part next to the part that wasn't cropped. (See image, it explains better)
7
votes
2answers
7k views

Add image under the video with ffmepg

I want to extend basic usage of watermark and put it under the video. That means. I have input video 720x480 and image 720x20. On output i want to have video 720x500 where video aspect is preserved ...
7
votes
1answer
7k views

How to encode for YouTube with ffmpeg?

I just read Recommended upload encoding settings article from official google support. I think this is the best settings for encoding my youtube videos. Can you help me find out how to encode that ...
7
votes
2answers
5k views

ffmpeg, first second of cut video part freezed

I use this to cut a part out of a mp4 file: ffmpeg -i input.mp4 -vcodec copy -acodec copy -ss 00:36:18 -to 00:39:50 output.mp4 It works good but the video image is always freezed in the beginning ...
7
votes
1answer
6k views

Apply custom lut via ffmpeg?

I'd like to batch convert some log footage as well as transform each clip into rec709 colorspace. Is there any way to apply a custom lut to the footage? If so, what's the correct way to do that?
7
votes
1answer
17k views

How to force ffmpeg to insert keyframe at first frame when downsampling a framerate of a video with x264 vcodec

I have a mpeg4 video at 25fps. This video contains just one static frame. I'm trying to downsample the frame rate to 1fps and convert the video to x246 (mp4). I ran the following ffmpeg command: ...
7
votes
1answer
6k views

How to display static image if the input stream ends using ffmpeg?

I am receiving a stream over the network with the following ffmpeg command: ffmpeg -i rtmp://server:port/input.stream -f flv rtmp://server2:port/output.stream When the input stream stalls, I want to ...
7
votes
1answer
8k views

How to trim a video with frame precision using ffmpeg?

I need to trim videos with a precise end frame, however, ffmpeg seems to cut the video at the nearest first key-frame. So I don't have enough control over the ending frame. I try to insert key-frame ...
7
votes
1answer
2k views

ffmpeg - specify channel layout flags

I have the below file which I am re-mapping the audio and trying to set the channel layout flags on a Quicktime Prores file, but can't seem to get it working. I can successfully re-map the audio (from ...
7
votes
4answers
378 views

How to detect whether a video is shaky

I need to stabilize a video only when the video is shaky. I have successfully stabilized a video using FFmpeg, and I do not need to stabilize all the videos, I only need to stabilize the videos ...
6
votes
2answers
6k views

Removing MP4 encoding information

Is it possible to remove certain information form a MP4 file? Specifically things like tagging and encoding dates, Writing library and application, Encoding settings... No client needs to know when I ...
6
votes
1answer
9k 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 \ -...
6
votes
3answers
15k views

How to extract MOOV atom/metadata from MP4 file?

Can one "dump"/extract the MOOV atom from an MP4 file? If so, how? Hoping for an obscure FFMPEG command. I need to be able to process/play a stream without searching for the MOOV atom over and over ...
6
votes
1answer
8k views

Crop video in ffmpeg without re-encoding

I have videos I want to split across multiple screens, so the solution I've found so far is to just crop the input video 4 times with ffmpeg (is this optimal? Is there some other way so I only need to ...
6
votes
1answer
6k views

ffmpeg - video with timer

I am currently working with the drawtext and drawbox filters to recreate a similar video appearance to what is shown below in the image. I am trying to see of a possible ways to add a count down timer ...
6
votes
1answer
7k views

ffmpeg concat introduces a/v sync problem

I have one 2-hour video file and want to add a 10-second title sequence to its start. The long file has perfect a/v sync from start to finish. However, when I use ffmpeg -f concat -i mylist.txt -c ...
6
votes
3answers
20k 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 ...
6
votes
1answer
9k views

How to trim out black frames with ffmpeg on windows?

I have a short video and I'm trying to cut-out all the blank or near blank frames. This isn't a case where I care about the breaks in a video that could be dark. I literally want all near black-...
6
votes
2answers
8k views

How to add images at the end of an existing movie?

I'd like to add some images at the end of a mp4 file via ffmpeg: Any help would be greatly appreciated.
6
votes
2answers
7k views

ffmpeg not creating exact duration clip

I am trying to create small clips from video file using ffmpeg3. The type of clip and video will be same i.e. mp4 to mp4 only. Below is command, which is being used for same. ffmpeg -ss 00:07:00.000 -...
6
votes
2answers
4k 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 ...
6
votes
2answers
7k views

what graphics card features effect NVIDIA NVENC hardware encoding speed?

I have a web project I am working on that requires transcoding of multiple short video clips (6-10 seconds) uploaded by users into a web friendly H.264 format on my linux server. I have been able to ...
6
votes
1answer
2k views

Converting GIMP curves files to Photoshop (.acv) for ffmpeg

I've seen a number of scripts for converting Photoshop .asv .acv files to a GIMP friendly format. Does anyone know if such a tool exists to do the opposite, i.e. converting a GIMP curve file to .asv ....
6
votes
1answer
2k views

How do I speedup encoding of a video that has just 1 static frame with ffmpeg and lib264 library?

I'm making mp4 (libx264 + aac) videos that have just one static image throughout the whole video. It's basically a narrated text with a nice background. The question I've is how could I speed up ...
5
votes
2answers
11k views

Concate two video file with fade effect with ffmpeg in linux

is there anyway to concate two video file with fade effect with ffmpeg in linux? something like this: ffmpeg -f concat -i input.txt -c copy "--with:fade:out-in" output.ogg
5
votes
3answers
2k 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 ...
5
votes
2answers
5k views

Why does quality degrade so much if just cutting video with ffmpeg?

I have tried to cut video with the following command ffmpeg -i "Вспомнить все (Total Recall, 1990).avi" -ss 01:07:29 -to 01:08:05 fight.avi Output: Input #0, avi, from '╨Т╤Б╨┐╨╛╨╝╨╜╨╕╤В╤М ╨▓╤Б╨╡ (...
5
votes
2answers
1k views

FFmpeg graph2dot tool

In FFmpeg Filters Documentation is the section 3 graph2dot is this about graph2dot program: The graph2dot program included in the FFmpeg tools directory can be used to parse a filtergraph ...
5
votes
3answers
37k views

How to download and encode a video from a MPD manifest?

I can watch videos on a website with MPEG-DASH technology. I can obtain the video's manifest.mpd file from the website. (I am not sure whether the file contains any user credentials or not, so I am ...
5
votes
1answer
12k views

FFmpeg overlaying and blending videos

I am trying to use FFmpeg to overlay one video on top of the other using an additive blend. One video is the actual video I want to transcode, the other is a ~10 second long video I want to put into ...
5
votes
1answer
7k views

ffmpeg: how to convert to DNxHR in Windows 10?

I have installed ffmpeg version 3.2.2 from the ffmpeg.org download page. When I enter ffmpeg formats, I see dnxhd but not dnxhr. What do I need to do to be able to manipulate dnxhr? I have ...
5
votes
4answers
15k views

Batch conversion into a new folder with ffmpeg

I'm trying to batch encode 45 video files, and copy the encoded files into an existing subfolder called "encode" I've used the suggested code from this question (https://stackoverflow.com/questions/...
5
votes
2answers
2k views

restart ffmpeg job from failure

Is there a common technique or some sort of strategy for restarting a failed transcoding job from where it had left off when it crashed (or stopped for whatever reason)? For example, if I have a 2 ...
5
votes
1answer
3k views

Difference between duration_ts and duration in ffprobe output?

I am relatively a beginner in ffmpeg and video production and was trying to extract duration of a video using ffprobe, using the following command: ffprobe -loglevel error -select_streams v -...
5
votes
1answer
2k views

Digitize a VHS tape with FFmpeg and get a live preview

Digitize a VHS tape with FFmpeg On this thread, I found a perfect command to digitize a VHS tape with FFmpeg using a USB video grabber. All good with that; it works like a charm. Acceptable bitrate, ...
5
votes
1answer
11k views

Container format requires global headers

Using this FFmpeg: ffmpeg-20160127-git-9079e99 With this file, if I run this command: ffmpeg -i Miaow-02-Hidden.m4a -c copy outfile.m4a I get this message: [ipod @ 0000000000694500] Codec for ...
5
votes
3answers
4k views

drop similar frames

I'd like to record a very long video from webcam which will be mostly the same. I'd like to drop intermediate frames that are very similar to each other to save on filesize and also make it easier to ...
5
votes
2answers
7k views

NVENC_HEVC Encoding making my files larger

I got a new Nvidia GPU to speed up my video encoding. I am working with x264 files to x265 and wanted to go faster. Using the library libx265 I am getting about 85fps when working on a file that is ...
5
votes
2answers
2k views

Add black (or other color) padding when doing vstack (or hstack)

I am using the following filter_complex to put 2 videos of resolution 320 x 240, one right next to the other: -filter_complex "[v1][v2]hstack=inputs=2[videoout]" This works great, but now I was ...
5
votes
1answer
300 views

Top and tail GoPro video based on volume

I'm thinking of using ffmpeg to automate a simple video task. I have lots of action videos that go like this, quiet/boring -> loud/exciting -> quiet/boring. Allowing for a few seconds at the start ...
5
votes
1answer
5k views

Remove flickering due to artificial light with ffmpeg

I have video footage shot at shutter speeds of 1/30s under artificial light here in Europe where the AC is 50Hz. Flicker occurs -- obviously I should have used 1/25s or 1/50s but I didn't, and want to ...
5
votes
1answer
880 views

ffmpeg flash frames last still image in concat sequence

I want to concat several pictures into a video. Each picture must have its own duration. I use the most recent windows build for ffmpeg (20170204) and the guide from http://trac.ffmpeg.org/wiki/...
5
votes
1answer
2k views

Finding the place where a video loops

I got a video of a fireplace, the video is 3 hours long. I can see that it is looping as the logs keep burning forever. My guess is that it is looping in the region of 5-15minutes. Is there some ...

1
2
3 4 5
34