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
0 votes
0 answers
7 views

How to use FFmpeg to do Ken Burns affects using rectangles?

I have a process of specifying starting and ending 16:9 rectangles on an image. This is easier for the end user to select what they want the resulting affect to be. I would like to use FFmpeg to ...
user avatar
  • 101
0 votes
0 answers
12 views

why does FFMPEG encode videos from last video causing clipping video and noise

I am having issues in a windows Batch file where I when i start a video to stream it will play like 1 sec from last video that I had encoded at the beginning . I originally thought it was because of ...
user avatar
0 votes
0 answers
9 views

Adding .srt subtitles to a DVD image

We currently have a toolchain that takes an input file (ProRes 4444 .mov) and creates a DVD .iso from it, using ffmpeg, dvdauthor, and mkisofs. It all works fine. We'd like to add subtitles to the ...
user avatar
0 votes
1 answer
24 views

How can we keep the subtitle track when converting from MKV to MP4 with ffmpeg?

I have an MKV with integrated subtitles as such: I want to keep "English [Full] - [English]" when converting to MP4. Currently I use this command: ffmpeg -i myMovie.mkv -vcodec copy -acodec ...
user avatar
0 votes
0 answers
8 views

How do I accelerate fisheye to hequirect conversion with cuda?

This is my command ffmpeg -y -i in.mp4 -vf v360=input=sg:ih_fov=118.2:iv_fov=69.5:output=hequirect:w=2924:h=2924 -b:v 102400k -bufsize 5000k -c:a copy out.mp4 I tried ffmpeg -y -hwaccel cuda -...
user avatar
0 votes
1 answer
12 views

Filtering video and adding metadata in one step failed

I want to filter a video stream -vf crop=300:ih,mpdecimate and add metadata for it to the output video: -metadata:s:v:0 rotate=90 This command filter it, but the metadata are NOT added: ffmpeg -to 6 ...
user avatar
  • 1,342
0 votes
0 answers
12 views

Ffmpeg How to avoid audio sync when merging videos

I want to merge some videos from a list. Some of them have frozen frames, with silence filling. When I merge them the silence disappears, but the frozen frames are kept. Is there any way to add async=...
user avatar
0 votes
0 answers
10 views

Ffmpeg Error while holding frame and audio at s seconds

Problem: t_ext defaults to video_length if t>video_length (i.e. 5 seconds clip can only become 10 seconds long even if i try to hold any frame for 20 seconds) [t],[t_ext] Command I'm using: ffmpeg -...
user avatar
0 votes
0 answers
6 views

How To Add Image Overlay Code On My Existing Command

so I have this code which adds text ffmpeg -i video.mp4 -vf "drawtext=fontfile=C:\Sanal\##WeightLoss\ProximaNova-Bold\ProximaNovaScOsfExtraCondensedBold.otf:text='CHECK DESCRIPTION FOR':fontcolor=...
user avatar
  • 13
0 votes
1 answer
9 views

FFmpeg embed thumbnail Windows

I have seen commands like this online: ffmpeg -i video.mp4 -i image.png -map 1 -map 0 -c copy \ -disposition:0 attached_pic out.mp4 However these command don't work as advertised with Windows ...
user avatar
  • 260
0 votes
1 answer
17 views

Is it possible to increase horizontal and vertical padding on ffmpeg burned subtitles - using .srt format?

Using command : ffmpeg -i source_video_path.mp4 -vf "subtitles=srt_source.srt:force_style='OutlineColour=&H80000000,BorderStyle=4,BackColour=&H80000000,Outline=0,Shadow=0,MarginV=25,...
user avatar
  • 143
0 votes
2 answers
17 views

How to run multiple FFMPEG commands as a batch file in Windows 10/11?

I have the following code which adds a small overlay text over my video: ffmpeg -i video.mp4 -vf "drawtext=fontfile=path\font.ttf:text='ABC':fontcolor=black:fontsize=45:box=1:boxcolor=white@1:...
user avatar
  • 13
0 votes
1 answer
17 views

FFMPEG: How to remove audio from entire directory

I am a novice coder using Terminal on MAC that has installed FFMPEG and attempting to edit an entire directory. My goal is to remove all of the audio from all of the videos and output or overwrite the ...
user avatar
2 votes
1 answer
29 views

ffmpeg subtitles background issue when multiple lines (using .srt format)

While using ffmpeg to burn .srt subtitles to mp4 files I'm having an issue with multiple text lines - background is overlaying each other. Command I'm using: ffmpeg -i source_video_path.mp4 -vf "...
user avatar
  • 143
0 votes
1 answer
24 views

Stack two videos side and side but play one after another. Show thumbnail when not playing

