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

ffmpeg concat demuxer merge two videos, output contain frozen frames per second

SE community Since yesterday I have been experiencing a problem using ffmpeg concat. I was merging two videos and I noticed frozen frames over my video where videos are merged. I don't know what am I ...
1 vote
1 answer
153 views

How to encode scenes with different CRF into a H.264 MP4 video with a variable frame rate?

Source Material Having many scenes which essentially are still frames (for many seconds) Commonly found in: Slideshows, Screen Recording or Software Mockup/Prototype ✅ This kind of source material ...
0 votes
0 answers
3 views

how to make any filter's value that accept integer value be a function of the timestamp in ffmpeg?

For example, i am trying to apply blur effect to video in ffmpeg using gblur filter, i want the blur strength to gradually increase from 0 to 50 in 2 secs starting at 5 secs and fade back from 50 to 0 ...
0 votes
1 answer
2k views

ffmpeg showing "Thread message queue blocking" error while encoding (non real time)

Hope someone can help me. I'm using ffmpeg to extract the frames from an old video as images, batch enhancing and upscaling the images, then renecoding the images together with the original audio to a ...
1 vote
1 answer
451 views

(FFMPEG) Creating SD Pal Anamorphic

I'm using a shell script to automate some FFMPEG processes. The main part I'm interested in is the options following the -vf flag below: ffmpeg -loglevel verbose -y -i "${FILE}" -vcodec prores -...
0 votes
1 answer
11 views

How do i add xfade transition to a batch of videos using ffmpeg?

I'm currently trying to concatenate multiple videos in a folder using FFmpeg. I've successfully applied a xfade transition between two videos using the following command: However, I'm facing two ...
1 vote
1 answer
113 views

ffmpeg h264 to mp4 conversion from multiple files fails to preserve in-sequence resolution changes

This will be a long post, so I thank you in advance for your patience in digesting it. Context I have different sources that generate visual content that eventually need to be all composed into a ...
0 votes
0 answers
21 views

ffmpeg - lossless image rotation

I am trying to add a transparent image (png) (that I would like to rotate - amongst other things...) over another image (jpeg). Here is the result (left = non rotated, right = rotated): As you can ...
0 votes
0 answers
13 views

ffmpeg: fade-in not rendered when used in conjunction with fade-out

I have a video file I want to fade in and out over a duration of three seconds each. My code is, run over WSL on WIN 10 pro 22H2: ffmpeg -i video.mp4 -vf "fade=t=in:st=0:d=3,fade=t=out:st=169....
1 vote
1 answer
1k views

ffmpeg concat videos, some have audio some don't

I have 4 videos I am trying to string together and here is my command bin/ffmpeg.exe -f concat -safe 0 -i concat.txt out/documentary_full.MOV Here is what's in concat.txt file '/path/to/...
0 votes
1 answer
2k views

Export Frames of 10 BPC Video File with ffmpeg

I have several hundred 1080p 59.94fps 10-bit-per-channel (bpc) AVC-Intra Class 100 MXF encoded video files. I would like to extract the frames of this video file and export them to disk in a 16-bit ...
0 votes
1 answer
16 views

ffmpeg: why 2 video stream?

I'm on ffmpeg 6. Take a video then: ffmpeg -hide_banner -ss 00:01:09 -t 20s -i "video.mkv" -map 0:0 -c:v libx265 -crf 25 -filter_complex "setpts=PTS-STARTPTS" "...
0 votes
1 answer
782 views

Question about ffmpeg's overlay variable t

I've got an ffmpeg command that overlays a line on a video and moves it from left to right while the video plays: ffmpeg -i clip.mp4 -i line-with-transparent-white.png -filter_complex "[0:v][1:v]...
1 vote
1 answer
844 views

How to combine so many ffmpeg filters in 1?

I dont even know if it's possible, but if anybody could help me would be really great! :) So first of all i resize my video with this command: CODE №1 ffmpeg -i input.mp4 -c:v libx264 -crf 20 -crf ...
0 votes
1 answer
377 views

Where to input a log expression in FFMPEG

