rtranscoder 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,10 +1,15 @@
1
+ == 0.1.2 / 2008-01-29
2
+
3
+ * Replaces 'run_with_task' method calls with 'run_task', as that is the
4
+ correct method provided by RProgram 0.1.3.
5
+
1
6
  == 0.1.1 / 2008-01-28
2
7
 
3
8
  * Fixed show-stopping bug:
4
- * <tt>lib/rtranscoder/ffmpeg/ffmpeg.rb</tt> was requiring:
5
- <tt>lib/rtransocder/ffmpeg/extensions.rb</tt> which no longer exists.
6
- * Fixed typos in <tt>exmaples/</tt>.
7
- * Added examples to <tt>README.txt</tt>.
9
+ * lib/rtranscoder/ffmpeg/ffmpeg.rb was requiring:
10
+ lib/rtransocder/ffmpeg/extensions.rb which no longer exists.
11
+ * Fixed typos in exmaples/.
12
+ * Added examples to README.txt.
8
13
 
9
14
  == 0.1.0 / 2008-01-27
10
15
 
data/README.txt CHANGED
@@ -75,7 +75,7 @@ to Ruby classes and methods for your convenience.
75
75
  $ mencoder input.avi -o output.mp4 -queit -ovc x264 -x264encopts \
76
76
  bitrate=3000:nr=2000 -oac faac -faacopts br=32:tns
77
77
 
78
- * Extracts frame starting at 00:00:03 for 00:00:01.
78
+ * Extract frames starting at 00:00:03 for 00:00:01.
79
79
 
80
80
  require 'rtranscoder/ffmpeg'
81
81
 
@@ -103,7 +103,7 @@ to Ruby classes and methods for your convenience.
103
103
  :height => 240,
104
104
  :image => 'video_thumbnail_%d.jpg')
105
105
 
106
- Both equivalent to:
106
+ Both are equivalent to:
107
107
 
108
108
  $ ffmpeg -i video.flv -an -ss 00:00:03 -t 00:00:01 -r 1 -y \
109
109
  -s 320x240 video_thumbnail_%d.jpg
@@ -3,7 +3,7 @@ require 'rtranscoder/ffmpeg'
3
3
  include RTranscoder
4
4
 
5
5
  #
6
- # Extracts frame starting at 00:00:03 for 00:00:01.
6
+ # Extract frames starting at 00:00:03 for 00:00:01.
7
7
  #
8
8
  FFmpeg.encode do |ffmpeg|
9
9
  ffmpeg.input = 'video.flv'
@@ -35,7 +35,7 @@ module RTranscoder
35
35
  # _block_ using FFmpegTask.
36
36
  #
37
37
  def encode(options={},&block)
38
- run_with_task(FFmpegTask.new(options,&block))
38
+ run_task(FFmpegTask.new(options,&block))
39
39
  end
40
40
 
41
41
  #
@@ -1,6 +1,199 @@
1
1
  require 'rprogram/task'
2
2
 
3
3
  module RTranscoder
