LinHES Forums
http://forums.linhes.org/

How do I change default bitrate in myth2ipod? (Solved)
http://forums.linhes.org/viewtopic.php?f=6&t=12273
Page 1 of 1

Author:  sgunther [ Sun Oct 22, 2006 9:56 am ]
Post subject:  How do I change default bitrate in myth2ipod? (Solved)

See the next post for the solution.

I edited the ipod.pm file starting on line 71 for the default bitrate section.

It now reads;
Code:
# Load default settings
    sub load_defaults {
        my $self = shift;
    # Load the parent module's settings
        $self->SUPER::load_defaults();
    # Default bitrates
       # Original Settings
       # $self->{'defaults'}{'v_bitrate'} = 384;
       # $self->{'defaults'}{'a_bitrate'} = 64;
       # Modified Settings for Enhanced Quality
         $self->{'defaults'}{'v_bitrate'} = 768;
         $self->{'defaults'}{'a_bitrate'} = 128;

    }


All of my transcoded programs still poor video/ 128 audio? Is there another section I should be editing to change the video bitrate settings?

Given in the myth2ipod file I am not declaring any nuvoption that deal with the bitrate, should the default settings in ipod.pm file be the default?

Author:  sgunther [ Sun Oct 22, 2006 10:42 pm ]
Post subject: 

OK I solved it after reading the FFMpeg documentation :D ....

It turns out in the iPod.pm file the audio bitrate is in kbps but the video is bps... Putting in 780000 instead of 780 yields the correct file size.

I finally realized that myth2ipod is calling nuvexport and it is loading ffmpeg settings from iPod.pm.... I tracked down the ffmpeg documentation and realized my problem....

The other option is to add nuvoptions in the myth2ipod file for the audio and video bitrates....

I kept getting 50 Mb file size files for a half hour show and that was with a video bitrate of 768 (Should have been 768000)

Reference;
http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html#SEC8
`-b bitrate'
Set the video bitrate in bit/s (default = 200 kb/s)

http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html#SEC10
`-ab bitrate'
Set the audio bitrate in kbit/s (default = 64).

Code:
# Load default settings
    sub load_defaults {
        my $self = shift;
    # Load the parent module's settings
        $self->SUPER::load_defaults();
    # Default bitrates
       # Original Settings
       # $self->{'defaults'}{'v_bitrate'} = 384;
       # $self->{'defaults'}{'a_bitrate'} = 64;
       # Modified Settings for Enhanced Quality
         $self->{'defaults'}{'v_bitrate'} = 768000;
         $self->{'defaults'}{'a_bitrate'} = 128;

    }

Author:  ceenvee703 [ Tue Oct 24, 2006 5:48 am ]
Post subject: 

Thank you for posting this; I had exactly the same problem and entering the video bitrate in bps and not kbps did the trick.

Author:  sgunther [ Tue Oct 24, 2006 6:07 am ]
Post subject: 

Glad to hear it helped.

Author:  deffertz [ Tue Oct 31, 2006 1:17 pm ]
Post subject: 

Unfortunately this trick didn't work for me even after trying to cut and paste your code into my iPod.pm file.

I guess the other option is to add nuvoptions in the myth2ipod file for the audio and video bitrates per your suggestion.

How do I do that? What line do I amend?

Author:  sgunther [ Tue Oct 31, 2006 1:59 pm ]
Post subject: 

You should just change 384 to 384000 or anything else in the ipod.pm file..... That should do it...

The nuvoptions to add as an alternate would be...
Code:
-b 384000 -ab 128

Author:  deffertz [ Fri Nov 24, 2006 3:10 pm ]
Post subject:  It was my nuvexport

sgunther's bitrate trick works.

I just forgot to post my video problem solution.

I downgraded my nuvexport per this post http://mysettopbox.tv/phpBB2/viewtopic. ... =myth2ipod and now it works like a charm.

Author:  ErikU [ Sat Jul 21, 2007 7:30 pm ]
Post subject: 

I have modified the bit trate in both places,.. but I still get the default rate of 292k... I wonder why.

I had to edit the MP4.pm file rather than the iPhone.pm file. I could change the sizing, and encode to h.264 (looks much better) but I still can't get the bit rate above about 300k. I did enter 500000 in both locations with no change. Ideas?

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/