{"id":16935452,"url":"https://github.com/dsander/reencode","last_synced_at":"2026-05-10T16:07:23.683Z","repository":{"id":66500729,"uuid":"91503147","full_name":"dsander/reencode","owner":"dsander","description":"Scripts to reencode media to h265 using NVENC enabled ffmpeg","archived":false,"fork":false,"pushed_at":"2018-11-04T11:55:41.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T04:32:12.280Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dsander.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-16T20:48:41.000Z","updated_at":"2019-06-01T09:55:06.000Z","dependencies_parsed_at":"2023-03-01T23:45:23.534Z","dependency_job_id":null,"html_url":"https://github.com/dsander/reencode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dsander/reencode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsander%2Freencode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsander%2Freencode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsander%2Freencode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsander%2Freencode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsander","download_url":"https://codeload.github.com/dsander/reencode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsander%2Freencode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261964852,"owners_count":23237498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T20:54:34.702Z","updated_at":"2026-05-10T16:07:18.657Z","avatar_url":"https://github.com/dsander.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reencode media to HVEC using ffmpeg\n\nThese scripts reencodes your media files into HVEC to save disk space.\n\n## Installation\n\nTested on Ubuntu 18.04.\n\nSetup NVIDIA SDK and compile ffmpeg:\n\n    wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb\n    sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub\n    sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb\n    sudo apt-get update\n    sudo apt-get install cuda\n    echo \"export PATH=/usr/local/cuda-10.0/bin:~/bin:\\$PATH\" \u003e\u003e ~/.bashrc\n    echo \"export LD_LIBRARY_PATH=\\$LD_LIBRARY_PATH:~/ffmpeg_build/lib/\"  \u003e\u003e ~/.bashrc\n    source ~/.bashrc\n    # Compile ffmpeg\n    ./build_ffmpeg.sh\n\nReboot to load the nvidia driver.\n\nInstall dependencies:\n\n    sudo apt-get install -y ruby ruby-dev libsqlite3-dev libmediainfo-dev\n    sudo gem install bundler\n    bundle\n    bundle exec rake db:create\n\n## Usage\n\nAnalyze a directory recursively and calculate the estimated conversion time and space savings:\n\n    bundle exec ruby -Ilib reencode analyze /path/to/media\n\nTest reencoding (the files are encoded into the current working directory):\n\n    bundle exec ruby -Ilib reencode perform /path/to/media\n\nUse hardware decoding (does not always work):\n\n    bundle exec ruby -Ilib reencode perform --hardware-decode /path/to/media\n\nActually replace the source media file after successful reencode:\n\n    bundle exec ruby -Ilib reencode perform --inplace /path/to/media\n\nAllow to retry failed encoding during the next run:\n\n    bundle exec ruby -Ilib reencode retry\n\nUnlock all files in the database (only needed after hard crashes):\n\n    bundle exec ruby -Ilib reencode unlock\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsander%2Freencode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsander%2Freencode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsander%2Freencode/lists"}