4
+ #
5
+ # ==FFmpeg options:
6
+ #
7
+ # <tt>-refs</tt>:: <tt>ffmpeg.ref_frames_for_motion_compensation</tt>
8
+ # <tt>-subcmp</tt>:: <tt>ffmpeg.sub_full_pel_motion_estimation_compare</tt>
9
+ # <tt>-slang</tt>:: <tt>ffmpeg.subtitle_language_code</tt>
10
+ # <tt>-shortest</tt>:: <tt>ffmpeg.shortest</tt>
11
+ # <tt>-padright</tt>:: <tt>ffmpeg.pad_right</tt>
12
+ # <tt>-mb_threshold</tt>:: <tt>ffmpeg.macroblock_threshold</tt>
13
+ # <tt>-mpeg_quant</tt>:: <tt>ffmpeg.mpeg_quantizers</tt>
14
+ # <tt>-dc</tt>:: <tt>ffmpeg.intra_dc_precision</tt>
15
+ # <tt>-y</tt>:: <tt>ffmpeg.overwrite_output_files</tt>
16
+ # <tt>-trellis</tt>:: <tt>ffmpeg.rate_distortion_optimal_quantization</tt>
17
+ # <tt>-last_pred</tt>:: <tt>ffmpeg.motion_preditors_from_previous</tt>
18
+ # <tt>-target</tt>:: <tt>ffmpeg.target</tt>
19
+ # <tt>-isync</tt>:: <tt>ffmpeg.sync_read_on_input</tt>
20
+ # <tt>-bug</tt>:: <tt>ffmpeg.bug</tt>
21
+ # <tt>-vcodec</tt>:: <tt>ffmpeg.video_codec</tt>
22
+ # <tt>-skip_bottom</tt>:: <tt>ffmpeg.skip_bottom_macroblock_rows</tt>
23
+ # <tt>-vbsf</tt>:: <tt>ffmpeg.bitstream_filter</tt>
24
+ # <tt>-ss</tt>:: <tt>ffmpeg.record_start_time</tt>
25
+ # <tt>-bufsize</tt>:: <tt>ffmpeg.video_ratecontrol_buffer_size</tt>
26
+ # <tt>--mv0_threshold</tt>:: <tt>ffmpeg.mv0_threshold</tt>
27
+ # <tt>-deblockalpha</tt>:: <tt>ffmpeg.alphac0_deblocking</tt>
28
+ # <tt>-pre_dia_size</tt>:: <tt>ffmpeg.pre_pass_diamond_type_and_size</tt>
29
+ # <tt>-re</tt>:: <tt>ffmpeg.read_at_native_fps</tt>
30
+ # <tt>-author</tt>:: <tt>ffmpeg.author</tt>
31
+ # <tt>-newvideo</tt>:: <tt>ffmpeg.new_video_stream</tt>
32
+ # <tt>-lowres</tt>:: <tt>ffmpeg.lowres_decode</tt>
33
+ # <tt>-vframes</tt>:: <tt>ffmpeg.video_frames</tt>
34
+ # <tt>-dct</tt>:: <tt>ffmpeg.dct_algorithm</tt>
35
+ # <tt>-ar</tt>:: <tt>ffmpeg.audio_sampling_rate</tt>
36
+ # <tt>-copyright</tt>:: <tt>ffmpeg.copyright</tt>
37
+ # <tt>-max_prediction_order</tt>:: <tt>ffmpeg.max_prediction_order</tt>
38
+ # <tt>-sc_factor</tt>:: <tt>ffmpeg.scene_change_modifier</tt>
39
+ # <tt>-ibias</tt>:: <tt>ffmpeg.intra_quant_bias</tt>
40
+ # <tt>-vglobal</tt>:: <tt>ffmpeg.video_global_header</tt>
41
+ # <tt>-vdt</tt>:: <tt>ffmpeg.discard_threshold</tt>
42
+ # <tt>-skip_ext</tt>:: <tt>ffmpeg.frame_skip_exponent</tt>
43
+ # <tt>-scplx_mask</tt>:: <tt>ffmpeg.spatial_complexity_masking</tt>
44
+ # <tt>-flags</tt>:: <tt>ffmpeg.flags</tt>
45
+ # <tt>-acodec</tt>:: <tt>ffmpeg.audio_codec</tt>
46
+ # <tt>-qdiff</tt>:: <tt>ffmpeg.qdiff</tt>
47
+ # <tt>-aspect</tt>:: <tt>ffmpeg.aspect_ratio</tt>
48
+ # <tt>-encoding_track</tt>:: <tt>ffmpeg.encoding_track</tt>
49
+ # <tt>-lpc_coeff_precision</tt>:: <tt>ffmpeg.lpc_coefficient_precision</tt>
50
+ # <tt>-context</tt>:: <tt>ffmpeg.video_encoding_context_model</tt>
51
+ # <tt>-debug</tt>:: <tt>ffmpeg.debug</tt>
52
+ # <tt>-muxpreload</tt>:: <tt>ffmpeg.initial_demux_delay</tt>
53
+ # <tt>-comment</tt>:: <tt>ffmpeg.comment</tt>
54
+ # <tt>-me</tt>:: <tt>ffmpeg.motion_estimation_method</tt>
55
+ # <tt>-mblmax</tt>:: <tt>ffmpeg.max_macroblock_lag_range_factor</tt>
56
+ # <tt>-ec</tt>:: <tt>ffmpeg.error_concealment</tt>
57
+ # <tt>-alang</tt>:: <tt>ffmpeg.audio_language_code</tt>
58
+ # <tt>-top</tt>:: <tt>ffmpeg.top</tt>
59
+ # <tt>-cropleft</tt>:: <tt>ffmpeg.crop_left</tt>
60
+ # <tt>-timecode_frame_start</tt>:: <tt>ffmpeg.gop_timecode_frame_start</tt>
61
+ # <tt>-lmin</tt>:: <tt>ffmpeg.min_lag_range_factor</tt>
62
+ # <tt>-g</tt>:: <tt>ffmpeg.group_picture_size</tt>
63
+ # <tt>-deinterlace</tt>:: <tt>ffmpeg.deinterlace</tt>
64
+ # <tt>-cpp</tt>:: <tt>ffmpeg.constant_quantization_parameter_rate_control</tt>
65
+ # <tt>-vismv</tt>:: <tt>ffmpeg.visualize_motion_vectors</tt>
66
+ # <tt>-scodec</tt>:: <tt>ffmpeg.subtitle_codec</tt>
67
+ # <tt>-loop_output</tt>:: <tt>ffmpeg.loop_output</tt>
68
+ # <tt>-padbottom</tt>:: <tt>ffmpeg.pad_bottom</tt>
69
+ # <tt>-version</tt>:: <tt>ffmpeg.version</tt>
70
+ # <tt>-packetsize</tt>:: <tt>ffmpeg.encoding_packet_size</tt>
71
+ # <tt>-flags2</tt>:: <tt>ffmpeg.extra_flags</tt>
72
+ # <tt>-vstats_file</tt>:: <tt>ffmpeg.log_video_coding_statistics</tt>
73
+ # <tt>-rc_strategy</tt>:: <tt>ffmpeg.video_ratecontrol_method</tt>
74
+ # <tt>-chromaoffset</tt>:: <tt>ffmpeg.chroma_gp_offset_from_luma</tt>
75
+ # <tt>-mbcomp</tt>:: <tt>ffmpeg.marcoblock_compare_function</tt>
76
+ # <tt>-vc</tt>:: <tt>ffmpeg.video_graph_channel</tt>
77
+ # <tt>-dts_delta_threshold</tt>:: <tt>ffmpeg.dts_delta_threshold</tt>
78
+ # <tt>-padcolor</tt>:: <tt>ffmpeg.pad_color</tt>
79
+ # <tt>-nssew</tt>:: <tt>ffmpeg.nsse_weight</tt>
80
+ # <tt>-rc_eq</tt>:: <tt>ffmpeg.video_rate_control</tt>
81
+ # <tt>-vtag</tt>:: <tt>ffmpeg.force_video_tag</tt>
82
+ # <tt>-t</tt>:: <tt>ffmpeg.record_for</tt>
83
+ # <tt>-directpred 1</tt>:: <tt>ffmpeg.direct_mv_prediction</tt>
84
+ # <tt>-inter_threshold</tt>:: <tt>ffmpeg.inter_threshold</tt>
85
+ # <tt>-preme</tt>:: <tt>ffmpeg.pre_motion_estimation</tt>
86
+ # <tt>-sameq</tt>:: <tt>ffmpeg.preserve_video_quality</tt>
87
+ # <tt>-map</tt>:: <tt>ffmpeg.input_stream_mapping</tt>
88
+ # <tt>-profile</tt>:: <tt>ffmpeg.encoding_profile</tt>
89
+ # <tt>-rc_buf_aggressivity</tt>:: <tt>ffmpeg.currently_useless</tt>
90
+ # <tt>-aframes</tt>:: <tt>ffmpeg.audio_frames</tt>
91
+ # <tt>-title</tt>:: <tt>ffmpeg.title</tt>
92
+ # <tt>-itsoffset</tt>:: <tt>ffmpeg.input_ts_offset</tt>
93
+ # <tt>-compression_level</tt>:: <tt>ffmpeg.compression_level</tt>
94
+ # <tt>-deblockbeta</tt>:: <tt>ffmpeg.beta_deblocking</tt>
95
+ # <tt>-subq</tt>:: <tt>ffmpeg.sub_pel_motion_estimation_quality</tt>
96
+ # <tt>-vsync</tt>:: <tt>ffmpeg.video_sync</tt>
97
+ # <tt>-pix_fmt</tt>:: <tt>ffmpeg.pixel_format</tt>
98
+ # <tt>-skip_threshold</tt>:: <tt>ffmpeg.frame_skip_threshold</tt>
99
+ # <tt>-ac</tt>:: <tt>ffmpeg.audio_channels</tt>
100
+ # <tt>-album</tt>:: <tt>ffmpeg.album</tt>
101
+ # <tt>-r</tt>:: <tt>ffmpeg.fps</tt>
102
+ # <tt>-lumi_mask</tt>:: <tt>ffmpeg.luminescence_mask</tt>
103
+ # <tt>-dump</tt>:: <tt>ffmpeg.dump</tt>
104
+ # <tt>-prediction_order_method</tt>:: <tt>ffmpeg.prediction_order_method</tt>
105
+ # <tt>-b_sensitivity</tt>:: <tt>ffmpeg.b_frame_sensitivity</tt>
106
+ # <tt>-pbias</tt>:: <tt>ffmpeg.inter_quant_bias</tt>
107
+ # <tt>-copyts</tt>:: <tt>ffmpeg.copy_timestams</tt>
108
+ # <tt>-rc_eq</tt>:: <tt>ffmpeg.rate_control_equation</tt>
109
+ # <tt>-skipcmp</tt>:: <tt>ffmpeg.frame_skip_compare</tt>
110
+ # <tt>-dark_mask</tt>:: <tt>ffmpeg.darkness_mask</tt>
111
+ # <tt>-vol</tt>:: <tt>ffmpeg.audio_volume</tt>
112
+ # <tt>-intra_matrix</tt>:: <tt>ffmpeg.intra_matrix</tt>
113
+ # <tt>-croptop</tt>:: <tt>ffmpeg.crop_top</tt>
114
+ # <tt>-encoding_year</tt>:: <tt>ffmpeg.encoding_year</tt>
115
+ # <tt>-min_partition_order</tt>:: <tt>ffmpeg.min_audio_partition_order</tt>
116
+ # <tt>-mbd</tt>:: <tt>ffmpeg.macroblock_decision_algorithm</tt>
117
+ # <tt>-me_threshold</tt>:: <tt>ffmpeg.motion_estimation_threshold</tt>
118
+ # <tt>-b</tt>:: <tt>ffmpeg.video_bitrate</tt>
119
+ # <tt>-mepc</tt>:: <tt>ffmpeg.motion_estimation_bitrate_penalty</tt>
120
+ # <tt>-pred</tt>:: <tt>ffmpeg.encoding_prediction_method</tt>
121
+ # <tt>-atag</tt>:: <tt>ffmpeg.force_audio_tag</tt>
122
+ # <tt>-benchmark</tt>:: <tt>ffmpeg.benchmark</tt>
123
+ # <tt>-cropright</tt>:: <tt>ffmpeg.crop_right</tt>
124
+ # <tt>-probesize</tt>:: <tt>ffmpeg.decoding_probe_size</tt>
125
+ # <tt>-lmax</tt>:: <tt>ffmpeg.max_lag_range_factor</tt>
126
+ # <tt>-cutoff</tt>:: <tt>ffmpeg.audio_bandwidth_cutoff</tt>
127
+ # <tt>-psnr</tt>:: <tt>ffmpeg.calculate_psnr</tt>
128
+ # <tt>-keyint_min</tt>:: <tt>ffmpeg.min_interval_between_idr_frames</tt>
129
+ # <tt>-cmp</tt>:: <tt>ffmpeg.full_pel_motion_estimation_compare</tt>
130
+ # <tt>-threads</tt>:: <tt>ffmpeg.threads</tt>
131
+ # <tt>-padleft</tt>:: <tt>ffmpeg.pad_left</tt>
132
+ # <tt>-hex</tt>:: <tt>ffmpeg.hex</tt>
133
+ # <tt>-newsubtitle</tt>:: <tt>ffmpeg.new_subtitles_stream</tt>
134
+ # <tt>-analyzeduration</tt>:: <tt>ffmpeg.decoding_analyze_duration</tt>
135
+ # <tt>-qns</tt>:: <tt>ffmpeg.quantizer_noise_shaping</tt>
136
+ # <tt>-ps</tt>:: <tt>ffmpeg.video_rtp_payload_size</tt>
137
+ # <tt>-vhook</tt>:: <tt>ffmpeg.video_processing_module</tt>
138
+ # <tt>-i</tt>:: <tt>ffmpeg.input</tt>
139
+ # <tt>-f</tt>:: <tt>ffmpeg.output_format</tt>
140
+ # <tt>-bframebias</tt>:: <tt>ffmpeg.influences_b_frame_usage</tt>
141
+ # <tt>-dia_size</tt>:: <tt>ffmpeg.diamond_type_and_size</tt>
142
+ # <tt>-tvstd</tt>:: <tt>ffmpeg.television_standard</tt>
143
+ # <tt>-hurry_up</tt>:: <tt>ffmpeg.hurry_up</tt>
144
+ # <tt>-vn</tt>:: <tt>ffmpeg.disable_video</tt>
145
+ # <tt>-skip_top</tt>:: <tt>ffmpeg.skip_top_macroblock_rows</tt>
146
+ # <tt>-fs</tt>:: <tt>ffmpeg.limit_file_size</tt>
147
+ # <tt>-minrate</tt>:: <tt>ffmpeg.max_video_bitrate</tt>
148
+ # <tt>-qphist</tt>:: <tt>ffmpeg.qp_histogram</tt>
149
+ # <tt>-complexityblur</tt>:: <tt>ffmpeg.reduce_gp_fluctuations</tt>
150
+ # <tt>-border_mask</tt>:: <tt>ffmpeg.border_mask</tt>
151
+ # <tt>-precmp</tt>:: <tt>ffmpeg.pre_motion_estimation_compare</tt>
152
+ # <tt>-map_meta_data</tt>:: <tt>ffmpeg.metadata_mapping</tt>
153
+ # <tt>-passlogfile</tt>:: <tt>ffmpeg.pass_log_file</tt>
154
+ # <tt>-pass</tt>:: <tt>ffmpeg.pass</tt>
155
+ # <tt>-level</tt>:: <tt>ffmpeg.encoding_level</tt>
156
+ # <tt>-rc_init_cplx</tt>:: <tt>ffmpeg.initial_pass_complexity</tt>
157
+ # <tt>-aq</tt>:: <tt>ffmpeg.audio_quality</tt>
158
+ # <tt>-timestamp</tt>:: <tt>ffmpeg.timestamp</tt>
159
+ # <tt>-dframes</tt>:: <tt>ffmpeg.data_frames</tt>
160
+ # <tt>-min_prediction_order</tt>:: <tt>ffmpeg.min_prediction_order</tt>
161
+ # <tt>-partitions</tt>:: <tt>ffmpeg.macroblock_subpartition_size</tt>
162
+ # <tt>-me_range</tt>:: <tt>ffmpeg.limit_motion_vectors_range</tt>
163
+ # <tt>-intra</tt>:: <tt>ffmpeg.only_intra_frames</tt>
164
+ # <tt>-async</tt>:: <tt>ffmpeg.audio_sync</tt>
165
+ # <tt>-skip_factor</tt>:: <tt>ffmpeg.frame_skip_factor</tt>
166
+ # <tt>-tcplx_mask</tt>:: <tt>ffmpeg.temporal_complexity_masking</tt>
167
+ # <tt>-an</tt>:: <tt>ffmpeg.disable_audio</tt>
168
+ # <tt>-qscale</tt>:: <tt>ffmpeg.qscale</tt>
169
+ # <tt>-s</tt>:: <tt>ffmpeg.video_frame_size</tt>
170
+ # <tt>-fflags</tt>:: <tt>ffmpeg.fflags</tt>
171
+ # <tt>-use_lpc</tt>:: <tt>ffmpeg.lpc_mode</tt>
172
+ # <tt>-coder</tt>:: <tt>ffmpeg.video_coder</tt>
173
+ # <tt>-muxdelay</tt>:: <tt>ffmpeg.maximum_demux_delay</tt>
174
+ # <tt>-rc_override</tt>:: <tt>ffmpeg.rate_control_override</tt>
175
+ # <tt>-mblmin</tt>:: <tt>ffmpeg.min_macroblock_lag_range_factor</tt>
176
+ # <tt>-idct</tt>:: <tt>ffmpeg.idct_implementation</tt>
177
+ # <tt>-inter_matrix</tt>:: <tt>ffmpeg.inter_matrix</tt>
178
+ # <tt>-cropbottom</tt>:: <tt>ffmpeg.crop_bottom</tt>
179
+ # <tt>-h</tt>:: <tt>ffmpeg.help</tt>
180
+ # <tt>-newaudio</tt>:: <tt>ffmpeg.new_audio_stream</tt>
181
+ # <tt>-max_partition_order</tt>:: <tt>ffmpeg.max_audio_partition_order</tt>
182
+ # <tt>-sc_threshold</tt>:: <tt>ffmpeg.encoding_scene_change_threshold</tt>
183
+ # <tt>-ab</tt>:: <tt>ffmpeg.audio_bitrate</tt>
184
+ # <tt>-strict</tt>:: <tt>ffmpeg.strictness</tt>
185
+ # <tt>-crf</tt>:: <tt>ffmpeg.constant_quality_mode</tt>
186
+ # <tt>-aspect</tt>:: <tt>ffmpeg.encoding_sample_aspect_ratio</tt>
187
+ # <tt>-absf</tt>:: <tt>ffmpeg.audio_bitstream_filter</tt>
188
+ # <tt>-loop_input</tt>:: <tt>ffmpeg.loop_input</tt>
189
+ # <tt>-padtop</tt>:: <tt>ffmpeg.pad_top</tt>
190
+ # <tt>-muxrate</tt>:: <tt>ffmpeg.encoding_mux_rate</tt>
191
+ # <tt>-nr</tt>:: <tt>ffmpeg.noise_reduction</tt>
192
+ # <tt>-L</tt>:: <tt>ffmpeg.license</tt>
193
+ # <tt>-v</tt>:: <tt>ffmpeg.verbose</tt>
194
+ # <tt>-frame_size</tt>:: <tt>ffmpeg.audio_frame_size</tt>
195
+ # <tt>-vstats</tt>:: <tt>ffmpeg.dump_video_coding_statistics</tt>
196
+ #
4
197
  class FFmpegTask < RProgram::Task
