Module: synfig
Branch: eldruin_ffmpeg2
Commit: cd499408f2383ccc602277e45a4bfe2313c08a23
URL:    
http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=cd499408f2383ccc602277e45a4bfe2313c08a23

Author: Diego Barrios Romero <eldr...@gmailcom>
Date:   Tue Feb 23 01:09:50 2010 +0100

FFMPEG title metadata parameter.

---

 synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp 
b/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp
index 3359f28..4159ac9 100644
--- a/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp
+++ b/synfig-core/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp
@@ -164,21 +164,21 @@ ffmpeg_trgt::init()
        if( filename.c_str()[0] == '-' )
                command = strprintf("ffmpeg -f image2pipe -vcodec ppm -an"
                                                        " -r %f -i pipe: 
-loop_input"
-                                                       //" -metadata 
title=\"%s\" "
+                                                       " -metadata 
title=\"%s\" "
                                                        " -vcodec %s -b %ik"
                                                        " -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_input"
-                                                       //" -metadata 
title=\"%s\" "
+                                                       " -metadata 
title=\"%s\" "
                                                        "-vcodec %s -b %ik"
                                                        " -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());
 
@@ -216,7 +216,8 @@ ffmpeg_trgt::init()
                                   "ppm", "-an", "-r",
                                   strprintf("%f", 
desc.get_frame_rate()).c_str(),
                                   "-i", "pipe:", "-loop_input",
-                                  //strprintf("-metadata title=\"%s\"", 
get_canvas()->get_name().c_str()).c_str(),
+                                  "-metadata",
+                                  strprintf("title=\"%s\"", 
get_canvas()->get_name().c_str()).c_str(),
                                   "-vcodec", video_codec.c_str(),
                                   "-b", strprintf("%ik", bitrate).c_str(),
                                   "-y", "--", filename.c_str(), (const char 
*)NULL);
@@ -225,7 +226,8 @@ ffmpeg_trgt::init()
                                   "ppm", "-an", "-r",
                                   strprintf("%f", 
desc.get_frame_rate()).c_str(),
                                   "-i", "pipe:", "-loop_input",
-                                  //strprintf("-metadata title=\"%s\"", 
get_canvas()->get_name().c_str()).c_str(),
+                                  "-metadata",
+                                  strprintf("title=\"%s\"", 
get_canvas()->get_name().c_str()).c_str(),
                                   "-vcodec", video_codec.c_str(),
                                   "-b", strprintf("%ik", bitrate).c_str(),
                                   "-y", filename.c_str(), (const char *)NULL);


------------------------------------------------------------------------------
Download Intel&#174; 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to