{"id":16665251,"url":"https://github.com/arirusso/viddl","last_synced_at":"2025-10-20T09:19:28.295Z","repository":{"id":56897407,"uuid":"90062240","full_name":"arirusso/viddl","owner":"arirusso","description":"Ruby/Command line tool to download, cut, crop and resize video clips","archived":false,"fork":false,"pushed_at":"2017-05-23T03:58:28.000Z","size":84,"stargazers_count":32,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-17T04:03:56.265Z","etag":null,"topics":["command-line","command-line-tool","ffmpeg","ruby","video","video-processing","youtube","youtube-dl"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arirusso.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}},"created_at":"2017-05-02T17:55:49.000Z","updated_at":"2023-01-10T07:14:25.000Z","dependencies_parsed_at":"2022-08-20T17:40:30.301Z","dependency_job_id":null,"html_url":"https://github.com/arirusso/viddl","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arirusso%2Fviddl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arirusso%2Fviddl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arirusso%2Fviddl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arirusso%2Fviddl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arirusso","download_url":"https://codeload.github.com/arirusso/viddl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244838583,"owners_count":20518835,"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":["command-line","command-line-tool","ffmpeg","ruby","video","video-processing","youtube","youtube-dl"],"created_at":"2024-10-12T11:06:24.200Z","updated_at":"2025-10-20T09:19:23.255Z","avatar_url":"https://github.com/arirusso.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Viddl\n\n![Viddl](http://i.imgur.com/OuHviqv.png \"Viddl\")\n\nUse Viddl to quickly download, cut, crop and resize videos\n\nViddl can be used at the [command line](#command-line) or in [Ruby](#ruby)\n\n## Installation\n\nViddl requires that both [youtube-dl](https://github.com/rg3/youtube-dl) and [ffmpeg](https://ffmpeg.org) are installed before using.\n\nInstall Viddl using gem\n\n`gem install viddl`\n\nor using Bundler by adding the following to your Gemfile\n\n`gem \"viddl\"`\n\n## Usage\n\nRunning Viddl generates video clip files in the current directory\n\n### Command Line\n\nThe command line usage and options are as follows\n\n#### Download\n\nWith no options, Viddl will download the original video\n\n```sh\nviddl https://www.youtube.com/watch?v=6g4dkBF5anU\n```\n\n#### Cut\n\nThis will start the clip at 10 seconds into the original video and run for five seconds\n\n```sh\nviddl https://www.youtube.com/watch?v=6g4dkBF5anU -s 10 -d 5\n```\n\nAlternatively, this will also start the clip at 10 seconds into the original video and stop at 15 seconds\n\n```sh\nviddl https://www.youtube.com/watch?v=6g4dkBF5anU -s 10 -e 15\n```\n\n#### Resize\n\nThis will resize to 640 x 480\n\n```sh\nviddl https://www.youtube.com/watch?v=6g4dkBF5anU -w 640 -h 480\n```\n\n#### Crop\n\nThis will crop a 40 x 40 pixel box at position 20 x 20\n\n```sh\nviddl https://www.youtube.com/watch?v=6g4dkBF5anU --cx 20 --cy 20 --cw 40 --ch 40\n```\n\n#### Strip Audio\n\nThis will make the clip silent\n\n```sh\nviddl https://www.youtube.com/watch?v=6g4dkBF5anU --no-audio\n```\n\n#### Combine\n\nAny or all of these options can be used together\n\n```sh\nviddl https://www.youtube.com/watch?v=6g4dkBF5anU -s 15 -e 22 --no-audio --cx 20 --cy 20 --cw 40 --ch 40 -w 640 -h 480\n```\n\n### Ruby\n\nSimilar to the command line, Ruby usage and options are as follows\n\n```ruby\noptions = {\n  start: 15,\n  end: 22,\n  audio: false,\n  crop: {\n    x: 20,\n    y: 20,\n    width: 40,\n    height: 40\n  },\n  width: 640,\n  height: 480,\n  output_path: \"assets/video\"\n}\n\nvideo = Viddl::Video.download(\"https://www.youtube.com/watch?v=6g4dkBF5anU\")\nvideo.create_clip(options)\n```\n\n## License\n\nLicensed under Apache 2.0, See the file LICENSE\n\nCopyright (c) 2017 [Ari Russo](http://arirusso.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farirusso%2Fviddl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farirusso%2Fviddl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farirusso%2Fviddl/lists"}