[mythtv-users] Nuvexport aspect ratio problem

ffrr ffrr at tpg.com.au
Mon Feb 27 11:35:41 UTC 2006


Christopher Friend wrote:

>>>Here's the advice I got (it's probably archived here - but in case you
>>>can't find it)
>>>      
>>>
>
>  
>
>>>No official fix that I'm aware of. The problem is that nuvexport forces 
>>>all
>>>recordings to 4:3 format whether or not you want it to. (Hint: It should
>>>really be a user defined option!). You can make a quick change to DVD.pm 
>>>to
>>>use 16:9 instead.
>>>      
>>>
>
>no no no, there's a setting in nuvexport just for this kind of thing. check 
>out http://www.inaudible.co.uk/nuvexport/index.php?ResAndRatio and read the 
>"Recordings Shown With Wrong Ratio" bit (or, if you want the quick answer, 
>change the following in /etc/.nuvexportrc
>
>
>#  If nuvexport is having trouble detecting the aspect ratio of your 
>recordings
>#    (MythTV still hard-codes all software-encoded files as 1:1 regardless 
>of
>#    the true aspect), set this option to one of the following:
>#
>#   force_aspect = [ 1:1 4:3 16:9 2.21:1 ]
>
>
>Christopher
>
>  
>
But we have two users here saying that didn't work.  As for myself, 
well, no-one on this list suggested anything except the fix I posted.

Anyway, it seems to be hard coded to always use 4:3.  Not being an 
expert, or anything, but just looking at the inline comment, it simply 
forces the aspect ratio to 4:3, no matter what.  The whole sub is as 
follows...

*sub *export {
        *my* $self    = shift;
        *my* $episode = shift;
    /# Load nuv info/
        load_finfo($episode);
    /# Force to 4:3 aspect ratio/
        /# $self->{'out_aspect'} = 1.3333; <- the bit I changed/
	$self->{*'*out_aspect*'*} = 1.7777;
        $self->{*'*aspect_stretched*'*} = 1;
    /# PAL or NTSC?/
        *my* $standard = ($episode->{*'*finfo*'*}{*'*fps*'*} =~ */*^2(?:5|4\.9)*/*) ? *'*PAL*'* : *'*NTSC*'*;
        $self->{*'*width*'*} = 720;
        $self->{*'*height*'*} = ($standard *eq* *'*PAL*'*) ? *'*576*'* : *'*480*'*;
        $self->{*'*out_fps*'*} = ($standard *eq* *'*PAL*'*) ? 25 : 29.97;
    /# Build the ffmpeg string/
        $self->{*'*ffmpeg_xtra*'*} = *'* -b *'* . $self->{*'*v_bitrate*'*}
                               . *'* -vcodec mpeg2video*'*
                               . *'* -qmin *'* . $self->{*'*quantisation*'*}
                               . *'* -ab *'* . $self->{*'*a_bitrate*'*}
                               . *"* -ar 48000 -acodec mp2 -f dvd*"*;
    /# Execute the parent method/
        $self->SUPER::export($episode, *"*.mpg*"*);
    }




More information about the mythtv-users mailing list