summaryrefslogtreecommitdiff
path: root/community/synfig/ffmpeg-loop.patch
blob: ce271363bab8f70b367b1aa01d17c3bf23c18db5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
--- synfig-0.63.05/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp	2013-02-27 13:51:18.638547204 -0300
+++ synfig-0.63.05.new/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp	2013-02-27 13:51:09.905261183 -0300
@@ -172,7 +172,7 @@
 
 	if( filename.c_str()[0] == '-' )
 		command = strprintf("ffmpeg -f image2pipe -vcodec ppm -an"
-							" -r %f -i pipe: -loop_input"
+							" -r %f -i pipe: -loop 1"
 							" -metadata title=\"%s\" "
 							" -vcodec %s -b %ik"
 							" -y -- \"%s\"\n",
@@ -182,7 +182,7 @@
 							filename.c_str());
 	else
 		command = strprintf("ffmpeg -f image2pipe -vcodec ppm -an"
-							" -r %f -i pipe: -loop_input"
+							" -r %f -i pipe: -loop 1"
 							" -metadata title=\"%s\" "
 							"-vcodec %s -b %ik"
 							" -y -- \"%s\"\n",
@@ -227,7 +227,7 @@
 				execlp("ffmpeg", "ffmpeg", "-f", "image2pipe", "-vcodec",
 					   "ppm", "-an", "-r",
 					   strprintf("%f", desc.get_frame_rate()).c_str(),
-					   "-i", "pipe:", "-loop_input", "-metadata",
+					   "-i", "pipe:", "-loop", "1", "-metadata",
 						strprintf("title=\"%s\"", get_canvas()->get_name().c_str()).c_str(),
 						"-vcodec", video_codec.c_str(),
 						"-b", strprintf("%ik", bitrate).c_str(),
@@ -237,7 +237,7 @@
 				execlp("ffmpeg", "ffmpeg", "-f", "image2pipe", "-vcodec",
 					   "ppm", "-an", "-r",
 					   strprintf("%f", desc.get_frame_rate()).c_str(),
-					   "-i", "pipe:", "-loop_input", "-metadata",
+					   "-i", "pipe:", "-loop", "1", "-metadata",
 						strprintf("title=\"%s\"", get_canvas()->get_name().c_str()).c_str(),
 						"-vcodec", video_codec.c_str(),
 						"-b", strprintf("%ik", bitrate).c_str(),
@@ -249,7 +249,7 @@
 				execlp("ffmpeg", "ffmpeg", "-f", "image2pipe", "-vcodec",
 					   "ppm", "-an", "-r",
 					   strprintf("%f", desc.get_frame_rate()).c_str(),
-					   "-i", "pipe:", "-loop_input",
+					   "-i", "pipe:", "-loop", "1",
 					   "-metadata",
 					   strprintf("title=\"%s\"", get_canvas()->get_name().c_str()).c_str(),
 					   "-vcodec", video_codec.c_str(),
@@ -260,7 +260,7 @@
 				execlp("ffmpeg", "ffmpeg", "-f", "image2pipe", "-vcodec",
 					   "ppm", "-an", "-r",
 					   strprintf("%f", desc.get_frame_rate()).c_str(),
-					   "-i", "pipe:", "-loop_input",
+					   "-i", "pipe:", "-loop", "1",
 					   "-metadata",
 					   strprintf("title=\"%s\"", get_canvas()->get_name().c_str()).c_str(),
 					   "-vcodec", video_codec.c_str(),