- //
- // int videoBitrate;
- //
- // switch (options.videoBitrate) {
- // case LOW:
- // videoBitrate = 3000;
- // break;
- //
- // case MEDIUM:
- // videoBitrate = 7000;
- // break;
- //
- // case HIGH:
- // videoBitrate = 15000;
- // break;
- //
- // default:
- // throw new RuntimeException("Video bitrate: " + options.videoBitrate
- // + " is not supported.");
- // }
+
+ int videoBitrate = 0;
+ int audioBitrate = 0;
+
+ switch (options.videoBitrate) {
+ case LOW:
+ videoBitrate = 1000;
+ audioBitrate = 128;
+ break;
+
+ case MEDIUM:
+ videoBitrate = 3500;
+ audioBitrate = 128;
+ break;
+
+ case HIGH:
+ videoBitrate = 15000;
+ audioBitrate = 500;
+ break;
+
+ case COPY:
+ break;
+
+ default:
+ throw new RuntimeException("Video bitrate: " + options.videoBitrate
+ + " is not supported.");
+ }