Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

How to create a compatible encoding for the Blackmagic Media Express application using ffmpeg

I'm using the Blackmagic Media Express application frequently but now I'm stuck trying to transcode files using ffmpeg that will be able to play in the BME app. It seems that the BME application is ...
DrBob's user avatar
  • 1
1 vote
0 answers
103 views

How to preserve contrast/highlights when converting ProRes HDR 10-bit to SDR using hevc_videotoolbox?

I'm trying to convert a 4K HDR 10-bit video clip to BT.709, preserving as much color as possible while allowing the clip to be played where HDR is not supported. With the command below, the output is ...
jslp's user avatar
  • 21
0 votes
0 answers
59 views

FFmpeg filter use other streams characteristics

I have a workflow in which I have a ffmpeg command with several images and a video as input ffmpeg -loop 1 -r 50 -t 4.0 -i img1.png -loop 1 -r 50 -t 1.0 -i img2.png -i video.mp4 -loop 1 -r 50 -i img3....
Rems's user avatar
  • 5
0 votes
0 answers
166 views

How can make Drawtext Slide Animation on ffmpeg - Left top corner to Right bottom corner of video

I have found the command for overlaying the text "HelloWorld" right bottom to left top. but its not accurately working on edge to edge , instead its starting above the bottom edge and ends ...
Raymond's user avatar
  • 23
1 vote
1 answer
374 views

How to fix ffmpeg concatenated video playback issue?

I want to put watermarks in my video (in Specific time). I researched some sources, and it said I need to (video filter) reencode the whole video to put a watermark, but I don't have a high-end PC to ...
Raymond's user avatar
  • 23
1 vote
1 answer
313 views

FFmpeg add text in a box with rounded corners

Is there a way to add a text with countdown timer to a video using FFmpeg where the text is contained in a semi-transparent box with rounded corners with one of the side borders in a different color? ...
user1768741's user avatar
0 votes
0 answers
268 views

How to convert in ffmpeg at a constant bitrate?

I recently began encoding some of my videos, but can't seem to make ffmpeg encode at a constant bitrate as all my videos turn out to have variable bitrates. I have tried multiple commands, but nothing ...
bigboss's user avatar
  • 11
0 votes
1 answer
65 views

How to change the bitrate of a stream in the middle of a filter chain

Backgrond: I have an HSBS 3D video which is corrupt at some points, i.e. in some specific points of time, some frames are missing. Now I want to fix it (at least make it look better) in a way that I'm ...
M Mahdi's user avatar
1 vote
1 answer
329 views

Flip video with hardware acceleration ffmpeg on Windows 11

I am trying to use hardware acceleration to horizontally flip videos but I can't seem to get it right. I don't want to change the codec but just keep the same (just hflipped). I am using Intel Arc Pro ...
Sha's user avatar
  • 321
1 vote
1 answer
289 views

How to merge raw H.264 video and AAC audio streams, making sure the video matches audio duration?

I had a corrupt screen recording, and I used mp4fixer to extract the raw h264 stream and the aac streams separately. The audio sounds just fine, but the h264 stream doesn't seem to have a well defined ...
Blacklight MG's user avatar
0 votes
0 answers
118 views

ffmpeg use of ildct flag in progressive encoding

I've encountered a scenario whereby someone else has configured an ffmpeg encoding command with flags that don't make sense, and I'm having difficulty understanding their purpose. The command in ...
Mikolaj's user avatar
  • 183
0 votes
0 answers
60 views

Setting transfer characteristics for overlaying multiple videos

I just wanna know whether I can set unique values of transfer characteristics/gamma for each videos while overlaying it on top of a single video. For example :- FFmpeg command : ffmpeg -f lavfi -i ...
Prakkash's user avatar
0 votes
1 answer
148 views

Ffmpeg concat filter produces frames from different videos

I have a workflow in which I give several videos to ffmpeg, each video corresponding to a shot, and ffmpeg concatenates them to produce a single video, interlaced at 25 fps. The problem is that ...
Rems's user avatar
  • 5
