Skip to main content

Questions tagged [h.265]

H.265 (also known as HEVC) is the successor to the popular H.264 video codec, which is supposed to improve its performance by 50% and more

Filter by
Sorted by
Tagged with
1 vote
0 answers
19 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
100 views

How to convert heic format to jpeg format

The ffmpeg master branch already supports the heic format. How do I pass parameters using the ffmpeg command to convert heic images to jpeg images of other resolutions?
zejia lin's user avatar
1 vote
1 answer
103 views

"-vf crop" doesn't work on FFMpeg hevc_nvenc

This command line downscales fine my 4k video: $ ffmpeg -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i input_video.mkv -vf scale_cuda=1920:1080:interp_algo=bicubic -c:v hevc_nvenc -preset slow -...
membrillo's user avatar
0 votes
0 answers
89 views

Extract frame from .hevc video with ffmpeg

I use the following command to create a snapshot 10 hours into a video: ffmpeg -y -ss 36000.0 -i INPUT -frames:v 1 -q:v 1 output.png But I'm running into an issue where this command doesn't work with ....
Gman's user avatar
  • 23
0 votes
0 answers
134 views

ffmpreg increased framerate when I tried to extract HEVC video to .hevc and .h265 extension

I tried to extract video track from the mp4 file. Here's the metadata for video track Stream #0:0[0x1](und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(pc, progressive), 3832x1600 [SAR 1:1 ...
pop_shswt's user avatar
1 vote
0 answers
281 views

FFmpeg HLS conversion with HEVC and fmp4

I've tried everything but I can't get this to work: I'm trying to convert a .mkv AVC video to HLS with HEVC codec, also creating two streams for 1080p and 720p quality, and the command I came out with ...
mrpino's user avatar
  • 11
0 votes
0 answers
105 views

Decode frame sequence exception while NVIDIA GPU is used for H265 video decoding acceleration

We are using NVIDIA GPUs (model: GTX1050TI) to accelerate H.265 video decoding and rendering, and DXVA2 hardware acceleration is used. The version of FFmpeg is 4.2.2. If the video is played for a long ...
uproar's user avatar
  • 1
1 vote
0 answers
197 views

Force media info rewrite with ffmpeg

I have a bunch of video files created by MKVToolnix that have a Codec ID like: V_MS/VFW/FOURCC / HEVC. I tried to run this: ffmpeg -i test.mkv -c copy test.avi to turn it to avi and then this: ffmpeg ...
Fabio's user avatar
  • 11
0 votes
0 answers
1k views

Is it possible to do a lossless colorspace HEVC NVENC encoding without hwdownload?

I need to capture bit-perfect lossless videos of the whole screen at a certain framerate (at least 30 fps). I am currently using Windows 10 and an up-to-date version of FFmpeg. Given that the ...
ksb496's user avatar
  • 101
0 votes
0 answers
369 views

FFMPEG converts HEVC with Alpha mov to PNG sequence not work well

I have a mov file with HEVC with Alpha codec on Mac. The mov file has no background color, but have some foreground contents in it. I want to use FFMPEG to grab some PNG pictures from it. Following is ...
topfortune's user avatar
4 votes
0 answers
1k views

Playback stuttering with video in HEVC / H.265 with Windows 10/11

I have a problem that I was hoping to solve by formatting the PC. I have always been able to play smoothly on each player 2K 59.94fps video files with H.265 codec (HEVC) filmed with a GoPro 8 with a ...
Kyashan's user avatar
  • 41
0 votes
1 answer
685 views

concat two videos with same format

I'm trying to concat two videos that have very similar formats : Stream #0:0[0x1](und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], ...
ttb's user avatar
  • 1
0 votes
1 answer
1k views

Windows ffmpeg hardware accelerated video encoding FAILS using codec hevc_amf but works with codec h264_amf

I'm running ffmpeg on Windows 10 on a machine with an AMD Radion HD 7700. Hardware accelerated h.264 works fine while HEVC encoding fails. The version of ffmpeg is: ffmpeg version 5.1.2-...
mbmast's user avatar
  • 311
3 votes
1 answer
1k views

Preset "Slow" producing much bigger files than preset "Ultrafast" - Why?

Today I tried to find out which difference in file size the preset slow makes compared to the preset ultrafast when encoding a video (if all other parameters are the same). I took a video with ...
Binarus's user avatar
  • 1,805
0 votes
0 answers
189 views

How to check if my video card run ffmpeg?

How can I discover if my video card suports and ffmpeg h265 encode? exist any comand to check it?
Ricardo's user avatar
  • 115
0 votes
1 answer
1k views

Different outputs when encode to h265 using CPU only and GPU together

I'm using ffmpeg to convert .mp4,.mkv files with enconde h264 to h265 using CPU only, if using GPU together will outputs the same as using cpu only? for %%a in (*.mkv, *.mp4) do ( ffmpeg -i "%...
Ricardo's user avatar
  • 115
0 votes
1 answer
445 views

streaming with HLS / hevc / fmp4

