Changeset 2b3bd21a4 in mythtv
- Timestamp:
- Aug 13, 2012, 5:43:08 AM (12 years ago)
- 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)
- Location:
- mythtv
- Files:
-
- 2 edited
-
libs/libmythtv/avformatwriter.cpp (modified) (1 diff)
-
programs/mythtranscode/transcode.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mythtv/libs/libmythtv/avformatwriter.cpp
r5ff8a8a410 r2b3bd21a4 606 606 c->codec_type = AVMEDIA_TYPE_AUDIO; 607 607 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 609 617 c->sample_fmt = AV_SAMPLE_FMT_S16; 610 else618 #else 611 619 c->sample_fmt = AV_SAMPLE_FMT_FLT; 620 #endif 612 621 613 622 m_audioBytesPerSample = m_audioChannels * -
mythtv/programs/mythtranscode/transcode.cpp
r5ff8a8a410 r2b3bd21a4 1098 1098 avfw2->SetContainer("mpegts"); 1099 1099 1100 if ( gCoreContext->GetNumSetting("HLSAACAUDIO", 1))1101 avfw2->SetAudioCodec( "aac");1100 if (!gCoreContext->GetSetting("HLSAUDIO").isEmpty()) 1101 avfw2->SetAudioCodec(gCoreContext->GetSetting("HLSAUDIO")); 1102 1102 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 1104 1112 1105 1113 avfw2->SetAudioBitrate(audioOnlyBitrate); … … 1113 1121 avfw->SetVideoCodec("libx264"); 1114 1122 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 1116 1132 avfw->SetAudioCodec("aac"); 1117 else 1118 avfw->SetAudioCodec("libmp3lame"); 1133 # endif 1134 #endif 1119 1135 1120 1136 if (hlsStreamID == -1)
Note: See TracChangeset
for help on using the changeset viewer.
