~mythbuntu/mythexport/trunk

85 by John Baab
* Added HTML5 streaming page to web interface.
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";
89 by John Baab
* Added link to baablogic.net for additional configs.
11
my $notes = "Requires AAC, <a href=\"https://help.ubuntu.com/community/Medibuntu\">activate Medibuntu</a>";
12
my $version = "1.0";
85 by John Baab
* Added HTML5 streaming page to web interface.
13
14
sub new{
15
    my $class = shift;
89 by John Baab
* Added link to baablogic.net for additional configs.
16
    my $self = $class->SUPER::new(shift, shift, $description, $devices, $notes, $version);
85 by John Baab
* Added HTML5 streaming page to web interface.
17
    bless $self, $class;
18
    return $self;
19
}
20
21
sub export{
22
    my( $self ) = @_;
23
104 by John Baab
fixed build and execution issues with latest change set
24
    system("avconv -i \'$self->{_inputFile}\' -y -pass 1 -an -vcodec libx264 -pre slow_firstpass -pre ipod640 -b 1500k -bt 1000k -threads 0 -s 800x480 -aspect 16:9 -f ipod \'$self->{_outputFile}$self->{_extension}\' && avconv -i \'$self->{_inputFile}\' -y -pass 2 -vcodec libx264 -pre medium -pre ipod640 -b 1500k -bt 1000k -threads 0 -s 800x480 -acodec libfaac -ab 192kb -ac 2 -aspect 16:9 -f ipod \'$self->{_outputFile}$self->{_extension}\'");
85 by John Baab
* Added HTML5 streaming page to web interface.
25
26
}
27
28
1;