demo site: http://47.254.74.168:8080/ I made some streaming of HLS/HEVC/FMP4 by ffmpeg(5.1), which list is above link. however, the streaming encoded with h265 codec is not working in safari, and h264 ...
S.N.'s user avatar
  • 1
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
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
0 votes
1 answer
50 views

Does H.265/HEVC macroblock/CTU algorithm compensate for 4:3 letterbox in 1920x1080

Have some source in 1920x1080 but it's actually 4:3 with letterbox. One path is to crop the video to remove the black letterbox and bring it down to 1440x1080 but is that really necessary when encoded ...
Enigma's user avatar
  • 3,401
0 votes
0 answers
667 views

Unable to understand the error with ffmpeg

Can someone help me with the following FFMPEG error: STDOUT: STDERR: ffmpeg version 4.4.1-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2021 the FFmpeg developers built with gcc 8 (...
Rukmangadh Sai Myana's user avatar
0 votes
0 answers
2k views

same ffmpeg preset got way slower in X265 compared to a year ago - why?

If I compare several ffmpeg versions, the speed got down by 50% even with the same encoding profile "medium" so I wonder what the change was. That change happend any time in summer 2021. I ...
Krautmaster's user avatar
0 votes
0 answers
251 views

FFmpeg not adding thumbnail to last fragment

I'm using this command to h265 encode a live video from a Blackmagic DeckLink card: ffmpeg \ -format_code 4k29 -f decklink -i "DeckLink 8K Pro (1)" \ -c:v hevc_nvenc \ -pix_fmt ...
Tim Autin's user avatar
  • 121
1 vote
0 answers
2k views

I need FFMPEG command to convert some video files from h.265 to h.264 with Nvidia hardware

I have a decent Nvidia graphics card, capable of h.265 and h.264 encoding and decoding in hardware (Geforce RTX 2060), running on a Ubuntu installation. I have a whole bunch of video files that I need ...
MarcNBarrett's user avatar
1 vote
1 answer
350 views

determining the max resolution that a computer can do HEVC encodings to?

I have two different computers, each with v1.2.2.649 of GoPro Player. On one of them I can export 360° HEVC video with a resolution of 5.6K without issue. On the other one I cannot - the max ...
neubert's user avatar
  • 7,142
0 votes
1 answer
2k views

How do I convert 12-bit H.265 videos to 10-bit H.265 without quality loss?

My laptop seems unable to handle 12bit HEVC videos efficiently. The video appears to stagger when I play it so I'm looking to convert them to 10bit H.265. How do I do this using, ffmpeg, with little ...
Sanchit's user avatar
0 votes
1 answer
3k views

Generate HLS with H265 codec

I have been trying to generate a HLS stream encoded with h265 but with no success. I came across Generate hls stream using h265 codec but the solution given in it doesn't seems to be working. Another ...
dravit's user avatar
  • 105
0 votes
1 answer
2k views

Convert HEVC mkv to mp4 without transcoding

I'm trying to remux h265 MKV to MP4 without transcoding. My demo video is tears-of-steel. I'm using the following command but I cannot play the resulting file ffmpeg -i tos-1720x720-cfg01.mkv -tag:v ...
Fabiosoft's user avatar
  • 101
0 votes
1 answer
510 views

ffmpeg: How to keep vfr unchanged during reencode

I have a file with variable frame rate that I would like to reencode. My attempts so far always lead to the frame rate being changed from 23.98 to 24. I have tried "-vsync vfr" and "-...
strawberrysmoothie's user avatar
2 votes
1 answer
734 views

Do CPU and GPU work *together* for rendering HEVC?

I have a home theater PC that I built 7 years ago. The CPU is fairly low-end (Intel i3-4360). It only has 2GB system RAM. I recently tried for the first time to play fairly high bitrate (20Mbps) 4k ...
The111's user avatar
  • 673
0 votes
1 answer
950 views

ffmpeg mediocre conversion quality from DVD

I am trying to convert a DVD that I own into mp4/lib265 format. To test the quality out I am only converting the first two minutes of the input video (which is a concatenated vob file). The source ...
kali's user avatar
  • 369
2 votes
1 answer
2k views

Sudden HEVC / H265 failure with Windows 10

My 2016 production Windows 10 Pro (Version 20H2) computer suddenly stopped playing HEVC videos properly. I need this feature in my computer because of my work and entertainment purposes (other that it ...
Max Paython's user avatar
4 votes
1 answer
7k views

Are HEVC and H265 same? In FFmpeg they give different results why?

Recently I re-encoded a H264 video to HEVC using FFmpeg and Intel hevc_qsv hardware acceleration and libx265. hevc_qsv results in higher sized video and libx265 results in 50% lower sized video. I ...
user avatar
2 votes
1 answer
969 views

How to add AUDs to HEVC using FFMPEG

I have a HEVC 4k mkv missing AUD units and want to use ffmpeg to add them in (without re-encoding). I came up with: ffmpeg -i Movie.mkv -c:v libx265 -c copy -map v -x265-params aud=1 Movie.ts
 But ...
michaelsft's user avatar
7 votes
4 answers
21k views

ffmpeg hevc_vaapi: Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scaler_0'

on Linux i am trying to encode file to H€VC using hardware acceleration. Successful attempt is: ffmpeg -v verbose -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i '/path/file.mkv' -vcodec libx265 -...
16851556's user avatar
  • 542
3 votes
0 answers
108 views

Is it possible to encode a video with a solid color background using h.265 so that the background color remains stable?

I'm trying to incorporate a video into a web page, where the video has a solid color background that matches the background color of the page, as well as a small animated character moving around ...
Bri Bri's user avatar
  • 846
1 vote
1 answer
154 views

ffmpeg creates large compressed files for tiny videos?

When compressing very small videos, there seems to be a large overhead in the video container itself. Here are some examples using a single-frame 16x16-pixel all-black image: ffmpeg -f lavfi -i color=...
Hugues's user avatar
  • 3,307
4 votes
1 answer
6k views

Set keyframe interval in ffmpeg when using nvenc

OBS uses nvenc when encoding live streams. In the guide "NVIDIA NVENC OBS Guide", an advanced option is listed as: Keyframe Interval: Set to 2. Streaming platforms may limit what you can ...
Isabella's user avatar
  • 233
7 votes
2 answers
31k views

Understanding pixel format and profile when encoding 10-bit video in ffmpeg with nvenc

I am trying to encode a 10-bit H.265 video from a 8-bit H.264 source using ffmpeg with CUDA hardware acceleration. Without hardware acceleration, a typical command would be ffmpeg -i input.mkv -...
Isabella's user avatar
  • 233
2 votes
0 answers
895 views

Maximum possible bitrate for HEVC videos with hardware encoding in Premiere Pro

I am trying to export a series of images as a 4K HEVC video (it is a long series) and I am using Premier Pro 2020 to do it. I found I can switch to High tier and this allows me to go over 25Mbit ...
miran80's user avatar
  • 237
3 votes
2 answers
3k views

How is FFmpeg's H.265 encoding so much more efficient than Adobe's?

I have a thirty seconds 1080p video file that was rendered from Premiere Pro/Media Encoder (target Bitrate 10) and is encoded in H.265. It has 36.6 MB. When i run the command ffmpeg -i input -c:v ...
Felix Tröbinger's user avatar
1 vote
2 answers
11k views

hardware acceleration FFMPEG on Windows

I've installed the latest gyan.dev full build on Windows 10, I want to convert a sequence of png to an h265 .mp4 movie and I'm successfully using this command ffmpeg -r 60 -f image2 -s 3840x2160 -i ...
npg000's user avatar
  • 13
0 votes
1 answer
3k views

Transcoding 1080p h264 to h265 w/ FFmpeg - Unexpectedly Extreme Reduction In Size

I have a collection of h264 videos from a digital camera that I'm re-encoding to h265 (HEVC). The FFmpeg options I'm using are: -c:v libx265 -preset medium -x265-params crf=20:keyint=30 -c:a copy -...
J23's user avatar
  • 201
2 votes
1 answer
5k views

Huge file size difference between lossless HEVC and FFV1

I made a music video with a still image (input.jpg ≈ 1 MB) and a music (input.wav ≈ 20 MB) using FFmpeg. Why do I get such a huge difference in file size between the video generated with the lossless ...
Géry Ogam's user avatar
0 votes
3 answers
3k views

How to improve lossy compression of NVENC HEVC with FFmpeg?

There are a lot of answers about h264_nvenc settings. But I didn't find code examples for tuning NVENC HEVC lossy encoding settings on latest GPU, for example on Tesla T4. These are my current ...
dereks's user avatar
  • 131
2 votes
1 answer
6k views

What is the difference between NVENC HEVC lossless and losslesshp presets?

There are two NVENC HEVC lossless presets: ffmpeg -hide_banner -h encoder=hevc_nvenc -preset <int> E..V.... Set the encoding preset (from 0 to 11) (default medium) ...
dereks's user avatar
  • 131
4 votes
1 answer
21k views

hevc_nvenc option information

I tried to encode to hevc_nvenc but the documentation on FFmpeg is too less and all options are not clearly defined. So if anyone can be good enough what all options do and what settings and filters ...
Soul Spark's user avatar
0 votes
0 answers
9k views

ffmpeg: Could not find codec parameters for stream 0 - Video: none (H265 / 0x35363248)

I am trying to find a way to concatenate videos I am getting from an NVR. To my understanding, the video is encoded with H265, but I am not able to find more information on the specific codec (...
jiko's user avatar
  • 31
0 votes
1 answer
338 views

How can I create h.265 videos that are fully backward-single-steppable in mpv in FFmpeg?

I'm planning to convert my video collection from h.264 to h.265 in order to save disk space. Source files are in mp4 and mkv containers. The videos are mostly watched using mpv. Especially for the ...
Arch-User's user avatar
0 votes
1 answer
506 views

how to split a bitstream with ffmpeg

I am trying to split with ffmpeg a bitstream whose extension is .hevc which is generated by the platform HM 16.11 in several segments according to the GOP I want to have several files whose extension ...
Sara's user avatar
  • 1