Mercurial > hg > aimc
changeset 562:167d8ec2468e
Fixed ffmpeg frame-rate bug
author | tomwalters@google.com |
---|---|
date | Tue, 01 May 2012 23:32:24 +0000 |
parents | 3dff17554c6d |
children | fb602edc2d55 |
files | trunk/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.cc Mon Apr 23 22:58:40 2012 +0000 +++ b/trunk/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.cc Tue May 01 23:32:24 2012 +0000 @@ -166,9 +166,9 @@ float frame_rate = global_parameters_->DefaultFloat("frame_rate", -1.0); char sCmdLine[1024]; //!\todo check that snprintf does not want a larger buffer snprintf(sCmdLine, sizeof(sCmdLine)/sizeof(sCmdLine[0]), - "%s -y -i \"%s\" -i \"%s%%06d.png\" " + "%s -y -i \"%s\" -r %.2f -i \"%s%%06d.png\" " "-sameq -r %.2f -ar 44100 -acodec pcm_s16le %s \"%s\"", - sffmpegPath, sound_filename_.c_str(), directory_.c_str(), + sffmpegPath, sound_filename_.c_str(), frame_rate, directory_.c_str(), frame_rate, sCodecOptions, movie_filename_.c_str()); printf(sCmdLine); printf("\n");