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
8 views

Using FFmpeg to detect alpha channel in PR4444 file

I wanted to comment on a thread that already exists on this topic in general, but I just signed up to SO and have not earned my contribution credits yet! If anyone has advice on how to better handle ...
user43134's user avatar
0 votes
1 answer
9 views

Possible to force FFmpeg to omit silence in audio files and produce discontinuous `webm`/`mka`?

Does webm/mka/mkv/mp4 support discontinuous audio streams? I'm wondering, can ffmpeg transcode .wav-audio into opus-encapsulated-into-webm, but filter out silent frames - especially full seconds of ...
Vadim Kantorov's user avatar
0 votes
0 answers
11 views

Trying to Scan for Frames of a Specific Image in Video File Using FFmpeg Without False Positives

Before I get into my problem, fair warning - I have absolutely zero experience using ffmpeg or that much with code in general, so I barely know what I'm doing. I know what I want to do and have a ...
NFIAAIFF's user avatar
0 votes
0 answers
8 views

Combine images and draw text on each image with animation xfade

I am using ffmpeg to merge multiple images and an audio to produce a video. I am using drawtext and xfade with dissolve transition. My ffmpeg command is given below. ffmpeg -loop 1 -t 5 -i ./img/img0....
Imran Khan's user avatar
0 votes
1 answer
21 views

Convert video from webm to mp4 using ffmpeg

I have 10 webm videos, each one has the same size ~15mb. When I run following code: ffmpeg -i video1.webm -f mp4 video1.mp4 9 of them finish in ~10 seconds, but 1 lasts more then 3 minutes. I run ...
datahack's user avatar
  • 101
0 votes
0 answers
13 views

Cutting and rejoining videos causes audio de-synchronization using ffmpeg

I'm trying to cut a video into pieces and rejoin them using ffmpeg on Windows 11 x64. Here's the details of ffmpeg: ffmpeg version 2023-11-22-git-0008e1c5d5-full_build-www.gyan.dev Copyright (c) 2000-...
Donotalo's user avatar
  • 101
0 votes
1 answer
10 views

ffmpeg Config to Produce H.264 Constrained Baseline Profile

It all begins with Plex and appears to end at ffmpeg as the easiest possible solution. I love ffmpeg! I use Plex running on Linux to stream over home network to a Roku. I've used this for years ...
Dave Gutz's user avatar
0 votes
0 answers
18 views

The problem with converting ts files to mp4

So I download ts files from h264.m3u8. The files look like this "https://.net/data/3/a/e/6d162b532610fdae/h264_00000005.ts ". I merge them into one common ts file. And I'm trying to get an ...
Ryan 's user avatar
0 votes
0 answers
11 views

Errors adding multiple Subtitles with FFMPEG

I am trying to soft-encode 3 subtitle files into my film. I extracted the subtitles from the DVD using ByteCopy I am using this command to add the files: ffmpeg -i BloodDiamond.mp4 -i ...
Our Man in Bananas's user avatar
0 votes
0 answers
8 views

How to update this script to generate HLS video with different resolution streams?

I have the following FFmpeg script: ffmpeg -i video.mp4 -i video.vtt \ -map 0:v -map 0:a:0 -map 1 \ -s:v:0 1080x1920 -c:v:0 h264 -b:v:0 500K \ -c:a:0 copy -c:a:1 copy -c:a:2 copy -c:s webvtt \ -f ...
Andy's user avatar
  • 1
0 votes
0 answers
16 views

How to stitch two videos side by side using ffmpeg?

I want to create a video that consists of same video encoded at 2 different quality levels, half of each stitched side by side. Basically, like this image, right half of the video is the right half of ...
Mary's user avatar
  • 101
0 votes
0 answers
14 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 ...
Rino's user avatar
  • 11
0 votes
0 answers
7 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 ...
rosner altamira's user avatar
0 votes
0 answers
28 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 ...
antoox's user avatar
  • 113
0 votes
0 answers
17 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....
CEr's user avatar
  • 1
0 votes
1 answer
17 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" "...
buddhabas's user avatar
0 votes
1 answer
21 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 ...
Qasim Rao's user avatar
0 votes
1 answer
15 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 ...
Ethan T's user avatar
  • 103
0 votes
0 answers
7 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 ...
user3450548's user avatar
  • 1,616
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'...
lukascbossert's user avatar
0 votes
0 answers
14 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 ...
Michael Ciesielczyk's user avatar
0 votes
0 answers
31 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,...
RSD's user avatar
  • 1
0 votes
0 answers
22 views

'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 ...
R. Key's user avatar
  • 1
1 vote
0 answers
27 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 ...
Michael Ciesielczyk's user avatar
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' ...
user1855805's user avatar
0 votes
1 answer
51 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 ...
antoox's user avatar
  • 113
0 votes
0 answers
11 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 ...
Mohamed Taher's user avatar
0 votes
0 answers
18 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 ...
John Freeman's user avatar
0 votes
1 answer
33 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 ...
mivk's user avatar
  • 567
0 votes
0 answers
31 views

Concat a video and an audio using ffmpeg, freezing the last video frame, without re-encoding

I'm trying to concat a video (mp4) and an audio (mp4 or aac) - both cut out using -ss and -t from the same mp4 file. I'd like to basically freeze the last frame from the video and then append the ...
Vadim Kantorov's user avatar
1 vote
1 answer
33 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=...
Rino's user avatar
  • 11
0 votes
0 answers
12 views

How to play video at correct frame rate?

I have a video recorded with fps 15 and when I reply it with mplayer it is replayed way too fast (it has a timestamp in it so you can see it is at least double as fast as normal speed). Even when I ...
Alex's user avatar
  • 101
