Module: synfig Branch: eldruin_ffmpeg2 Commit: 472aaef36e2037f67fb96ee8077b8e9c7e3c3446 URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=472aaef36e2037f67fb96ee8077b8e9c7e3c3446
Author: Diego Barrios Romero <eldr...@gmailcom> Date: Sat Feb 20 17:44:33 2010 +0100 Updated FFMPEG parameters. --- synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp | 26 ++++++++++--------- 1 files changed, 14 insertions(+), 12 deletions(-) diff --git a/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp b/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp index 0f2a728..cf53761 100644 --- a/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp +++ b/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp @@ -163,20 +163,22 @@ ffmpeg_trgt::init() if( filename.c_str()[0] == '-' ) command = strprintf("ffmpeg -f image2pipe -vcodec ppm -an" - " -r %f -i pipe: -loop -hq" - " -title \"%s\" -vcodec %s -b %i" + " -r %f -i pipe: -loop_input" + //" -metadata title=\"%s\" " + " -vcodec %s -b %i" " -y -- \"%s\"\n", desc.get_frame_rate(), - get_canvas()->get_name().c_str(), + //get_canvas()->get_name().c_str(), video_codec.c_str(), bitrate, filename.c_str()); else command = strprintf("ffmpeg -f image2pipe -vcodec ppm -an" - " -r %f -i pipe: -loop -hq" - " -title \"%s\" -vcodec %s -b %i" + " -r %f -i pipe: -loop_input" + //" -metadata title=\"%s\" " + "-vcodec %s -b %i" " -y -- \"%s\"\n", desc.get_frame_rate(), - get_canvas()->get_name().c_str(), + //get_canvas()->get_name().c_str(), video_codec.c_str(), bitrate, filename.c_str()); @@ -213,19 +215,19 @@ ffmpeg_trgt::init() execlp("ffmpeg", "ffmpeg", "-f", "image2pipe", "-vcodec", "ppm", "-an", "-r", strprintf("%f", desc.get_frame_rate()).c_str(), - "-i", "pipe:", "-loop", "-hq", - "-title", get_canvas()->get_name().c_str(), + "-i", "pipe:", "-loop_input", + //strprintf("-metadata title=\"%s\"", get_canvas()->get_name().c_str()).c_str(), "-vcodec", video_codec.c_str(), - "-b", bitrate, + "-b "+bitrate, "-y", "--", filename.c_str(), (const char *)NULL); else execlp("ffmpeg", "ffmpeg", "-f", "image2pipe", "-vcodec", "ppm", "-an", "-r", strprintf("%f", desc.get_frame_rate()).c_str(), - "-i", "pipe:", "-loop", "-hq", - "-title", get_canvas()->get_name().c_str(), + "-i", "pipe:", "-loop_input", + //strprintf("-metadata title=\"%s\"", get_canvas()->get_name().c_str()).c_str(), "-vcodec", video_codec.c_str(), - "-b", bitrate, + "-b "+bitrate, "-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