FFmpeg-2.8 硬件H.264 编码器版 WIN32 编译版

之前FFmpeg-2.7.2编译了带硬件解码的windows版后,不少朋友留言,邮件等联系,需要更多的解码器和编码器,于是趁着2.8发布,编译了新版.
下载地址:https://github.com/illuspas/ffmpeg-hw-win32

ffmpeg 2.8
gcc 5.2.0
–enable-nvenc
–enable-libmfx
–enable-libfdk-aac
–enable-libspeex
–enable-libx264
–enable-libopenh264
–enable-libx265
–enable-libopus
–enable-libmp3lame

ffmpeg 2.8 h.264 codec

原创文章,转载请注明: 转载自贝壳博客

本文链接地址: FFmpeg-2.8 硬件H.264 编码器版 WIN32 编译版

9 评论

  1. 向大神汇报一下:

    此ffmpeg2.8 启用libx265编码压缩1080P文件速度比用AVS+x265 64bit的慢哦,可能是32位的程序效率较低的缘故,用AVS+x265 32bit也是比较慢。

    所以大神下次能否编译个64位的版本呢?

  2. 参数信息是什么呢?如果用h264_qsv
    我用-c:a aac -ar 48000 -ac 2 -b:a 64k -b:v 500k -c:v h264_qsv
    会报错
    [h264_qsv @ 03813ec0] Error initializing an internal MFX session

    Error while opening encoder for output stream #0:0 – maybe incorrect parameters
    such as bit_rate, rate, width or height

  3. E:libffmpegbin>ffmpeg_qsv -i d:tsxwlb-hd.ts -acodec aac -vcodec h264_qsv -vb 2000k -r 25 -s 1920×1080 zzz.ts
    ffmpeg version 2.8 Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 5.2.0 (GCC)
    configuration: –prefix=/home/aliang/Library/mingw –cross-prefix=i686-w64-mingw32- –cc
    =’ccache i686-w64-mingw32-gcc’ –enable-cross-compile –target-os=mingw32 –arch=i686 –en
    able-small –disable-doc –disable-debug –enable-nvenc –enable-libmfx –enable-libfdk-aa
    c –enable-libspeex –enable-libx264 –enable-libx265 –enable-libopenh264 –enable-libopu
    s –enable-libmp3lame –enable-nonfree –enable-gpl
    libavutil 54. 31.100 / 54. 31.100
    libavcodec 56. 60.100 / 56. 60.100
    libavformat 56. 40.101 / 56. 40.101
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 40.101 / 5. 40.101
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    Input #0, mpegts, from ‘d:tsxwlb-hd.ts’:
    Duration: 00:13:32.21, start: 10.480000, bitrate: 9032 kb/s
    Program 1
    Metadata:
    service_name : SVR
    service_provider: SVR
    Stream #0:0[0x281]: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920×1080 [SAR 1:1
    DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x201]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb
    /s
    File ‘zzz.ts’ already exists. Overwrite ? [y/N] y
    [h264_qsv @ 00677bc0] Error initializing the encoder
    Output #0, mpegts, to ‘zzz.ts’:
    Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 25 fps
    Metadata:
    encoder : Lavc56.60.100 h264_qsv
    Stream #0:1: Audio: aac, 0 channels, 128 kb/s
    Metadata:
    encoder : Lavc56.60.100 aac
    Stream mapping:
    Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
    Stream #0:1 -> #0:1 (mp2 (native) -> aac (native))
    Error while opening encoder for output stream #0:0 – maybe incorrect parameters such as bit_rate, rate, width or height

    其中有两行:
    [h264_qsv @ 00677bc0] Error initializing the encoder
    Error while opening encoder for output stream #0:0 – maybe incorrect parameters such as bit_rate, rate, width or height

    请博主明示,谢谢!

    1. lib库文件无法在工程中链接,望楼主解答下 谢谢

      error LNK2019: unresolved external symbol _avcodec_open2 referenced in function “private: int __thiscall CAudio::Init(void)” (?Init@CAudio@@AAEHXZ)
      1>Video.obj : error LNK2001: unresolved external symbol _avcodec_open2
      1>Audio.obj : error LNK2019: unresolved external symbol _avcodec_find_decoder referenced in function “private: int __thiscall CAudio::Init(void)” (?Init@CAudio@@AAEHXZ)
      1>Video.obj : error LNK2001: unresolved external symbol _avcodec_find_decoder
      1>Audio.obj : error LNK2019: unresolved external symbol _avformat_find_stream_info referenced in function “private: int __thiscall CAudio::Init(void)” (?Init@CAudio@@AAEHXZ)
      1>Video.obj : error LNK2001: unresolved external symbol _avformat_find_stream_info
      1>Audio.obj : error LNK2019: unresolved external symbol _avformat_open_input referenced in function “private: int __thiscall CAudio::Init(void)” (?Init@CAudio@@AAEHXZ)
      1>Video.obj : error LNK2001: unresolved external symbol _avformat_open_input
      1>Audio.obj : error LNK2019: unresolved external symbol _av_find_input_format referenced in function “private: int __thiscall CAudio::Init(void)” (?Init@CAudio@@AAEHXZ)
      1>Video.obj : error LNK2001: unresolved external symbol _av_find_input_format
      1>Audio.obj : error LNK2019: unresolved external symbol _avdevice_register_all referenced in function “private: int __thiscall CAudio::Init(void)” (?Init@CAudio@@AAEHXZ)
      error LNK2001: unresolved external symbol _avdevice_register_all

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据