{"id":19601599,"url":"https://github.com/tensoraws/batch-video-encoder","last_synced_at":"2025-04-27T17:32:01.235Z","repository":{"id":86490656,"uuid":"523038690","full_name":"TensoRaws/batch-video-encoder","owner":"TensoRaws","description":"An interactive Batch Video Encoder using FFmpeg with Progress Restore.","archived":false,"fork":false,"pushed_at":"2023-03-11T18:06:17.000Z","size":26,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-08T00:36:22.094Z","etag":null,"topics":["ffmpeg","nvenc","python","video-encoder","x264","x265"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TensoRaws.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-08-09T17:03:05.000Z","updated_at":"2023-10-12T07:38:55.000Z","dependencies_parsed_at":"2024-01-16T23:30:50.375Z","dependency_job_id":"aca14d20-4df0-44b6-bbf9-bf78e16bfe43","html_url":"https://github.com/TensoRaws/batch-video-encoder","commit_stats":null,"previous_names":["srvfi-raws/batch-video-encoder","tensoraws/batch-video-encoder"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensoRaws%2Fbatch-video-encoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensoRaws%2Fbatch-video-encoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensoRaws%2Fbatch-video-encoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensoRaws%2Fbatch-video-encoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TensoRaws","download_url":"https://codeload.github.com/TensoRaws/batch-video-encoder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224076389,"owners_count":17251743,"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":["ffmpeg","nvenc","python","video-encoder","x264","x265"],"created_at":"2024-11-11T09:19:03.434Z","updated_at":"2024-11-11T09:19:04.399Z","avatar_url":"https://github.com/TensoRaws.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Batch Video Encoder\n\n## Features\n* This tool allows you to encode all videos in a folder at once using ffmpeg commands.\n* The original non-video files will be retained in their relative path.\n* Progress can be restored.\n\n## Prerequisites\nMake sure you have the following dependencies installed and configured:\n\n* **[Python](https://www.python.org/downloads/)** 3.6 or above\n* **[FFmpeg](https://www.ffmpeg.org/)** should be installed and added in the environment variables.\n\n## Getting Started\n\n#### IN ` if __name__ == \"__main__\": `\n\n* set ffmpeg config like ` echo y | ffmpeg -i  \\\"{}\\\" -c:a aac -ac 2 -c:v hevc_nvenc -profile main10 \\\"{}\\\" ` \n* `\\\"{}\\\"` is the input and output file path\n\n### Example\n\n```\nif __name__ == \"__main__\":\n    worker_01 = BatchVideoEncoder()\n    worker_01.ffmpeg_config = \"echo y | ffmpeg -hwaccel cuda -hwaccel_output_format cuda -extra_hw_frames 8 -i  \\\"{}\\\"\" \\\n                              \" -vf \\\"hwdownload,format=nv12\\\" -c:a aac -ac 2 -c:v hevc_nvenc -profile main10 -pix_fmt\" \\\n                              \" p010le -preset slow -rc vbr -cq 16 \\\"{}\\\" \"\n    worker_01.encode_name = \"-Encode\"\n    worker_01.encode_format = \".mkv\"\n    # Creat a new folder, copy then encode. Not suggest to choose FALSE, It may cause losing original files\n    worker_01.new_dir_to_encode = True\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftensoraws%2Fbatch-video-encoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftensoraws%2Fbatch-video-encoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftensoraws%2Fbatch-video-encoder/lists"}