{"id":13905457,"url":"https://github.com/topaz1008/ffmpeg-any","last_synced_at":"2026-03-02T13:03:01.361Z","repository":{"id":82298472,"uuid":"576375159","full_name":"topaz1008/ffmpeg-any","owner":"topaz1008","description":"A command line tool that batch processes video files and directories with ffmpeg.","archived":false,"fork":false,"pushed_at":"2023-03-08T09:29:38.000Z","size":51,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T09:10:16.182Z","etag":null,"topics":["bash","batch","ffmpeg","macos","powershell","unix","video","windows"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/topaz1008.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-09T17:34:45.000Z","updated_at":"2024-04-02T17:41:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"26366d4c-78d8-46dc-adf2-b14c4381351f","html_url":"https://github.com/topaz1008/ffmpeg-any","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/topaz1008/ffmpeg-any","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topaz1008%2Fffmpeg-any","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topaz1008%2Fffmpeg-any/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topaz1008%2Fffmpeg-any/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topaz1008%2Fffmpeg-any/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/topaz1008","download_url":"https://codeload.github.com/topaz1008/ffmpeg-any/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topaz1008%2Fffmpeg-any/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30003475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T12:19:43.414Z","status":"ssl_error","status_checked_at":"2026-03-02T12:19:02.215Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bash","batch","ffmpeg","macos","powershell","unix","video","windows"],"created_at":"2024-08-06T23:01:16.057Z","updated_at":"2026-03-02T13:03:01.340Z","avatar_url":"https://github.com/topaz1008.png","language":"JavaScript","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"ffmpeg-any\n==================\n\nA command line tool that batch processes video files and directories with [ffmpeg](https://ffmpeg.org/).\n\nSupports outputting powershell, batch and bash scripts; or a simple text file. For use with Windows or Mac\\UNIX.\n\nThis script **DOES NOT** make any changes to your files, it only creates a script with ffmpeg commands.\n\nThe resulting script will stop processing files if it encounters any errors. example output scripts can be found [HERE](https://github.com/topaz1008/ffmpeg-any/tree/master/examples)\n\nAfter running this script in a folder that contains supported video files, a script named `run-ffmpeg` will be created in the current working directory. (where you ran ffmpeg-any from)\n\nYou can then view and/or edit `run-ffmpeg` before running it to start conversion with ffmpeg. (file extension will depend on the output script type you choose)\n\nInstalling\n---------------\n\n1. Clone or download this repository.\n2. Run the following command from the directory where you cloned or extracted the code to. (Make sure you have [Node.js](https://nodejs.org/en/) installed)\n\n```\nnpm install \u0026\u0026 npm link\n```\n\nNOTE: make sure `ffmpeg` executable is in `PATH` and can be called from any directory.\n\nOptions\n---------------\n\n* command - the command to pass on to ffmpeg (if no command is passed then `-codec copy` will be used)\n   ```\n   $\u003e ffmpeg-any --command=\"-c:v libx264 -crf 21 -c:a aac -b:a 128k\"\n   ```\n\n* recursive - recursively process all subdirectories in the current working directory. (default is to only process `cwd` for files)\n   ```\n   $\u003e ffmpeg-any --recursive\n   ```\n\n* delete-source - will delete the source files after successful conversion (default is to keep them)\n   ```\n   $\u003e ffmpeg-any --delete-source\n   ```\n\n* extensions - override the default supported (processed) extensions: default is `(webm|mkv|wmv|flv|m4v|mov|mpg|mpeg|ts|avi|rm|mp4)` i.e all.\n   ```\n   $\u003e ffmpeg-any --extensions=\"mkv|webm\"\n   ```\n  \n* out - specify a different extension (container) for the output files (default is `mp4`)\n   ```\n   $\u003e ffmpeg-any --out=\"mkv\"\n   ```\n  \n* script-type - specify a different script type to output. (default is powershell, valid values are `powershell|batch|bash|text`)\n   ```\n   $\u003e ffmpeg-any --script-type=\"bash\"\n   ```\n  \n* exclude - specify a regex pattern to exclude from processing (this regex will be tested against the filenames).\nthis example regex will exclude any filenames matching the following pattern; i.e. filename named `foo` and have any extension.\n   ```\n   $\u003e ffmpeg-any --exclude=\"^(foo\\.(.*))$\"\n   ```\n\nUsage examples\n---------------\n\n1. This will process any video files supported in the current directory with the passed ffmpeg parameters while keeping the source files.\n    ```\n    $\u003e ffmpeg-any --command=\"-c:v libx264 -preset slow -crf 21 -c:a aac -b:a 128k\"\n    ```\n    \n    The pseudo output for a single file will be:\n    ```\n    $\u003e ffmpeg -hide_banner -i \"mymovie.mkv\" -c:v libx264 -preset slow -crf 21 -c:a aac -b:a 128k \"mymovie.mp4\"\n    ```\n\n2. This will convert all files in the current working directory and any of its sub-folders to x264 mp4 with aac audio while deleting original files:\n   ```\n   $\u003e ffmpeg-any --delete-source --recursive --command=\"-c:v libx264 -preset slow -crf 21 -c:a aac -b:a 128k\"\n   ```\n\n   The pseudo output for a single file will be:\n   ```\n   ffmpeg -hide_banner -i \"mymovie.mkv\" -c:v libx264 -preset slow -crf 21 -c:a aac -b:a 128k \"mymovie.mp4\"\n   del \"mymovie.mkv\"\n   ```\n\nContributing\n---------------\nIf you want to contribute; fork this repository, make your changes and submit a pull-request.\n\nTODO\n---------------\n* Add more comprehensive tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopaz1008%2Fffmpeg-any","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftopaz1008%2Fffmpeg-any","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopaz1008%2Fffmpeg-any/lists"}