Changeset 221
- Timestamp:
- 07/31/06 23:41:24 (2 years ago)
- Files:
-
- plagger/trunk/lib/Plagger/Plugin/Filter/FFmpeg.pm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plagger/trunk/lib/Plagger/Plugin/Filter/FFmpeg.pm
r213 r221 6 6 use File::Spec; 7 7 use FFmpeg::Command; 8 use Encode; 8 9 9 10 sub register { … … 21 22 22 23 my $ext = $self->conf->{ext} || 'mp4'; 24 my $encoding = $self->conf->{encoding} || 'cp932'; 23 25 24 26 my $file = eval { $e->enclosure->filename }; … … 34 36 my $output_file = File::Spec->catfile($self->conf->{dir}, "$file.$ext"); 35 37 $ff->output_options({ 36 file => $output_file, 37 device => $self->conf->{device} || 'ipod', 38 file => $output_file, 39 device => $self->conf->{device} || 'ipod', 40 title => encode($encoding, $e->title), 41 author => encode($encoding, $e->author), 42 comment => encode($encoding, $e->summary), 38 43 %{ $self->conf->{options} || {} }, 39 44 }); … … 79 84 command: /usr/local/bin/ffmpeg 80 85 options: 86 encoding: cp932 81 87 format: psp 82 88 video_codec: h264 83 89 bitrate: 600 84 size:320x24090 frame_size: 320x240 85 91 audio_codec: aac 86 92 audio_sampling_rate: 48000 … … 120 126 =over 121 127 122 =item file128 =item encoding 123 129 124 a file name of output file.130 Character encoding of title, author and comment.Default value is cp932. 125 131 126 132 =item format … … 136 142 Output video bitrate. 137 143 138 =item size144 =item frame_size 139 145 140 146 Output video screen size.
