polly-ffmpeg 0.1.9 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,216 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: FFMpegCommand</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">FFMpegCommand</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/ffmpeg/ffmpeg_command_rb.html">
59
+ lib/ffmpeg/ffmpeg_command.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+
76
+
77
+ </div>
78
+
79
+ <div id="method-list">
80
+ <h3 class="section-bar">Methods</h3>
81
+
82
+ <div class="name-list">
83
+ <a href="#M000001">&lt;&lt;</a>&nbsp;&nbsp;
84
+ <a href="#M000002">add_at</a>&nbsp;&nbsp;
85
+ <a href="#M000003">clear</a>&nbsp;&nbsp;
86
+ <a href="#M000004">command</a>&nbsp;&nbsp;
87
+ </div>
88
+ </div>
89
+
90
+ </div>
91
+
92
+
93
+ <!-- if includes -->
94
+
95
+ <div id="section">
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+ <!-- if method_list -->
105
+ <div id="methods">
106
+ <h3 class="section-bar">Public Instance methods</h3>
107
+
108
+ <div id="method-M000001" class="method-detail">
109
+ <a name="M000001"></a>
110
+
111
+ <div class="method-heading">
112
+ <a href="#M000001" class="method-signature">
113
+ <span class="method-name">&lt;&lt;</span><span class="method-args">(cmd)</span>
114
+ </a>
115
+ </div>
116
+
117
+ <div class="method-description">
118
+ <p><a class="source-toggle" href="#"
119
+ onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
120
+ <div class="method-source-code" id="M000001-source">
121
+ <pre>
122
+ <span class="ruby-comment cmt"># File lib/ffmpeg/ffmpeg_command.rb, line 6</span>
123
+ 6: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;&lt;</span>(<span class="ruby-identifier">cmd</span>)
124
+ 7: <span class="ruby-ivar">@commands</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">cmd</span>
125
+ 8: <span class="ruby-keyword kw">end</span>
126
+ </pre>
127
+ </div>
128
+ </div>
129
+ </div>
130
+
131
+ <div id="method-M000002" class="method-detail">
132
+ <a name="M000002"></a>
133
+
134
+ <div class="method-heading">
135
+ <a href="#M000002" class="method-signature">
136
+ <span class="method-name">add_at</span><span class="method-args">(cmd, pos)</span>
137
+ </a>
138
+ </div>
139
+
140
+ <div class="method-description">
141
+ <p><a class="source-toggle" href="#"
142
+ onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
143
+ <div class="method-source-code" id="M000002-source">
144
+ <pre>
145
+ <span class="ruby-comment cmt"># File lib/ffmpeg/ffmpeg_command.rb, line 10</span>
146
+ 10: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_at</span>(<span class="ruby-identifier">cmd</span>, <span class="ruby-identifier">pos</span>)
147
+ 11: <span class="ruby-ivar">@commands</span>.<span class="ruby-identifier">insert</span>(<span class="ruby-identifier">pos</span>, <span class="ruby-identifier">cmd</span>)
148
+ 12: <span class="ruby-keyword kw">end</span>
149
+ </pre>
150
+ </div>
151
+ </div>
152
+ </div>
153
+
154
+ <div id="method-M000003" class="method-detail">
155
+ <a name="M000003"></a>
156
+
157
+ <div class="method-heading">
158
+ <a href="#M000003" class="method-signature">
159
+ <span class="method-name">clear</span><span class="method-args">()</span>
160
+ </a>
161
+ </div>
162
+
163
+ <div class="method-description">
164
+ <p><a class="source-toggle" href="#"
165
+ onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
166
+ <div class="method-source-code" id="M000003-source">
167
+ <pre>
168
+ <span class="ruby-comment cmt"># File lib/ffmpeg/ffmpeg_command.rb, line 14</span>
169
+ 14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear</span>
170
+ 15: <span class="ruby-ivar">@commands</span>.<span class="ruby-identifier">clear</span>
171
+ 16: <span class="ruby-keyword kw">end</span>
172
+ </pre>
173
+ </div>
174
+ </div>
175
+ </div>
176
+
177
+ <div id="method-M000004" class="method-detail">
178
+ <a name="M000004"></a>
179
+
180
+ <div class="method-heading">
181
+ <a href="#M000004" class="method-signature">
182
+ <span class="method-name">command</span><span class="method-args">(prefix=&quot;&quot;)</span>
183
+ </a>
184
+ </div>
185
+
186
+ <div class="method-description">
187
+ <p><a class="source-toggle" href="#"
188
+ onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
189
+ <div class="method-source-code" id="M000004-source">
190
+ <pre>
191
+ <span class="ruby-comment cmt"># File lib/ffmpeg/ffmpeg_command.rb, line 18</span>
192
+ 18: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">command</span>(<span class="ruby-identifier">prefix</span>=<span class="ruby-value str">&quot;&quot;</span>)
193
+ 19: <span class="ruby-identifier">returning</span> <span class="ruby-identifier">prefix</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">prefix</span><span class="ruby-operator">|</span>
194
+ 20: <span class="ruby-ivar">@commands</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">command</span><span class="ruby-operator">|</span>
195
+ 21: <span class="ruby-identifier">prefix</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; #{command}&quot;</span>
196
+ 22: <span class="ruby-keyword kw">end</span>
197
+ 23: <span class="ruby-keyword kw">end</span>
198
+ 24: <span class="ruby-keyword kw">end</span>
199
+ </pre>
200
+ </div>
201
+ </div>
202
+ </div>
203
+
204
+
205
+ </div>
206
+
207
+
208
+ </div>
209
+
210
+
211
+ <div id="validator-badges">
212
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
213
+ </div>
214
+
215
+ </body>
216
+ </html>
@@ -0,0 +1,118 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: FileExtensions</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">FileExtensions</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/ffmpeg/file_extensions_rb.html">
59
+ lib/ffmpeg/file_extensions.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+
76
+
77
+ </div>
78
+
79
+
80
+ </div>
81
+
82
+
83
+ <!-- if includes -->
84
+
85
+ <div id="section">
86
+
87
+
88
+ <div id="constants-list">
89
+ <h3 class="section-bar">Constants</h3>
90
+
91
+ <div class="name-list">
92
+ <table summary="Constants">
93
+ <tr class="top-aligned-row context-row">
94
+ <td class="context-item-name">EXT</td>
95
+ <td>=</td>
96
+ <td class="context-item-value">[ &quot;3g2&quot;, &quot;3gp&quot;, &quot;4xm&quot;, &quot;IFF&quot;, &quot;ISS&quot;, &quot;MTV&quot;, &quot;RoQ&quot;, &quot;aac&quot;, &quot;ac3&quot;, &quot;adts&quot;, &quot;aiff&quot;, &quot;alaw&quot;, &quot;amr&quot;, &quot;apc&quot;, &quot;ape&quot;, &quot;asf&quot;, &quot;asf_stream&quot;, &quot;ass&quot;, &quot;au&quot;, &quot;avi&quot;, &quot;avm2&quot;, &quot;avs&quot;, &quot;bethsoftvid&quot;, &quot;bfi&quot;, &quot;c93&quot;, &quot;cavsvideo&quot;, &quot;crc&quot;, &quot;daud&quot;, &quot;dirac&quot;, &quot;dnxhd&quot;, &quot;dsicin&quot;, &quot;dts&quot;, &quot;dv&quot;, &quot;dvd&quot;, &quot;dxa&quot;, &quot;ea&quot;, &quot;ea_cdata&quot;, &quot;eac3&quot;, &quot;f32be&quot;, &quot;f32le&quot;, &quot;f64be&quot;, &quot;f64le&quot;, &quot;ffm&quot;, &quot;film_cpk&quot;, &quot;flac&quot;, &quot;flic&quot;, &quot;flv&quot;, &quot;framecrc&quot;, &quot;gif&quot;, &quot;gsm&quot;, &quot;gxf&quot;, &quot;h261&quot;, &quot;h263&quot;, &quot;h264&quot;, &quot;idcin&quot;, &quot;image2&quot;, &quot;image2pipe&quot;, &quot;ingenient&quot;, &quot;ipmovie&quot;, &quot;ipod&quot;, &quot;lmlm4&quot;, &quot;m4v&quot;, &quot;matroska&quot;, &quot;mjpeg&quot;, &quot;mlp&quot;, &quot;mm&quot;, &quot;mmf&quot;, &quot;mov&quot;, &quot;mov&quot;, &quot;mp4&quot;, &quot;m4a&quot;, &quot;3gp&quot;, &quot;mp2&quot;, &quot;mp3&quot;, &quot;mp4&quot;, &quot;mpc&quot;, &quot;mpc&quot;, &quot;mpeg&quot;, &quot;mpeg1video&quot;, &quot;mpeg2video&quot;, &quot;mpegts&quot;, &quot;mpegtsraw&quot;, &quot;mpegvideo&quot;, &quot;mpjpeg&quot;, &quot;msnwctcp&quot;, &quot;mulaw&quot;, &quot;mvi&quot;, &quot;mxf&quot;, &quot;mxf_d10&quot;, &quot;nc&quot;, &quot;nsv&quot;, &quot;null&quot;, &quot;nut&quot;, &quot;nuv&quot;, &quot;ogg&quot;, &quot;oma&quot;, &quot;psp&quot;, &quot;psxstr&quot;, &quot;pva&quot;, &quot;r3d&quot;, &quot;rawvideo&quot;, &quot;rcv&quot;, &quot;redir&quot;, &quot;rl2&quot;, &quot;rm&quot;, &quot;rpl&quot;, &quot;rtp&quot;, &quot;rtsp&quot;, &quot;s16be&quot;, &quot;s16le&quot;, &quot;s24be&quot;, &quot;s24le&quot;, &quot;s32be&quot;, &quot;s32le&quot;, &quot;s8&quot;, &quot;sdp&quot;, &quot;shn&quot;, &quot;siff&quot;, &quot;smk&quot;, &quot;sol&quot;, &quot;svcd&quot;, &quot;swf&quot;, &quot;thp&quot;, &quot;tiertexseq&quot;, &quot;tta&quot;, &quot;txd&quot;, &quot;u16be&quot;, &quot;u16le&quot;, &quot;u24be&quot;, &quot;u24le&quot;, &quot;u32be&quot;, &quot;u32le&quot;, &quot;u8&quot;, &quot;vc1&quot;, &quot;vc1test&quot;, &quot;vcd&quot;, &quot;vmd&quot;, &quot;vob&quot;, &quot;voc&quot;, &quot;wav&quot;, &quot;wc3movie&quot;, &quot;wsaud&quot;, &quot;wsvqa&quot;, &quot;wv&quot;, &quot;xa&quot;, &quot;yuv4mpegpipe&quot;</td>
97
+ </tr>
98
+ </table>
99
+ </div>
100
+ </div>
101
+
102
+
103
+
104
+
105
+
106
+
107
+ <!-- if method_list -->
108
+
109
+
110
+ </div>
111
+
112
+
113
+ <div id="validator-badges">
114
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
115
+ </div>
116
+
117
+ </body>
118
+ </html>
@@ -0,0 +1 @@
1
+ Sun, 16 Aug 2009 00:10:20 +0200
@@ -0,0 +1,153 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>File: README.textile</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="fileHeader">
50
+ <h1>README.textile</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>README.textile
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Fri Aug 07 15:27:15 +0200 2009</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+ <div id="description">
72
+ <p>
73
+ h2. <a href="../classes/FFMpeg.html">FFMpeg</a>
74
+ </p>
75
+ <p>
76
+ A DSL for building and executing ffmpeg commands.
77
+ </p>
78
+ <p>
79
+ h2. Requirements
80
+ </p>
81
+ <p>
82
+ It requires that you already have ffmpeg installed, obviously :)
83
+ </p>
84
+ <p>
85
+ h2. Install
86
+ </p>
87
+ <p>
88
+ gem install polly-ffmpeg &#8212;source <a
89
+ href="http://gems.github.com">gems.github.com</a>
90
+ </p>
91
+ <p>
92
+ h2. Usage
93
+ </p>
94
+ <p>
95
+ To build and execute a command you would use the FFMpeg::convert method and
96
+ then call the FFMpeg::run method like this:
97
+ </p>
98
+ <p>
99
+ include <a href="../classes/FFMpeg.html">FFMpeg</a>
100
+ </p>
101
+ <p>
102
+ convert &quot;file.ext&quot;, :to =&gt; &quot;new_file.ext&quot; do
103
+ &lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;seek
104
+ &quot;00:01:13&quot;&lt;/span&gt;
105
+ &lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;duration
106
+ &quot;00:10:01&quot;&lt;/span&gt; end.run
107
+ </p>
108
+ <p>
109
+ For more information checkout the &quot;documentation&quot;:<a
110
+ href="http://polly.github.com/ffmpeg">polly.github.com/ffmpeg</a>/
111
+ </p>
112
+ <p>
113
+ h2. Credit where credit&#8216;s due
114
+ </p>
115
+ <p>
116
+ Thank&#8216;s to &quot;jwthompson2&quot;:<a
117
+ href="http://github.com/jwthompson2">github.com/jwthompson2</a>,
118
+ there&#8216;s now support for all of the standard video and audio options
119
+ from the ffmpeg documentation as well as improved and refactored specs.
120
+ </p>
121
+
122
+ </div>
123
+
124
+
125
+ </div>
126
+
127
+
128
+ </div>
129
+
130
+
131
+ <!-- if includes -->
132
+
133
+ <div id="section">
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+ <!-- if method_list -->
143
+
144
+
145
+ </div>
146
+
147
+
148
+ <div id="validator-badges">
149
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
150
+ </div>
151
+
152
+ </body>
153
+ </html>