I have two videos, that i want to concatenate side by side but second one should play after the first one. If the video is not playing, thumbnail should be shown Below is the example that i want to ...
user avatar
0 votes
0 answers
11 views

On screen translation text

Does ffmpeg keep on screen text that is used when a foreign or unknown language is used so that it can be understood what they are saying? I'm not talking about subtitles, but on screen text. I use ...
user avatar
  • 1
0 votes
0 answers
19 views

FFplay will not close and reconnect when SRT stream ends

So I have been testing the SRT streaming to use with OBS. so far love it BUT ffplay will not close when the stream ends and try to reconnect. it just stays paused at last frame and the ffplay window ...
user avatar
0 votes
1 answer
51 views

Complex filter performance deteriorates with effects on images and multiple overlays

I want to generate a slideshow video that is composed of 1–n input images. Each input image is rendered in the foreground and simultaneously as a blurred background, for a few seconds. The next image ...
user avatar
  • 945
0 votes
1 answer
25 views

Convert MP3 to MP4 looping black video with FFMPEG

Currently I am converting MP3 to MP4 black video using following command line in Windows Registry: C:\Program Files\ffmpeg\bin\ffmpeg.exe -loop 1 -i "C:\Program Files (x86)\Utilities\BlackVideo\...
user avatar
  • 103
0 votes
1 answer
12 views

Why does this script reduce the bitrate of both the video and the audio stream?

I wrote the following script that is meant to remove the unnecessary audio streams, aka dubbing, as well as subtitles from the movies in my collection: #!/usr/bin/bash echo "What is the path to ...
user avatar
0 votes
0 answers
32 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 ...
user avatar
0 votes
0 answers
14 views

Interesting features to use in FFmpeg

What are some interesting features or filters of FFmpeg that can lead to fun use-cases or used for improved quality? For instance, motion interpolation feature to increase FPS for better quality was a ...
user avatar
  • 303
0 votes
0 answers
35 views

FFmpeg 5.0 vs 3.4 performance

I was trying to compare ffmpeg 5.0 vs version 3.4.6 in how much performance improvements I would get while transcoding a simple 720p video into a H264 video. On my laptop, I noticed around 5-10% ...
user avatar
  • 303
0 votes
0 answers
13 views

Normalizing video lum/gamma on just the sky?

tl/dr: Can I normalize a video's flickering exposure levels based on a subregion of the frame? This feels like a typical issue: I've got a few hour long video of the beach that I'm speeding up. ...
user avatar
0 votes
0 answers
37 views

Concat Demuxer playlist

So according to the docs located here https://trac.ffmpeg.org/wiki/Concatenate section: Changing playlist files on the fly it says you can do this: Now you can change the looping clip by a simple ...
user avatar
0 votes
1 answer
19 views

Idea validation - CRF's as a service

I was looking for validation for my startup idea. Please flag if this is off-topic. Idea: CRF's as a service - When encoding h.264 and libvpx videos, I tend to guess good Constant Rate Factors(CRF's) ...
user avatar
0 votes
0 answers
13 views

Cross Fade Arbitrary Number of Videos with ffmpeg Efficiently

I have a series of videos named 'cut_xxx.mp4' where xxx represents a number 000 through 999. I want to do a cross fade on an arbitrary number of them to create a compilation, and each fade should last ...
user avatar
0 votes
0 answers
44 views

H264 AVC codec Baseline@L3.1 vs High@L4.2

When I convert a video with ffmpeg, and use mediaInfo to review the metadata, I see the followings for the video codec: Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L3.1 ...
user avatar
  • 303
1 vote
1 answer
35 views

How to avoid black frames with ffmpeg "trim" filter?

When using trim to crop the start and end of a video, the frames leading up to my "crop start" time are static instead of removed. However, the frames following the "crop end" ...
user avatar
  • 11
0 votes
0 answers
6 views

How to cut video segments starting from multiple .vob files?

I'm using AviDemux to scroll through a movie (which exists of 3 vob files) and determine which parts to cut. Alas, AviDemux only cuts on I-frames, not on exact timestamps. After I save the timestamps, ...
user avatar
  • 1
0 votes
0 answers
26 views

Multimon-ng with FFMPEG to find cue tones in live feed

So I am working on a way to feed a live feed from a Satellite feed into my OBS. i need when the DTMF tones hit to launch a another batch file. I am currently using windows I have hooked up multimon-...
user avatar
0 votes
0 answers
8 views

How can I extract a 327-color palette from a digital video?

I'm attempting to get a digital indexed palette for my own work, roughly mirroring that used in Akira (1988). The movie had a famed 327-color palette, fifty of which were created for that specific ...
user avatar
0 votes
1 answer
29 views

How do I verify that the H264 video stream is encoded with a single slice per frame?

