Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
240 views

Why am I getting pixelated videos in FFmpeg when converting to a GIF?

I want to encode this WEBM video: https://buggem.github.io/connecting.webm I have been noticing the fact that FFmpeg has been played up when it comes to quality. I am doing WEBM to GIF, if that ...
Missing User's user avatar
1 vote
1 answer
428 views

Want to understand encoding with Opus for maximum audio quality in FFmpeg. Bitrate stuck at 96kbps?

I'm sort of new to FFmpeg, but I got much of the basics down. I am trying to understand how to encode audio with Opus. My knowledge is a bit weak when it comes to audio, bitrates, sample rate and Hz. ...
peppy's user avatar
  • 13
0 votes
1 answer
148 views

Complex ffmpeg multi-encode/streamcopy/muxing scenario: is this actually doable?

I'm trying to do multiple muxing/re-encode/copy operations on an input video with ffmpeg and have run into roadblocks with the methods I've tried; before I continue testing, I want to confirm whether ...
rudds's user avatar
  • 3
0 votes
1 answer
1k views

Constructing encoding statements using ffmpeg QSV and Intel ARC card

I purchased an Intel ARC A770 with the intent to test hardware encoding with AV1 and HEVC under Linux. Being newer to ffmpeg, I need help constructing ffmpeg statements to engage the Intel QSV ...
videomouse's user avatar
1 vote
1 answer
172 views

FFmpeg - Use same encoded audio for multiple outputs

I have an input file that I am encoding with multiple output resolutions. I want to use the exact same audio encoding parameters for each output video file (-c:a aac -b:a 64k -ac 1). For a performance ...
pkSML's user avatar
  • 466
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
176 views

FFmpeg: How to encoding h264 mkv files in h265 mkv and keep the 2 subtitles streams?

I've lots of mkv files in h264 format with 2 languages of subtitle, and I'm trying to convert them in h265 (with cuda) and keep the 2 subtitles streams. I've tried that: ffmpeg -i "xxx.mkv" -...
ShkYo's user avatar
  • 11
0 votes
0 answers
188 views

FFMPEG encode interlaced frames

I try to encode incoming frames using FFMPEG to h264 and write it to an SD card. I get the raw frames as memory buffers from hardware and then use the FFMPEG C API to encode those. Encoding is running....
user3219624's user avatar
1 vote
1 answer
1k views

ffmpeg video encoding has no audio

When I convert any video in ffmpeg - e.g. mp4 to mkv, mkv to mkv - I lose audio for some reason here are the parameters I originally used: ffmpeg -i input.mkv -vf scale=640x480 -vcodec libx264 -...
Patrick Hydar's user avatar
1 vote
0 answers
60 views

Spliting video with ffmpeg producing wrong durations

I'm currently using a framework where I have to split a video (originally encoded with HEVC video and AAC audio) in multiple parts to process them separately. Then the final result is obtained by ...
user112346's user avatar
0 votes
0 answers
59 views

Encoding MKV File Without Changing Header Information

I captured a video using a Kinect Azure SDK device. This captured video (.mkv container) has three tracks: Color, Depth and IR. I extracted the Color track using MKVToolNIX. I could playback this RGB ...
Ashutosh Singla's user avatar
0 votes
1 answer
486 views

ffmpeg and QSV works on three PCs, but not the fourth

As the title suggests, I've used ffmpeg with x264_qsv hardware acceleration on two Windows 7 systems and one Windows 10 system successfully. I have now tried to set it up on a fourth system which is ...
Bart Lederman's user avatar
2 votes
1 answer
1k views

ffmpeg nvenc throws an error after I modified an x264 command

I'm trying to convert this command to work on nvenc hvec video encoder to just make it faster and utilize my 3060: ffmpeg -i video.mkv -i logo.png -filter_complex "[1]format=rgba,...
Candour's user avatar
  • 25
0 votes
0 answers
340 views

How to fix "Could not find tag for codec timed_id3 in stream #0"?

ffmpeg gives me the following error for some videos. Could not find tag for codec timed_id3 in stream #0, codec not currently supported in container Could not write header for output file #0 (...
mbnoimi's user avatar
  • 101
0 votes
0 answers
246 views

Rotation metadata not changing when encoding with ffmpeg

[UPD: Checking metadata with exiftool -rotation] Been struggling for a few days, here is the setup: ffmpeg -i input.mp4 -c copy -metadata:s:v:0 rotate="-90" output.mp4 changes the output....
Vlad Sutyrin's user avatar
2 votes
1 answer
2k views

Is it okay to re-encode videos from traditional lossless codec to modern lossless codec to save space and preserve quality?

Lossless video codec means almost zero information loss. After some internet search I found that there are some traditional opensource lossless codec like huffyuv, lagarith, utvideo and ffv1, which ...
ArchBug's user avatar
  • 21
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
0 votes
0 answers
316 views

Ffmpeg: how to get information about rawvideo encoder

