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.

594 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
5
votes
1answer
1k views

Largest input image size when encoding a video?

I got a bunch of really large 16 bit videos, approaching 65535×65535 pixels in size. These are essentially high quality timelapse panoramas. I want to convert them to a 7680×4320 movie (8K UHD, 8 bit)....
4
votes
1answer
16k views

Howto Repaire or fix the duration of a mp4 video

I'm having a film that's ffmpeg and other progs claims to be 07:03:52 long, but the real playtime is actually more like 2:35:00 ffprobe video.mp4 ffprobe version 3.0.2 Copyright (c) 2007-2016 the ...
4
votes
0answers
2k 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:2,0 ...
4
votes
0answers
2k 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 ...
4
votes
0answers
2k 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
6k views

moov atom not found

I downloaded this video using youtube-dl's HLS downloader. The video was being HLS streamed using AES-128. Even though I could view it perfectly fine when it was being streamed in the browser, VLC ...
3
votes
0answers
3k 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
2k 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
1k views

Recording for Youtube: ffmpeg Thread message queue blocked

I was recording screencasts on Ubuntu 16.04 for youtube with my plantronics headset C520-M which worked just nice. I was using ffmpeg successfully. Now I wanted to add some "live" video explaining ...
3
votes
1answer
2k views

Extract multiples images from multiples videos with ffmpeg

I have a MP4 movie filmed with a GoPRO. The GoPRO split the movie in several files (I believe because of FAT32 size limitation). What I'm trying to do is extract some specific frames of the FULL ...
3
votes
0answers
3k 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. ...
3
votes
0answers
1k 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 ...
3
votes
0answers
1k 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 ...
3
votes
0answers
352 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
15 views

ticker text does not run really smooth

I want to create a ticker text video like the news ticker you see sometimes in TV. So I use ffmpeg -loop 1 -i Transparent_800x20.png -vf drawtext="fontsize=16:fontcolor=black:fontfile=...
2
votes
0answers
32 views

Widely compatible video format with lossless audio

I'm a software developer. My software produces animated video files with music. The video files should be compatible with a wide range of software, and they should have excellent audio quality. The ...
2
votes
0answers
51 views

How to perform a “lighten only” operation in ffmpeg for prop flicker removal

I have footage shot from a helicopter and I would like to remove the rotor blades. Since the blades are so fast it seems feasible to use the pixel values from the next frame (usually the sky) wherever ...
2
votes
0answers
165 views

Correct method to set font-size in .ASS file

My final video output is 1080:1920 (9:16 aspect ratio), after padding. In .ass file, I set PlayResX: 1080 PlayResY: 1920 and then the font-size=130. But, this font-size doesnt occupy exact 130 pixels ...
2
votes
1answer
430 views

FFmpeg Single Input, Seek to Multiple Outputs

I'm trying to get multiple snapshots of a single input file using Input Seeking. I want to seek to different keyframes and save each to different output images. I can use this using multiple calls: ...
2
votes
0answers
196 views

The ffmpeg webm_dash_manifest demuxer fails with webvtt subtitles

I am trying to create a DASH manifest using ffmpeg and I encounter some difficulties with the subtitles. I get the error [webm_dash_manifest @ 0x55e19db48180] EBML header parsing failed [...
2
votes
0answers
46 views

How do I compress a video and preserve quality in moving areas?

It's easier to notice details in still objects compared to moving ones, so modern codecs save bandwidth by reducing detail during movement. However, this optimization seems far too pronounced to me ...
2
votes
0answers
122 views

Efficiently compressing a looping video with h264

I have a video that is initially 19 frames long and lasts for about 0.5 seconds, it's 432kB. I've looped it over three minutes and the resulting file is quite large (200MB). Using FFMPEG is there a ...
2
votes
0answers
732 views

ffmpeg vp9 encoding settings to produce “yuv420p(tv, progressive)”

I have a webm video that was made (from an h264) using AWS Elastic Transcoder, using the "System preset: Webm VP9 720p" preset. For this file, ffprobe gives: $ ffprobe converted-mp4.webm <snip&...
2
votes
1answer
3k views

combine stream and multiple videos to live output, with transitions

I am using FFmpeg to combine a radio stream with a video but my target is to read from a playlist file (own format) and combine multiple videos with the audio in the background. The most important ...
2
votes
0answers
107 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
54 views

Record video 3MP/30 FPS for 9 days

I am a Software Engineer but my knowledge on cameras and/or codecs is very limited. I know that recording a video 9 days on 3 MP and 30 FPS would generate a huge file (probably 60 TB+). So compressing ...
2
votes
0answers
268 views

Best way to handle stream with ffmpeg and GPU

So in my project, I need to capture a video stream, decode the video, run the individual frames through an object detection algorithm and then play the output as a video. This whole operation is ...
2
votes
1answer
818 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 ...
2
votes
0answers
321 views

FFMPEG Filter_Complex_Script crop by time

I am trying to use FFMPEG's filter_complex_script option to crop a video in different places depending on the time. I have a file that shows the bounding box of where an object should be and have ...
2
votes
0answers
148 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
1k 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
390 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, ...
2
votes
0answers
650 views

Switching between multiple m3u8 playlist

In a live stream setup, I have 2 cameras and each one sends RTMP stream to one different application which is on my Nginx-RTMP server. On the browser I am using Videojs Hls plugin. Now my question ...
2
votes
1answer
238 views

Create a splitscreen video from two videos of different lengths with delay

I want to create a splitscreen video from two video clips. Left one is of duration 70seconds. Right one is of duration 80seconds. In the splitscreen video, the right video should start first. Left ...
2
votes
0answers
593 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
308 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
773 views

FFmpeg Windows MP4 - remove specific frames

I have a movie - movie.mp4. I wish to remove/delete specific contiguous frames from movie.mp4 which are located somewhere near the middle. Specifically, total frames in movie.mp4 = 33,595. I would ...
2
votes
0answers
1k views

Audio volume lower, quality drops after ffmpeg amix multiple audio inputs

I use ffmpeg to: add multiple audio into a video file and offset them discard original audio in the video Everything is OK except that 1. the audio volume in the result.mp4 is remarkably lower ...
2
votes
0answers
3k 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
3k 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
3k 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
1answer
1k views

ffmpeg: joining videos leads to “time skips” during playback

I hope that someone can help me. I have the following two videos: $ ffprobe 0.ts ffprobe version 3.2.4 Copyright (c) 2007-2017 the FFmpeg developers built with gcc 6.3.1 (GCC) 20170109 ...
2
votes
0answers
796 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
1answer
15k views

how to get vdpau hardware acceleration using ffmpeg?

I am developing a multimedia player using ffmpeg. I am trying hard to get hardware acceleration through ffmpeg using vdpau hardware accelerator. I didn't get any success so far. Below I have mentioned ...
2
votes
0answers
4k 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
92 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
338 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
4k 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 -...

1
2 3 4 5
12