I'm a software tester and I need to test a certain requirement for a vehicle camera that I'm not sure on how to test. As in the title it's to verify that each frame is encoded with a single slice. ...
user avatar
  • 3
0 votes
0 answers
46 views

Dynamic video "animation" overlay

I'm working on a project for a tabletop video stream. The goal is to be able to show card animations overlaid on the stream using voice commands. When I first searched for how to accomplish this, I ...
user avatar
  • 101
1 vote
0 answers
31 views

FFMPEG concat two video together but one plays back in a slower speed

I am trying to concatenate two videos using FFMPEG concat. The second video plays a slower speed and loses it's audio, but not only that, the time elapsed counter in the windows video player also ...
user avatar
0 votes
0 answers
57 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&...
user avatar
0 votes
0 answers
26 views

question about deinterlacing and "automatic"

I have a DVD, if I play the .VOB file directly in VLC, with the option automatic set for deinterlace. Then the picture looks smooth. However, if I convert that .VOB to a .mp4 with: ffmpeg -i out.vob ...
user avatar
  • 101
1 vote
1 answer
31 views

How to move all video files with mp3 audio?

My folder has some video files with mp3 audio and some video files with aac audio. I want to move all files which have mp3 audio to another folder. When I asked my friend, he gave me this script: ...
user avatar
  • 25
1 vote
1 answer
32 views

Using ffmpeg gdigrab to capture desktop output to h264 yuv420p. Color shift problem

The ffmpeg command below is being used to capture the desktop and create a resulting mp4. ffmpeg log says the input stream is bmp and I specified the target as h264 yuv420p. I found several older ...
user avatar
  • 11
0 votes
0 answers
22 views

How to cut parts from a video file without quality loss

I have a few large video files (in various formats: .avi, .mp4 and .mkv) which only contain a few interesting scenes I want to keep. I'm looking for a way to cut these scenes out of the original video,...
user avatar
  • 1
0 votes
0 answers
8 views

Add Video With Alpha Channel On Top Of Another Video (FFMPEG)

I have two input files, one is a YUV h.264 mp4 file and the other is an 8-bit lossless unencoded RGBA .mov file output directly from After Effects. I would like to put the mov file with the alpha ...
user avatar
0 votes
0 answers
21 views

Converting WEBM files recorded by JavaScript Media and Streaming API

I'm developing a video recorder application in JavaScript/Electron. The user can talk into the camera, and show pictures, videos, or play audio files. These assets can be superimposed over the video ...
user avatar
0 votes
0 answers
23 views

FFMPEG: Why can't I work in frames instead of HH:MM:SS?

I have a video-only stream that I removed the audio from without re-encoding. The video information is as follows. hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1608 Frame ...
user avatar
0 votes
0 answers
20 views

ffmpeg alpha merge mp4 to alpha mov (heic)

I have two video files (mp4), matte/alpha (white silhouette) and normal. I want to create a .mov file with transparent background that is possible to play on iOS/Safari devices. Commands I'm trying to ...
user avatar
  • 101
0 votes
0 answers
15 views

ffmpeg clipping: video splits on i-frames but not audio

I use ffmpeg because I want to do video editing without re-encoding. I only know the bare bones options for this though: ffmpeg -i input.mp4 -ss 00:00:30 -to 00:05:00 -acodec copy -vcodec copy output....
user avatar
0 votes
1 answer
39 views

Loop video for the duration of audio

I have a 10 seconds video clip and 60 seconds audio clip, so when I mux it with mkvmerge --output video.mkv ./a.mp3 ./a.mp4 The output file shows the video only for the first 10 seconds, and then the ...
user avatar
  • 103
0 votes
1 answer
86 views

FFMPEG: Video format replacement for webm (alpha channel)

I am currently creating a webm file using two mp4's (alpha - black background, white silthoette) and normal video. Using following ffmpeg command: ffmpeg -i color.mp4 -i alpha.mp4 \ -...
user avatar
  • 101
0 votes
0 answers
59 views

FFmpeg parameters for Fisheye image correction

I am trying to achieve two things: Fisheye video to equirectangular Fisheye video to Flat (if I understood correctly, it is a non 360 interactive image. For this I need just the fisheye image but ...
user avatar
0 votes
0 answers
26 views

Using ffmpeg to batch convert between different video formats, AND image formats

I found this extremely helpful batch script for Powershell (.ps1) file which I listed below: $originalVids = Get-ChildItem *.ts -Recurse foreach ($inputVid in $originalVids) { $outputVid = [io....
user avatar
0 votes
0 answers
57 views

FFmpeg: How do I do interleaving frame blending?

By applying the video filter tblend=all_mode=average,framestep=2 to a video and targeting an FPS half of the source input, you can achieve frame blending. However, how can I use tblend to achieve ...
user avatar
  • 101

1
2 3 4 5
38