For example, when i type: ffmpeg -h encoder=ffv1 I have information about supported pixel formats: Supported pixel formats: yuv420p yuva420p yuva422p yuv444p (...) and settings: ffv1 encoder ...
Skyfall's user avatar
0 votes
0 answers
305 views

How to re-encode audio of a video file - not touching video stream - ffmpeg

I have a video file but unfortunately the davinci resolve is not able to read audio I want to re-encode audio I think aac 192 or mp3 192 would be sufficient How can I re-encode only audio by using ...
Furkan Gözükara's user avatar
0 votes
1 answer
109 views

What are the constraints for lacking encoder support in FFmpeg?

According to the documentation, there are several video and audio codecs with missing encoder support. Is this typically because: A) The encoder is copyright protected. B) The encoder implementation ...
Skretzo's user avatar
  • 11
0 votes
1 answer
2k views

Scale_Cuda or Scale_npp no such filter found error

I, I have been trying to use hardware transcoding using nvidia GPU, everything works fine but when I use scale filters such as scale_cuda or scale_npp, I get an error no such filter. I have tried ...
Beevo's user avatar
  • 1
0 votes
0 answers
115 views

How to convert a group of videos to 320x240 with letterboxing in ffmpeg with varying dimensions?

I have a directory with around 660 videos in it. I have written a PowerShell script to loop over the files in the directory - but I am stuck at the conversion piece with ffmpeg. The most recent ...
Barry Chapman's user avatar
0 votes
1 answer
169 views

Open .mp4 files in Adobe Media Encoder through a batch file

I would like to create a .bat or PowerShell script that loads all the .mp4 files from the folder where the script is in Adobe Media Encoder, the aim is to facilitate the day-to-day workflow. I built ...
Tyrone Hirt's user avatar
2 votes
0 answers
2k views

How can I smooth/deblock a video file with FFMPEG?

I am not interested in upscaling my video file, but am instead interested in just encoding it to smooth out the pixelation of my files. My files are from a T2i DSLR and I'd just like to smooth out the ...
Zachary Goodwin's user avatar
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
144 views

How to export mestimate filter motion vectors into a separate file with ffmpeg binary?

So mestimate filter can be used to compute the motion vectors in a video. They can also be displayed. Is there a way to export them into a separate file using the ffmpeg binary? I would love to have ...
Hitokage's user avatar
  • 121
0 votes
1 answer
2k views

Encoding HEVC to HEVC to reduce file size

I'm trying to re-encode an HEVC/x265 file yet I'm getting an error. I used these commands and it's not working D:\FFmpeg\bin>ffmpeg -i output2.mkv -c:v libx265 -preset slow -b:v 3000k -x265-params ...
Kyle's user avatar
  • 1
0 votes
1 answer
1k views

Constrained CRF vs ABR with VBV-constrained bitrate for VoD

In this post slhck mentions that for VoD (not to be confused with live streaming) one should use one of the two methods for compression: Capped CRF ABR with VBV-constrained bitrate I feel pretty ...
Arete's user avatar
  • 1,478
4 votes
2 answers
10k views

Force ffmpeg to produce constant frame rate

Why does ffmpeg produce variable frame rate output? I have an input file, that when I run it through MediaInfo it tells me it's a constant frame rate video: Video ID ...
dropbear's user avatar
  • 143
2 votes
1 answer
2k views

FFmpeg won't encode at [email protected]

I've been messing around with Topaz's Video AI enhancer, and I've been trying to encode the png files the AI outputs via FFMpeg. It works fine so far, aside from that the exports I'm getting are ...
Reubenno's user avatar
1 vote
0 answers
294 views

Cannot start livestream on youtube even though ffmpeg seems to work?

I am a novice on ffpmeg and trying to go for a livestream youtube radio via azuracast. I have created an instance on oracle cloud and installed azuracast there. I can listen to the songs I uploaded in ...
mlee_jordan's user avatar
0 votes
0 answers
1k views

FFmpeg: What are the h264_vaapi and hevc_vaapi encoders? How do they work? Do they just use the Video Coding Engine / Encoding ASIC on AMD GPUs?

The last part especially is what I'm wondering. How exactly does VAAPI work? Does it just use the the way that NVENC or h264_amf and hevc_amf works? Would it be possible to use the main GPU cores on ...
Oneechan69's user avatar
0 votes
1 answer
1k views

FFProbe output timebase only

When running ffprobe, it displays a lot more data than I need. I've already included the -hide_banner flag and its helped clean it up, but more specifically I only need the tbn Is there a way to limit ...
Video Guy's user avatar
0 votes
0 answers
1k views

What is the suitable H/W compatibility for av-1 encoding

Some videos are transcoded, h264 on ARM machine, h265 on Intel Skylake and av-1 on Intel RocketLake. File savings are better with av1 at the same quality but still at a high computational cost. Avg ...
SKV's user avatar
  • 19
1 vote
1 answer
86 views

Simplify scritps in ffmpeg

This is my first post, so apologie in advance. I normally use HandBrake to encode to 265 all my files, but the problem is not passthrough for subs, those change to ssa (from srt). This format is a ...
Jordi Bartu's user avatar
0 votes
1 answer
1k views

