Commit 9bdfafd8 authored by Andrey Filippov's avatar Andrey Filippov

more places with the video bitrate

parent bfd6e6ec
...@@ -2739,8 +2739,8 @@ public class CuasMotion { ...@@ -2739,8 +2739,8 @@ public class CuasMotion {
String webm_path = avi_path.substring(0, avi_path.length()-4)+video_ext; String webm_path = avi_path.substring(0, avi_path.length()-4)+video_ext;
String stereo_meta = ""; String stereo_meta = "";
String shellCommand = String.format("ffmpeg -y -i %s -c %s -b:v 0 -crf %d %s %s", String shellCommand = String.format("ffmpeg -y -i %s -c %s -b:v %fM -crf %d %s %s",
avi_path, video_codec, video_crf, stereo_meta, webm_path); avi_path, video_codec, video_bitrate_m, video_crf, stereo_meta, webm_path);
Process p = null; Process p = null;
if (!dry_run) { if (!dry_run) {
int exit_code = -1; int exit_code = -1;
......
...@@ -2740,6 +2740,7 @@ public class OrthoMap implements Comparable <OrthoMap>, Serializable{ ...@@ -2740,6 +2740,7 @@ public class OrthoMap implements Comparable <OrthoMap>, Serializable{
String video_ext = ".webm"; String video_ext = ".webm";
String video_codec = "vp8"; String video_codec = "vp8";
int video_crf = 10; // lower - better, larger file size int video_crf = 10; // lower - better, larger file size
double video_bitrate_m = 50; // clt_parameters.imp.video_bitrate_m;
boolean remove_avi = true; boolean remove_avi = true;
int debugLevel = 0; int debugLevel = 0;
int num_slices = imp.getImageStack().getSize(); int num_slices = imp.getImageStack().getSize();
...@@ -2870,6 +2871,7 @@ public class OrthoMap implements Comparable <OrthoMap>, Serializable{ ...@@ -2870,6 +2871,7 @@ public class OrthoMap implements Comparable <OrthoMap>, Serializable{
video_ext, // ".webm", // String video_ext, video_ext, // ".webm", // String video_ext,
video_codec, // "vp8", // String video_codec, video_codec, // "vp8", // String video_codec,
video_crf, // 10, // int video_crf, // lower - better, larger file size video_crf, // 10, // int video_crf, // lower - better, larger file size
video_bitrate_m, // double video_bitrate_m,
remove_avi, // boolean remove_avi, remove_avi, // boolean remove_avi,
debugLevel); // final int debugLevel debugLevel); // final int debugLevel
...@@ -3042,6 +3044,7 @@ public class OrthoMap implements Comparable <OrthoMap>, Serializable{ ...@@ -3042,6 +3044,7 @@ public class OrthoMap implements Comparable <OrthoMap>, Serializable{
String video_ext, String video_ext,
String video_codec, String video_codec,
int video_crf, int video_crf,
double video_bitrate_m,
boolean remove_avi, boolean remove_avi,
final int debugLevel final int debugLevel
) { ) {
...@@ -3074,8 +3077,8 @@ public class OrthoMap implements Comparable <OrthoMap>, Serializable{ ...@@ -3074,8 +3077,8 @@ public class OrthoMap implements Comparable <OrthoMap>, Serializable{
//ffmpeg -i sample_left_right_clip.mpg -an -c:v libvpx -metadata stereo_mode=left_right -y stereo_clip.webm //ffmpeg -i sample_left_right_clip.mpg -an -c:v libvpx -metadata stereo_mode=left_right -y stereo_clip.webm
//anaglyph_cyan_red //anaglyph_cyan_red
String stereo_meta = ""; // used in OpticalFlow String stereo_meta = ""; // used in OpticalFlow
String shellCommand = String.format("ffmpeg -y -i %s -c %s -b:v 0 -crf %d %s %s", String shellCommand = String.format("ffmpeg -y -i %s -c %s -b:v %fM -crf %d %s %s",
avi_path, video_codec, video_crf, stereo_meta, webm_path); avi_path, video_codec, video_bitrate_m, video_crf, stereo_meta, webm_path);
Process p = null; Process p = null;
if (generate_mapped) { if (generate_mapped) {
int exit_code = -1; int exit_code = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment