Changeset 251

Show
Ignore:
Timestamp:
08/30/06 23:52:57 (2 years ago)
Author:
miya
Message:

Filter::FFmpeg: Added options to rewrite filename to entry title and fixed pod.
Thanks to sumikawa-san!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plagger/trunk/lib/Plagger/Plugin/Filter/FFmpeg.pm

    r250 r251  
    3030        return; 
    3131    } 
    32     $file =~ s/\.[^\.]*$//; 
     32 
     33    if ($self->conf->{rewrite_filename}) { 
     34        $file = $e->title; 
     35    } else { 
     36        $file =~ s/\.[^\.]*$//; 
     37    } 
     38 
    3339 
    3440    my $ff = FFmpeg::Command->new($self->conf->{command}); 
     
    8793      ext: m4v 
    8894      command: /usr/local/bin/ffmpeg 
     95      encoding: cp932 
     96      rewrite_filename: 0 
    8997      options: 
    90         encoding:            cp932 
    9198        format:              psp 
    9299        video_codec:         h264 
     
    122129You can chooe 'ipod' or 'psp.' Default is 'ipod.' 
    123130 
     131=head2 encoding 
     132 
     133Character encoding of title, author and comment. Default value is cp932. 
     134 
     135=head2 rewrite_filename 
     136 
     137Whether rewrite filename to title or not. Default value is 0 (not rewrite). 
     138 
     139 
    124140=head3 options 
    125141 
     
    129145 
    130146=over 
    131  
    132 =item encoding 
    133  
    134 Character encoding of title, author and comment.Default value is cp932. 
    135147 
    136148=item format