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
1 answer
14 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
87 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
16 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
  • 313
0 votes
0 answers
54 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
  • 313
0 votes
0 answers
17 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
60 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
22 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
30 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
124 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
  • 313
1 vote
1 answer
46 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
8 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
45 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
16 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
45 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
81 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
76 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
169 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
47 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
47 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
60 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
41 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
22 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
82 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
27 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
48 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
37 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
71 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
207 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
121 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
59 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
91 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
0 votes
0 answers
85 views

Which FFmpeg variable gives the total duration of a video?

I've spent hours searching the documentation and forums for a simple variable and it's driving me crazy. Can anyone tell me what the variable is that gives the total duration of a video, so that I can ...
user avatar
0 votes
1 answer
69 views

Why does setting a maximum bitrate in Constrained Quality mode sometimes increase file size?

Short version: Why did my total file size increase when I switched from constant quality to constrained quality at the same crf? Shouldn't this just set a maximum bitrate and thus only either do ...
user avatar
  • 1
1 vote
1 answer
23 views

How can I set the colours in libass subtitles?

ffmpeg allows you to pass parameters through to the subtitling library, libass. For example: # this is wrong # 0057b8=blue, ffd700=gold ffmpeg -i original.mp4 -vf "subtitles=russian.srt:...
user avatar
0 votes
0 answers
17 views

Ignore region of video for vidstabdetect

I am using ffmpeg with vidstabdetect and vidstabstransform to (try to) stabilise some rather shaky footage. The input file has a time stamp at the top of the video. In the transformed video you can ...
user avatar
  • 163
1 vote
1 answer
104 views

Merge / Concatenate Video Files in a Lossless Manner (No Encoding / Compression)

I have few video files I'd like to merge. I'd like to create a single video of them without any compression, just one after another. How can it be done using FFMPEG? For the answer we may assume the ...
user avatar
  • 121
0 votes
0 answers
113 views

How to remove watermark by overlaying an image in ffmpeg

I'm trying to remove the watermark using a 'Color Dodge' overlay similar to the one in PS. I need to overlay an image on the video and use the following formula for each frame. Is that possible in ...
user avatar
0 votes
0 answers
17 views

How to create a video with a video overlay and a png image with ffmpeg?

I have created a scene with OBS in which there are: A video that takes up the whole screen, 1080p. A second video that is placed in the top right-hand corner. An image that is pasted on top of the ...
user avatar
  • 1
0 votes
0 answers
128 views

MP4 file has incorrect length (duration) and plays back 5x slower than it should

I have five GoToMeeting (GTM) .mp4 recordings that I saved and downloaded from a five-day class I was teaching. Each recording represents each day's appx. 8 hour class duration. I am importing them ...
user avatar
  • 1
0 votes
0 answers
55 views

FFMPEG: Output file doesn't have a video stream

I have a video that seems to have both audio and video streams in it. But when I transcode the video using FFMPEG, the output file doesn't have any video streams. I'm sharing the link to both input ...
user avatar
0 votes
0 answers
42 views

Compressing video to specific size accurately

I'm using guide provided at this page to compress videos to specific size with ffmpeg. The sizes I'm aiming are relatively small (8mb wanted compared to 50mb original) and when I'm trying to compress ...
user avatar
  • 1
0 votes
0 answers
37 views

ffmpeg atrim not working with shorter video - results in same duration as wav file

I have a 16 second video that contains an audio stream and a 4:18 audio file (music). I want to fade the audio and trim it to end at 16 seconds. Here's what I'm trying: ffmpeg -i test.wav -i test.mp4 -...
user avatar
1 vote
0 answers
65 views

Extend video by exactly one frame using ffmpeg

I'm trying to use the Low Resolution Video files created by a GoPro camera as proxy videos to the HVEC clips for video editing. I'm running into a slight issue in which the camera seems to cut the ...
user avatar
  • 11
0 votes
1 answer
27 views

Final Cut Pro X won't accept similar files

I have two files that I want to import into Final Cut Pro X. They are both clips pulled from the same source file using the same commands. I am using a generated script to extract dozens of clips at a ...
user avatar
0 votes
0 answers
17 views

Merging multiple files but specify the time each file is inserted (alternatively, stretch them to a specified duration)

Situation: 3 hours of video, consisting of 18 H264 mp4 files that should have exactly 10-minutes each but they last just a little bit less (some milliseconds missing). When merging them, I end up ...
user avatar
1 vote
1 answer
289 views

Converting Video from 30 fps to 29.97fps so Audio Syncs to Other 29.97fps Videos with ffmpeg

I have three videos that I am trying to sync so I can setup a multi-camera editing project (I'm using Vegas Pro) Two are at 29.97fps and one is at 30fps. If I manually sync them all at the start, by ...
user avatar
  • 113
0 votes
1 answer
48 views

Extreme video stabilization in Linux, again

I have a 3840x2160 MOV file taken with my EM1.II Olympus camera. It is a videoclip of a tiny bird taken in the wild without any aids. Hence, despite the good stabilization feature of the camera, the ...
user avatar
0 votes
1 answer
292 views

I have .mpd file with video and audio data downloaded, how can I play it for offline use?

I want to ask that I have downloaded data which contains audio and video data separately like 1.mp4, 2.mp4 etc in both audio and video folders. Video/Audio folder content :- I also have it's .mpd ...
user avatar
0 votes
1 answer
43 views

How to stablize a movie that wobbles right and left about 3 pixles throughout the whole thing?

I have some copies of original theatrical films that came as bonus DVDs. These copies are in 4:3 aspect ratio but are widescreen. So playing the movies in a standard DVD player renders it in a small ...
user avatar
0 votes
1 answer
66 views

ffmpeg playout rtmp stream continuously when rtmp stream lost for few seconds

I want to create an rtmp player that receives the stream from the server and displays it on the "Decklink mini monitor" this is my command ffmpeg -thread_queue_size 32768 -i rtmp://myserver/...
user avatar
  • 1

1
2
3 4 5
39