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.

711 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 ...
intuited's user avatar
  • 246
5 votes
0 answers
827 views

Merge Insta360 INSV files into 360 video with ffmpeg 360vr filter

Insta produces 2 video files, from back and front camera. They have .INSV extenstion, but they are acutally mp4 video files. That's how they look: And expected result is 360 panorama video: Can I ...
user1209216's user avatar
5 votes
1 answer
2k 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)....
Mikhail's user avatar
  • 173
5 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 ...
midnite's user avatar
  • 151
4 votes
0 answers
132 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 ...
Eric Johnson's user avatar
4 votes
1 answer
605 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 -...
sy_ar001's user avatar
  • 141
4 votes
0 answers
8k 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 ...
SOuser's user avatar
  • 65
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 ...
Josh's 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 ...
charisk's user avatar
  • 183
3 votes
0 answers
815 views

How can I change the sample rate of an audio file, without re-encoding?

I have a lossy AAC audio file. I would like it to be slightly faster, and slightly higher pitched. I would like to avoid loosing any audio quality, such as by re-encoding the stream. I am well aware ...
Wowfunhappy's user avatar
3 votes
1 answer
2k 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 [--...
Marek Kowalczyk's user avatar
3 votes
0 answers
563 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 ...
AlexValentinov's user avatar
3 votes
0 answers
128 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 ...
TigerhawkT3's user avatar
3 votes
0 answers
4k 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 ...
Salem F's user avatar
  • 131
3 votes
0 answers
4k 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 ...
user10024395's user avatar
3 votes
0 answers
266 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?
P St's user avatar
  • 31
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 ...
cornelinux's user avatar
3 votes
0 answers
910 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 ...
formatkaka's user avatar
3 votes
0 answers
998 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 ...
user2069305's 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]...
Akash Dubey's 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. ...
Akatosh's 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 ...
jiggunjer's user avatar
  • 177
3 votes
0 answers
371 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 ...
Zack Mctee's user avatar
2 votes
1 answer
1k views

In FFMPEG's H.265 encoder, which CRF value leads to "visually lossless" results?

I am trying to shrink some videos from 1920x1080 to 1280x720 and to achieve a reasonable compromise between video quality and file size. I have decided to give FFMPEG's H.265 encoder a try, and now ...
Binarus's user avatar
  • 131
2 votes
1 answer
127 views

How to know which ffmpeg encoders are hardware accelerated?

On any given build of ffmpeg, ffmpeg -encoders will list which encoders can be used for encoding video. Of the encoders listed, how can I tell which ones use hardware acceleration?
Running Man's user avatar
2 votes
1 answer
810 views

Use ffmpeg to stream rawvideo from a USB camera

I have a image sensor that streams 640x480 in RAW8 format. A USB controller is receiving this data, packing two pixels of 8-bits each and sending to USB as a 16-bits per pixel YUV422 format (this is ...
light's user avatar
  • 21
2 votes
0 answers
741 views

FFMPEG conversion failed at random times on live stream to youtube

I am running a bash script using ubuntu server on arm64 that live streams video and audio to youtube, heres the script below #! /bin/bash VBR="8000k" FPS="24" QUAL="superfast&...
good karma's user avatar
2 votes
0 answers
887 views

Copy timecode from SEI Picture Timing to MXF Timecode Stream with FFmpeg

I am receiving an HEVC encoded live stream that contains SMPTE 12-1 timecode in the SEI picture timing, as it is recommended in ITU-T Rec-H.265-202108 Annex D.3.3 Picture timing SEI message semantics....
chris-kuhr's user avatar
2 votes
1 answer
674 views

Can I inject subtitles into a live stream with FFmpeg?

In my live streaming scenario I need to grab a video source and inject subtitles that I generate algorithmically during the stream (i.e. I do not know the subtitles upfront), and publish the streams ...
ilmiacs's user avatar
  • 121
2 votes
0 answers
294 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....
InteXX's user avatar
  • 123
2 votes
0 answers
220 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 ...
user3900456's user avatar
2 votes
0 answers
327 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 ...
Pithikos's user avatar
  • 121
2 votes
0 answers
33 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 ...
Qwertiy's user avatar
  • 183
2 votes
0 answers
1k 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 ...
tommy55's user avatar
  • 21
2 votes
0 answers
154 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=...
sigbert's user avatar
  • 21
2 votes
1 answer
255 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 ...
Quentin V's user avatar
2 votes
0 answers
256 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 ...
Adam Honeybell's user avatar
2 votes
1 answer
1k 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 ...
jsdbt's user avatar
  • 141
2 votes
0 answers
536 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?
Михалыч's user avatar
2 votes
0 answers
170 views

CODEC and Resolution in Multi-Variant Master playlist

I am recording my content in wowza using cupertino hls (.ts files). I am building a playlist from these chunks at an interval of 30 mins. But while creating master playlist with all the bitrates, i ...
RecklessSergio's user avatar
2 votes
0 answers
624 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 [...
Hyldrean's user avatar
2 votes
0 answers
451 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 ...
Baa's user avatar
  • 121
2 votes
0 answers
1k views

Make ffmpeg read subtitles as stream

I have a stream (rtmp) and I would like to generate some subtitles for it(based on what's happened on stream). I can generate it like a pipe, or some other way. I use script like this: for i in $(seq ...
Vitaliy Lozoviy's user avatar
2 votes
0 answers
2k 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&...
Jon Burgess's user avatar
2 votes
0 answers
321 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 ...
Simon Jaquemet's user avatar
2 votes
0 answers
58 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 ...
johmarjac's user avatar
2 votes
0 answers
2k 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 ...
toharsky's user avatar
2 votes
0 answers
323 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 ...
user3105173's user avatar
2 votes
2 answers
2k 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 ...
AntumDeluge's user avatar
2 votes
0 answers
565 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 ...
romellem's user avatar
  • 121

1
2 3 4 5
15