<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hey Mark, any luck with the in Media (Intel® Video Processing Library, Intel Media SDK)</title>
    <link>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995269#M4366</link>
    <description>&lt;P&gt;Hey Mark, any luck with the solution?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2016 13:25:48 GMT</pubDate>
    <dc:creator>zzz_z_</dc:creator>
    <dc:date>2016-10-11T13:25:48Z</dc:date>
    <item>
      <title>2 Pass Encoding?</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995261#M4358</link>
      <description>Does the QuickSync encoder support a two pass mode? I've looked through the docs and I don't see anything about it. However I talked to the people at Main Concept and they said their QuickSync encoder does do two pass so it would seem it's possible. Are they doing something completely custom? Or am I missing something in the Media SDK?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Dan</description>
      <pubDate>Fri, 25 May 2012 06:22:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995261#M4358</guid>
      <dc:creator>Dan_Haddix</dc:creator>
      <dc:date>2012-05-25T06:22:40Z</dc:date>
    </item>
    <item>
      <title>2 Pass Encoding?</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995262#M4359</link>
      <description>&lt;P&gt;HI Dan,&lt;/P&gt;&lt;P&gt;Yes, the Intel Media SDK supports a variety of algorithms for Rate Control. AVBR (Average Variable Bitrate) was added to API 1.3 (supported by Media SDK 2012). This is the mode that some applications refer to as 2 pass encoding. Please see the Media SDK Reference Manual for information on how to use this mode. &lt;/P&gt;&lt;P&gt;-Tony&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2012 18:17:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995262#M4359</guid>
      <dc:creator>Anthony_P_Intel</dc:creator>
      <dc:date>2012-05-25T18:17:11Z</dc:date>
    </item>
    <item>
      <title>2 Pass Encoding?</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995263#M4360</link>
      <description>Does the AVBR mode require you to feed the samples in twice, like a typical 2 pass encode where the first pass creates a stats file and the second pass creates the actual encoded frames?&lt;BR /&gt;&lt;BR /&gt;The documentation on AVBR is very limited in the SDK&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Mon, 28 May 2012 20:20:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995263#M4360</guid>
      <dc:creator>Dan_Haddix</dc:creator>
      <dc:date>2012-05-28T20:20:52Z</dc:date>
    </item>
    <item>
      <title>2 Pass Encoding?</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995264#M4361</link>
      <description>Hi Dan,&lt;BR /&gt;&lt;BR /&gt;Sorry I was not clear with my post. The Intel Media SDK does not support "2 pass encoding" in the sense that it does not examining the entire stream twice. When the AVBR encode mode is used the encoding algorithm tries to achieve some of the same goals achieved with typical 2 pass encoding (which is why I believe some applications call it "2 pass", but the usage of Media SDK for AVBR is the same as other encoding models (as long as the initial encode parameters are setup correctly).&lt;BR /&gt;&lt;BR /&gt;In other words, there is no API for using Media SDK with 2 passes.&lt;BR /&gt;&lt;BR /&gt;-Tony&lt;BR /&gt;</description>
      <pubDate>Tue, 29 May 2012 17:13:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995264#M4361</guid>
      <dc:creator>Anthony_P_Intel</dc:creator>
      <dc:date>2012-05-29T17:13:19Z</dc:date>
    </item>
    <item>
      <title>I would like to use Intel</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995265#M4362</link>
      <description>&lt;P&gt;I would like to use Intel Haswell QSV for 2 pass video encoding. I do realize that it is not doable in one click scenario.&lt;/P&gt;

&lt;P&gt;What I think about is to run software 1st pass which is fast enough (in my case using ffmpeg). This task results with .mbtree stats file which basically carries data of information density of input video (or in English info on how to distrubute bitrate most efficiently depending on scene complexity). Then I would like to run h264_qsv 2nd pass with .mbtree file as input of required data distribution to haswell encoder.&lt;/P&gt;

&lt;P&gt;When I do as described above, it doesn't really matter if I mention -pass 2 parameter in command line (to inform that ffmpeg should use the stats file for bitrate selection). Output files have the same md5 sums (with and without -pass parameter).&lt;/P&gt;

&lt;P&gt;Any idea if it is even possible for QSV?&lt;/P&gt;

&lt;P&gt;Thanks, Andrzej&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:46:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995265#M4362</guid>
      <dc:creator>zzz_z_</dc:creator>
      <dc:date>2016-09-19T18:46:00Z</dc:date>
    </item>
    <item>
      <title>Hi Andrzej,</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995266#M4363</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;

&lt;P&gt;What are you going to use the .mbtree file? I think your goal is to keep a flat bit rate and tweak the parameter for each frame.&lt;/P&gt;

&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 00:16:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995266#M4363</guid>
      <dc:creator>Mark_L_Intel1</dc:creator>
      <dc:date>2016-09-22T00:16:00Z</dc:date>
    </item>
    <item>
      <title>I would like to you take a</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995267#M4364</link>
      <description>&lt;P&gt;I would like to you take a look at the two pictures below. They show bitrate distribution in a test video material.&lt;/P&gt;

&lt;P&gt;1. x264, 2pass encoded, 4500kbps average bitrate&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clipboard01.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/6893i0A822B43607A7CC0/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Clipboard01.png" alt="Clipboard01.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;2. QSV ABR, 4500kbps&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Clipboard02.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/6894i6A06F08AFF18A7BC/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Clipboard02.png" alt="Clipboard02.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;As you surely noticed, the QSV video output has pretty much constant bitrate. That means that encoder does not provide enough bitrate in most complex scenes and provides more than enough bitrate for simplier scenes (like low-motion). As a result a viewer could tell which video is lower quality, even though the two have pretty much the same average bitrate for entire file (435MB total for x264 file and 434MB for qsv).&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;That's because QSV only takes a number of consecutive frames (defined by look_ahead param) and it is not aware of the complexity of entire input material.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;What I'd like to do it to provide this information about entire movie complexity to QSV encoder (we get this information by running 1st pass on video and it sits in .mbtree file, software way) so that it will be able to generate file with bitrate distribution very close to what I observe in x264 case. It is possible?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 18:02:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995267#M4364</guid>
      <dc:creator>zzz_z_</dc:creator>
      <dc:date>2016-09-23T18:02:00Z</dc:date>
    </item>
    <item>
      <title>Hi Dan,</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995268#M4365</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;

&lt;P&gt;I understand more on your requirement now, I think there is a possibility for this requirement. Basically the current software has a FFmpeg wrapper which allows MSDK plugin to the FFmpeg framework, I will try some test to see if the 2 pass encoding can be done.&lt;/P&gt;

&lt;P&gt;Give me sometime and I will get back to you soon.&lt;/P&gt;

&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 23:32:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995268#M4365</guid>
      <dc:creator>Mark_L_Intel1</dc:creator>
      <dc:date>2016-09-23T23:32:37Z</dc:date>
    </item>
    <item>
      <title>Hey Mark, any luck with the</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995269#M4366</link>
      <description>&lt;P&gt;Hey Mark, any luck with the solution?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 13:25:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995269#M4366</guid>
      <dc:creator>zzz_z_</dc:creator>
      <dc:date>2016-10-11T13:25:48Z</dc:date>
    </item>
    <item>
      <title>Yes, my plan is:</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995270#M4367</link>
      <description>&lt;P&gt;Yes, my plan is:&lt;/P&gt;

&lt;P&gt;1. Confirming the ffmpeg 2 passes command sequence, try to uses the 2 pass process to improve the bitrate.&lt;/P&gt;

&lt;P&gt;2. Use Media SDK wrapper to the ffmpeg to see if it can do the same work.&lt;/P&gt;

&lt;P&gt;I have completed #1 although I didn't see the bitrate get improved; but I think this is not important for now. I will the Media SDK wrapper and see if it can do 2-pass process.&lt;/P&gt;

&lt;P&gt;I will give you update soon.&lt;/P&gt;

&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 23:32:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995270#M4367</guid>
      <dc:creator>Mark_L_Intel1</dc:creator>
      <dc:date>2016-10-12T23:32:31Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995271#M4368</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am really interested in your outputs.&lt;/P&gt;

&lt;P&gt;I tried to run a 2 pass encoding using FFMPEG 3.2, with both h264_qsv decoding and encoding.&lt;/P&gt;

&lt;P&gt;It does not really look like to do the 2 passes as I have the same result as if I did 1 pass ..&lt;/P&gt;

&lt;P&gt;Can you pleas share your cmd lines ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 22:41:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995271#M4368</guid>
      <dc:creator>Gilles_V_</dc:creator>
      <dc:date>2016-11-14T22:41:45Z</dc:date>
    </item>
    <item>
      <title>Hi, for purpose of this post</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995272#M4369</link>
      <description>&lt;P&gt;Hi, for purpose of this post i have used ffmpeg build N-81508-g99882d0.&lt;/P&gt;

&lt;P&gt;For starters, let's make it really clear. I don't mind you using the qsv decoder, but this has nothing to do with the topic. Let's focus on qsv encoder only.&lt;/P&gt;

&lt;P&gt;You're right, 2 pass encoding with h264_qsv does not work. That's the whole thing. I imagine that Intel has not implemented this functionality. There's not a single program that's capable of real 2pass encoding with intel qsv. The closest to the truth is MediaCoder which clearly states that functionality has not been implemented yet (when setting qsv with 2pass encoding).&lt;/P&gt;

&lt;P&gt;I made two examples to make it clear.&lt;/P&gt;

&lt;P&gt;I used a sample test video file, then executed first pass on it, to collect information on video complexity (log files present after running 1st pass, to be used later):&lt;/P&gt;

&lt;P&gt;ffmpeg -y -i testfile.mp4 -c:v libx264 -preset slow -pass 1 -passlogfile logs.log -f mp4 /dev/null ( &amp;lt;-- NUL for windows versions)&lt;/P&gt;

&lt;P&gt;For usage examples, please refer to:&amp;nbsp;https://trac.ffmpeg.org/wiki/Encode/H.264&lt;/P&gt;

&lt;P&gt;Then I executed 2nd pass:&lt;/P&gt;

&lt;P&gt;1. ffmpeg with software libx264, 2nd pass:&lt;/P&gt;

&lt;P&gt;ffmpeg -i testfile.mp4 -c:v libx264 -preset slow -b:v 2500k -pass 2 -passlogfile logs.log -c:a copy&amp;nbsp;testfile_ffmpeg_libx264_2pass_2500k_avg.mkv&lt;/P&gt;

&lt;P&gt;As you can see, software 2 pass does work good.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="libx264.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/6895iD5B10A9AE178B9F1/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="libx264.png" alt="libx264.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;2. ffmpeg with hardware h264_qsv, 2nd pass:&lt;/P&gt;

&lt;P&gt;ffmpeg -i testfile.mp4 -c:v h264_qsv -preset slow -b:v 2500k -pass 2 -passlogfile logs.log -c:a copy&amp;nbsp;testfile_ffmpeg_h264_qsv_2pass_2500k_avg.mkv&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="h264_qsv.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/6896i6FDFD530180F0BA6/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="h264_qsv.png" alt="h264_qsv.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Looks like qsv does not take log data into consideration. That's what we would like to accomplish.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 19:21:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995272#M4369</guid>
      <dc:creator>zzz_z_</dc:creator>
      <dc:date>2016-11-15T19:21:00Z</dc:date>
    </item>
    <item>
      <title>Hi, any progress on that one?</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995273#M4370</link>
      <description>&lt;P&gt;Hi, any progress on that one?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 06:53:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/995273#M4370</guid>
      <dc:creator>zzz_z_</dc:creator>
      <dc:date>2016-12-14T06:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, for purpose of this post</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/1249642#M13515</link>
      <description>&lt;P&gt;According to&amp;nbsp;&lt;A href="https://superuser.com/questions/1259059/ffmpeg-h264-qsv-encoder-and-crf-issues/1259085#1259085" target="_blank" rel="noopener"&gt;this&lt;/A&gt;&amp;nbsp;, you can use&amp;nbsp;&lt;SPAN&gt;-look_ahead 1 and&amp;nbsp;-look_ahead_depth 100 to enable VBR algorithm to a certain extent. It 'might' help with the second pass.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 12:24:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/2-Pass-Encoding/m-p/1249642#M13515</guid>
      <dc:creator>wyup</dc:creator>
      <dc:date>2021-01-25T12:24:26Z</dc:date>
    </item>
  </channel>
</rss>