5
198
 
6
199
  # Main options
@@ -28,7 +28,7 @@ module RTranscoder
28
28
  # _block_ with MEncoderTask.
29
29
  #
30
30
  def encode(options={},&block)
31
- run_with_task(MEncoderTask.new(options,&block))
31
+ run_task(MEncoderTask.new(options,&block))
32
32
  end
33
33
 
34
34
  end
@@ -1,6 +1,43 @@
1
1
  require 'rtranscoder/mplayer/mplayer_common_task'
2
2
 
3
3
  module RTranscoder
4
+ #
5
+ # ==MEncoder options:
6
+ #
7
+ # <tt>-toolameopts</tt>:: <tt>mencoder.toolame</tt>
8
+ # <tt>-ofps</tt>:: <tt>mencoder.output_fps</tt>
9
+ # <tt>-audio-density</tt>:: <tt>mencoder.audio_density</tt>
10
+ # <tt>-mpegopts</tt>:: <tt>mencoder.mpeg</tt>
11
+ # <tt>-vobsuboutindex</tt>:: <tt>mencoder.vob_output_subtitle_index</tt>
12
+ # <tt>-noencodedups</tt>:: <tt>mencoder.ignore_duplicate_frames</tt>
13
+ # <tt>-twolameopts</tt>:: <tt>mencoder.twolame</tt>
14
+ # <tt>-ovc</tt>:: <tt>mencoder.output_video_codec</tt>
15
+ # <tt>-audio-preload</tt>:: <tt>mencoder.audio_preload</tt>
16
+ # <tt>-lavfopts</tt>:: <tt>mencoder.lavf</tt>
17
+ # <tt>-noodml</tt>:: <tt>mencoder.disable_open_dml_index</tt>
18
+ # <tt>-nuvopts</tt>:: <tt>mencoder.nuv</tt>
19
+ # <tt>-passlogfile</tt>:: <tt>mencoder.pass_log_file</tt>
20
+ # <tt>-o</tt>:: <tt>mencoder.output</tt>
21
+ # <tt>-force-avi-aspect</tt>:: <tt>mencoder.force_avi_aspect</tt>
22
+ # <tt>-fafmttag</tt>:: <tt>mencoder.audio_tag_format</tt>
23
+ # <tt>-lavcopts</tt>:: <tt>mencoder.lavc</tt>
24
+ # <tt>-noskip</tt>:: <tt>mencoder.disable_frame_skipping</tt>
25
+ # <tt>-xvfwopts</tt>:: <tt>mencoder.xvfw</tt>
26
+ # <tt>-skiplimit</tt>:: <tt>mencoder.skip_limit</tt>
27
+ # <tt>-info</tt>:: <tt>mencoder.info</tt>
28
+ # <tt>-ffourcc</tt>:: <tt>mencoder.video_fourcc</tt>
29
+ # <tt>-xvidencopts</tt>:: <tt>mencoder.xvidenc</tt>
30
+ # <tt>-oac</tt>:: <tt>mencoder.output_audio_codec</tt>
31
+ # <tt>-faacopts</tt>:: <tt>mencoder.faac</tt>
32
+ # <tt>-vobsubout</tt>:: <tt>mencoder.vob_output_basename</tt>
33
+ # <tt>-hr-edl-seek</tt>:: <tt>mencoder.hires_edl_seek</tt>
34
+ # <tt>-lameopts</tt>:: <tt>mencoder.lame</tt>
35
+ # <tt>-of</tt>:: <tt>mencoder.output_container</tt>
36
+ # <tt>-audio-delay</tt>:: <tt>mencoder.audio_delay</tt>
37
+ # <tt>-x264encopts</tt>:: <tt>mencoder.x264enc</tt>
38
+ # <tt>-vobsuboutid</tt>:: <tt>mencoder.vob_output_subtitle_language</tt>
39
+ # <tt>-noautoexpand</tt>:: <tt>mencoder.disable_auto_expand</tt>
40
+ #
4
41
  class MEncoderTask < MPlayerCommonTask
