Module: synfig Branch: eldruin_ffmpeg2 Commit: bdb57f4fff3436cad7f66a466a599541313ada9b URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=bdb57f4fff3436cad7f66a466a599541313ada9b
Author: Diego Barrios Romero <eldr...@gmailcom> Date: Sun Feb 21 21:27:04 2010 +0100 Propper bitrate FFMPEG parameter. --- synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp b/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp index cf53761..3359f28 100644 --- a/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp +++ b/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp @@ -165,7 +165,7 @@ ffmpeg_trgt::init() command = strprintf("ffmpeg -f image2pipe -vcodec ppm -an" " -r %f -i pipe: -loop_input" //" -metadata title=\"%s\" " - " -vcodec %s -b %i" + " -vcodec %s -b %ik" " -y -- \"%s\"\n", desc.get_frame_rate(), //get_canvas()->get_name().c_str(), @@ -175,7 +175,7 @@ ffmpeg_trgt::init() command = strprintf("ffmpeg -f image2pipe -vcodec ppm -an" " -r %f -i pipe: -loop_input" //" -metadata title=\"%s\" " - "-vcodec %s -b %i" + "-vcodec %s -b %ik" " -y -- \"%s\"\n", desc.get_frame_rate(), //get_canvas()->get_name().c_str(), @@ -218,7 +218,7 @@ ffmpeg_trgt::init() "-i", "pipe:", "-loop_input", //strprintf("-metadata title=\"%s\"", get_canvas()->get_name().c_str()).c_str(), "-vcodec", video_codec.c_str(), - "-b "+bitrate, + "-b", strprintf("%ik", bitrate).c_str(), "-y", "--", filename.c_str(), (const char *)NULL); else execlp("ffmpeg", "ffmpeg", "-f", "image2pipe", "-vcodec", @@ -227,7 +227,7 @@ ffmpeg_trgt::init() "-i", "pipe:", "-loop_input", //strprintf("-metadata title=\"%s\"", get_canvas()->get_name().c_str()).c_str(), "-vcodec", video_codec.c_str(), - "-b "+bitrate, + "-b", strprintf("%ik", bitrate).c_str(), "-y", filename.c_str(), (const char *)NULL); // We should never reach here unless the exec failed ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl