hl2guide / FFmpeg-HEVC-Video-Converter

A PowerShell script to convert videos to the HEVC video format utilizing hardware acceleration using FFmpeg for Windows.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FFmpeg-HEVC-Video-Converter 1.0

๐Ÿฅถ The repo is archived, I don't expect to do more work on it. ๐Ÿ›‘ This repo is no longer maintained.

A PowerShell script to convert videos to the HEVC video format utilizing GPU hardware acceleration using FFmpeg for Windows.

The main benefit being that you can save disk space significantly (most of the time).

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 ๐Ÿ–ฅ๏ธ

  • PC with at least 2 cores
  • Recent NVidia or AMD graphics card
  • Enough free disk space for resulting video files

VITAL: ALWAYS check the resulting video files, ending with "(HEVC)" for expected length and try them out in a video player checking for quality and smooth playback.

Encoding ๐ŸŽž๏ธ

During encoding (conversion) it is normal for high CPU and GPU usage. Be sure to only run the script when the PC has no other processes hogging up resources.

The script encodes the files alongside the original with (HEVC) at the end of the filename.

Decoding ๐Ÿ“ฝ๏ธ

The resulting HEVC videos require a more powerful PC to decode and playback, than the original would.

Script Usage ๐Ÿ“œ

  1. Download FFmpeg for Windows: https://ffmpeg.zeranoe.com/builds/ (see screenshots below)
  2. Extract ffmpeg.exe to a known path/folder
  3. Download convert_to_HEVC_using_ffmpeg.ps1 and create video_file_list.txt alongside it
  4. Make 4 edits in convert_to_HEVC_using_ffmpeg.ps1 using PowerShell ISE
  5. Copy+paste full paths into video_file_list.txt and save
  6. Run convert_to_HEVC_using_ffmpeg.ps1 to convert to HEVC

Screenshots ๐Ÿ“ธ

ffmpeg stable release selections shown

About

A PowerShell script to convert videos to the HEVC video format utilizing hardware acceleration using FFmpeg for Windows.

License:MIT License


Languages

Language:PowerShell 100.0%