<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to convert HDR video to SDR with ffmpeg	</title>
	<atom:link href="https://www.binarytides.com/convert-hdr-video-to-sdr-with-ffmpeg/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.binarytides.com/convert-hdr-video-to-sdr-with-ffmpeg/</link>
	<description>News, Technology, Entertainment and more</description>
	<lastBuildDate>Thu, 09 Nov 2023 02:15:21 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: Will C		</title>
		<link>https://www.binarytides.com/convert-hdr-video-to-sdr-with-ffmpeg/comment-page-1/#comment-362504</link>

		<dc:creator><![CDATA[Will C]]></dc:creator>
		<pubDate>Thu, 09 Nov 2023 02:15:21 +0000</pubDate>
		<guid isPermaLink="false">https://www.binarytides.com/?p=15677#comment-362504</guid>

					<description><![CDATA[Hi! This is great! Can you help put together a guide for using QSV and tonemapping hdr to sdr? I&#039;m really struggling!

Here&#039;s what I have right now that works: 
ffmpeg -init_hw_device qsv=hw -filter_hw_device hw -i input.mkv -vf zscale=transfer=linear,tonemap=clip,zscale=transfer=bt709,format=yuv420p,scale=1280:-2 -vcodec h264_qsv -map 0:v -map 0:a:0 -map 0:a:1 -c:a copy -map 0:s:0 -c:s copy outputfile720p.mkv

What this is doing:
1)UHD HDR hevc source
2)Tonemapping
3)Scaling to 720p
4) Encoding to h264
5) Copying the first two audio tracks and the first subtitle track using the map function. I have to map video as well or else it fails. 

This correctly tonemaps, and I can tell via intel_gpu_top that some gpu is being used, but the filter is not going through qsv. 

Bonus question: I can&#039;t get global_quality to work, how does that work with -vcodec h264_qsv]]></description>
			<content:encoded><![CDATA[<p>Hi! This is great! Can you help put together a guide for using QSV and tonemapping hdr to sdr? I&#8217;m really struggling!</p>
<p>Here&#8217;s what I have right now that works:<br />
ffmpeg -init_hw_device qsv=hw -filter_hw_device hw -i input.mkv -vf zscale=transfer=linear,tonemap=clip,zscale=transfer=bt709,format=yuv420p,scale=1280:-2 -vcodec h264_qsv -map 0:v -map 0:a:0 -map 0:a:1 -c:a copy -map 0:s:0 -c:s copy outputfile720p.mkv</p>
<p>What this is doing:<br />
1)UHD HDR hevc source<br />
2)Tonemapping<br />
3)Scaling to 720p<br />
4) Encoding to h264<br />
5) Copying the first two audio tracks and the first subtitle track using the map function. I have to map video as well or else it fails. </p>
<p>This correctly tonemaps, and I can tell via intel_gpu_top that some gpu is being used, but the filter is not going through qsv. </p>
<p>Bonus question: I can&#8217;t get global_quality to work, how does that work with -vcodec h264_qsv</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
