[FFmpeg-devel] [PATCH 2/2] avcodec/nvenc: Add 'nvenc_h264' as an alternative name for 'nvenc'

Michael Niedermayer michaelni at gmx.at
Sat Jun 6 20:44:03 CEST 2015


On Sat, Jun 06, 2015 at 11:12:13AM -0700, Philip Langdale wrote:
> This allows us to offer the same codec name that libav uses. We don't have
> a special way to do aliases, so it's all a bit more verbose than you'd want
> but such is life.
> 
> Signed-off-by: Philip Langdale <philipl at overt.org>
> ---
>  configure              |  1 +
>  libavcodec/allcodecs.c |  1 +
>  libavcodec/nvenc.c     | 25 +++++++++++++++++++++++++
>  3 files changed, 27 insertions(+)
> 
> diff --git a/configure b/configure
> index 8290591..058c199 100755
> --- a/configure
> +++ b/configure
> @@ -2485,6 +2485,7 @@ libutvideo_decoder_deps="libutvideo"
>  libutvideo_encoder_deps="libutvideo"
>  libzvbi_teletext_decoder_deps="libzvbi"
>  nvenc_encoder_deps="nvenc"
> +nvenc_h264_encoder_deps="nvenc"
>  nvenc_hevc_encoder_deps="nvenc"
>  
>  # demuxers / muxers
> diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c
> index e873705..4cc93aa 100644
> --- a/libavcodec/allcodecs.c
> +++ b/libavcodec/allcodecs.c
> @@ -236,6 +236,7 @@ void avcodec_register_all(void)
>      REGISTER_DECODER(MXPEG,             mxpeg);
>      REGISTER_DECODER(NUV,               nuv);

>      REGISTER_ENCODER(NVENC,             nvenc);
> +    REGISTER_ENCODER(NVENC_H264,        nvenc_h264);
>      REGISTER_ENCODER(NVENC_HEVC,        nvenc_hevc);

not really related to this patch but
are  the nvenc encoders intended to be used by default for
"h264/hevc" even when libx264 / libx265 is enabled ?
they are registered before them so they would be used if no encoder
is explicitly specified



[...]
--
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150606/a4dfccc7/attachment.asc>


More information about the ffmpeg-devel mailing list