Changeset 2b3bd21a4 in mythtv


Ignore:
Timestamp:
Aug 13, 2012, 5:43:08 AM (12 years ago)
Author:
Chris Pinkham <cpinkham@…>
Branches:
devel/2020-player, devel/ffmpeg-resync, fixes/0.26, fixes/0.27, fixes/0.28, fixes/29, fixes/30, fixes/31, github-templates, master
Children:
82318f638
Parents:
5ff8a8a410
git-author:
Chris Pinkham <cpinkham@…> (08/13/12 05:43:08)
git-committer:
Chris Pinkham <cpinkham@…> (08/13/12 05:47:51)
Message:

Revert [6fb8692] to not use aacenc.c AAC encoder by default.

We've been recommended not to use the native AAC encoder by default
since there are still some known issues with the encoder. This
commit tries to be as minimally invasive as possible since we're
close to release, but it does change it so that the native AAC
encoder in libavcodec is not used unless neither libmp3lame nor
libfaac support was configured.

If the native AAC encoder is working fine for you then you don't
have to do anything. If you want to use libmp3lame as MythTV v0.25
used, then configure MythTV with --enable-libmp3lame. If you wish
to use AAC but prefer libfaac over the native AAC encoder, then
you can run configure with --enable-libfaac --enable-nonfree. If
both --enable-libmp3lame and --enable-libfaac are used, then
libfaac will take precedence.

Location:
mythtv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mythtv/libs/libmythtv/avformatwriter.cpp

    r5ff8a8a410 r2b3bd21a4  
    606606    c->codec_type = AVMEDIA_TYPE_AUDIO;
    607607
    608     if (c->codec_id == CODEC_ID_MP3)
     608    if (!gCoreContext->GetSetting("HLSAUDIO").isEmpty())
     609    {
     610        if (gCoreContext->GetSetting("HLSAUDIO") == "aac")
     611            c->sample_fmt = AV_SAMPLE_FMT_FLT;
     612        else
     613            c->sample_fmt = AV_SAMPLE_FMT_S16;
     614    }
     615    else
     616#if CONFIG_LIBMP3LAME_ENCODER || CONFIG_LIBFAAC_ENCODER
    609617        c->sample_fmt = AV_SAMPLE_FMT_S16;
    610     else
     618#else
    611619        c->sample_fmt = AV_SAMPLE_FMT_FLT;
     620#endif
    612621
    613622    m_audioBytesPerSample = m_audioChannels *
  • mythtv/programs/mythtranscode/transcode.cpp

    r5ff8a8a410 r2b3bd21a4  
    10981098                avfw2->SetContainer("mpegts");
    10991099
    1100                 if (gCoreContext->GetNumSetting("HLSAACAUDIO", 1))
    1101                     avfw2->SetAudioCodec("aac");
     1100                if (!gCoreContext->GetSetting("HLSAUDIO").isEmpty())
     1101                    avfw2->SetAudioCodec(gCoreContext->GetSetting("HLSAUDIO"));
    11021102                else
    1103                     avfw2->SetAudioCodec("libmp3lame");
     1103#if CONFIG_LIBFAAC_ENCODER
     1104                avfw2->SetAudioCodec("libfaac");
     1105#else
     1106# if CONFIG_LIBMP3LAME_ENCODER
     1107                avfw2->SetAudioCodec("libmp3lame");
     1108# else
     1109                avfw2->SetAudioCodec("aac");
     1110# endif
     1111#endif
    11041112
    11051113                avfw2->SetAudioBitrate(audioOnlyBitrate);
     
    11131121            avfw->SetVideoCodec("libx264");
    11141122
    1115             if (gCoreContext->GetNumSetting("HLSAACAUDIO", 1))
     1123            if (!gCoreContext->GetSetting("HLSAUDIO").isEmpty())
     1124                avfw->SetAudioCodec(gCoreContext->GetSetting("HLSAUDIO"));
     1125            else
     1126#if CONFIG_LIBFAAC_ENCODER
     1127                avfw->SetAudioCodec("libfaac");
     1128#else
     1129# if CONFIG_LIBMP3LAME_ENCODER
     1130                avfw->SetAudioCodec("libmp3lame");
     1131# else
    11161132                avfw->SetAudioCodec("aac");
    1117             else
    1118                 avfw->SetAudioCodec("libmp3lame");
     1133# endif
     1134#endif
    11191135
    11201136            if (hlsStreamID == -1)
Note: See TracChangeset for help on using the changeset viewer.