• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
10

NVidia GPU-accelerated H264-encoder plugin, ready for public testing

Guest
Jun 27, 2013 Jun 27, 2013

Copy link to clipboard

Copied

Hi all,

I have written a 'proof-of-concept' GPU-accelerated H264-encoder for Adobe Media Encoder (CS6).  It requires an NVidia 6xx/7xx series "Kepler" GPU (CUDA capability 3.0), and uses the dedicated GPU's builtin hardware-encoder (NVENC) to offload the H264-encoding process from the host-CPU.  This software is "proof-of-concept", so it's missing some critical features (no interlaced-video support, no AAC-audio or Dolby AC-3 audio), and of course, it could be buggy!  But it's free.

!!!! Disclaimer: NVENC-export is third-party software that is not supported by either Adobe or NVidia.  It comes with no warranty -- use at your own risk.

Software/hardware Requirements:

(1)Adobe Premiere Pro CS6 or Media Encoder CS6 (Windows version)

Sorry, MacOSX is not supported. (NVidia NVENC SDK doesn't support MacOSX.)

(1)NVidia Kepler GPU <GKxxx> with 1GB VRAM or more  (GTX650 or above, GT650M or above)

(Sorry, NVidia Fermi <GFxxx> is NOT supported, it doesn't have the NVENC hardware feature)

Note,if you have MPE-acceleration enabled, keep in mind the NVENC-plugin consumes some additional VRAM because it uses your GPU to perform H264-encoding.

Strongly recommend a 2GB card

(2) Microsoft Visual C++ 2010 SP1 x64 redistributables

          (download this from Microsoft's website)

Installation instructions:

     In Adobe Premiere Pro CS6:

     (1)      On your system, locate the installation-directory for Premiere Pro CS6.

               Usually, this is C:/Program Files/Adobe/Adobe Premiere Pro CS6

    (2)     Copy the included file Plug-ins/Common/nvenc_export.prm

               to <installation dir>/Plug-ins/Common/

     -> To choose the NVENC-plugin in Premiere Pro,

          In the format-menu, select <NVENC_export>

     In Adobe Media Encoder CS6:

     (1)    On your system, locate the installation-directory for Media Encoder CS6.

          Usually, this is C:/Program Files/Adobe/Adobe Media Encoder CS6

     (2)     Copy the included file Plug-ins/Common/nvenc_export.prm

          to <installation dir>/Plug-ins/Common/

     -> To choose the NVENC-plugin in Media Encoder,

          in the format-menu, select <NVENC_export>

Performance & quality notes:

(1) How much faster is NVENC-export than Adobe's built-in Mainconcept H264 encoder?

Depends on your PC system.  On my test-system, which is ordinary desktop PC with Intel i5-3570K (4-core 3.4GHz), NVENC-plugin is roughly 4x faster than Mainconcept. On a dual-socket Xeon Ivy Bridge-E system, NVENC would probably only be 2x faster (in Media Encoder.)

(2)How does the video-quality compare?

Comparing similar settings/video-bitrate, Mainconcept performs better at lower-bitrates(less artifacts).  At medium-high bitrates, NVENC is comparable to Mainconcept.

(3) How does NVENC-export encode the video?

The plugin fetches videoFrames from the Adobe application, then converts the frames from YUV420 to NV12 surface-format (using host-CPU.)  Then it passes the converted frames to the NVENC front-end.  From here, NVENC hardware takes over, and handles all aspects of the video compression. When NVENC hardware is done, it calls the plugin to output write the elementary bitstream (to the selected filepath.) NVENC-hardware does NOT encode audio, nor does not multiplex the A/Vbitstreams -- this is still done in software (on the host-CPU)

The NVENC hardware block has very little CPU-overhead.  But since video-encoding is just 1 step in the entire Adobe rendering path, CPU-usage will likely still be quite high when using NVENC-plugin.

(4) What's the maximum-size video NVENC-export can handle?

H264 High-profile @ Level 5.1, which works out to roughly 3840x2160 @ 30fps. (Note the actual encoding-speed will probably be less than 30fps.)

(5) How fast is the NVENC-export hardware in Kepler GPU?

Assuming the Adobe application host is infinitely fast (i.e. can send video to plugin in zero-time), NVENC-hardware will encode High-profile (CABAC, 2 refframes, 1-bframe) 1920x1080p video @ ~100fps. At 3840x2160p (4k video), the hardware encode-speed drops to roughly 20-25fps.  That is still faster than a desktop PC.

NVENC-speed is generally same across the Kepler family - the high-end Geforce GTX Titan (or GTX780) is no faster than the entry-level Geforce GTX650, because all Kepler models share the same NVENC hardware-block, which is totally separate and independent of the GPU's 3D-graphics engine.

In premiere Pro 6, MPE acceleration will greatly affect how quickly Adobe can render video to the exporter.  So a more powerful Kepler GPU will probalby complete projects faster than a less powerful one (up to NVENC's performance ceiling.)  For more info, please refer to NVidia's NVENC whitepaper at their developer website (public)

(6) I have a multi-GPU setup, can I encode with multiple GPUs?

No, NVENC targets and uses only a single physical GPU.  (You can choose which one.)

Known limitations and problems:

NVENC-plugin is a 'proof-of-concept' program -- it is not a finished product.  So it's missing some features, and other things are known to be broken:

    • Interlaced video encdoing does not work at all (not supported in current consumer Geforce drivers)

    • Audio support is very limited: uncompressed PCM)

no AAC or Dolby-Digital

    • Multiplexer support is very limited: MPEG-2 TS only, using an included third-party tool TSMuxer.EXE

no MPEG-4 muxing (*.MP4)

    • When the muxed MPEG-2 TS file in Windows Media Player (WMP), there is no sound.  This is because WMP doesn't recognize PCM-audio in mpeg-2 ts files.  You have 2 choices; you can use a third-party media-player such as MPC-HC or VLC.  Or you can postprocess the audio-WAV file into a compatible format (Dolby Digital/AC-3)

    • in the pop-up plugin User-interface, the <multiplexer> tab is missing or not shown properly.

(To fix: Select a different codec, then re-select NVENC_export.)

    • Doesn't support older NVidia GPUs (GTX5xx and older, GT630 and lower)

Sorry, NVENC hardware was introduced with NVidia's Kepler family (2012)  Anything older than that will NOT work with the plugin.

TOPICS
Hardware or GPU

Views

366.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
replies 421 Replies 421
Advocate ,
Sep 16, 2016 Sep 16, 2016

Copy link to clipboard

Copied

jasonvp wrote:

I'm just now seeing this same problem. I've tried multiple versions of the NVENC plugin to no avail. I am running the latest Pr, along with the most recent version of the NVidia drivers. Card in question is the new Pascal Titan X, which was working with the exporter prior to today. 😞

Actually: I'm running into a different problem entirely.  I'm getting an Assertion Fail as shown in the screen cap below:

nvenc-fail.PNG

NVidia driver is 372.70.  This same error pops up regardless of the version of the nvenc_export.prm I use.  This was working perfectly 5-6 days ago when I did my last export.  I've had the same NVidia driver installed since it was released (end of August).  There may have been some MS ninja-patches within Win10 Pro that might have caused this?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 25, 2016 Sep 25, 2016

Copy link to clipboard

Copied

Is anyone else getting errors like this when exporting

Windows 7 x64, GTX 970, 372.90 drivers

8L0zAfA.jpg

Happens after it reaches 100% and we get a new progress bar where it does some other stuff.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 02, 2016 Nov 02, 2016

Copy link to clipboard

Copied

Mokona512 wrote:

Is anyone else getting errors like this when exporting

Windows 7 x64, GTX 970, 372.90 drivers

8L0zAfA.jpg

Happens after it reaches 100% and we get a new progress bar where it does some other stuff.

I am getting the exact same issue here with Premiere Pro CC 2015.4 & Media Encoder CC 2015.4.

------------------------------------------------------------

A low-level exception occurred in: NVENC_export 1.11 - j3 (Exporter:9)

Export Error

Error compiling movie.

Export Error

Exporter returned bad result.

Writing with exporter: NVENC_export 1.11 - j3

Writing to file: F:\MyDirectory\AB46I4_Full_Custom.mp4

Around timecode: 00:00:00:00

Component: NVENC_export 1.11 - j3 of type Exporter

Selector: 11

Error code: -2146828287

------------------------------------------------------------

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 02, 2016 Nov 02, 2016

Copy link to clipboard

Copied

nvenc4everyone​, irisb50359875​ & jstabb​.

Could you please look into my above post.

Thanks,

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 02, 2016 Nov 02, 2016

Copy link to clipboard

Copied

with a little bit more of fitddling, I found out that, it encounters this error as soon as it it's trying to render a video layer with PSD.

Hope this helps, thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 02, 2016 Nov 02, 2016

Copy link to clipboard

Copied

Has anybody updated to Premiere Pro 2017 and see if the Nvenc plugin still works?..I have the fear of updating and well, get *BEEP'd* out for another good time...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 02, 2016 Nov 02, 2016

Copy link to clipboard

Copied

What edition are you using?

It doesn't even work with my Premiere Pro 2015.4

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 02, 2016 Nov 02, 2016

Copy link to clipboard

Copied

I'm using 2015.3 , NVENC_export 1.12Wc_W7 , qaac64.exe for the Audio part and mp4box.exe for the MP4 Multiplexer. Since that, no more issues when encoding a +1h video (If i did less than that it'd go naturally, but above was like WHAAAAAAA?!)

The settings are:

cf74c14ec95b4ccb85c2ff802ef4330c.png

3346bf4d6556474f9b1f9e4804f431eb.png

This last one, Max/Target Bitrate's now set to 5 both for less file size consumption. 1h vid gets done in a bit less than 45min with STILL a GTX 970 from GIGABYTE

Hopefully my settings can help you a bit!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 02, 2016 Nov 02, 2016

Copy link to clipboard

Copied

Thanks for that.

I am getting the exact same issue, as soon as it touches a frame with an alpha (transparent) layer (though the final output doesn't have it). It breaks!

ever had this issue?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 02, 2016 Nov 02, 2016

Copy link to clipboard

Copied

It still works but you  have to reinstall it and the settings don't carry over.  screen  cap them before updating, they are new versions not updates.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 17, 2016 Nov 17, 2016

Copy link to clipboard

Copied

With Windows 10 x64 1607+ and Adobe Premiere CC 2017, only the nvenc_export_good.prm (from this thread) works for me.

All the other 1.09 builds crash Premiere while exporting, and none of the 1.11 builds even appear in the export list at all.

Storing the plugin here c:\Program Files\Adobe\Common\Plug-ins\7.0\MediaCore\NVENC\nvenc_export.prm

Video Engine Load - 99% in GPU-Z.

GeForce GTX 670 2GB OC, Driver 375.86

Compute level: 3.0 (NVENC supported)

CUDA API Ver: 8000 (NVENC supported)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 08, 2016 Dec 08, 2016

Copy link to clipboard

Copied

Hi, im able to do Blurays with this conversion, saving in .m4v files and mux in the program tsMuxeR GUI saving in .m2ts format files. But you have to do manually and also deselect "Continally insert SPS/ PPS" and chang to "Do not change SEI and VUI data". This way, the Adobe Encore accept the files!!!

Have someone to alter format TS in encore to do this in M2TS and this two alterations in export commands in nvenc? This way the file will be perfect for encore with no extra jobs.

Tanks for de posts, I read all of them. In my experience:

I do a timeline predefined that works and it contain:

1 - A title file from begginin to the end of the video, exactly, and insert just one point of opacity: This prevents for titles or photos to appear and disappear rapidly in export, the time changes and out of sync audio.

2 - No extra empty audios. This give me errors like no export

3 - In CC 2014 have a bug, you have to close and reopen Media encoder, and than it will accept convert

4 - No way to do multicam. But all the effects, and nest works fine, but if have one multicam, export don work

5 - I Have GTX 1080, and I see that Nvenc have a new upgrade to use 100% of this new card, but the plugin here is for de old GPUS, if someone know how to do this... Because mine is usin 40% in max of video render, but it save in minuts, is very fast.

6 - bitrate of nvenc is not the same of the adobe. you need to put more Mbs, to have the same files.

Nvenc change my work, is very fast and nothing more of doing all night long exporting projects. TX all that comment on this forum, I film weddings and anniversary, and give DVD, Bluray and Pen Drive of my jobs, and the encore export the 3 ways simultaneously.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 12, 2016 Dec 12, 2016

Copy link to clipboard

Copied

Where did u got updated version for 1080 GTX???

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 20, 2017 Jan 20, 2017

Copy link to clipboard

Copied

I see a update for developers only, its not the same nvenc plugin for premiere, is just to someone do the job and made a plugin. But i dont know, maybe dont need more than we have.

I have to say that I found a way to work with multicam and export in nvenc. The secret is to edit all, select the green multicam, right click with all clips selected > multicam > Flatten. This way the multicam transforms in normal clips, and you can continue edditing and work with nvenc export, but in timeline its not multicam anymore.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 24, 2017 Jan 24, 2017

Copy link to clipboard

Copied

Just a lil message for hope for everyone out there.

Today, Jan 24th, i've updated to the NEW Nvidia Drivers (RESIDENT EVIL 7 ones) and Premiere Pro CC 2017. Copied the same Nvenc_export.prm or whatever and the same settings into the 2017 version.

STILL WORKS

Drama over. Have a nice day!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 25, 2017 Jan 25, 2017

Copy link to clipboard

Copied

DV2FOX wrote:

Just a lil message for hope for everyone out there.

Today, Jan 24th, i've updated to the NEW Nvidia Drivers (RESIDENT EVIL 7 ones) and Premiere Pro CC 2017. Copied the same Nvenc_export.prm or whatever and the same settings into the 2017 version.

STILL WORKS

Drama over. Have a nice day!

Well that's good for you I guess, lol... which version are you using?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 25, 2017 Jan 25, 2017

Copy link to clipboard

Copied

The same Nvenc_Export from a few posts above (with settings ref shots), just with Premiere Pro CC 2017 and latest Nvidia drivers from yesterday

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 25, 2017 Jan 25, 2017

Copy link to clipboard

Copied

I actually just tried the newest version from November and it works for me too.  I guess whatever was broken for me got fixed.

Apparently the November version still has the static frame bug though.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 25, 2017 May 25, 2017

Copy link to clipboard

Copied

I've been running a version of nvenc that's a couple of years old on my Win 7 editing system and have always had to use a lower level in order to render for Encore to make blu-ray discs, but at least it accepted the files.

Today, I installed the 1.11 - j3 nvenc and, while it solves the "C++ assertion failed" problem that I've lived with (by hitting "Ignore"), the files it renders won't import at all into Encore. "The software that's used to decode the media is not available on this system" is what Encore says when I try to import .m4v made by this version of nvenc. Even if I use the same settings that successfully imported with the old nvenc version.

What changes to settings are required to regain compatibility, or is this version simply not compatible with blu-ray format?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 28, 2017 May 28, 2017

Copy link to clipboard

Copied

devi cancellare i vecchi preset

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 07, 2017 Jan 07, 2017

Copy link to clipboard

Copied

Adobe Hire this man already and incorporate this to CC,
its a long overdue feature - why do we need to wait for hours with outdated technology? my 1070 GPU is hardly being used in my i7 laptop.
so much processing power goes to waste and so is our time waiting for the exports!
Adobe - stop ignoring the desktop/laptop crowd - not everyone are working on XEON computers, we want to utilize our strong video cards more then for 2-3 effects.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 07, 2017 Jan 07, 2017

Copy link to clipboard

Copied

adobe gave us a virtual keyboard. why you are unhappy.
shortcut_image.JPG

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 20, 2017 Jan 20, 2017

Copy link to clipboard

Copied

I used the latest november version. No errors when exporting, however, rendered video has full of screenscreens, screen tear and artifacts, using the software rendering has no problems, can anyone help?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 31, 2017 Jan 31, 2017

Copy link to clipboard

Copied

Hi author and everyone!

I was got this problem with my card 930M on Dell Vostro 5459 (max option)
CPU: Intel Core i7 6500U (Skylake)
RAM: 8GB
GPU: NVIDIA Geforce 930M

Adobe Premiere Pro CC 2017

Please help me solve this!
I do not always online so send me an email: haninh1997@gmail.com

Thanks in advance!

16426550_379043362451850_1652015110_n.png

FYI

16426775_379043129118540_1495691873_n.png

16441678_379043542451832_408136568_n.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 22, 2017 Feb 22, 2017

Copy link to clipboard

Copied

I've been casually monitoring this thread, but am reluctant to take the dive. I have, however, submitted this to Adobe as a Feature Request: Feature Request/Bug Report Form -- I suggest everyone else that comes across this thread do the same thing! I referenced the thread in my feature request as well. Especially if you're a freelancer or smaller production company like mine, ANYTHING that can help me get my videos out faster to clients is a worthwhile feature that I'd gladly allocate my CC subscription fees to directly if I could 🙂

Good to know that this plug works with 2017 and the RE7 drivers. I just built a new GTX1080-based machine for 4K work, and I'd love to make use of all its hardware/firmware.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines