You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Hugh Smalley b7309e5bb3
A few fixes
1 year ago
.gitignore google style guide formatting and fixing some typos 1 year ago
265 A few fixes 1 year ago
LICENSE A little more cleanup 1 year ago
README.md A little more cleanup 1 year ago

README.md

convert265

Scripts to convert media to x265

These are mostly a hack job since I'm trying to save space for my media by converting things into HEVC.

I really need to make a unified script for the edge cases, but I haven't. Feel free to send a PR if you to something. I also want to add AMF support, but have not gotten that to work right yet.

The nvidia example is 265 the other scripts use vaapi (intel/amd) to do the HW HEVC encoding. I haven't done much with the NVIDIA in a few years, so it's kinda stale.

265_system is the one that you should use if you're going to use it.

265_qsv uses Intel Quick Sync to use your igpu.

You'll have to compile ffmpeg with the --enable-libmfx option to enable qsv support. I think jellyfin/emby include qsv with their builds too.

Adjust the -global_quality flag to change the quality. The lower the number the higher the bitrate. 20 seems to be a good balance of quality vs file size.

Here's the options I used to compile it and make qsv work for me:

--enable-gpl --enable-version3 --enable-gnutls --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-libmfx

I use it with parallel to do multiple files at once like this:

parallel 'find {} -type f -maxdepth 5 -regex ".*\.\(mkv\|mp4\|wmv\|flv\|webm\|mov\|avi\|m4v\|ts\m2ts\)"' ::: /mnt/Movies /mnt/TV | parallel --jobs 4 --progress ~/convert265/265_system {}

Change the --jobs flag to the number of files your system can handle at once. I think 4 is a sane number for older/lower end NAS devices.

YMMV // Caveat Emptor // And have an average day :|

-H