0 votes
0 answers
217 views

FFMPEG filter_complex overlays work well on windows but generates error on Linux and OSX

So, I am applying multiple overlays on a video using FFMPEG, on windows it always works fine for every size and number of overlays, but in case of MAC or Linux, it generates error for reinitializing ...
Hassan Aftab's user avatar
0 votes
1 answer
469 views

Convert MKV to HLS with all audio tracks and subtitles available

For the past few weeks, I've been trying to convert MKV and HLS files. Currently, I'm burning the first available subtitle track of the file in the video and keeping only the first audio track. What i ...
Tutifruti's user avatar
0 votes
1 answer
237 views

Green pixelated issue when applying -vf flag to ffpmeg hls transcoding

I'm trying to create chunks of multiple bitrates to play them smoothly across various devices and bandwidth. But the ffmpeg command output is creating green pixelated video. If I remove the -vf flag ...
The Mask's user avatar
  • 101
0 votes
1 answer
243 views

Ffmpeg changes major_brand when trimming

I have a workflow where I trim videos like this: ffmpeg -i input.mp4 -ss 5.000000 -map 0:v -map 0:a? -c:v copy -c:a copy output.mp4 -y And I noticed that the output video has a different ...
Rems's user avatar
  • 5
1 vote
0 answers
368 views

How to Speed Up Complex Text Overlay in FFmpeg

I'm using FFmpeg to overlay text on videos, and I find the process to be quite slow. The operation becomes especially slow when I add complex drawtext filters. I'm running this on a MacBook Pro with ...
mlika's user avatar
  • 11
1 vote
1 answer
112 views

ffmpeg, need help to make small thumbnail slideshow video from long video

With ffmpeg command, I am trying to create a small thumbnail slideshow video of a large video by selecting one frame every 60 seconds and then combining those frames to make a video in a way that each ...
Pankaj's user avatar
  • 11
0 votes
1 answer
227 views

Does 'force_style' work with 'subtitles=video.mkv' for FFMPEG?

I am using this script to encode an burn in subtiles for an entire folder: for filepath in newFiles: video = os.path.basename(filepath) videoName = os.path.splitext(video)[0] newFile = '%s....
http.bird's user avatar
2 votes
1 answer
331 views

'v4l2' is not a suitable output format - why does this error appear?

I have created following script I've been using on Arch Linux to stream the camera feed to OBS #!/usr/bin/env bash set -euo pipefail sudo modprobe v4l2loopback exclusive_caps=1 max_buffer=2 gphoto2 ...
s1n7ax's user avatar
  • 181
1 vote
0 answers
161 views

can one filter_complex handle different audio layouts?

I am trying to set up an ffmpeg command that handles 2 different audio layouts on the input: type #1: a single stereo track, i.e. [0:a:0] is a stereo channel. type #2: a couple of mono tracks, i.e. [0:...
Omer Weiss's user avatar
0 votes
1 answer
898 views

Edit video h.264 metadata without encode

How can I edit these video (h264) parameters (on pic) without encode? VUI parameters "video_signal_type_present_flag" and "colour_description_present_flag". As far as I understand, ...
Ligre's user avatar
  • 1
0 votes
1 answer
587 views

How to fix encoding of video to AV1 so that video scrolling during playback is more smooth?

I have encoded the video using AV1 codec (mainly based on this and that wiki articles). The resulting video is played OK with Media Player Classic and Media Player Classic - BE, however it is not ...
dma_k's user avatar
  • 386
0 votes
0 answers
97 views

ffmpeg takes a lot of time when splitting a video towards the end

I have a 3 hours long video and I am trying to split the video at given intervals. The intervals which appear earlier are quickly split but the later ones takes a lot of time. The command that I have ...
Suvid Sahay's user avatar
1 vote
1 answer
799 views

