Questions tagged [libx265]

C/C++ library that encode video streams into H.265/HEVC format

It provides an C++ implementation for Linux, Windows and OSX to encode video streams in format.

libx265 official site is videolan and the source is available from the repository http://hg.videolan.org/x265.

81 questions
15
votes
2 answers

How to install libx265 for ffmpeg on Mac OSX

I have tried multiple guides here (search for "Building libx265") and here with no success. Both times I made sure I uninstalled ffmpeg first, went through the guides, then ran brew install ffmpeg --with-fdk-aac --with-freetype --with-libass…
Spencer
  • 337
  • 1
  • 3
  • 8
12
votes
10 answers

Compiling FFMPEG x265 not found using pkg-config

I'm trying to compile FFMPEG with x265 on Win10. I am using the latest full MinGW build from xhmikosr found at: http://xhmikosr.1f0.de/tools/msys/ FFMEPG without x265 compiles without problems and compiling x265 standalone works without problems…
secondplace
  • 518
  • 3
  • 8
  • 20
8
votes
1 answer

How to get a lossless encoding with ffmpeg - libx265

I would like to convert 16 bits grayscale images in an HEVC/mkv video with the x265 encoder without loss, using ffmpeg. I use the monochrome12 profile. My first step is to convert images into yuv format: ffmpeg -f image2 -i "C:\DATA…
teamblast
  • 81
  • 1
  • 1
  • 4
7
votes
1 answer

Transcoding HEVC 4K HDR using ffmpeg and vaapi

I am trying to transcode a 4K HEVC HDR video to a lower bitrate using ffmpeg and VAAPI hardware acceleration for my LG OLED television. I use the following file: Video Using the following command: ffmpeg -init_hw_device vaapi=va:/dev/dri/renderD128…
P. Brand
  • 111
  • 1
  • 6
6
votes
1 answer

ffmpeg: Cannot open libx265 encoder. Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0

Sorry for my bad English. I am trying to use ffmpeg to convert some image to heic format. Most of them were succeeded, but some large jpeg (seems only jpeg, png will be okay) files not. How can I improve my command to compatible all my images, so I…
bnge
  • 61
  • 1
  • 3
5
votes
0 answers

Translating Handbrake options to a FFMPEG command

I want to convert a bunch of videos from x264 to x265, but I need to do so with ffmpeg in terminal because it's a remote server. These are my Handbrake options (listed items are ticked): Summary tab Web optimized Align A/V Start Dimensions tab…
Arif
  • 712
  • 11
  • 20
5
votes
1 answer

Multiple audio tracks from one source in ffmpeg

I'm transcoding my video using ffmpeg but I am unable to figure out how I can get both a 2 channel aac option (downmuxed) and a surround AC3 option in one go. My current command is: ffmpeg -i input.mp4 \ -c:v libx265 -preset medium -crf 21 -pix_fmt…
IanBauters
  • 123
  • 1
  • 2
  • 8
3
votes
2 answers

Convert 16bit Grayscale PNG to HEVC/x265

I want to convert a 12bit image signal to HEVC for effective compression. Because I need to be able to reconstruct the original 12bit signal, the compression needs to be losslessly reversible. At the moment I have the data as 16-bit PNG files. My…
Ben Bezos
  • 43
  • 1
  • 5
3
votes
1 answer

how to encode a video file to x265 10bit main10 profile in ffmpeg

I'm currently trying to encode a video file with ffmpeg -i input.mkv libx265 crf=28 -x265-params profile=main10 out.mkv but i am getting the output file is in 8 bit?
Vedant Sahu
  • 51
  • 1
  • 1
  • 6
3
votes
0 answers

FFMPEG x264 (fourcc=0x21) codec is not working with OpenCV

I'm trying to use mp4 format coding (fourcc=0x21) on OpenCV 3.2 without success. Probably I have a problem with my Ubuntu 18.04 setup but currently I'm running out of ideas how to fix it. First, I recompiled FFMPEG with x264 support. Than,…
dkac
  • 31
  • 3
3
votes
2 answers

Compiling FFMPEG with x265 has ERROR: x265 not found using pkg-config

At first, I have a project with ffmpeg build support x264 for android in Mac OS. Now, I want to add x265 support. I have compiled the x265 with make & make install like this: [ 81%] Built target x265-static [100%] Built target cli Install the…
timweiliu
  • 31
  • 1
  • 3
2
votes
2 answers

Lossless compression of 10bit images (stored as 16bit pngs) with ffmpeg - HEVC preferably

I am trying to encode 10 bit images losslessly in a video format, preferably using HEVC encoding. The images are stored as 16 bit png files (but only use 10 bit) and I have been working with ffmpeg to create and read back the video files. My best…
Tom
  • 61
  • 7
2
votes
0 answers

How to use the --abr-ladder from x265 on ffmpeg

I'm trying to find out how to use the latest x265 abr-ladder option on ffmpeg, which promises up to 65% time savings compared to sequential generation, according to release notes, but: (1) I'm not sure if it is already available on ffmpeg or how to…
Diego
  • 90
  • 1
  • 9
2
votes
1 answer

How can I capture real time command line output of x265.exe with Python?

I would like to write a GUI for x265.exe which presents a better (more humanized) real time progress . Here's the code I used to capture subprocess's output: import subprocess cmd = r'ping www.baidu.com -n 4' popen = subprocess.Popen(cmd, stdout =…
AdamHommer
  • 657
  • 7
  • 22
2
votes
1 answer

Extract motion vectors from x265 (HEVC) encoded video with ffmpeg/libavcodec?

I know that one can extract the motion vectors from an h264 encoded via by first setting the flag av_dict_set(&opts, "flags2", "+export_mvs", 0); then you can query the side-data for the motion vectors by doing this sd =…
John Allard
  • 3,564
  • 5
  • 23
  • 42
1
2 3 4 5 6