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.

641 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
0 answers
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 ...
user avatar
  • 246
8 votes
0 answers
4k 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 ...
user avatar
  • 181
5 votes
1 answer
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)....
user avatar
  • 173
4 votes
0 answers
7k 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 ...
user avatar
  • 55
4 votes
0 answers
3k 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 ...
user avatar
  • 141
4 votes
0 answers
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 ...
user avatar
  • 173
4 votes
0 answers
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 ...
user avatar
  • 141
3 votes
0 answers
22 views

Optimized Parameters of `FFMPEG` for Screen Recording

Windows has a great codec for screen recording called Windows Media Video Screen. It generates artifacts free videos which are highly compressed (small size). I was wondering, what would be the ...
user avatar
3 votes
1 answer
135 views

How to fix the difference between duration of ffmpeg input and output?

I am trying to generate a video from a bunch of png images and audio using the command: /usr/bin/ffmpeg -y -framerate 30 -pattern_type glob -i 'images/*.png' -i audio.wav -c:v libx264 -b:v 0 -crf 18 -...
user avatar
  • 131
3 votes
1 answer
1k views

How to delete the very last frame of a video using ffmpeg / mencoder / transcode or any other?

I am trying to delete the very last frame of a video using ffmpeg / mencoder / transcode / or any other free linux application. Here is what I have so far, and it's only extracting it, it's not ...
user avatar
  • 151
3 votes
0 answers
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 ...
user avatar
  • 131
3 votes
0 answers
3k 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 ...
user avatar
3 votes
1 answer
579 views

ffmpeg tile command: ordering frames top to bottom rather than left to right

By default, the tile command builds the output one row at a time, from left to right. I would like instead for my output to be built in columns, top to bottom. That is, for a 4x4 tiling, the tile ...
user avatar
3 votes
0 answers
2k 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 ...
user avatar
3 votes
0 answers
4k 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]...
user avatar
3 votes
0 answers
4k 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. ...
user avatar
  • 131
3 votes
0 answers
2k 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 ...
user avatar
  • 167
3 votes
0 answers
362 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 ...
user avatar
2 votes
0 answers
48 views

Trouble combining audio and video streams

I have two streams, one audio and the other video. I'm trying to combine them using this command: ffmpeg -y -i audio.m3u8 -i video.m3u8 -c copy Video.mp4 I found this syntax here: https://video....
user avatar
  • 123
2 votes
0 answers
93 views

Problem combining multiple filters with ffmpeg

I'm trying to generate a video file out of 3 files: file #1 and #2 are both dynamically generated image list file; file #3 is a dynamically generated pcm file; I need to slow down or speed up the ...
user avatar
2 votes
1 answer
339 views

How to remove background from video without green screen on the command line?

I'm looking for an ffmpeg-like tool to blur/remove/change a static background from a "talking head" video, on the command line with on-device processing. Essentially, ffmpeg-like-tool [--...
user avatar
2 votes
0 answers
218 views

Stabilize MP4 from gyroscope metadata? (Insta360)

I just got an Insta360 One R 1-inch sensor and the footage is shaky as hell. I realised that you need their desktop application to actually stabilise in post-production but since I'm on Linux this is ...
user avatar
  • 121
2 votes
0 answers
24 views

Add splashscreen before video

I have: splash.png having the same size as video resolution video.mp4 in 60 fps already encoded via -vcodec h264 -crf 23 -acodec copy I want to prepend (not overlay) video video.mp4 with ...
user avatar
  • 183
2 votes
0 answers
570 views

HLS stream playing only when first segment is in m3u8 list

I am transcoding a live DVB-T2 HEVC stream to H264 using ffmpeg. I have decided to use the HLS (segmented) output format (because I want to play the stream in a web browser, e.g. on Android phone). I ...
user avatar
  • 21
2 votes
0 answers
50 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=...
user avatar
  • 21
2 votes
1 answer
52 views

How can I programatically identify video frames containing a fixed rectangular area of a certain color?

I have video material containing frames with a rectangular area of uniform color interspersed with other content. I would like to identify these frames, with the intent of removing them. The ...
user avatar
2 votes
0 answers
124 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 ...
user avatar
2 votes
0 answers
597 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 ...
user avatar
  • 31
2 votes
0 answers
182 views

Is there a hardware acceleration for audio encoding?

Video encoding with HW acceleration takes way less time than audio encoding. Is there a way to convert ac3 to aac faster?
user avatar
2 votes
0 answers
428 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 [...
user avatar
2 votes
0 answers
270 views

Audio out of sync when import file cut by ffmpeg with -c copy

I have a lot of clips made with ffmpeg using this command: ffmpeg.exe -ss XX:XX -t XX:XX -i original.mp4 -c copy clip.mp4. That copy option gives a couple seconds of silence in a result clip, but ...
user avatar
2 votes
0 answers
76 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 ...
user avatar
2 votes
0 answers
295 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 ...
user avatar
  • 121
2 votes
0 answers
1k 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&...
user avatar
2 votes
1 answer
610 views

How to fix invalid bitrate with ffmpeg

I tried to download 3-hour long video (now unavailable) with YoutubeDL and ended up with a 2GB file of 14 seconds with the correct frame size but an insane bitrate: Input #0, mov,mp4,m4a,3gp,3g2,mj2, ...
user avatar
  • 21
2 votes
0 answers
252 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 ...
user avatar
2 votes
0 answers
57 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 ...
user avatar
2 votes
0 answers
307 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 ...
user avatar
2 votes
2 answers
1k 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 ...
user avatar
2 votes
0 answers
497 views

Chrome renders WebM Video "darker" than other browsers / media players

Not sure if this is the correct community, but I have a question about video encoding and decoding. I have a video that gets served in MP4 or WebM formats, depending on browser support. I noticed ...
user avatar
  • 121
2 votes
0 answers
424 views

Best FFmpeg codec for Final Cut import

Is there an ideal FFmpeg codec to use when the video file is designated to be imported into Final Cut Pro X?
user avatar
2 votes
0 answers
402 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 ...
user avatar
2 votes
2 answers
1k views

Time lapse video with motion blur

Based on some of my videos I would like to make time-lapse videos with motion blur. My inspiration is this YouTube video: Time-lapse with motion blur from video with Avidemux, AviSynth and VirtualDub ...
user avatar
  • 21
2 votes
0 answers
187 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?
user avatar
  • 21
2 votes
0 answers
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; ...
user avatar
2 votes
0 answers
495 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, ...
user avatar
  • 148
2 votes
0 answers
798 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 ...
user avatar
2 votes
1 answer
302 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 ...
user avatar
2 votes
0 answers
676 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 ...
user avatar
  • 33
2 votes
0 answers
399 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 ...
user avatar
  • 121

1
2 3 4 5
13