FFMPEG x265 encoding wrong settings for some sources

I am trying to encode a file with this command line: ffmpeg -i "source.mp4" -c:v libx265 -preset slow -crf 23.8 -vf scale=1920:-1:flags=lanczos -x265-params ref=6:bframes=5:no-sao=1:no-...
Tony's user avatar
  • 3
1 vote
0 answers
530 views

ffmpeg reads wrong timecode

I use ffmpeg to generate proxy files but for some reason the timecode is wrong. When i open the original file in DaVinci Resolve it always shows double the timecode that ffmpeg (ffprobe) reads. e.g. ...
user1610384's user avatar
2 votes
1 answer
6k views

How to encode to HEVC using ffmpeg with VAAPI in order to get good video quality? (at reasonable bitrates)

I want to encode many of my H264 videos to H265 video with reduced resolution (480p or something in this case, at most 720p) so they don't take too much space on the disk. I've been trying to use ...
user79's user avatar
  • 56
1 vote
1 answer
508 views

Can Intel QuickSync video create interleaved H.264 video with ffmpeg?

In ffmpeg, rather than using libx264 I'd like to use the Intel QuickSync accelerated encoder to encode to H.264 interlaced video. I can't find any documentation which says if the quicksync encoder ...
Danny's user avatar
  • 191
2 votes
1 answer
362 views

Is it possible to conditionally enable or disable filters/streams with user input?

I have a Bash script that runs FFmpeg on a given video file and - along with lots of other things - adds a PNG watermark to it using an overlay. I'd like to be able to only apply the watermark on some ...
Hashim Aziz's user avatar
1 vote
1 answer
3k views

Reduce video frame rate from 60 to 30 fps without re-encoding and keeping original duration

I have a video with these specifications: 4320x2160p 60 fps 20.0 Mb/s bitrate AVC format (x264) Since my smartphone can play videos up to 30 fps at that resolution, I need a fast way to reduce the ...
matteof93's user avatar
2 votes
1 answer
10k views

Can't convert with FFMPEG using NVENC "10 bit encode not supported"

I'm setting up Sickbeard MP4 Automator (calling it Automator now) to process video files after I receive them. Currently what I want it to do is to turn every file into x264 with NVENC acceleration, ...
Beefmaster5000BCE's user avatar
2 votes
0 answers
13k views

What is the difference between Lavf58.29.100 and Lavc58.134.100 eac3 encoding using H265 in ffmpeg?

What is the difference between Lavf58.29.100 and Lavc58.134.100 eac3 encoding using H265 in ffmpeg? I created a mkv file using ffmpeg and handbrake software but both using different encoding, ...
kup's user avatar
  • 121
0 votes
1 answer
4k views

Range of "global_quality" value for h264_qsv encoder?

What is the range of the -global_quality setting for ffmpeg's h264_qsv encoder (4.3.2-2021-02-27-full_build-www.gyan.dev, Windows)? Ffmpeg's documentation for the encoder (archive) states: The ...
Jason C's user avatar
  • 10.9k
1 vote
1 answer
1k views

Encode video to lower file size with ffmpeg

I have this script which I am working on to encode a video into smaller file size: echo off set arg1=%1 set _filename=%~n1 set _extension=%~x1 shift ffmpeg -i %arg1% -c:v h264_amf -crf 18 -preset slow ...
cyberquarks's user avatar
2 votes
1 answer
2k views

FFmpeg errors "encoding frame failed" and "Can't encode audio frame" when attempting to export from Audacity

Attempting to use Audacity to export any type of audio file that is dependent on FFmpeg (AAC, Opus, etc.) fails with two successive dialog boxes: FFmpeg: ERROR - encoding frame failed FFmpeg: ERROR -...
DeltaT's user avatar
  • 21
0 votes
1 answer
233 views

Some audio tracks become vorbis after encoding with ffmpeg

I encode a file with several audio tracks. Some of them must be copied (already AC3), some of them must be encoded (DTS to AC3). But tracks 0:a:8 and 0:a:9 become "vorbis" (5.1 and 2.0 ...
Malefic Max's user avatar
1 vote
1 answer
786 views

Replace section of audio in a video with FFmpeg

I have a Recording A (video and audio) with a length of about 42 minutes. I also have a separate Audio Stream B of the same event, which is identical to the audio in the video except it's a) much ...
Hashim Aziz's user avatar
0 votes
0 answers
98 views

Not seeing much an improvement to x265 encoding after libmfx rebuild for ffmpeg

OK I guess I am just asking if this is normal or not. I have rebuilt my ffmpeg to use the libmfx/HDi driver. I have seen a significant improvement in the x264 encoding, around 4.5 time faster from my ...
Netspud2K's user avatar
  • 144
0 votes
0 answers
61 views

How to ignore transparency when using ffmpeg with PNG files? [duplicate]

Every topic I find shows how to keep the transparency but I want to remove it without having to change the image format. Camtasia is crashing when I import the ffmpeg encoded MP4 file using the PNG ...
Joan Venge's user avatar
  • 1,496