ffmpeg shows "get_buffer() failed". Is this a bug?

ffmpeg version 2023-06-19-git-1617d1a752-full_build-www.gyan.dev i7-1255U, Windows 11 The command line is "ffmpeg.exe" -y -hwaccel qsv -ss 00:00:03.461 -to 00:00:12.009 -i "input....
Ryan's user avatar
  • 43
0 votes
0 answers
295 views

ffmpeg concat with filter eats up all memory

I have been trying to produce a indefinite loop of a list of videos in a folder. For testing purpose, I am using only 2 videos as input. I then concat them to produce an output of 1280X720 output. ...
Bardan Pokhrel's user avatar
1 vote
1 answer
144 views

Why does my SVT-HEVC-encoded video run out of sync?

I'm trying to transcode a video (with audio) to HEVC using Intel's SVT-HEVC encoder. The video's audio tracks are in sync before transcoding. Both ffprobe and mediainfo agree that the input video is ...
Cygon's user avatar
  • 379
1 vote
0 answers
567 views

Why does the video file (x264) made with ffmpeg have a much higher bitrate compared to when I reencode it using the same settings in Handbrake?

I'm a ffmpeg beginner and am converting a series of .png images taken every 10s into a timelapse video. The images are named pic1.png, pic2.png, etc. For this I'm using the following ffmpeg command: ...
Istria's user avatar
  • 11
0 votes
1 answer
1k views

ffmpeg - How to create a video with a PNG file and keep the same colors

