diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-04-05 23:17:03 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-22 13:03:04 +0200 |
| commit | 21ebc2365dd7a66c05d130dc87861f7399ae834b (patch) | |
| tree | ee1feebe6e0cf10dc5d4ecddbe9ea9ccb9a6b9d8 /src/lib/create_cli.cc | |
| parent | 4f0d027f1964d0c011f89b5706fbaf654955ba2d (diff) | |
Allow specification of video bit rate separately for J2K and MPEG2.
Diffstat (limited to 'src/lib/create_cli.cc')
| -rw-r--r-- | src/lib/create_cli.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/create_cli.cc b/src/lib/create_cli.cc index b33537974..8fe5a2a14 100644 --- a/src/lib/create_cli.cc +++ b/src/lib/create_cli.cc @@ -320,8 +320,8 @@ CreateCLI::CreateCLI (int argc, char* argv[]) _name = content[0].path.filename().string(); } - if (_video_bit_rate && (*_video_bit_rate < 10000000 || *_video_bit_rate > Config::instance()->maximum_video_bit_rate())) { - error = String::compose("%1: video-bit-rate must be between 10 and %2 Mbit/s", argv[0], (Config::instance()->maximum_video_bit_rate() / 1000000)); + if (_video_bit_rate && (*_video_bit_rate < 10000000 || *_video_bit_rate > Config::instance()->maximum_video_bit_rate(VideoEncoding::JPEG2000))) { + error = String::compose("%1: video-bit-rate must be between 10 and %2 Mbit/s", argv[0], (Config::instance()->maximum_video_bit_rate(VideoEncoding::JPEG2000) / 1000000)); return; } } @@ -373,7 +373,7 @@ CreateCLI::make_film() const film->set_resolution(Resolution::FOUR_K); } if (_video_bit_rate) { - film->set_video_bit_rate(*_video_bit_rate); + film->set_video_bit_rate(VideoEncoding::JPEG2000, *_video_bit_rate); } int channels = 6; |
