This is a simple script that will chuch through a directory converting all of the videos to use h.265 or HEVC in place.
Go to file
Lukas Reusser fa56cba0bd Cosmetics
2020-05-17 14:24:13 +02:00
encoder Rebuild script with NVEnc for faster transcoding 2020-03-06 00:43:30 +01:00
logs Adding a logging mechanism 2020-03-25 18:30:50 +01:00
convert_Videos.ps1 Cosmetics 2020-05-17 14:24:13 +02:00
mediainfo.exe Add codec checking, error-handling and automated file flushing 2020-03-23 14:50:22 +01:00
README.md Improving the description of how the converter is used 2020-04-03 13:13:10 +02:00

Automated HEVC-Video-Converter 1.0

A PowerShell script for converting video to the HEVC video format using GPU hardware acceleration with NVEnc for Windows.

The main advantage is that you can (usually) save a lot of disk space this way.

image

Space Saving Examples

  • 2.5GB MP4 to 500MB HEVC MP4
  • 3GB MP4 to 800MB HEVC MP4

Results vary and depend on the input video's format, bitrate etc.

Minimum System Requirements

  • Computer with at least two CPU cores and 4GB Ram
  • Recent nvidia graphics card (see: NVENC support matrix)
  • Latest nvidia graphics drivers

Encoding

During encoding (conversion), high CPU and GPU usage is normal. Make sure that you only run the script if no other graphics processes are running on the computer. (Example computer games)

The script converts the files next to the original with '-HEVC' at the end or by replacing the string x264 (old) in the file name with x265. After conversion, a test of the new video file is performed to ensure its integrity. If this test is successful, the old file is deleted. If not, the failed conversion file is deleted and logged.

Script Usage

  1. Clone this repository on your computer
  2. Download the latest NVEnc for Windows: https://github.com/rigaya/NVEnc/releases
  3. Extract the files to "video-in-place-hevc-converter\encoder" and replace the old files.
  4. Edit the $videoPath variable in the PowerShell file to point to the folder of your "video files" to convert. (ATTENTION: The ending-slash must be preserved in the path specification!)
  5. Execute convert_Videos.ps1 to convert the video files under the specified path to HEVC.