I use a PNG file to create a video. I create the PNG file with Inkscape. The SVG file in Inkscape, the PNG file opened in Chrome show the same colors. Nevertheless the colors of the video (opened in ...
Sam's user avatar
  • 101
1 vote
0 answers
236 views

FFMPEG - process interlaced frames in mixed footage separately

I have a video file - an NTSC DVD rip. I want to convert it into PAL. The problem with that NTSC DVD is that it's a mixture of 23.976 fps telecined content and true 29.97 fps interlaced content. I ...
Compact's user avatar
  • 11
1 vote
0 answers
296 views

ffmpeg last frame freezes, audio keeps playing

I'm using fffmpeg to cut an H.264 video into specific shots. I need it to be frame accurate, which isnt a problem if I only encode video (now that I know how to calculate the ms from the number of ...
Adiego's user avatar
  • 11
2 votes
1 answer
2k views

errors in encoding avc x264 to av1 using latest ffmpeg libaom linux

I have a system with Intel i3 10th generation processor and Asus H510 me motherboard. I have installed Arch Linux x86_64 latest version and after that I have installed aom package from official ...
Guddla Rupesh's user avatar
1 vote
1 answer
215 views

FFmpeg does not copy over chapter atoms when I try to remove subtitles

I have some videos encoded from The Criterion Collection, and their videos use these things called "chapter atoms". What is really odd is that ffprobe does not detect these. I assume that ...
mrjpaxton's user avatar
1 vote
1 answer
829 views

Why is the scale filter ignoring the out_color_matrix option?

I'm testing on an input that has none of its colour metadata set: ffprobe -v error -show_streams "input.mp4" | grep color color_range=unknown color_space=unknown color_transfer=unknown ...
Hashim Aziz's user avatar
1 vote
2 answers
2k views

Why does hardware encoding in FFMPEG result in lower quality when using CRF, which is supposed to be quality-based?

I've recently been encoding videos using FFMPEG through the Shutter Encoder GUI. I've been using CRF as a quality indicator, since I don't care about filesize as long as it is encoded as efficiently ...
Southpaw1496's user avatar
0 votes
0 answers
271 views

Which options are incompatible with CRF, CQP?

What settings should not be used when using CQP, CRF modes. I read that 2pass mode is not compatible with constant quantization modes. It is also recommended to disable adaptive quantization. Maybe ...
Sandrix's user avatar
0 votes
0 answers
251 views

How to achieve the following stream information using FFMPEG parameters?

Duration: 00:52:37.26, start: 0.000000, bitrate: 1329 kb/s Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 1210 kb/s, 24 fps, 24 tbr,...
jiannechuidian's user avatar
0 votes
0 answers
223 views

Live video in facebook is lagging while using ffmpeg from video link

Livevideo in facebook is working fine for local device video(case 1) but its having lagging issue from video link(case 2) using FFMPEG. Please find command for the same and log. Case 1 - Command : ...
Isteyak Ali's user avatar
0 votes
0 answers
531 views

Which properties have to match to use the concat remuxer in ffmpeg?

I am trying to generate a video to be concated into another video via the ffmpeg concat remuxer. The remux process needs to be extremely efficient for my purposes so I am trying to generate the video ...
Gradyn Wursten's user avatar
0 votes
1 answer
235 views

Looking to compress just a PGS stream of a video

I have a video stored as an mkv with pgs subtitles. I noticed when I burn the subtitles in with this command hereffmpeg -i "movie.mkv" -filter_complex [0:v][vid];[0:s:1][sub];[vid][sub]...
goodkid38's user avatar
0 votes
1 answer
1k views

How to concatenate videos with different bitrates using ffmpeg

I want to concatenate two files having the following outputs from ffmpeg : file1: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file1.mp4': Metadata: major_brand : isom minor_version : 512 ...
raoulpetite's user avatar
2 votes
2 answers
7k views

How to compress a video to VVC(h266) or Versatile video Coding

I have a h264 video. I want to compress it to Versatile Video Coding(h266) by using ffmpeg. Can anyone tell me how to do it by using ffmpeg or any other way.
Md.Rakib's user avatar
0 votes
1 answer
377 views

Trim .tp files without re-encoding

I'm currently using ffmpeg -ss xx:xx -to yy:yy -i input -c copy output to cut some files and it works fine with .ts and .mp4, but it can't handle .tp files. Here's what I get: [mpegts @ 0x198acd0] PES ...
tyrande's user avatar
  • 11
1 vote
2 answers
3k views

Convert 10bit HDR video to 8bit frames

I want to convert a yuv420p10le video into .png frames at 8bit (0,255) without washing away the colours. How can I do that? The usual command I use is: ffmpeg -i input.mp4 '%05d.png' However this ...
Dave's user avatar
  • 41
0 votes
0 answers
151 views

ffmpeg dont stop output on input finish

I need help with behavior that is incomprehensible to me. Ubuntu 20 system, compiled ffmpeg by Nvidia's GIT for CUDA support. At the start of the conversion ffmpeg continues to write output ...
Windstyle's user avatar
1 vote
0 answers
640 views

What variant of Spline algorithm is used in "spline" parameter from "scale" filter?

FFmpeg has two filters to scale the video: scale and zscale - zscale has spline16 and spline36 parameters (they represent Spline16 and Spline36 variants of the algorithm), scale has spline parameter. ...
Lex's user avatar
  • 343
21 votes
6 answers
17k views

ffmpeg: limiting to single CPU core when encoding h264

I need to reduce the framerate of some H.264 videos in the background without maxing out my CPU (on Linux). Somehow -threads 1 has no effect at all: ffmpeg -threads 1 -i 50fps.mp4 -filter:v fps=30 ...
kontextify's user avatar
2 votes
1 answer
2k views

Ffmpeg producing worse result than Handbrake using x265 with identical settings

I'm trying to replicate Handbrake settings with ffmpeg, because I'd like to add some metadata and some other things with ffmpeg that Handbrake can not do. What I've done seems to be close, the ...
DD3R's user avatar
  • 85
0 votes
1 answer
277 views

how to combine two ffmpeg commands into one?

I am currently using this command to cut the first 10 seconds of all videos in a folder so the output is the whole video minus first 10 seconds. FORFILES /M "*.mkv" /c "cmd /c ffmpeg -...
che10's user avatar
  • 1

1
2 3 4 5 6