libhb: build: README: Replace instances of Libav with FFmpeg.

This commit is contained in:
Bradley Sepos 2018-05-29 19:09:16 -04:00
parent 2f0eed63cf
commit 1fb82b1a47
No known key found for this signature in database
GPG Key ID: DEADE2F57D42D9C7
10 changed files with 17 additions and 17 deletions

View File

@ -4,7 +4,7 @@ HandBrake is an open-source video transcoder available for Linux, Mac, and Windo
HandBrake takes videos you already have and makes new ones that work on your mobile phone, tablet, TV media player, game console, computer, or web browser—nearly anything that supports modern video formats. HandBrake takes videos you already have and makes new ones that work on your mobile phone, tablet, TV media player, game console, computer, or web browser—nearly anything that supports modern video formats.
HandBrake works with most common video files and formats, including ones created by consumer and professional video cameras, mobile devices such as phones and tablets, game and computer screen recordings, and DVD and Blu-ray discs. HandBrake leverages tools such as Libav, x264, and x265 to create new MP4 or MKV video files from these *Sources*. HandBrake works with most common video files and formats, including ones created by consumer and professional video cameras, mobile devices such as phones and tablets, game and computer screen recordings, and DVD and Blu-ray discs. HandBrake leverages tools such as FFmpeg, x264, and x265 to create new MP4 or MKV video files from these *Sources*.
For information on downloading, building/installing, and using HandBrake, see the official [HandBrake Documentation](https://handbrake.fr/docs). For information on downloading, building/installing, and using HandBrake, see the official [HandBrake Documentation](https://handbrake.fr/docs).

View File

@ -348,7 +348,7 @@ static int hb_audio_encoder_is_enabled(int encoder)
return 1; return 1;
#endif #endif
#ifdef USE_LIBAV_AAC #ifdef USE_FFMPEG_AAC
case HB_ACODEC_FFAAC: case HB_ACODEC_FFAAC:
return avcodec_find_encoder_by_name("aac") != NULL; return avcodec_find_encoder_by_name("aac") != NULL;
#endif #endif

View File

@ -377,7 +377,7 @@ static void closePrivData( hb_work_private_t ** ppv )
/* /*
* FIXME: knowingly leaked. * FIXME: knowingly leaked.
* *
* If we're using our Libav QSV wrapper, qsv_decode_end() will call * If we're using our FFmpeg QSV wrapper, qsv_decode_end() will call
* MFXClose() on the QSV session. Even if decoding is complete, we * MFXClose() on the QSV session. Even if decoding is complete, we
* still need that session for QSV filtering and/or encoding, so we * still need that session for QSV filtering and/or encoding, so we
* we can't close the context here until we implement a proper fix. * we can't close the context here until we implement a proper fix.

View File

@ -227,7 +227,7 @@ static int decsubWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
} }
/* Subtitles are "usable" if: /* Subtitles are "usable" if:
* 1. Libav returned a subtitle (has_subtitle) AND * 1. FFmpeg returned a subtitle (has_subtitle) AND
* 2. we're not doing Foreign Audio Search (!pv->job->indepth_scan) AND * 2. we're not doing Foreign Audio Search (!pv->job->indepth_scan) AND
* 3. the sub is non-empty or we've seen one such sub before (!pv->discard_subtitle) * 3. the sub is non-empty or we've seen one such sub before (!pv->discard_subtitle)
* For forced-only extraction, usable subtitles also need to: * For forced-only extraction, usable subtitles also need to:

View File

@ -97,7 +97,7 @@ static int encavcodecaInit(hb_work_object_t *w, hb_job_t *job)
profile = FF_PROFILE_AAC_LOW; profile = FF_PROFILE_AAC_LOW;
break; break;
} }
// Libav's libfdk-aac wrapper expects back channels for 5.1 // FFmpeg's libfdk-aac wrapper expects back channels for 5.1
// audio, and will error out unless we translate the layout // audio, and will error out unless we translate the layout
if (channel_layout == AV_CH_LAYOUT_5POINT1) if (channel_layout == AV_CH_LAYOUT_5POINT1)
channel_layout = AV_CH_LAYOUT_5POINT1_BACK; channel_layout = AV_CH_LAYOUT_5POINT1_BACK;
@ -130,7 +130,7 @@ static int encavcodecaInit(hb_work_object_t *w, hb_job_t *job)
case HB_ACODEC_OPUS: case HB_ACODEC_OPUS:
codec_name = "libopus"; codec_name = "libopus";
// Libav's libopus wrapper expects back channels for 5.1 // FFmpeg's libopus wrapper expects back channels for 5.1
// audio, and will error out unless we translate the layout // audio, and will error out unless we translate the layout
if (channel_layout == AV_CH_LAYOUT_5POINT1) if (channel_layout == AV_CH_LAYOUT_5POINT1)
channel_layout = AV_CH_LAYOUT_5POINT1_BACK; channel_layout = AV_CH_LAYOUT_5POINT1_BACK;

View File

@ -160,7 +160,7 @@ int hb_ff_get_colorspace(int color_matrix)
case HB_COLR_MAT_BT709: case HB_COLR_MAT_BT709:
color_space = SWS_CS_ITU709; color_space = SWS_CS_ITU709;
break; break;
/* enable this when implemented in Libav /* enable this when implemented in FFmpeg
case HB_COLR_MAT_BT2020: case HB_COLR_MAT_BT2020:
color_space = SWS_CS_BT2020; color_space = SWS_CS_BT2020;
break; break;

View File

@ -42,8 +42,8 @@ LIBHB.out += $(LIBHB.a)
############################################################################### ###############################################################################
ifeq (1,$(FEATURE.libav_aac)) ifeq (1,$(FEATURE.ffmpeg_aac))
LIBHB.GCC.D += USE_LIBAV_AAC LIBHB.GCC.D += USE_FFMPEG_AAC
endif endif
LIBHB.GCC.D += __LIBHB__ USE_PTHREAD LIBHB.GCC.D += __LIBHB__ USE_PTHREAD
LIBHB.GCC.I += $(LIBHB.build/) $(CONTRIB.build/)include LIBHB.GCC.I += $(LIBHB.build/) $(CONTRIB.build/)include

View File

@ -160,11 +160,11 @@ static int filter_init( hb_qsv_context* qsv, hb_filter_private_t * pv ){
/* /*
* In theory, input width/height and decode CropW/CropH should be the * In theory, input width/height and decode CropW/CropH should be the
* same; however, due to some versions of Libav not applying the H.264 * same; however, due to some versions of FFmpeg not applying the H.264
* "crop rect" properly, there can be a mismatch. * "crop rect" properly, there can be a mismatch.
* *
* Since we want the same bahevior regardless of whether we're using * Since we want the same bahevior regardless of whether we're using
* software or hardware-accelerated decoding, prefer the Libav values. * software or hardware-accelerated decoding, prefer the FFmpeg values.
* *
* Note that since CropW/CropH may be higher than the decode values, we * Note that since CropW/CropH may be higher than the decode values, we
* need to adjust CropX/CropY to make sure we don't exceed the input's * need to adjust CropX/CropY to make sure we don't exceed the input's

View File

@ -4191,7 +4191,7 @@ static void hb_ts_resolve_pid_types(hb_stream_t *stream)
continue; continue;
} }
// 0xa2 is DTS-HD LBR used in HD-DVD and bluray for // 0xa2 is DTS-HD LBR used in HD-DVD and bluray for
// secondary audio streams. Libav can not decode yet. // secondary audio streams. FFmpeg can not decode yet.
// Having it in the audio list causes delays during scan // Having it in the audio list causes delays during scan
// while we try to get stream parameters. So skip // while we try to get stream parameters. So skip
// this type for now. // this type for now.
@ -5403,7 +5403,7 @@ static void add_ffmpeg_attachment( hb_title_t *title, hb_stream_t *stream, int i
switch ( codecpar->codec_id ) switch ( codecpar->codec_id )
{ {
case AV_CODEC_ID_TTF: case AV_CODEC_ID_TTF:
// Libav sets codec ID based on mime type of the attachment // FFmpeg sets codec ID based on mime type of the attachment
type = FONT_TTF_ATTACH; type = FONT_TTF_ATTACH;
break; break;
default: default:

View File

@ -1312,9 +1312,9 @@ def createCLI():
grp.add_option( '--enable-fdk-aac', dest="enable_fdk_aac", default=False, action='store_true', help=h ) grp.add_option( '--enable-fdk-aac', dest="enable_fdk_aac", default=False, action='store_true', help=h )
grp.add_option( '--disable-fdk-aac', dest="enable_fdk_aac", action='store_false' ) grp.add_option( '--disable-fdk-aac', dest="enable_fdk_aac", action='store_false' )
h = IfHost( 'enable Libav AAC audio encoder', '*-*-*', none=optparse.SUPPRESS_HELP ).value h = IfHost( 'enable FFmpeg AAC audio encoder', '*-*-*', none=optparse.SUPPRESS_HELP ).value
grp.add_option( '--enable-libav-aac', dest="enable_libav_aac", default=not host.match( '*-*-darwin*' ), action='store_true', help=h ) grp.add_option( '--enable-ffmpeg-aac', dest="enable_ffmpeg_aac", default=not host.match( '*-*-darwin*' ), action='store_true', help=h )
grp.add_option( '--disable-libav-aac', dest="enable_libav_aac", action='store_false' ) grp.add_option( '--disable-ffmpeg-aac', dest="enable_ffmpeg_aac", action='store_false' )
cli.add_option_group( grp ) cli.add_option_group( grp )
@ -1877,7 +1877,7 @@ int main()
doc.add( 'FEATURE.gtk.mingw', int( options.enable_gtk_mingw )) doc.add( 'FEATURE.gtk.mingw', int( options.enable_gtk_mingw ))
doc.add( 'FEATURE.gst', int( not options.disable_gst )) doc.add( 'FEATURE.gst', int( not options.disable_gst ))
doc.add( 'FEATURE.fdk_aac', int( options.enable_fdk_aac )) doc.add( 'FEATURE.fdk_aac', int( options.enable_fdk_aac ))
doc.add( 'FEATURE.libav_aac', int( options.enable_libav_aac or build.system == 'mingw' )) doc.add( 'FEATURE.ffmpeg_aac', int( options.enable_ffmpeg_aac or build.system == 'mingw' ))
doc.add( 'FEATURE.qsv', int( options.enable_qsv )) doc.add( 'FEATURE.qsv', int( options.enable_qsv ))
doc.add( 'FEATURE.xcode', int( not (Tools.xcodebuild.fail or options.disable_xcode or options.cross) )) doc.add( 'FEATURE.xcode', int( not (Tools.xcodebuild.fail or options.disable_xcode or options.cross) ))
doc.add( 'FEATURE.x265', int( options.enable_x265 )) doc.add( 'FEATURE.x265', int( options.enable_x265 ))