5
42
 
6
43
  # General Encoding options
@@ -28,7 +28,7 @@ module RTranscoder
28
28
  # _block_ using MPlayerTask.
29
29
  #
30
30
  def play(options={},&block)
31
- run_with_task(MPlayerTask.new(options,&block))
31
+ run_task(MPlayerTask.new(options,&block))
32
32
  end
33
33
 
34
34
  end
@@ -1,6 +1,113 @@
1
1
  require 'rprogram/task'
2
2
 
3
3
  module RTranscoder
4
+ #
5
+ # MPlayer Common options:
6
+ #
7
+ # <tt>-lavdopts</tt>:: <tt>mplayer.libavcodec</tt>
8
+ # <tt>-field-dominance</tt>:: <tt>mplayer.field_dominance</tt>
9
+ # <tt>-msglevel</tt>:: <tt>mplayer.message_verbose</tt>
10
+ # <tt>-demuxer</tt>:: <tt>mplayer.demuxer</tt>
11
+ # <tt>-rawaudio</tt>:: <tt>mplayer.raw_audio</tt>
12
+ # <tt>-list-options</tt>:: <tt>mplayer.list_options</tt>
13
+ # <tt>-vf-pre</tt>:: <tt>mplayer.prepend_video_filters</tt>
14
+ # <tt>-ac</tt>:: <tt>mplayer.audio_codecs</tt>
15
+ # <tt>-chapter</tt>:: <tt>mplayer.chapter</tt>
16
+ # <tt>-ni</tt>:: <tt>mplayer.non_interleaved_avi_parser</tt>
17
+ # <tt>-rtsp-port</tt>:: <tt>mplayer.rtsp_port</tt>
18
+ # <tt>-vfm</tt>:: <tt>mplayer.video_codec_families</tt>
19
+ # <tt>-tvscan</tt>:: <tt>mplayer.tv_scan</tt>
20
+ # <tt>-bandwidth</tt>:: <tt>mplayer.bandwidth</tt>
21
+ # <tt>-endpos</tt>:: <tt>mplayer.end_position</tt>
22
+ # <tt>-mf</tt>:: <tt>mplayer.mf</tt>
23
+ # <tt>-pp</tt>:: <tt>mplayer.dll_postprocess_level</tt>
24
+ # <tt>-srate</tt>:: <tt>mplayer.output_sample_rate</tt>
25
+ # <tt>-show-profile</tt>:: <tt>mplayer.show_profile</tt>
26
+ # <tt>-audiofile</tt>:: <tt>mplayer.audio_file</tt>
27
+ # <tt>-edl</tt>:: <tt>mplayer.edl</tt>
28
+ # <tt>-noaspect</tt>:: <tt>mplayer.disable_aspect_ratio</tt>
29
+ # <tt>-tv</tt>:: <tt>mplayer.tv</tt>
30
+ # <tt>-codecs-file</tt>:: <tt>mplayer.codecs_file</tt>
31
+ # <tt>-msgcharset</tt>:: <tt>mplayer.message_charset</tt>
32
+ # <tt>-ignore-start</tt>:: <tt>mplayer.ignore_start</tt>
33
+ # <tt>-psprobe</tt>:: <tt>mplayer.probe_into_stream</tt>
34
+ # <tt>-vf-add</tt>:: <tt>mplayer.append_video_filters</tt>
35
+ # <tt>-vivo</tt>:: <tt>mplayer.vivo_audio_parameters</tt>
36
+ # <tt>-include</tt>:: <tt>mplayer.include</tt>
37
+ # <tt>-radio</tt>:: <tt>mplayer.radio</tt>
38
+ # <tt>-channels</tt>:: <tt>mplayer.channels</tt>
39
+ # <tt>-loadidx</tt>:: <tt>mplayer.load_index</tt>
40
+ # <tt>-vc</tt>:: <tt>mplayer.video_codecs</tt>
41
+ # <tt>-tsprog</tt>:: <tt>mplayer.ts_program</tt>
42
+ # <tt>-reuse-socket</tt>:: <tt>mplayer.reuse_socket</tt>
43
+ # <tt>-dvdangle</tt>:: <tt>mplayer.dvd_angle</tt>
44
+ # <tt>-mc</tt>:: <tt>mplayer.mc</tt>
45
+ # <tt>-zoom</tt>:: <tt>mplayer.zoom</tt>
46
+ # <tt>-novideo</tt>:: <tt>mplayer.disable_video</tt>
47
+ # <tt>-sb</tt>:: <tt>mplayer.seek_to_byte</tt>
48
+ # <tt>-really-quiet</tt>:: <tt>mplayer.really_quiet</tt>
49
+ # <tt>-alang</tt>:: <tt>mplayer.audio_language</tt>
50
+ # <tt>-cache</tt>:: <tt>mplayer.cache</tt>
51
+ # <tt>-dvd-speed</tt>:: <tt>mplayer.dvd_speed</tt>
52
+ # <tt>-aspect</tt>:: <tt>mplayer.aspect_ratio</tt>
53
+ # <tt>-speed</tt>:: <tt>mplayer.speed</tt>
54
+ # <tt>-passwd</tt>:: <tt>mplayer.http_password</tt>
55
+ # <tt>-delay</tt>:: <tt>mplayer.delay</tt>
56
+ # <tt>-vf</tt>:: <tt>mplayer.video_filters</tt>
57
+ # <tt>-vid</tt>:: <tt>mplayer.video_channel</tt>
58
+ # <tt>-pvr</tt>:: <tt>mplayer.pvr</tt>
59
+ # <tt>-cdrom-device</tt>:: <tt>mplayer.cdrom_device</tt>
60
+ # <tt>-noidx</tt>:: <tt>mplayer.skip_index</tt>
61
+ # <tt>-sws</tt>:: <tt>mplayer.software_scaler_algorithm</tt>
62
+ # <tt>-tsprobe</tt>:: <tt>mplayer.probe_into_ts_stream</tt>
63
+ # <tt>-ipv4-only-proxy</tt>:: <tt>mplayer.ipv4_only_proxy</tt>
64
+ # <tt>-audio-demuxer</tt>:: <tt>mplayer.audio_demuxer</tt>
65
+ # <tt>-cache-seek-min</tt>:: <tt>mplayer.cache_seek_minimum</tt>
66
+ # <tt>-stereo</tt>:: <tt>mplayer.stereo</tt>
67
+ # <tt>-nosound</tt>:: <tt>mplayer.disable_sound</tt>
68
+ # <tt>-dvd-device</tt>:: <tt>mplayer.dvd_device</tt>
69
+ # <tt>-saveidx</tt>:: <tt>mplayer.save_index</tt>
70
+ # <tt>-profile</tt>:: <tt>mplayer.profile</tt>
71
+ # <tt>-aid</tt>:: <tt>mplayer.audio_channel</tt>
72
+ # <tt>-vf-clr</tt>:: <tt>mplayer.clear_video_filters</tt>
73
+ # <tt>-afm</tt>:: <tt>mplayer.audio_codec_families</tt>
74
+ # <tt>-noextbased</tt>:: <tt>mplayer.disable_ext_based_demuxer</tt>
75
+ # <tt>-rtsp-stream-over-tcp</tt>:: <tt>mplayer.rtsp_stream_over_tcp</tt>
76
+ # <tt>-cookies-file</tt>:: <tt>mplayer.cookies_file</tt>
77
+ # <tt>-af</tt>:: <tt>mplayer.audio_filters</tt>
78
+ # <tt>-user-agent</tt>:: <tt>mplayer.http_user_agent</tt>
79
+ # <tt>-hr-mp3-seek</tt>:: <tt>mplayer.hires_mp3_seeking</tt>
80
+ # <tt>-prefer-ipv6</tt>:: <tt>mplayer.prefer_ipv6</tt>
81
+ # <tt>-cdda</tt>:: <tt>mplayer.cdda</tt>
82
+ # <tt>-ssf</tt>:: <tt>mplayer.software_scaler</tt>
83
+ # <tt>-tskeepbroken</tt>:: <tt>mplayer.ignore_broken_ts_packets</tt>
84
+ # <tt>-cache-min</tt>:: <tt>mplayer.cache_minimum</tt>
85
+ # <tt>-frames</tt>:: <tt>mplayer.frames</tt>
86
+ # <tt>-o</tt>:: <tt>mplayer.output</tt>
87
+ # <tt>-a52drc</tt>:: <tt>mplayer.a52drc</tt>
88
+ # <tt>-noslices</tt>:: <tt>mplayer.disable_slices</tt>
89
+ # <tt>-flip</tt>:: <tt>mplayer.flip</tt>
90
+ # <tt>-dvbin</tt>:: <tt>mplayer.dvbin</tt>
91
+ # <tt>-rawvideo</tt>:: <tt>mplayer.raw_video</tt>
92
+ # <tt>-quiet</tt>:: <tt>mplayer.quiet</tt>
93
+ # <tt>-v</tt>:: <tt>mplayer.verbose</tt>
94
+ # <tt>-vf-del</tt>:: <tt>mplayer.delete_video_filters</tt>
95
+ # <tt>-af-adv</tt>:: <tt>mplayer.advanced_audio_filtering</tt>
96
+ # <tt>-cookies</tt>:: <tt>mplayer.cookies</tt>
97
+ # <tt>-nobps</tt>:: <tt>mplayer.disable_bps</tt>
98
+ # <tt>-rtsp-destination</tt>:: <tt>mplayer.rtsp_destination</tt>
99
+ # <tt>-xvidopts</tt>:: <tt>mplayer.xvid_decoding</tt>
100
+ # <tt>-user</tt>:: <tt>mplayer.http_username</tt>
101
+ # <tt>-nocache</tt>:: <tt>mplayer.nocache</tt>
102
+ # <tt>-forceidx</tt>:: <tt>mplayer.force_index</tt>
103
+ # <tt>-prefer-ipv4</tt>:: <tt>mplayer.prefer_ipv4</tt>
104
+ # <tt>-idx</tt>:: <tt>mplayer.index</tt>
105
+ # <tt>-pphelp</tt>:: <tt>mplayer.postprocess_help</tt>
106
+ # <tt>-ss</tt>:: <tt>mplayer.seek_to_time</tt>
107
+ # <tt>-audiofile-cache</tt>:: <tt>mplayer.audio_file_cache</tt>
108
+ # <tt>-fps</tt>:: <tt>mplayer.fps</tt>
109
+ # <tt>-priority</tt>:: <tt>mplayer.priority</tt>
110
+ # <tt>-use-filedir-conf</tt>:: <tt>mplayer.use_filedir_conf</tt>
4
111
  class MPlayerCommonTask < RProgram::Task
