~ubuntu-branches/ubuntu/trusty/mythexport/trusty

« back to all changes in this revision

Viewing changes to usr/share/mythexport/configs/PortableH264HighRes.pm

  • Committer: Bazaar Package Importer
  • Author(s): John Baab
  • Date: 2010-08-13 01:53:54 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20100813015354-h2w1q6caq1mlv5vo
Tags: 2.2.0-0ubuntu1
* FFe (LP: #617570).
* Added HTML5 streaming page to web interface.
* New device config method. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl 
 
2
 
 
3
package PortableH264HighRes;
 
4
 
 
5
use ExportBase;
 
6
 
 
7
our @ISA = qw(ExportBase);
 
8
 
 
9
my $description = "High Resolution (800x400) Portable H264 Settings.";
 
10
my $devices = "High Resolution Android Devices (example Droid, Evo, N1), iPod Touch, iPhone, iPad";
 
11
my $notes = "Requires AAC, activate Medibuntu";
 
12
 
 
13
sub new{
 
14
    my $class = shift;
 
15
    my $self = $class->SUPER::new(shift, shift, $description, $devices, $notes);
 
16
    bless $self, $class;
 
17
    return $self;
 
18
}
 
19
 
 
20
sub export{
 
21
    my( $self ) = @_;
 
22
 
 
23
    system("ffmpeg -i \'$self->{_inputFile}\' -y -pass 1 -an -vcodec libx264 -vpre slowfirstpass -vpre ipod640 -b 1500kb -bt 1000kb -threads 0 -s 800x480 -aspect 16:9 -f ipod \'$self->{_outputFile}$self->{_extension}\' && ffmpeg -i \'$self->{_inputFile}\' -y -pass 2 -vcodec libx264 -vpre hq -vpre ipod640 -b 1500kb -bt 1000kb -threads 0 -s 800x480 -acodec libfaac -ab 192kb -ac 2 -aspect 16:9 -f ipod \'$self->{_outputFile}$self->{_extension}\'");
 
24
 
 
25
}
 
26
 
 
27
1;