Im trying to use a expression from NUKE (to convert an exr sequence from its native format into AlexaLogC. Now ive got an expression from nuke which is the following x > 0.14996582 ? (pow(10,0, (x ...
0 votes
1 answer
497 views

Add two images before a mp4 and one in the end with ffmpeg

I'm trying to make an operation using FFmpeg with just one command to leave the output as lossless as possible. My intention is to add two images, 5 seconds each, before the mp4 file, add a fade in ...
0 votes
0 answers
18 views
+100

'FFMPEG: moov atom not found' on my dash cam videos

I have several dash cam videos. The first 3 of them are opened through the VLC. Other files - no When trying to open them ffmpeg: ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the ...
0 votes
1 answer
11 views

How do you extract bitmap subtitles to a standard image format using ffmpeg?

I need to extract bitmap-based subtitles to a standard image format like PNG or BMP. Preserving transparency would be a bonus. I don't need to convert to text, and I don't want a subtitle-specific ...
0 votes
1 answer
3k views

How to generate decryption key from m3u8 manifest? (OR) How to decrypt an excrypted MP4 using URI and IV?

I am downloading an HLS video which is AES-128 encrypted. The issue is that the downloaded video is also encrypted and hence, not viewable. The website is serving 2 M3U8 manifests: The first ...
0 votes
0 answers
6 views

Converting with ffmpeg a bunch of webinars that contains a lot of slides (still images) aside a webcam speaker/lecturer

I screen recorded a lot of webinars that now I have to compress in order to have less space occupied. The content of this webinars are mostly persons talking like in zoom, few pixels of them in webcam ...
0 votes
1 answer
29 views

FFMPEG Concat Demuxer adds more time to output than expected

I am using ffmpeg concat demuxer to join multiple(189) videos together. The videos are originally split from a single video using the following command: ffmpeg -ss time[2] -vsync 1 -copyts -i ...
0 votes
0 answers
35 views

How can I combine a screenshot and two video files with ffmpeg?

I have a folder with video files. Some are .mov, some are .mp4. As a first step I am converting the .mov-files into .mp4 with: while read mov; do mp4=$(echo "$mov"|sed -e 's|\.mov$|.mp4|i'...
0 votes
0 answers
9 views

ffmpeg able to use cuda, Vulkan and opencl at the time?

I am using ffmpeg with a lot of filters. I am currently using one gpu for using cuda filters like overlay_cuda and the encoding with: -hwaccel_output_format cuda -hwaccel_device 3 -hwaccel cuda. I am ...
0 votes
1 answer
691 views

FFMPEG - MAC OS Cannot Capture from Black Magic UltraStudio (Thunderbolt)

I have Black magic UltraStudio Express that captures SDI or HDMI and Connected to MacBook via Thunderbolt when I list devices I get the Audio but not the video : $ ffmpeg -f avfoundation -...
0 votes
1 answer
157 views

FFMPEG to make Quicktime reference MOV file from ProRes MOV source

I'm trying to figure out how to use FFMPEG to make a reference MOV from a ProRes MOV source. I've found commands that will take reference file and make a rendered ProRes MOV file ffmpeg -enable_drefs ...
0 votes
0 answers
27 views

How to animate transparent images using Xfade and ffmpeg

I am trying to making a video using 1 background image and 5 transparent images (all the images are in same dimensions 500x500). Where the 5 transparent images animate for 2 seconds (Slideup, WipeDown,...
1 vote
1 answer
1k views

HLS.js player dropping frames at discontinuities in HLS stream

I have a need to play small pieces (1 or 2 seconds) of video in various orders via HLS. Think a highlights reel from a sporting match. Several HLS players struggle with playing a stream with ...
3 votes
1 answer
939 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 ...
1 vote
0 answers
24 views

Most efficiant way to create a video with series of images faded in and out with ffmpeg

I am creating a video with audio that consists of 25 images that fade into each other for the duration of an audio file. There is also some text that will appear on the finished video. What I ...
0 votes
1 answer
10 views

dvdauthor spumux aborted: picture had 256 colors

spumux tmp.xml < tmp.mpg > output.mpg INFO: Picture tmp.png had 255 colors INFO: Picture tmp.select.png had 256 colors spumux: subgen.c:313: findmasterpal: Assertion `s->numpal < 16' ...
0 votes
1 answer
2k views

How to obtain the correct framerate with ffmpeg image2pipe format?

I have 40 .jpg in my dir folder and want to create a video at 20fps from them. I've tried the following command: find dir/ -iname '*.jpg' | xargs cat | ffmpeg -f image2pipe -framerate 20 -i - -s ...
1 vote
1 answer
1k views

Capture a wpf window : The flickering issue

I made a simple animation (as crawl text) using C#-WPF. The animation is smooth and excellent. (in wpf window) But when I capture it by FFmpeg as video it has flickering problem. Please see sample1 ...
0 votes
1 answer
48 views

ffmpeg - Prevent ffmpeg to skip frames

I am trying to move a png image by 10px over a white background during 2s (fps=25), but the transition I got is not smooth. Here is the command I am using: ffmpeg -y -vsync passthrough -f lavfi -i ...
0 votes
0 answers
9 views

FFMPEG watermark + hls multi stream

i want to convert mp4 video into hls multi resolution (360 , 720) and add watermark image inside the output segments i did two result but missing the watermark image with the multi scale //one hls ...
0 votes
1 answer
233 views

Why do I use ffmpeg to embed .ssa subtitles and ffprobe recognizes that the subtitle is ass format?

I use ffmpeg to embed .ssa subtitles into mkv, but ffprobe recognizes that the subtitle is ass format. ffmpeg -i input.avi -i input.ssa -map 0:0 -map 0:1 -map 1:0 -c copy demo.mkv Also, I learned ...
0 votes
1 answer
200 views

How to adjust video histogram using ffmpeg?

I have a dark video and'd like to adjust its histogram. In a graphical editor I've found the values of the color levels that enhance video contrast. How to set this level values in ffmpeg?
5 votes
2 answers
25k views

ffmpeg - video conversion with multiple audio tracks

I am converting an mkv h.264 video to HEVC. The file has two audio tracks. How can I copy all audio tracks? I used this command (from a .bat file): ffmpeg -i "!original!" -c:v libx265 -preset medium ...
0 votes
2 answers
344 views

ffmpeg concat vob files not working?

I am trying to convert dvd .VOB files (unencrypted) to .mp4, but first want to concat them ... I made a text file: file './VTS_01_1.VOB' file './VTS_01_2.VOB' file './VTS_01_3.VOB' file './VTS_01_4....
0 votes
1 answer
2k views

Error decoding timecode using ffprobe

I'm using ffprobe to get timecode from an mxf which has DF timecode but with a non DF frame rate. I'm getting the error Drop frame is only allowed with 30000/1001 or 60000/1001 FPS. I'm running ...
14 votes
4 answers
79k views

How to download and encode a video from a MPD manifest?

I can watch videos on a website with MPEG-DASH technology. I can obtain the video's manifest.mpd file from the website. (I am not sure whether the file contains any user credentials or not, so I am ...
1 vote
1 answer
27 views

First input link main timebase (1/15360) do not match the corresponding second input link xfade timebase (1/90000)

ffmpeg community I am new to ffmpeg and i am facing this error for more then 2 days. This ffmpeg command: !ffmpeg -i "{fromPath}" -i "{toPath}" -filter_complex "xfade=...
0 votes
0 answers
15 views

Creating a Video from Pano2VR results in corrupted frames

Has anyone been able to use Pano2VR Pro to generate videos of their tours using the Animation Output option? Pano2VR uses ffmpeg to generate video frames. I have attempted to use this feature numerous ...
0 votes
0 answers
19 views

ffmpeg from 5.1 or 7.1 audio in separate mono streams to stereo

I have a file with 7.1 audio, where each channel is in a separate mono stream. How can I convert all these mono streams to plain stereo? (The documentation suggests to use the -ac 2 option, but that ...
2 votes
1 answer
19k 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
1 answer
2k views

ffmpeg: Crop 21:9 out of 16:9 video

I've several old VOB's (self-recorded DVD's) with 21:9 content that is embedded in 16:9 videos… Width : 720 pixels Height : 576 ...
1 vote
1 answer
497 views

How to convert camrec to mp4 using ffmpeg?

I raise such problem but in the same post I raise the solution. The first thing to know is that the .camrec format (from Camtasia) is a compressed file, so we must first decompress these files before ...
1 vote
1 answer
266 views

ffmpeg combine multitrack audio

I have three audio files which I am attempting to combine into a multitrack audio file. ffmpeg -i A.wav -i B.mp3 -i C.wav -map 0 out.mp4 But the result seems to be (testing with ffmpeg -i) just a ...
0 votes
2 answers
196 views

Split video or export keynote slides separately

I have a problem I am struggling for 2 days. Maybe someone can give me some light. I made a huge keynote presentation (100 slides), with videos and animations. I expected to have one small exported ...
0 votes
1 answer
101 views

How can I rotate and resize a video with ffmpeg?

I use a programm that needs .mp4 video files in the resolution 1080x608 px (width x height). My original videos have a smaller resolution - mostly 640x480 px. I have to rotate my original videos 90 ...
0 votes
1 answer
659 views

Which rate control algorithm best preserves quick movement?

I gathered the following rate control algorithms are commonly used when encoding modern video formats like h264, HEVC or VP9. With a constant quantizer (-qp in terms of ffmpeg) all frames are encoded ...

1
2 3 4 5
43