(input: &str, encoder: &String)
| 313 | } |
| 314 | |
| 315 | fn insert_format_from(input: &str, encoder: &String) -> String { |
| 316 | let format = if encoder.contains("h264") { |
| 317 | "h264" |
| 318 | } else if encoder.contains("hevc") { |
| 319 | "hevc" |
| 320 | } else { |
| 321 | "ivf" |
| 322 | }; |
| 323 | // this should be cleaner when we support more than 1 type |
| 324 | return input.replace("{}", format); |
| 325 | } |