diff options
author | Christoph Helma <helma@in-silico.ch> | 2018-02-23 17:02:24 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2018-02-23 17:02:24 +0100 |
commit | 42c9030665ef94e5ed27da83e2f37a6b17031024 (patch) | |
tree | 3735b18b3b4752ef02cab31a35b5eddf5335db0b /sv.c | |
parent | ca4a8e57cf33045e5ab835e78aceec87f973b544 (diff) |
correct video size
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -211,9 +211,8 @@ void *readMidi() { time_t current_time = time(NULL); char output_file[25]; strftime(output_file, 25, "%Y-%m-%d_%H%M%S.mp4", localtime(¤t_time)); - const char* cmd = "ffmpeg -r 60 -f rawvideo -pix_fmt rgba -s 1918x1078 -i - " - "-threads 0 -preset veryfast -y -pix_fmt yuv420p -c:v libx264 -crf 18 -vf vflip output.mp4"; - + char cmd[250]; + sprintf(cmd, "ffmpeg -r 60 -f rawvideo -pix_fmt rgba -s %ix%i -i - -threads 0 -preset veryfast -y -pix_fmt yuv420p -c:v libx264 -crf 18 -vf vflip %s",width,height,output_file); ffmpeg = popen(cmd, "w"); recording = 1; } |