{"action":"created","issue":{"url":"https://api.github.com/repos/donmelton/video_transcoding/issues/68","repository_url":"https://api.github.com/repos/donmelton/video_transcoding","labels_url":"https://api.github.com/repos/donmelton/video_transcoding/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/donmelton/video_transcoding/issues/68/comments","events_url":"https://api.github.com/repos/donmelton/video_transcoding/issues/68/events","html_url":"https://github.com/donmelton/video_transcoding/pull/68","id":153303238,"number":68,"title":"Add resolution-specific video bitrate target options","user":{"login":"turley","id":309021,"avatar_url":"https://avatars.githubusercontent.com/u/309021?v=3","gravatar_id":"","url":"https://api.github.com/users/turley","html_url":"https://github.com/turley","followers_url":"https://api.github.com/users/turley/followers","following_url":"https://api.github.com/users/turley/following{/other_user}","gists_url":"https://api.github.com/users/turley/gists{/gist_id}","starred_url":"https://api.github.com/users/turley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turley/subscriptions","organizations_url":"https://api.github.com/users/turley/orgs","repos_url":"https://api.github.com/users/turley/repos","events_url":"https://api.github.com/users/turley/events{/privacy}","received_events_url":"https://api.github.com/users/turley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/donmelton/video_transcoding/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"donmelton","id":115488,"avatar_url":"https://avatars.githubusercontent.com/u/115488?v=3","gravatar_id":"","url":"https://api.github.com/users/donmelton","html_url":"https://github.com/donmelton","followers_url":"https://api.github.com/users/donmelton/followers","following_url":"https://api.github.com/users/donmelton/following{/other_user}","gists_url":"https://api.github.com/users/donmelton/gists{/gist_id}","starred_url":"https://api.github.com/users/donmelton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donmelton/subscriptions","organizations_url":"https://api.github.com/users/donmelton/orgs","repos_url":"https://api.github.com/users/donmelton/repos","events_url":"https://api.github.com/users/donmelton/events{/privacy}","received_events_url":"https://api.github.com/users/donmelton/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2016-05-05T19:15:16Z","updated_at":"2016-05-06T18:20:38Z","closed_at":"2016-05-06T17:50:59Z","pull_request":{"url":"https://api.github.com/repos/donmelton/video_transcoding/pulls/68","html_url":"https://github.com/donmelton/video_transcoding/pull/68","diff_url":"https://github.com/donmelton/video_transcoding/pull/68.diff","patch_url":"https://github.com/donmelton/video_transcoding/pull/68.patch"},"body":"When attempting to transcode multiple files using a script, I discovered that it'd be helpful to make adjustments to `vbv_maxrate_1080p`, `vbv_maxrate_720p`, etc. without specifying a single target video bitrate value. The `--small` option is a great alternative, but in some cases people want more control.\r\n\r\nOf course, using the current `--target` option, I can set the video bitrate target, but since I'm running batch processing on many files (of different resolutions), I'd prefer not to reimplement the resolution-detection logic in my own script.\r\n\r\nThere may be better ways to accomplish this (if so, I'd be happy to make adjustments) - this is just what I came up with. In summary, it allows one to do something like `--target 1080p=4000 --target 720p=2000 --target 480p=1000` in a batch script and let `transcode-video` pick the right resolution/bitrate for each file."},"comment":{"url":"https://api.github.com/repos/donmelton/video_transcoding/issues/comments/217520384","html_url":"https://github.com/donmelton/video_transcoding/pull/68#issuecomment-217520384","issue_url":"https://api.github.com/repos/donmelton/video_transcoding/issues/68","id":217520384,"user":{"login":"donmelton","id":115488,"avatar_url":"https://avatars.githubusercontent.com/u/115488?v=3","gravatar_id":"","url":"https://api.github.com/users/donmelton","html_url":"https://github.com/donmelton","followers_url":"https://api.github.com/users/donmelton/followers","following_url":"https://api.github.com/users/donmelton/following{/other_user}","gists_url":"https://api.github.com/users/donmelton/gists{/gist_id}","starred_url":"https://api.github.com/users/donmelton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donmelton/subscriptions","organizations_url":"https://api.github.com/users/donmelton/orgs","repos_url":"https://api.github.com/users/donmelton/repos","events_url":"https://api.github.com/users/donmelton/events{/privacy}","received_events_url":"https://api.github.com/users/donmelton/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T18:20:38Z","updated_at":"2016-05-06T18:20:38Z","body":"@turley After chiding you to add `@target_bitrate = nil` it's now obvious that I should have already been doing that in the `--small` and `--small-video` implementation, too. :) My bad. I'll fix that."}}