0 votes
0 answers
28 views

How to stack two videos with ffmpeg if they might have different size, format, framerate etc?

I have two videos in different formats, sizes, video quality, framerate etc, but I want to stack them as SIMPLE as possible. Does not need to look good, but in the final video I want to see both ...
Alex's user avatar
  • 101
0 votes
0 answers
23 views

How to inject video into a live stream?

When you have two or more live streams, and you want the ability to toggle between the two, such as switching to camera 2's feed on the main screen, how do you do that and what do you need to ...
espeed's user avatar
  • 101
0 votes
1 answer
15 views

ffmpeg make 1s of 240fps video from 4s of 60fps?

How can I use ffmpeg to create 1 second of 240fps from every 4 seconds of 60fps video? I see only seen questions asking for the opposite. Background Our drone is only able to capture 60fps, but if we ...
Wayne Bloss's user avatar
0 votes
0 answers
55 views

ffmpeg - best way to zoom in/out an overlay image by its center without jerky movements

I am trying to use ffmpeg to zoom in & out an image with its center as origin & overlay the animation over a background image. Details: The background image is a 300x250 jpeg file, the button ...
antoox's user avatar
  • 113
0 votes
0 answers
16 views

How to turn-off Anti-aliasing when convert video into gif file with ffmpeg

I want to know how can i turn off Anti-aliasing when i convert video into gif file with ffmpeg, Actually i want ouput in 100% pure aliased gif animation. like this sample image Here i try this but ...
NewPal's user avatar
  • 1
0 votes
0 answers
18 views

Why does setting the bitrate with ffmpeg has no affect on the filesize?

I am trying to lower the bitrate of a video using ffmpeg to 1000 bits/s and 500 bits/s using the commands ffmpeg -i __temp__.mp4 -vf "scale=-2:360" -b:v 1000 out_1000.ts ffmpeg -i __temp__....
Alex's user avatar
  • 101
0 votes
0 answers
17 views

verify lossless in H.264

i've transcoded an interlaced JPEG2000 video file to H.264 using ffmpeg. following the guidelines, i constructed the following command line: ffmpeg -hide_banner -i $input \ -vf tinterlace=0 \ ...
david furst's user avatar
0 votes
1 answer
38 views

Replicate the behavior of -r option before applying filters

When converting the framerate of a video, ffmpeg offers multiple options one options is -r: ffmpeg -i myvideo.mp4 -r 10 my10fpsvideo.mp4 another option is using filters: ffmpeg -i myvideo.mp4 -...
BlueMagma's user avatar
  • 101
0 votes
1 answer
67 views

ffmpeg - overlay position at the end of the video is wrong

I am trying to move a shape (an image) over a background image to each corner. Here is the video example I generated with ffmpeg. As you can see from the example, at the end of the video the shape is ...
antoox's user avatar
  • 113
1 vote
1 answer
36 views

Is there a way to split up an AVCHD file into smaller files (Sony HXR-NX5R)

From an all day event shoot, I have a 13 hour file recorded on a Sony HXR-NX5R camera. Catalyst Browse transferred the 160GB file OK, Premiere imported the file (but choked for quite a while doing so),...
Peter Barton's user avatar
0 votes
0 answers
33 views

variable timestamps for audio samples in MP4

Consider the following ffprobe output for a MP4 file. This is an extraction of first 10 frames in the audio stream and its metadata. The audio stream has a sampling rate of 48000, and is encoded with ...
userDtrm's user avatar
  • 141
0 votes
0 answers
13 views

Best ffmpeg compression settings for fast seeking of long 4 hour clip

I've got a low-resolution 4 hour clip, and need to do a lot of seeking in the video to write down when stuff happens. Do you have any suggestions for what format/settings would be the most "seek-...
Benjamin H's user avatar
1 vote
1 answer
32 views

Why does VMAF show lower then 100 on same image?

I'm testing ways to compare image similarity using ffmpeg. I'm looking at using SSIM, PSNR and VMAF. For reference, I'm running the comparison with duplicated sources and expect a score of 100%. ...
o_ren's user avatar
  • 121
2 votes
1 answer
46 views

Can FFmpeg create a gradient box with colors sampled from the box edges?

As shown in these video screen captures, I would like to replace the text in the upper left of the videos to another language. What I am thinking is first to create a gradient box with colors that are ...
Majal's user avatar
  • 131
1 vote
0 answers
59 views

FFMPEG - Partial fade effects

I'm having difficulty achieving the desired fading effect for the logo in my video using ffmpeg. I would like to make a 3-second video (here is an example) with: A background image (300x350 jpeg file)...
antoox's user avatar
  • 113
0 votes
1 answer
116 views

restreaming rtsp using ffmpeg delay problem

I have ip and usb cameras. I try restream rtsp from camera using ffmpeg and mediamtx (rtsp simple server). For usb camera it works fine without any delay: mediamtx output: anton@anton:~$ ...
Anton's user avatar
  • 1
0 votes
0 answers
35 views

Better compression for h265 transparent mov video

I created a 3d animation that I converted from an image sequence (211 pngs @ 30fps) using this command: ffmpeg -framerate 30 -pattern_type glob -i '*.png' -vf "scale=460:-1" -c:v libvpx-vp9 -...
flks's user avatar
  • 163
0 votes
0 answers
44 views

ffmpeg vaapi encoding with opencl filters

I would like to encode with hevc_vaapi and also to filter with nlmeans_opencl. I've tried many combinations, such as ffmpeg -y -vaapi_device /dev/dri/renderD128 -init_hw_device vaapi=vaapi -...
cipper's user avatar
  • 101

1
2 3 4 5
43