Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

8
votes
0answers
3k 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 ...
5
votes
0answers
2k 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 ...
4
votes
0answers
11k views

What's the best way to convert mp4 to avi?

I'm trying to convert an mp4 file to avi. I've tried this basic ffmpeg script: ffmpeg -i inputFile.mp4 outputFile.avi It works, but the encoded avi file is very pixelated and does not work with ...
4
votes
0answers
1k views

Getting FFMPEG to stream video+audio through RTMP

Can someone help me with this : The video streams fine but I can't hear any audio. I just hear random click sounds.Please help : ffmpeg -f video4linux2 -channel 1 -i /dev/video0 -f alsa -i plughw:...
4
votes
0answers
1k views

Extract the frame (in image format) at exactly every minute (or second) from a video (by ffmpeg)

Motivation: I would like to seek the frame, then take high quality and exact time screenshots (images) from a video. The video is length is 00:48:43.71 and 23.98 fps (we can think it is 24 fps, isn't ...
3
votes
0answers
1k views

Nginx RTMP didn't accept HEVC h265 input format

I'm trying to created live event broadcast on my VPS server , to make the audience able watch my broadcast I use Nginx RTMP that's produce link at this format http://192.168.1.5:8080/hls/live.m3u8 ...
3
votes
0answers
833 views

How to use ffmpeg to send video stream to another server that gives exactly same quality as manually copying the file to that server?

I tried doing this ffmpeg -i tcp://192.168.1.41:5000?listen -c copy out.avi and have another client publish to this server using ffmpeg -i 1.avi -map 0 -c copy -f mjpeg tcp://192.168.1.41:5000 ...
3
votes
0answers
158 views

What do the options “full chroma interpolation” and “full chroma input” do in video scaling? [ffmpeg]

In ffmpeg, there are options full_chroma_int and full_chroma_inp that can be passed to the video scaling filter. These options are sometimes present in command line examples for the resizing filter, ...
3
votes
0answers
1k views

FFmpeg map_channel and video

I have a file that has the following format (note the number of tracks and channels within each track): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'a.mov': Metadata: major_brand : qt ...
3
votes
0answers
894 views

Overlay animated watermark multiple times

So, I have this animated watermark (MOV w/alpha) that I want to overlay on top of a video. I want to do it multiple times, so once in the beginning, once in the middle and finally towards the end. I'd ...
2
votes
0answers
24 views

help with ffmpeg quality check script

I am trying to write a script that compares a version of a video file to a master file that has been quality checked and outputs any frames that differ from the master as .jpeg files with timecode ...
2
votes
0answers
81 views

convert a normal video file into an SBS video in ffmpeg

I am looking to convert a file with ffmpeg into a side-by-side video without cropping or resizing. can you give me an example?
2
votes
0answers
622 views

ffmpeg - Drawtext Fade Out

Here is a new question on drawtext; actually, my drawtexts move from the left to right and from right to left, depending on the order ( 1,3,5... from left, 2,4,6 from right). Each drawtext has a box; ...
2
votes
0answers
356 views

ffmpeg latency related to buffer not flushed

I am using ffmpeg (server-side) to create a UDP video stream which is then sent over the internet. When receiving the stream and playing it back (client-side) the latency is constant and about 1 ...
2
votes
0answers
170 views

FFMPEG drops end frames when converting a unmatted alpha .mov to .webm using ffmpeg but converts fine when alpha is premultiplied?

I am using ffmpeg to convert a straight alpha .mov to a webm so I can layer videos on top of one another for a web game however when converted the duration is the right length but the frames freeze ...
2
votes
0answers
2k views

How to Merge video files having different aspect ratio and make the narrow one padded

I am using below command to merge two videos complexCommand = new String[]{"-y", "-i", file1.toString(), "-i", file2.toString(), "-strict", "experimental", "-filter_complex", "[0:v]...
2
votes
0answers
2k views

Slow ffmpeg h264 performance software and NVENC

Platform: x79 i7 3970x @4.3GHz 64gb, GTX 1060 6gb, Windows 10. I have a bunch of jpegs I need to scale and encode. ffmpeg -f concat -safe 0 -i file.list -vf scale=1920:1440 -c:v h264 -b:v 5M name....
2
votes
0answers
2k views

ffmpeg - thread_queue_size

What is the exact reason of this warning in ffmpeg Thread message queue blocking; consider raising the thread_queue_size option (current value: 8) Im sending through the pipe yuv420 video to ffmpeg ...
2
votes
0answers
753 views

gain the highest quality with H264 at a certain bit rate

I have encoded my videos using ffmpeg and H264, and this is my ffmpeg command (2 pass encoding): ffmpeg -y -i Edited\ Clips/arsenalVScristalPalas.mp4 -movflags faststart -c:v libx264 -x264opts '...
2
votes
0answers
5k 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 -...
2
votes
0answers
2k views

Desktop grabbing with FFmpeg at 60 fps using NVENC codec

I'm having trouble recording my desktop at 60FPS using the latest Windows compiled FFmpeg with NVENC codec. Metadata says the file is 60 fps but when I play it, I can see clearly see it is not 60FPS. ...
2
votes
0answers
627 views

ffmpeg: Quickly get frames every n seconds from a remote file, downloading as little data as possible

I have a remote MP4 file that is short (1 minute) but large (~450mb), something like this: https://s3-eu-west-1.amazonaws.com/worm-web-assets-prod/GOPR7775.MP4 I'd like to extract frames every n ...
2
votes
0answers
72 views

ffmpeg h264 crashes IE intermittently

First for moderators, this is relevant because I have incorporated ffmpeg in a program to render videos needed for a web-app. My problem is that the videos I render randomly crash IE 11. Other ...
2
votes
0answers
829 views

FFMpeg encode with original codec

I know about the -c copy switch with ffmpeg, but this does not work with filters as it means "don't re-encode". But what I want is to have my output use the same stream formats as my input. So if I ...
2
votes
0answers
3k views

Fade in and Fade out drawtext and drawbox ffmpeg

I am using FFmpeg on andriod and the following is the configuration : ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 7.0.0 (clang-700.1.76) ...
2
votes
0answers
1k views

Is there a simple explanation of x264 encoding parameters?

So, x264 is still the most popular (free) H.264 encoder out there. But it is also still considered ridiculously cryptic as well. There are tons of switches and options in the encoder that allow you to ...
2
votes
0answers
80 views

How to make batch ffmpeg with this codes?

How i batch render with ffmpeg with this code on windows? Codes work well. ffmpeg -y -loop 1 -i background_image.png -i mainmovie.mov -filter_complex "[0:v]setpts=PTS-STARTPTS[V1]; [1:v]setpts=PTS-...
2
votes
0answers
305 views

Unexpected filtering result with multiple outputs

Video capture device cycling through 4 cameras every 4 seconds. Want to split the video into four streams to reduce the amount of key frames, save internet traffic and soothe the motion detector. ...
2
votes
0answers
3k views

Fast encoding with ffmpeg

I know about presets but faster presets lose the video quality. Are there any hardware requirements I need to consider? Or are there any settings that I need to tweak? And lastly where do I place the -...
2
votes
0answers
244 views

ffmpeg to cut intro and replace with new intro

I am using ffmpeg to cut out the intro in my video and replace it with a new intro. I run into a buffer underflow error when I try this. The commands I'm using are: ffmpeg -i LegalFinancialPlanning....
2
votes
0answers
75 views

Converting videos and time accuracy; pitfalls and solutions

I need to compress some videos about laboratory experiments which contain motions of some objects. Since in analysis time intervalls on the video are needed as accurate as the camera captured them, ...
2
votes
0answers
251 views

HyperCam2 video out of sync, ffmpeg throws video out of bounds

I've recorded my over 2h presentation using HyperCam2 but output video is totally out of sync with audio. It looks like video is 2x faster than audio so I have 'Thanks for watching' slide in the ...
2
votes
0answers
282 views

Is there a way? multiple images to looping video via ffmpeg?

I want to use ffmpeg to create a 15 second looping video from images for posting to instagram. For instance: Camera takes 3 pictures Each image plays for 2 frames (3 images = 6 frames) After 6 ...
2
votes
0answers
103 views

Set ipad compatible thumbs for mp4 videos based on a frame of the video with command line

I have a directory of 100 mp4 files. All are working well on my ipad but most of them do not have a working thumb. I want to generate these thumbs with a command line command (on macosx) based on a ...
2
votes
0answers
187 views

segment does not contain sync frame

Whenever I split a video using Apple's mediafilesegmenter, using the following command: medifilesegmenter video.ts -t 10. I get the following error for each segment except the first: segment does not ...
1
vote
0answers
14 views

Star Trek Continues: ffmeg dvdsub: overlapping subtitles

So I've downloaded the free fan-created Star Trek Continues Blue-Ray ISO for Episodes 1-3 and I'm trying to convert the FHD 1920x1080 to SD 960x540 to be able to watch on my phone: nice --adjustment=...
1
vote
0answers
35 views

MP4 Video created with ffmpeg C++ api does not show in OSX

I am writing a MP4 video from scratch using the C++ API (libav* 4.1.1). This video can be played back just fine using ffplay or VLC. But the Finder Preview and the Quicktime Player on OSX (10.13 and ...
1
vote
0answers
21 views

Ffmpeg recording with gdigrab will drop frame

I write a code to use gdigrab to capture screen and use dshow to capture audio. But no matter how I set the frame rate to gdigrab, the acquisition frame rate is 10 frames. I thought maybe my ...
1
vote
0answers
30 views

ffmpeg - How to crop Harry Potter moving newspaper style video?

The Harry Potter moving newspaper is like a video overlay on a static background. Here is an example: . the video starting from 1min, 17sec. HOWTO crop only the video ...
1
vote
0answers
20 views

FFmpeg: Cutting 3 seconds at the beginning of a video leaves 5 seconds blank

I have an MKV video, and want to cut the first 3 seconds. I tried with FFmpeg: ffmpeg -i /input.mkv -ss 00:00:3.0 -c copy -t 00:09:58.0 output.mkv But the result (when played in VLC) is that there ...
1
vote
0answers
80 views

What's wrong with VLC seeking and/or MKV created by ffmpeg?

I have creeated a video using FFmpeg. It is a result of putting 4 videos together, tiled, using -filter_complex with overlays. Following the how-to here, I have it created as MKV. When playing this ...
1
vote
0answers
52 views

Image Sequence input missing frames FFMPEG

Is it possible for ffmpeg to parse an input image sequence with missing frames? I was hoping to interpolate them or create a variable framerate(or a CCFR duplicate frame) video while having the ...
1
vote
0answers
67 views

ffmpeg: av1 getting worse results than hevc (h265)

I converted an avc (h264) file to an hevc (h265) file and an av1 file. Relative to the hevc (h265) file, the av1 file is far larger in size, and the av1 file has worse psnr and ssim results too. ...
1
vote
0answers
27 views

Processing different sections of video frames with FFMPEG

I'm trying to process frames of video in FFMPEG; while processing, I'll crop and resize various areas of the frames in separate streams so that I can perform specific processing. I've done something ...
1
vote
0answers
50 views

Corrupt frames: what to do

I’ve discovered some corrupt frames in the footage I am working on (.mxf format, shot on Sony PXW 70, I only have access to the files copied to the hard drive, and the broken frames are in the ...
1
vote
0answers
31 views

ffmpeg - switch between two streams from /dev/video* and record to disk

I'm trying to capture two webcams on /dev/video0 and /dev/video1 and write the live feed to disk. I'd like to be able to switch between the two sources every 10 seconds so the resulting video on disk ...
1
vote
0answers
39 views

ffmpeg video compression : Compress captured video being before saving to file

Is there a way one can compress captured video input before saving to file? I have raspberry pi that I am using to record youtube videos. 1-2 min video takes over a Gb of space. I cant compress the ...
1
vote
0answers
70 views

FFmpeg: Align Video & Audio of Desktop Capture

I am using FFmpeg's built-in gdigrab & dshow to record the display & audio of my system. I am encoding to uncompressed H.264/AVC video & uncompressed PCM/WAV audio. I had been having two ...
1
vote
0answers
45 views

FFmpeg spliting video without re-encode

Using the recent ffmpeg I am trying to split an arbitrary video to 10 equal parts of 1 seconds every given interval. The Audio is not important to me and should not be in the output. I used ffmpeg -...
1
vote
0answers
25 views

Decrease Output file size, without loss in quality

Currently I am using: ffmpeg -hwaccel cuvid -i input -c:v hevc_nvenc -qp 1 output I want to know how to compress the file but lossless.