DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 62LBWUUa1399037
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 62LBWUUa1399037
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=Swip5oT1
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 053F34BC8969
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1774092750;
	bh=P/1B5d6iq3d4LRNnn1rlD/ibqne4o4Kn0Ol7sJ0kN+U=;
	h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=Swip5oT1I+amPd088lBgqMyBpM5sM3Ph5xdOc6wMJXRC+cKMApl3iwyAOKvb0jo4g
	 CEltX6A3zcRlXfQw6WIDjTYMY+0EVTzn8fgiQNBus8YrwHgU4hrsWF+Hc4232pTzXC
	 1CMzME2kowgUoE0axmN2S0HhvHofytE3Iokv/xcc=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 761A14BA23D7
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 761A14BA23D7
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774092698; cv=none;
 b=iBVDx5lGSv2kyVf4D7LXV99Zo9hBhS0kNjbgAkZmSWusRw+cL+69R0JTqbBK4g70xBvHInAZEI/3F7XMAWjhNWRBui1mxC+iDQ3LCFhVtJW27VrGLva/HD0vmUj3+kwx/zYUKpvqVHGl+F946gQXYWUFyni7rj0N4roF693OhRc=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1774092698; c=relaxed/simple;
 bh=qERYKQsQzfxOqmGr/8vfBa8CWXQzsEvqX2K+vFGCKDQ=;
 h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature;
 b=geopoiGydn/P/dZ4fjr/tqNuo6XQKoUVtW13sA+MoJkLRsE9kyLjehLnxCOUexE3OVB0dY9AUJ4SMYMoJWRvwok8jhvdo+5tPlTe49zunyu5kpeQxyKpZyRQj3qh16PSCRD9lPsp6F5TsX3vfRyM+nYrq3EDxnTG9ZbdG+eYejY=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 761A14BA23D7
Date: Sat, 21 Mar 2026 20:31:33 +0900
To: cygwin@cygwin.com
Subject: Re: [ffmpeg hevc] Build require amd gpu
Message-Id: <20260321203133.76a5f92411148188585d682a@nifty.ne.jp>
In-Reply-To: <CAL8iy8NHc+wMyJFyrRqJVCk=rCcC2oHS=8TKe_yOd4bwQuAXUg@mail.gmail.com>
References: <CAL8iy8NHc+wMyJFyrRqJVCk=rCcC2oHS=8TKe_yOd4bwQuAXUg@mail.gmail.com>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin@cygwin.com>
Reply-To: Takashi Yano <takashi.yano@nifty.ne.jp>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

On Fri, 20 Mar 2026 23:23:33 -0400
jeremie bergeron wrote:
> With ffmpeg 8.0.1-4, if I run the command: ffprobe hdr10tags-stream.mp4, I
> get this error:
> [AMF @ 0xa00056680] DLL amfrt64.dll failed to open
> [hevc_amf @ 0xa00053800] Failed to create  hardware device context (AMF) :
> Unknown error occurred
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0xa0004ca40] Failed to open codec in
> avformat_find_stream_info
> [AMF @ 0xa00056a40] DLL amfrt64.dll failed to open
> [hevc_amf @ 0xa00053800] Failed to create  hardware device context (AMF) :
> Unknown error occurred
> 
> It is pretty normal that it fails since I don't have an amd gpu, so I
> don't have the amfrt64 dll.
> 
> Note that any hevc file will produce this error. hdr10tags-stream.mp4 is
> available here:
> https://storage.googleapis.com/ffms2tests/hdr10tags-stream.mp4
> 
> Would it be possible to disable this hardware decoder?

AFAIK, there is no options for ffprobe that disable hardware decoding.
Usually, ffmpeg uses software decoder for hevc, however it is not
included in cygwin ffmpeg package due to patent issue.
So, ffmpeg attempts to use
hevc_amf
hevc_cuvid
hevc_qsv
If you have none of AMD/NVIDIA/INTEL GPU, you cannnot use HEVC codec
at all unfortunately.

In addition, when using NVIDIA GPU, but you do not specify "-c:v hevc_cuvid",
ffmpeg attempts to use hevc_amf first, then after some errors, automatically
uses hevc_cuvid as you observed.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