5
112
 
6
113
  protected
@@ -1,6 +1,106 @@
1
1
  require 'rtranscoder/mplayer/mplayer_common_task'
2
2
 
3
3
  module RTranscoder
4
+ #
5
+ # ==MPlayer options:
6
+ #
7
+ # <tt>-screenw</tt>:: <tt>mplayer.horizontal_resolution</tt>
8
+ # <tt>-dr</tt>:: <tt>mplayer.enable_direct_rendering</tt>
9
+ # <tt>-correct-pts</tt>:: <tt>mplayer.correct_pts</tt>
10
+ # <tt>-noconsolecontrols</tt>:: <tt>mplayer.disable_console_controls</tt>
11
+ # <tt>-geometry</tt>:: <tt>mplayer.geometry</tt>
12
+ # <tt>-zrxdoff</tt>:: <tt>mplayer.zr_x_offset</tt>
13
+ # <tt>-panscanrange</tt>:: <tt>mplayer.pan_and_scan_range</tt>
14
+ # <tt>-no-gui</tt>:: <tt>mplayer.disable_gui</tt>
15
+ # <tt>-playlist</tt>:: <tt>mplayer.playlist</tt>
16
+ # <tt>-bpp</tt>:: <tt>mplayer.video_bpp</tt>
17
+ # <tt>-zrfd</tt>:: <tt>mplayer.zr_force_decimation</tt>
18
+ # <tt>-nodouble</tt>:: <tt>mplayer.disable_double_buffer</tt>
19
+ # <tt>-nocolorkey</tt>:: <tt>mplayer.no_color_key</tt>
20
+ # <tt>-menu-chroot</tt>:: <tt>mplayer.menu_chroot</tt>
21
+ # <tt>-mixer-channel</tt>:: <tt>mplayer.audio_mixer_channel</tt>
22
+ # <tt>-wid</tt>:: <tt>mplayer.window</tt>
23
+ # <tt>-monitor-vfreq</tt>:: <tt>mplayer.monitor_vfreq</tt>
24
+ # <tt>-fs</tt>:: <tt>mplayer.fullscreen</tt>
25
+ # <tt>-identify</tt>:: <tt>mplayer.identify</tt>
26
+ # <tt>-playing-msg</tt>:: <tt>mplayer.playing_message</tt>
27
+ # <tt>-screenh</tt>:: <tt>mplayer.vertical_resolution</tt>
28
+ # <tt>-display</tt>:: <tt>mplayer.x11_display</tt>
29
+ # <tt>-benchmark</tt>:: <tt>mplayer.benchmark</tt>
30
+ # <tt>-loop</tt>:: <tt>mplayer.loop</tt>
31
+ # <tt>-menu-keepdir</tt>:: <tt>mplayer.menu_keep_directory</tt>
32
+ # <tt>-slave</tt>:: <tt>mplayer.slave</tt>
33
+ # <tt>-zrvdec</tt>:: <tt>mplayer.zr_vertical_decimation</tt>
34
+ # <tt>-panscan</tt>:: <tt>mplayer.pan_and_scan</tt>
35
+ # <tt>-adapter</tt>:: <tt>mplayer.video_adapter</tt>
36
+ # <tt>-gui</tt>:: <tt>mplayer.enable_gui</tt>
37
+ # <tt>-rtc</tt>:: <tt>mplayer.rtc</tt>
38
+ # <tt>-zrdev</tt>:: <tt>mplayer.zr_output</tt>
39
+ # <tt>-monitorpixelaspect</tt>:: <tt>mplayer.monitor_pixel_aspect</tt>
40
+ # <tt>-mixer</tt>:: <tt>mplayer.audio_mixer</tt>
41
+ # <tt>-colorkey</tt>:: <tt>mplayer.color_key</tt>
42
+ # <tt>-menu</tt>:: <tt>mplayer.menu</tt>
43
+ # <tt>-vsync</tt>:: <tt>mplayer.video_sync</tt>
44
+ # <tt>-monitor-hfreq</tt>:: <tt>mplayer.monitor_hfreq</tt>
45
+ # <tt>-fbmodeconfig</tt>:: <tt>mplayer.override_frame_buffer</tt>
46
+ # <tt>-enqueue</tt>:: <tt>mplayer.enqueue</tt>
47
+ # <tt>-nomouseinput</tt>:: <tt>mplayer.disable_mouse_input</tt>
48
+ # <tt>-saturation</tt>:: <tt>mplayer.video_saturation</tt>
49
+ # <tt>-skin</tt>:: <tt>mplayer.skin</tt>
50
+ # <tt>-contrast</tt>:: <tt>mplayer.video_contrast</tt>
51
+ # <tt>-menu-cfg</tt>:: <tt>mplayer.menu_config</tt>
52
+ # <tt>-zrquality</tt>:: <tt>mplayer.zr_quality</tt>
53
+ # <tt>-ontop</tt>:: <tt>mplayer.always_on_top</tt>
54
+ # <tt>-ao</tt>:: <tt>mplayer.audio_options</tt>
55
+ # <tt>-framedrop</tt>:: <tt>mplayer.frame_drop</tt>
56
+ # <tt>-mouse-movements</tt>:: <tt>mplayer.mouse_movements</tt>
57
+ # <tt>-zrcrop</tt>:: <tt>mplayer.zr_video</tt>
58
+ # <tt>-monitoraspect</tt>:: <tt>mplayer.monitor_aspect</tt>
59
+ # <tt>-format</tt>:: <tt>mplayer.audio_format</tt>
60
+ # <tt>-autosync</tt>:: <tt>mplayer.auto_sync</tt>
61
+ # <tt>-list-properties</tt>:: <tt>mplayer.list_properties</tt>
62
+ # <tt>-vm</tt>:: <tt>mplayer.video_mode</tt>
63
+ # <tt>-nolirc</tt>:: <tt>mplayer.disable_lirc</tt>
64
+ # <tt>-monitor-dotclock</tt>:: <tt>mplayer.monitor_dotclock</tt>
65
+ # <tt>-fbmode</tt>:: <tt>mplayer.frame_buffer</tt>
66
+ # <tt>-doubleclick-time</tt>:: <tt>mplayer.doubleclick_time</tt>
67
+ # <tt>-vo</tt>:: <tt>mplayer.video_output</tt>
68
+ # <tt>-rootwin</tt>:: <tt>mplayer.root_window</tt>
69
+ # <tt>-input</tt>:: <tt>mplayer.input</tt>
70
+ # <tt>-lircconf</tt>:: <tt>mplayer.lirc_config</tt>
71
+ # <tt>-shuffle</tt>:: <tt>mplayer.shuffle</tt>
72
+ # <tt>-brightness</tt>:: <tt>mplayer.video_brightness</tt>
73
+ # <tt>-zrhelp</tt>:: <tt>mplayer.zr_help</tt>
74
+ # <tt>-nokeepaspect</tt>:: <tt>mplayer.disable_keep_aspect</tt>
75
+ # <tt>-menu-startup</tt>:: <tt>mplayer.menu_startup</tt>
76
+ # <tt>-volstep</tt>:: <tt>mplayer.audio_volume_step</tt>
77
+ # <tt>-fixed-vo</tt>:: <tt>mplayer.fixed_video_output</tt>
78
+ # <tt>-zrbw</tt>:: <tt>mplayer.zr_black_and_white</tt>
79
+ # <tt>-key-fifo-size</tt>:: <tt>mplayer.key_fifo_size</tt>
80
+ # <tt>-sstep</tt>:: <tt>mplayer.skip_step</tt>
81
+ # <tt>-autoq</tt>:: <tt>mplayer.auto_quality</tt>
82
+ # <tt>-guiwid</tt>:: <tt>mplayer.gui_window</tt>
83
+ # <tt>stop-xscreensaver</tt>:: <tt>mplayer.disable_xscreensaver</tt>
84
+ # <tt>-nojoystick</tt>:: <tt>mplayer.disable_joy_stick</tt>
85
+ # <tt>-hue</tt>:: <tt>mplayer.hue</tt>
86
+ # <tt>--help</tt>:: <tt>mplayer.help</tt>
87
+ # <tt>-dxr2</tt>:: <tt>mplayer.dxr2_options</tt>
88
+ # <tt>-crash-debug</tt>:: <tt>mplayer.crash_debug</tt>
89
+ # <tt>-zrydoff</tt>:: <tt>mplayer.zr_y_offset</tt>
90
+ # <tt>-refreshrate</tt>:: <tt>mplayer.refresh_rate</tt>
91
+ # <tt>-hardframedrop</tt>:: <tt>mplayer.hard_frame_drop</tt>
92
+ # <tt>-rtc-device</tt>:: <tt>mplayer.rtc_device</tt>
93
+ # <tt>-border</tt>:: <tt>mplayer.video_border</tt>
94
+ # <tt>-zrhdec</tt>:: <tt>mplayer.zr_horizontal_decimation</tt>
95
+ # <tt>-nograbpointer</tt>:: <tt>mplayer.disable_pointer_grabbing</tt>
96
+ # <tt>-edlout</tt>:: <tt>mplayer.edl_output</tt>
97
+ # <tt>-menu-root</tt>:: <tt>mplayer.menu_root</tt>
98
+ # <tt>-softvol</tt>:: <tt>mplayer.audio_software_mixer</tt>
99
+ # <tt>-xineramascreen</tt>:: <tt>mplayer.xinerama_screen</tt>
100
+ # <tt>-fstype</tt>:: <tt>mplayer.fs_type</tt>
101
+ # <tt>-idle</tt>:: <tt>mplayer.idle</tt>
102
+ # <tt>-softsleep</tt>:: <tt>mplayer.soft_sleep</tt>
103
+ #
4
104
  class MPlayerTask < MPlayerCommonTask
5
105
 
6
106
  # Player options
@@ -1,3 +1,3 @@
1
1
  module RTranscoder
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: rtranscoder
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.1
7
- date: 2008-01-28 00:00:00 -08:00
6
+ version: 0.1.2
7
+ date: 2008-01-29 00:00:00 -08:00
8
8
  summary: A Rubyful interface to various transcoding utilities using the RProgram library.
9
9
  require_paths:
10
10
  - lib