Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [video-encoding]

Specific issues with encoding video to a certain format, also related to [video-conversion]

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

Segmented File Size

In VirtualDub2, when I select "Save segmented AVI", it uses the default settings which are set to raw video and PCM for audio. How do I change it to other settings like H.264 and AAC? If ...
Calvin Jack's user avatar
0 votes
0 answers
18 views

YUV: Change the Chroma Subsampling and Bit Depth Without Losing Quality

Let's say I have a short video with YUV 4:4:4 and 10bit depth, and I convert it to a FFV1 with YUV 4:2:0 and 8bit depth. Is the FFV1 lossless? Will the colors be the same? If so, how do I convert ...
David Pilling's user avatar
0 votes
0 answers
102 views

How to correct Dolby Vision HDR video on Windows 10 (it is correct after sharing on Facebook)

I have a video that is recorded from an iPhone in Dolby Vision HDR. When playing it using the Windows Films & TV app, the colours look washed out (I assume it is because Windows does not have ...
A G's user avatar
  • 583
1 vote
0 answers
62 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
14 views

How to create a video encoding ladder for any aspect ratio?

For a given video uploaded by a user, I need to create three versions of it to cover standard definition (SD), high definition (HD), full high definition (FHD), and ultra high definition (UHD e.g. 4K)....
volume one's user avatar
0 votes
0 answers
58 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
148 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
277 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
225 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
201 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
58 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
269 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
  • 311
1 vote
1 answer
242 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
103 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
49 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
141 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
192 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
427 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
191 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
222 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
336 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
101 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
206 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
304 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
143 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
798 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
549 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
96 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
717 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
269 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
0 votes
0 answers
717 views

OBS, other encoder than FFmpeg VAAPI H.264 and x264?

Linux + Intel HD 620. I can see only two options. If what I read on the web is correct, the GPU is capable of encoding H265 or VP9. Why can't I encode in those formats? Is this because OBS does not ...
Damn Vegetables's user avatar
1 vote
1 answer
136 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
530 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
956 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
0 votes
2 answers
529 views

What does this stat mean in YouTube Stats for Nerds? [closed]

Under the field Current/Optimal Res, the resolution is followed by an '@' symbol followed by a number. I have tried to find out what this number represents but could not find any source. I am guessing ...
Samina Mulani's user avatar
1 vote
0 answers
218 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
260 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
197 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
782 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
  • 12.9k
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
264 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
119 views

Is there a video container format (mainstream or experimental) that can properly transmit Black Mirror's Bandersnatch?

Black Mirror's Bandersnatch From Wikipedia: Black Mirror: Bandersnatch is a 2018 interactive film in the science fiction anthology series Black Mirror. It was written by series creator Charlie ...
John O's user avatar
  • 755
0 votes
0 answers
232 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
217 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
505 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
226 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
6k 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
369 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
2 3 4 5
8