Ticket #3233: mythsuite-nolame.patch
File mythsuite-nolame.patch, 22.5 KB (added by , 19 years ago) |
---|
-
mythplugins/configure
30 30 fftw_lib3="yes" 31 31 sdl="yes" 32 32 aac="no" # compile fails w/libfaad v2.0 33 mp3lame="yes" 33 34 exif="yes" 34 35 newexif="yes" 35 36 festival="no" # no config detection/setup routine … … 89 90 --enable-fftw enable fftw visualizers [$fftw_lib] 90 91 --enable-sdl use SDL for the synaesthesia output [$sdl] 91 92 --enable-aac enable AAC/MP4 audio file decompression [$aac] 93 --enable-lame enable MP3 encoding support using LAME [$mp3lame] 92 94 93 95 MythNews related options: 94 96 --enable-mythnews build the mythnews plugin [$news] … … 224 226 ;; 225 227 --disable-aac) aac="no" 226 228 ;; 229 --enable-lame) mp3lame="yes" 230 ;; 231 --disable-lame) mp3lame="no" 232 ;; 227 233 --enable-exif) exif="yes" 228 234 ;; 229 235 --enable-new-exif) newexif="yes" … … 252 258 opengl="yes"; 253 259 fftw_lib="yes"; 254 260 aac="yes"; 261 mp3lame="yes"; 255 262 exif="yes"; 256 263 festival="yes"; 257 264 archive="yes"; … … 274 281 opengl="no"; 275 282 fftw_lib="no"; 276 283 aac="no"; 284 mp3lame="no"; 277 285 exif="no"; 278 286 festival="no"; 279 287 archive="no"; … … 394 402 fi 395 403 fi 396 404 405 if test "$mp3lame" != "no" ; then 406 mp3lame="no" 407 if has_library libmp3lame ; then 408 if has_header lame/lame.h ; then 409 mp3lame="yes" 410 fi 411 fi 412 fi 413 397 414 if test "$exif" != "no" ; then 398 415 exif="no" 399 416 if has_library libexif ; then … … 446 463 echo "MythMusic requires CDDA Paranoia." 447 464 fi 448 465 449 mp3lame="no" 450 if has_header lame/lame.h && has_library libmp3lame ; then 451 mp3lame="yes" 452 else 453 echo "MythMusic requires the LAME mp3 encoder." 454 fi 455 456 if test "$mad" = "no" -o "$vorbis" = "no" -o "$flac" = "no" -o "$cdaudio" = "no" -o "$paranoia" = "no" -o "$mp3lame" = "no" ; then 466 if test "$mad" = "no" -o "$vorbis" = "no" -o "$flac" = "no" -o "$cdaudio" = "no" -o "$paranoia" = "no" ; then 457 467 echo "Disabling MythMusic due to missing dependencies." 458 468 music="no" 459 469 fi … … 808 818 if test "$aac" = "no" ; then 809 819 echo " AAC support will not be included in MythMusic" 810 820 fi 821 822 if test "$mp3lame" = "yes" ; then 823 echo " MP3 encoding support will be included in MythMusic" 824 echo "#define LAME 1" >> ./mythmusic/mythmusic/config.h 825 echo "LIBS += -lmp3lame" >> ./mythmusic/mythmusic/config.pro 826 echo "HEADERS += lameencoder.h" >> ./mythmusic/mythmusic/config.pro 827 echo "SOURCES += lameencoder.cpp" >> ./mythmusic/mythmusic/config.pro 828 fi 829 830 if test "$mp3lame" = "no" ; then 831 echo " MP3 encoding support will not be included in MythMusic" 832 fi 811 833 fi 812 834 813 835 ########################################################### -
mythplugins/mythmusic/mythmusic/mythmusic.pro
21 21 INSTALLS += installfiles uifiles 22 22 23 23 LIBS += -lmad -lid3tag -logg -lvorbisfile -lvorbis -lvorbisenc -lcdaudio -lFLAC 24 LIBS += -l mp3lame -lcdda_paranoia -lcdda_interface24 LIBS += -lcdda_paranoia -lcdda_interface 25 25 26 26 # Input 27 27 HEADERS += cddecoder.h cdrip.h constants.h databasebox.h … … 29 29 HEADERS += metadata.h playbackbox.h playlist.h polygon.h 30 30 HEADERS += streaminput.h synaesthesia.h encoder.h visualize.h avfdecoder.h 31 31 HEADERS += treecheckitem.h vorbisdecoder.h vorbisencoder.h polygon.h 32 HEADERS += bumpscope.h globalsettings.h lameencoder.hdbcheck.h32 HEADERS += bumpscope.h globalsettings.h dbcheck.h 33 33 HEADERS += metaio.h metaioid3v2.h vcedit.h metaiooggvorbiscomment.h 34 34 HEADERS += metaioflacvorbiscomment.h metaioavfcomment.h metaio_libid3hack.h 35 35 HEADERS += goom/filters.h goom/goomconfig.h goom/goom_core.h goom/graphic.h … … 43 43 SOURCES += flacdecoder.cpp flacencoder.cpp maddecoder.cpp main.cpp 44 44 SOURCES += mainvisual.cpp metadata.cpp playbackbox.cpp playlist.cpp 45 45 SOURCES += streaminput.cpp encoder.cpp dbcheck.cpp 46 SOURCES += synaesthesia.cpp treecheckitem.cpp vorbisdecoder.cpp lameencoder.cpp46 SOURCES += synaesthesia.cpp treecheckitem.cpp vorbisdecoder.cpp 47 47 SOURCES += vorbisencoder.cpp visualize.cpp bumpscope.cpp globalsettings.cpp 48 48 SOURCES += databasebox.cpp genres.cpp 49 49 SOURCES += metaio.cpp metaioid3v2.cpp vcedit.c metaiooggvorbiscomment.cpp -
mythplugins/mythmusic/mythmusic/globalsettings.cpp
3 3 #include <unistd.h> 4 4 5 5 #include "globalsettings.h" 6 #include "config.h" 6 7 #include <qfile.h> 7 8 #include <qdialog.h> 8 9 #include <qcursor.h> … … 165 166 HostComboBox *gc = new HostComboBox("EncoderType"); 166 167 gc->setLabel(QObject::tr("Encoding")); 167 168 gc->addSelection(QObject::tr("Ogg Vorbis"), "ogg"); 169 #ifdef LAME 168 170 gc->addSelection(QObject::tr("Lame (MP3)"), "mp3"); 171 #endif 169 172 gc->setHelpText(QObject::tr("Audio encoder to use for CD ripping. " 170 173 "Note that the quality level 'Perfect' will use the " 171 174 "FLAC encoder.")); … … 184 187 return gc; 185 188 }; 186 189 190 #ifdef LAME 187 191 static HostCheckBox *Mp3UseVBR() 188 192 { 189 193 HostCheckBox *gc = new HostCheckBox("Mp3UseVBR"); … … 194 198 "The Ogg encoder will always use variable bitrates.")); 195 199 return gc; 196 200 }; 201 #endif 197 202 198 203 static HostLineEdit *FilenameTemplate() 199 204 { … … 590 595 encodersettings->setLabel(QObject::tr("CD Ripper Settings (part 2)")); 591 596 encodersettings->addChild(EncoderType()); 592 597 encodersettings->addChild(DefaultRipQuality()); 598 #ifdef LAME 593 599 encodersettings->addChild(Mp3UseVBR()); 600 #endif 594 601 addChild(encodersettings); 595 602 } 596 603 -
mythplugins/mythmusic/mythmusic/cdrip.cpp
33 33 #include <mythtv/mythmediamonitor.h> 34 34 35 35 // MythMusic includes 36 #include "config.h" 36 37 #include "cdrip.h" 37 38 #include "cddecoder.h" 38 39 #include "encoder.h" 39 40 #include "vorbisencoder.h" 41 #ifdef LAME 40 42 #include "lameencoder.h" 43 #endif 41 44 #include "flacencoder.h" 42 45 #include "genres.h" 43 46 #include "editmetadata.h" … … 169 172 QString textstatus; 170 173 QString cddevice = gContext->GetSetting("CDDevice"); 171 174 QString encodertype = gContext->GetSetting("EncoderType"); 175 #ifdef LAME 172 176 bool mp3usevbr = gContext->GetNumSetting("Mp3UseVBR", 0); 177 #endif 173 178 174 179 m_totalSectors = 0; 175 180 m_totalSectorsDone = 0; … … 216 221 217 222 if (m_quality < 3) 218 223 { 224 #ifdef LAME 219 225 if (encodertype == "mp3") 220 226 { 221 227 outfile += ".mp3"; … … 223 229 mp3usevbr); 224 230 } 225 231 else // ogg 232 #endif 226 233 { 227 234 outfile += ".ogg"; 228 235 encoder = new VorbisEncoder(outfile, m_quality, track); -
mythplugins/settings.pro
60 60 } 61 61 QMAKE_LIBDIR_X11 = 62 62 63 EXTRA_LIBS = -lfreetype -lmp3lame 63 EXTRA_LIBS = -lfreetype 64 EXTRA_LIBS += $$CONFIG_MP3_LIBS 64 65 EXTRA_LIBS += $$CONFIG_AUDIO_ALSA_LIBS 65 66 EXTRA_LIBS += $$CONFIG_AUDIO_ARTS_LIBS 66 67 EXTRA_LIBS += $$CONFIG_AUDIO_JACK_LIBS -
mythtv/configure
137 137 #echo " --disable-decoders disables all decoders" 138 138 #echo " --disable-muxers disables all muxers" 139 139 #echo " --disable-demuxers disables all demuxers" 140 echo " --disable-lame disable LAME MP3 support" 140 141 echo " --disable-lirc disable lirc support (Infrared Remotes)" 141 142 echo " --disable-joystick-menu disable joystick menu" 142 143 echo " --disable-firewire disable support for FireWire cable boxes" … … 670 671 ivtv="yes" 671 672 dvb="no" 672 673 dvb_path="/usr/include" 674 lamemp3="yes" 673 675 lirc="yes" 674 676 appleremote="no" 675 677 joystick_menu="no" … … 1392 1394 ;; 1393 1395 --disable-ivtv) ivtv="no" 1394 1396 ;; 1397 --enable-lame) lamemp3="yes" 1398 ;; 1399 --disable-lame) lamemp3="no" 1400 ;; 1395 1401 --enable-lirc) lirc="yes" 1396 1402 ;; 1397 1403 --disable-lirc) lirc="no" … … 2728 2734 fi 2729 2735 fi 2730 2736 2731 lamemp3="no" 2732 if has_library libmp3lame; then2733 if has_header lame/lame.h ; then2734 lamemp3="yes"2737 if test x"$lamemp3" = x"yes"; then 2738 if ! has_library libmp3lame || ! has_header lame/lame.h ; then 2739 echo "You must have the Lame MP3 encoding library installed to compile Myth." 2740 exit 255 2735 2741 fi 2742 else 2743 if ! has_library libmad || ! has_header mad.h ; then 2744 echo "You must have the libmad MP3 decoding library installed to compile" 2745 echo "Myth without Lame MP3 encoding support." 2746 exit 255 2747 else 2748 echo "Myth will be built without MP3 encoding support!" 2749 fi 2736 2750 fi 2737 2751 2738 if test x"$lamemp3" = x"no" ; then2739 echo "You must have the Lame MP3 encoding library installed to compile Myth."2740 exit 2552741 fi2742 2743 2752 #test for lirc client libraries 2744 2753 if test x"$lirc" = x"yes" ; then 2745 2754 lirc="no" … … 3413 3422 CCONFIG="$CCONFIG using_iptv using_live" 3414 3423 fi 3415 3424 3425 if test x"$lamemp3" = x"yes" ; then 3426 CCONFIG="$CCONFIG using_lame" 3427 echo "CONFIG_MP3_LIBS=-lmp3lame" >> $MYTH_CONFIG_MAK 3428 else 3429 CCONFIG="$CCONFIG using_mad" 3430 echo "CONFIG_MP3_LIBS=-lmad" >> $MYTH_CONFIG_MAK 3431 fi 3432 3416 3433 if test x"$lirc" = x"yes" ; then 3417 3434 CCONFIG="$CCONFIG using_lirc" 3418 3435 echo "CONFIG_LIRC_LIBS=-llirc_client" >> $MYTH_CONFIG_MAK -
mythtv/libs/libmythtv/nuppeldecoder.cpp
30 30 31 31 NuppelDecoder::NuppelDecoder(NuppelVideoPlayer *parent, ProgramInfo *pginfo) 32 32 : DecoderBase(parent, pginfo), 33 gf(0), rtjd(0), video_width(0), video_height(0), video_size(0), 33 #ifdef LAME 34 gf(0), 35 #endif 36 rtjd(0), video_width(0), video_height(0), video_size(0), 34 37 video_frame_rate(0.0f), audio_samplerate(44100), 35 38 #ifdef WORDS_BIGENDIAN 36 39 audio_bits_per_sample(0), … … 56 59 getrawframes = false; 57 60 getrawvideo = false; 58 61 62 #ifdef LAME 59 63 gf = lame_init(); 60 64 lame_set_decode_only(gf, 1); 61 65 lame_decode_init(); 62 66 lame_init_params(gf); 67 #else 68 mad_stream_init(&madstream); 69 mad_frame_init(&madframe); 70 mad_synth_init(&madsynth); 71 /* large enough to hold two audio frames */ 72 #define MAD_BUFFER_SIZE (5*8192) 73 madbuffer = new unsigned char[MAD_BUFFER_SIZE]; 74 if (!madbuffer) 75 { 76 VERBOSE(VB_IMPORTANT, "NuppelDecoder: allocating mad buffer failed, " 77 "aborting"); 78 errored = true; 79 return; 80 } 81 #endif 63 82 64 83 rtjd = new RTjpeg(); 65 84 int format = RTJ_YUV420; … … 80 99 81 100 NuppelDecoder::~NuppelDecoder() 82 101 { 102 #ifdef LAME 83 103 if (gf) 84 104 lame_close(gf); 105 #else 106 mad_stream_finish(&madstream); 107 mad_frame_finish(&madframe); 108 mad_synth_finish(&madsynth); 109 if (madbuffer) 110 delete [] madbuffer; 111 #endif 85 112 if (rtjd) 86 113 delete rtjd; 87 114 if (ffmpeg_extradata) … … 916 943 } 917 944 } 918 945 946 #ifndef LAME 947 /* Libmad outputs 32bit samples instead of 16bit ones as expected by 948 AddAudioData(), so we have to scale. This is the simple scale() function 949 from the minimad.c example which is Copyright (C) 2000-2004 Underbit 950 Technologies, Inc. and licensed under GPL. */ 951 short int NuppelDecoder::MadScale(mad_fixed_t sample) 952 { 953 /* round */ 954 sample += (1L << (MAD_F_FRACBITS - 16)); 955 956 /* clip */ 957 if (sample >= MAD_F_ONE) 958 sample = MAD_F_ONE - 1; 959 else if (sample < -MAD_F_ONE) 960 sample = -MAD_F_ONE; 961 962 /* quantize */ 963 return sample >> (MAD_F_FRACBITS + 1 - 16); 964 } 965 #endif 966 919 967 // avignore = 0 : get audio and video 920 968 // = 1 : video only 921 969 // = -1 : neither, just parse … … 1117 1165 if (getrawframes) 1118 1166 StoreRawData(strm); 1119 1167 1120 int lameret = 0;1121 1168 short int pcmlbuffer[audio_samplerate * 4]; 1122 1169 short int pcmrbuffer[audio_samplerate * 4]; 1123 1170 int packetlen = frameheader.packetlength; 1124 1171 #ifdef LAME 1172 int lameret = 0; 1125 1173 do 1126 1174 { 1127 1175 lameret = lame_decode(strm, packetlen, pcmlbuffer, … … 1140 1188 } 1141 1189 packetlen = 0; 1142 1190 } while (lameret > 0); 1191 #else 1192 size_t madremain = 0; 1193 if (madstream.next_frame) 1194 { 1195 madremain = madstream.bufend - madstream.next_frame; 1196 memmove(madbuffer, madstream.next_frame, madremain); 1197 } 1198 1199 if (packetlen + madremain > MAD_BUFFER_SIZE) 1200 { 1201 VERBOSE(VB_IMPORTANT, QString("mad buffer too small (%1 " 1202 "vs. %2), exiting").arg(MAD_BUFFER_SIZE). 1203 arg(packetlen + madremain)); 1204 errored = true; 1205 return false; 1206 } 1207 1208 memcpy(madbuffer + madremain, strm, packetlen); 1209 mad_stream_buffer(&madstream, madbuffer, 1210 packetlen + madremain); 1211 1212 while (true) 1213 { 1214 if (mad_frame_decode(&madframe, &madstream)) 1215 { 1216 if (!MAD_RECOVERABLE(madstream.error)) 1217 break; 1218 continue; 1219 } 1220 mad_synth_frame(&madsynth, &madframe); 1221 1222 for (int samplenr = 0; samplenr < madsynth.pcm.length; 1223 samplenr++) 1224 { 1225 pcmlbuffer[samplenr] = 1226 MadScale(madsynth.pcm.samples[0][samplenr]); 1227 if (madsynth.pcm.channels == 2) 1228 pcmrbuffer[samplenr] = 1229 MadScale(madsynth.pcm.samples[1][samplenr]); 1230 else 1231 pcmrbuffer[samplenr] = pcmlbuffer[samplenr]; 1232 } 1233 1234 GetNVP()->AddAudioData(pcmlbuffer, pcmrbuffer, 1235 madsynth.pcm.length, frameheader.timecode); 1236 } 1237 #endif 1143 1238 } 1144 1239 else 1145 1240 { -
mythtv/libs/libmythtv/NuppelVideoRecorder.cpp
64 64 pid = pid2 = 0; 65 65 inputchannel = 1; 66 66 compression = 1; 67 #ifdef LAME 67 68 compressaudio = 1; 69 #else 70 compressaudio = 0; 71 #endif 68 72 usebttv = 1; 69 73 w = 352; 70 74 h = 240; … … 76 80 framerate_multiplier = 1.0; 77 81 height_multiplier = 1.0; 78 82 83 #ifdef LAME 84 mp3buf = NULL; 79 85 mp3quality = 3; 80 86 gf = NULL; 87 #endif 88 81 89 rtjc = NULL; 82 90 strm = NULL; 83 mp3buf = NULL;84 91 85 92 transcoding = false; 86 93 … … 176 183 } 177 184 if (rtjc) 178 185 delete rtjc; 186 #ifdef LAME 179 187 if (mp3buf) 180 188 delete [] mp3buf; 181 189 if (gf) 182 190 lame_close(gf); 191 #endif 183 192 if (strm) 184 193 delete [] strm; 185 194 if (fd >= 0) … … 290 299 hmjpg_vdecimation = value; 291 300 else if (opt == "audiocompression") 292 301 compressaudio = value; 302 #ifdef LAME 293 303 else if (opt == "mp3quality") 294 304 mp3quality = value; 305 #endif 295 306 else if (opt == "samplerate") 296 307 audio_samplerate = value; 297 308 else if (opt == "audioframesize") … … 375 386 if ((tmp = profile->byName("audiocodec"))) 376 387 setting = tmp->getValue(); 377 388 389 #ifdef LAME 378 390 if (setting == "MP3") 379 391 { 380 392 SetOption("audiocompression", 1); 381 393 SetIntOption(profile, "mp3quality"); 382 394 SetIntOption(profile, "samplerate"); 383 395 } 384 else if (setting == "Uncompressed") 396 else 397 #endif 398 if (setting == "Uncompressed") 385 399 { 386 400 SetOption("audiocompression", 0); 387 401 SetIntOption(profile, "samplerate"); … … 697 711 698 712 if (compressaudio) 699 713 { 714 #ifdef LAME 700 715 gf = lame_init(); 701 716 lame_set_bWriteVbrTag(gf, 0); 702 717 lame_set_quality(gf, mp3quality); … … 717 732 "AudioInit(): lame support requires 16bit audio"); 718 733 compressaudio = false; 719 734 } 735 #else 736 VERBOSE(VB_IMPORTANT, "NVR: AudioInit(): support for LAME MP3 " 737 "compression not enabled, disabling"); 738 compressaudio = false; 739 #endif 720 740 } 741 742 #ifdef LAME 721 743 mp3buf_size = (int)(1.25 * 16384 + 7200); 722 744 mp3buf = new char[mp3buf_size]; 745 #endif 723 746 724 747 return 0; 725 748 } … … 1935 1958 moredata.rtjpeg_chroma_filter = M2; 1936 1959 } 1937 1960 1961 #ifdef LAME 1938 1962 if (compressaudio) 1939 1963 { 1940 1964 moredata.audio_fourcc = FOURCC_LAME; … … 1942 1966 moredata.audio_quality = mp3quality; 1943 1967 } 1944 1968 else 1969 #endif 1945 1970 { 1946 1971 moredata.audio_fourcc = FOURCC_RAWA; 1947 1972 } … … 3188 3213 } 3189 3214 } 3190 3215 3216 #ifdef LAME 3191 3217 if (compressaudio) 3192 3218 { 3193 3219 char mp3gapless[7200]; … … 3244 3270 audiobytes += audio_buffer_size; 3245 3271 } 3246 3272 else 3273 #endif 3247 3274 { 3248 3275 frameheader.comptype = '0'; // uncompressed audio 3249 3276 frameheader.packetlength = audio_buffer_size; -
mythtv/libs/libmythtv/libmythtv.pro
245 245 using_ivtv:HEADERS += ivtvdecoder.h 246 246 using_ivtv:SOURCES += ivtvdecoder.cpp 247 247 248 using_lame:DEFINES += LAME 249 248 250 # On screen display (video output overlay) 249 251 HEADERS += osd.h osdtypes.h 250 252 HEADERS += osdsurface.h osdlistbtntype.h -
mythtv/libs/libmythtv/nuppeldecoder.h
8 8 #include "format.h" 9 9 #include "decoderbase.h" 10 10 11 #ifdef LAME 11 12 #ifdef MMX 12 13 #undef MMX 13 14 #define MMXBLAH … … 16 17 #ifdef MMXBLAH 17 18 #define MMX 18 19 #endif 20 #else 21 #include <mad.h> 22 #endif 19 23 20 24 #include "RTjpegN.h" 21 25 … … 73 77 void SeekReset(long long newKey = 0, uint skipFrames = 0, 74 78 bool needFlush = false, bool discardFrames = false); 75 79 80 #ifndef LAME 81 short int MadScale(mad_fixed_t sample); 82 #endif 83 76 84 friend int get_nuppel_buffer(struct AVCodecContext *c, AVFrame *pic); 77 85 friend void release_nuppel_buffer(struct AVCodecContext *c, AVFrame *pic); 78 86 79 87 struct rtfileheader fileheader; 80 88 struct rtframeheader frameheader; 81 89 90 #ifdef LAME 82 91 lame_global_flags *gf; 92 #else 93 struct mad_stream madstream; 94 struct mad_frame madframe; 95 struct mad_synth madsynth; 96 unsigned char *madbuffer; 97 #endif 83 98 RTjpeg *rtjd; 84 99 85 100 int video_width, video_height, video_size; -
mythtv/libs/libmythtv/NuppelVideoRecorder.h
5 5 #include <sys/time.h> 6 6 #include <time.h> 7 7 #include <pthread.h> 8 9 #ifdef LAME 8 10 #ifdef MMX 9 11 #undef MMX 10 12 #define MMXBLAH … … 13 15 #ifdef MMXBLAH 14 16 #define MMX 15 17 #endif 18 #endif 16 19 17 20 #include "filter.h" 18 21 #include "minilzo.h" … … 166 169 167 170 bool transcoding; 168 171 172 #ifdef LAME 169 173 int mp3quality; 170 174 char *mp3buf; 171 175 int mp3buf_size; 172 176 lame_global_flags *gf; 177 #endif 173 178 174 179 RTjpeg *rtjc; 175 180 -
mythtv/libs/libmythtv/recordingprofile.cpp
78 78 } 79 79 }; 80 80 81 #ifdef LAME 81 82 class MP3Quality : public SliderSetting, public CodecParamStorage 82 83 { 83 84 public: … … 92 93 "numbers) requires more CPU.")); 93 94 }; 94 95 }; 96 #endif 95 97 96 98 class BTTVVolume : public SliderSetting, public CodecParamStorage 97 99 { … … 363 365 addChild(codecName); 364 366 setTrigger(codecName); 365 367 366 ConfigurationGroup* params = new VerticalConfigurationGroup(false); 368 ConfigurationGroup* params; 369 370 #ifdef LAME 371 params = new VerticalConfigurationGroup(false); 367 372 params->setLabel("MP3"); 368 373 params->addChild(new SampleRate(parent)); 369 374 params->addChild(new MP3Quality(parent)); 370 375 params->addChild(new BTTVVolume(parent)); 371 376 addTarget("MP3", params); 377 #endif 372 378 373 379 params = new VerticalConfigurationGroup(false, false, true, true); 374 380 params->setLabel("MPEG-2 Hardware Encoder"); … … 395 401 else 396 402 { 397 403 // V4L, TRANSCODE (and any undefined types) 404 #ifdef LAME 398 405 codecName->addSelection("MP3"); 406 #endif 399 407 codecName->addSelection("Uncompressed"); 400 408 } 401 409 } 402 410 else 403 411 { 412 #ifdef LAME 404 413 codecName->addSelection("MP3"); 414 #endif 405 415 codecName->addSelection("Uncompressed"); 406 416 codecName->addSelection("MPEG-2 Hardware Encoder"); 407 417 } -
mythtv/settings.pro
88 88 } 89 89 QMAKE_LIBDIR_OPENGL = 90 90 91 EXTRA_LIBS = $$FREETYPE_LIBS -lmp3lame 91 EXTRA_LIBS = $$FREETYPE_LIBS 92 EXTRA_LIBS += $$CONFIG_MP3_LIBS 92 93 EXTRA_LIBS += $$CONFIG_AUDIO_OSS_LIBS 93 94 EXTRA_LIBS += $$CONFIG_AUDIO_ALSA_LIBS 94 95 EXTRA_LIBS += $$CONFIG_AUDIO_ARTS_LIBS