VideoHelp Forum




+ Reply to Thread
Page 4 of 5
FirstFirst ... 2 3 4 5 LastLast
Results 91 to 120 of 135
  1. Originally Posted by domenic View Post

    I will do some googling to try and figure out how to get a build of ffmpeg with nvenc included. I thought I read somewhere that prior to Pascal Nvidia / nvenc quality was an issue but with Pascal its "better". Guess I will have to see for myself.

    zeraone's 64bit ffmpeg builds have nvenc compiled , but the 32bit doesn't .

    https://ffmpeg.zeranoe.com/builds/


    Another issue you might have is decoding bottlenecks; you're probably going to be using CPU decoding if using ffmpeg alone. ffmpeg's hw accel is problematic and very buggy

    It's possible to use purevideo or qsv to feed nvenc, but the only reliable way is through avisynth

    or actually, another option is to use NVEncC by rigaya ; it does have a muxer now and can handle audio now I think (a long time ago it just encoded elementary video streams) . It does have --avcuvid , which enables HW encode/decode.
    Last edited by poisondeathray; 28th Oct 2016 at 13:29.
    Quote Quote  
  2. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    Re: H264/AVC encode via ffmpeg, an attempt to get the quicksync (QSV) working through ffmpeg instead of rigaya's QSVEnc app.

    rigaya is not updating QSVEnc anymore. His last gateway version is 2.57 app (a front-end to intel's Media SDK) is the fastest, at 250 fps on my Dell Inspiron laptop i3-2370M, but only less-than 50 fps if I use ffmpeg as the gateway. And getting it to work through ffmpeg is buggy. There is a huge regression (of builds) through the current build, today that the encoder does not work. You have to download an old version from 2015, which I'm using now, to test Intel's QSV with. And, you have to have the latest media sdk loaded in your cpu unless your's already has the latest version. I'm not sure what is the latest version. But on some of my test encodes, (the one's that error'ed out) will say something like 1.9, and 1.11 required. My laptop has 1.4 and I can't seem to find the latest media sdk from any of those versions (1.9 and 1.11) . I'm stuck with v1.4 unless someone knows a better resource than I that will get me the latest version loaded.

    But, according to sophisticles, you should be able to use Staxrip as the gateway to your cards hardware encoder. He says (though not in these exact words) that it will use the full command set of encoding parameters through staxrip, so you should get the maximum performance and quality through it. I can't use staxrip because my work pc is admin locked and anything that requires the registry or installation or avisynth will fail--and has on mine. Plus, I write my own software for these CLI apps like these.

    In my honest opinion, you need the latest media sdk version loaded for your hardware encoder brand.
    Quote Quote  
  3. Originally Posted by vhelp View Post
    Re: H264/AVC encode via ffmpeg, an attempt to get the quicksync (QSV) working through ffmpeg instead of rigaya's QSVEnc app.

    rigaya is not updating QSVEnc anymore. His last gateway version is 2.57 app (a front-end to intel's Media SDK) is the fastest, at 250 fps on my Dell Inspiron laptop i3-2370M, but only less-than 50 fps if I use ffmpeg as the gateway. And getting it to work through ffmpeg is buggy. There is a huge regression (of builds) through the current build, today that the encoder does not work. You have to download an old version from 2015, which I'm using now, to test Intel's QSV with. And, you have to have the latest media sdk loaded in your cpu unless your's already has the latest version. I'm not sure what is the latest version. But on some of my test encodes, (the one's that error'ed out) will say something like 1.9, and 1.11 required. My laptop has 1.4 and I can't seem to find the latest media sdk from any of those versions (1.9 and 1.11) . I'm stuck with v1.4 unless someone knows a better resource than I that will get me the latest version loaded.
    QSVEncC 2.57 is dated Sept 29/2016 ; I wouldn't call that "old"

    FFmpeg h264_qsv works for me from a build yesterday. ~380-400 FPS on 1280x720 4Mbps encode with a haswell (HD4600)

    Maybe you are using qsv for DEcoding ? The ffmpeg implementation for hwaccel is very buggy, that could explain the 50fps


    But, according to sophisticles, you should be able to use Staxrip as the gateway to your cards hardware encoder. He says (though not in these exact words) that it will use the full command set of encoding parameters through staxrip, so you should get the maximum performance and quality through it. I can't use staxrip because my work pc is admin locked and anything that requires the registry or installation or avisynth will fail--and has on mine. Plus, I write my own software for these CLI apps like these.
    Actually, staxrip uses rigaya's QSVEncC.
    Quote Quote  
  4. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    This is the build (below) that I just downloaded. And, I know it did not work earlier, but now it is, I think. Anyway. I am still not getting anywhere near the fps speed like I do in the stand-alone QSVEnc app. Also, the quality is poor.

    The source is a 720x480 and but the ffmpeg encoding speed is aprox 40 fps. That's very slow. See below for QSVEnc encode of the same source, but at 230 fps.

    params:
    Code:
    C:\tools\ffmpeg\ffmpeg -i "C:\tools\movie.avs" -an -c:v h264 -preset:v fast -y  "c:\videos\video.20161028Fri.ffmpeg_N-82143-gbf14393_h264_qsv_vhs.v1.mkv"
    Code:
    ffmpeg version N-82143-gbf14393 Copyright (c) 2000-2016 the FFmpeg developers
      built with gcc 5.4.0 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
      libavutil      55. 35.100 / 55. 35.100
      libavcodec     57. 65.100 / 57. 65.100
      libavformat    57. 57.100 / 57. 57.100
      libavdevice    57.  2.100 / 57.  2.100
      libavfilter     6. 66.100 /  6. 66.100
      libswscale      4.  3.100 /  4.  3.100
      libswresample   2.  4.100 /  2.  4.100
      libpostproc    54.  2.100 / 54.  2.100
    Guessed Channel Layout for Input Stream #0.1 : stereo
    Input #0, avisynth, from 'C:\tools\movieZ.avs':
      Duration: 00:00:55.06, start: 0.000000, bitrate: 3 kb/s
        Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x480, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc
        Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    No pixel format specified, yuv422p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    [libx264 @ 032ca340] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 032ca340] profile High 4:2:2, level 3.0, 4:2:2 8-bit
    [libx264 @ 032ca340] 264 - core 148 r2721 72d53ab - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, matroska, to 'c:\videos\video.20161028Fri.ffmpeg_h264_qsv_vhs.v1.mkv':
      Metadata:
        encoder         : Lavf57.57.100
        Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv422p, 720x480, q=-1--1, 23.98 fps, 1k tbn, 23.98 tbc
        Metadata:
          encoder         : Lavc57.65.100 libx264
        Side data:
          cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream mapping:
      Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
    
    Press [q] to stop, [?] for help
    frame=   42 fps=0.0 q=28.0 size=       1kB time=00:00:00.04 bitrate=N/A speed=N/A    
    frame=   62 fps= 57 q=28.0 size=       1kB time=00:00:00.79 bitrate=   7.4kbits/s speed=0.724x    
    frame=   78 fps= 48 q=28.0 size=       1kB time=00:00:01.46 bitrate=   4.0kbits/s speed=0.898x    
    frame=   96 fps= 45 q=28.0 size=       1kB time=00:00:02.21 bitrate=   2.7kbits/s speed=1.04x    
    frame=  114 fps= 43 q=28.0 size=     402kB time=00:00:02.96 bitrate=1112.4kbits/s speed=1.12x    
    . 
    . 
    .  
    frame= 1250 fps= 40 q=28.0 size=    6630kB time=00:00:50.34 bitrate=1078.8kbits/s speed=1.61x    
    frame= 1270 fps= 40 q=28.0 size=    6630kB time=00:00:51.17 bitrate=1061.2kbits/s speed=1.61x    
    frame= 1290 fps= 40 q=28.0 size=    6630kB time=00:00:52.01 bitrate=1044.2kbits/s speed=1.62x    
    frame= 1311 fps= 40 q=28.0 size=    7349kB time=00:00:52.88 bitrate=1138.3kbits/s speed=1.61x    
    frame= 1320 fps= 39 q=-1.0 Lsize=   7709kB time=00:00:54.93 bitrate=1149.6kbits/s speed=1.64x    
    
    video:7699kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.133751%
    
    [libx264 @ 032ca340] frame I:11    Avg QP:21.66  size: 29129
    [libx264 @ 032ca340] frame P:332   Avg QP:24.48  size: 10862
    [libx264 @ 032ca340] frame B:977   Avg QP:26.53  size:  4049
    [libx264 @ 032ca340] consecutive B-frames:  1.0%  0.6%  1.1% 97.3%
    [libx264 @ 032ca340] mb I  I16..4: 12.0% 72.2% 15.8%
    [libx264 @ 032ca340] mb P  I16..4:  1.7%  7.3%  1.6%  P16..4: 52.7% 21.0% 11.2%  0.0%  0.0%    skip: 4.5%
    [libx264 @ 032ca340] mb B  I16..4:  1.9%  3.3%  0.2%  B16..8: 30.8%  6.6%  0.4%  direct:39.7%  skip:17.2%  L0:41.5% L1:47.0% BI:11.5%
    [libx264 @ 032ca340] 8x8 transform intra:65.2% inter:74.7%
    [libx264 @ 032ca340] coded y,uvDC,uvAC intra: 50.1% 95.0% 36.3% inter: 18.0% 76.9% 2.8%
    [libx264 @ 032ca340] i16 v,h,dc,p: 38% 29% 13% 20%
    [libx264 @ 032ca340] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 17% 28%  4%  7%  8%  7%  6%  6%
    [libx264 @ 032ca340] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 31% 14%  5%  7%  7%  8%  5%  6%
    [libx264 @ 032ca340] i8c dc,h,v,p: 54% 15% 19% 12%
    [libx264 @ 032ca340] Weighted P-Frames: Y:7.2% UV:0.3%
    [libx264 @ 032ca340] ref P L0: 59.3% 40.7%
    [libx264 @ 032ca340] ref B L0: 79.0% 21.0%
    [libx264 @ 032ca340] ref B L1: 93.6%  6.4%
    [libx264 @ 032ca340] kb/s:1145.41
    versus QSVEncC v2.57

    Code:
    idprm.mfx.NumRefFrame value changed 1 -> 2 by driver
    QSVEncC (x86) 2.57 (r1177) by rigaya, Sep 29 2016 23:14:33 (VC 1900/Win/avx2)
    OS             Windows 7 (x64)
    CPU Info       Intel Core i3-2370M @ 2.40GHz (2C/4T) <SandyBridge>
    GPU Info       Intel HD Graphics 650-1150MHz
    Media SDK      QuickSyncVideo (hardware encoder), 1st GPU, API v1.4
    Async Depth    4 frames
    Buffer Memory  d3d9, 3 input buffer, 11 work buffer
    Input Info     Avisynth 2.60 (yuy2)->nv12[AVX], 720x480, 24000/1001 fps
    Output         H.264/AVC  High @ Level 3
                   720x480p 1:1 24.000fps (24/1fps)
                   avwriter: h264 => matroska
    Target usage   4 - balanced
    Encode Mode    Bitrate Mode - AVBR
    Bitrate        1600 kbps
    AVBR Converge  100 frames unit
    Ref frames     2 frames
    Bframes        1 frame
    Max GOP Length 240 frames
    Scene Change   off
    [11.2%]  148 frames: 185.00 fps, 1227 kb/s, remain 0:00:06                      
    [26.4%]  349 frames: 217.85 fps, 1277 kb/s, remain 0:00:04                      
    [41.4%]  546 frames: 227.12 fps, 1083 kb/s, remain 0:00:03                      
    [55.8%]  736 frames: 229.71 fps,  939 kb/s, remain 0:00:02                       
    [71.1%]  938 frames: 234.27 fps,  905 kb/s, remain 0:00:01                       
    [83.2%] 1098 frames: 228.56 fps,  933 kb/s, remain 0:00:00                      
    [98.0%] 1293 frames: 230.69 fps,  931 kb/s, remain 0:00:00                      
                                                                                   
    encoded 1320 frames, 230.77 fps, 924.22 kbps, 6.06 MB
    encode time 0:00:06, CPULoad: 61.36
    frame type IDR   6
    frame type I     6,  total size  0.08 MB
    frame type P   660,  total size  3.62 MB
    frame type B   654,  total size  2.36 MB
    Also, what are the specific parameters to use in ffmpeg to obtain better quality ?
    Quote Quote  
  5. Originally Posted by poisondeathray View Post
    Actually, staxrip uses rigaya's QSVEncC.
    The reason to use Staxrip is because he wouldn't have to drive himself crazy trying to figure out what version of the of this or that he needs, it just works so long as you have the latest .NET installed and it doesn't need installing, it's just a 7z archive that you extract:

    https://github.com/stax76/staxrip/releases

    I don't know what OS domenic is using but so long as it's either Win 8/8.1 or Win 10 he he should be able to do test encodes with both his Pascal and his Skylake via Staxrip, if he's using Win 7 then which ever gpu is the primary one (I'm assuming the Nvidia) will only be testable.
    Quote Quote  
  6. Originally Posted by vhelp View Post

    params:
    Code:
    C:\tools\ffmpeg\ffmpeg -i "C:\tools\movie.avs" -an -c:v h264 -preset:v fast -y  "c:\videos\video.20161028Fri.ffmpeg_N-82143-gbf14393_h264_qsv_vhs.v1.mkv"
    You want -c:v h264_qsv to call QSV AVC encoder in ffmpeg ; not -c:v h264 which is CPU

    "ffmpeg -h full " will list all the options. Look under h264_qsv. Not all of them were working properly when I last tested (maybe a year ago), but they might be now
    Quote Quote  
  7. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    ok. I must have typed over that pat of the param you just posted and conensidentally the encode worked, using the internal h264 version.

    Now, when I add the correct param as you suggested, this is the same error that I've been getting for many of the builds that I've been downloading these past two days. So frustrating.

    Code:
    ffmpeg version N-82143-gbf14393 Copyright (c) 2000-2016 the FFmpeg developers
      built with gcc 5.4.0 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
      libavutil      55. 35.100 / 55. 35.100
      libavcodec     57. 65.100 / 57. 65.100
      libavformat    57. 57.100 / 57. 57.100
      libavdevice    57.  2.100 / 57.  2.100
      libavfilter     6. 66.100 /  6. 66.100
      libswscale      4.  3.100 /  4.  3.100
      libswresample   2.  4.100 /  2.  4.100
      libpostproc    54.  2.100 / 54.  2.100
    Guessed Channel Layout for Input Stream #0.1 : stereo
    Input #0, avisynth, from 'C:\tools\movieZ.avs':
      Duration: 00:00:55.06, start: 0.000000, bitrate: 3 kb/s
        Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x480, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc
        Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    [h264_qsv @ 05689de0] Error initializing an internal MFX session
    Stream mapping:
      Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_qsv))
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
    I still believe that I need the correct SDK version and that's why I can't get this to work in ffmpeg. However, you got it to work in your rig, I'm stumped
    Quote Quote  
  8. Just to rule out a build issue first, download a zeranoe 64bit build , which I've confirmed works with -c:v h264_qsv

    (The exact one I used was dated 2016.10.23 , or ffmpeg-20161023-89ec4ad-win64-static.zip")

    Unless you have 64bit avisynth, use a video test file (like a random youtube video) as input . (Since the 32bit zeranoe builds do not have qsv enabled) , otherwise you can use other avs pipe utilities, but to keep it simple just use a video for now
    Quote Quote  
  9. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    My laptop is a windows 7 home premium, 64bit version. But, I have the 32bit avisynth installed on this laptop. I'm pretty sure its 32bit version. Is there an avisynth param line that I can pass to test it, which version ?
    Quote Quote  
  10. Originally Posted by vhelp View Post
    My laptop is a windows 7 home premium, 64bit version. But, I have the 32bit avisynth installed on this laptop. I'm pretty sure its 32bit version. Is there an avisynth param line that I can pass to test it, which version ?

    You need 32bit ffmpeg with 32bit avisynth .

    So you would have to build it yourself, but that defeats the purpose of testing for a build error on your end. Recall I said zeranoe only has 64bit implemented for qsv, the 32bit build doesn't. So the easiest way to test right away to rule out some things quickly is to input some random video into the verified working 64bit build just to see if it works. Then you can start looking at other things like sdk version, drivers if it doesn't work. qsvencc works on your configured system with 1.4, so ffmpeg should too unless you've selected a feature not available on an earlier version

    As I mentioned earlier, I built a 32bit non free yesterday, and it still works with qsv, so nothing changed over that week, not a problem with 32bit. The build is different, enviroment is different
    Quote Quote  
  11. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    ok, that seems to have worked. I fed a non-avisynth clip and it encoded the video. But the fps was very low:

    * about 9 fps for a 1920x1080p though it should be 120 fps, and
    * about 50 fps for a 720x480i though it should be around 250 fps

    also, the encode would not work unless I fed the param string as such:

    Code:
    C:\tools\ffmpeg\ffmpeg  -i "g:\Test Source 2.mkv" -y "c:\videos\video.20161028Fri.ffmpeg_20161023-89ec4ad_h264_qsv_TestSource2.h264" -an -c:v h264_qsv
    and my cpu resource is taxed at 100%

    see below, the output is a bit cryptic to me. Its hard for me to tell if quicksync did the encode or ffmpeg.

    Code:
    ffmpeg version N-82092-g89ec4ad Copyright (c) 2000-2016 the FFmpeg developers
      built with gcc 5.4.0 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
      libavutil      55. 33.100 / 55. 33.100
      libavcodec     57. 63.103 / 57. 63.103
      libavformat    57. 53.100 / 57. 53.100
      libavdevice    57.  0.103 / 57.  0.103
      libavfilter     6. 64.100 /  6. 64.100
      libswscale      4.  1.100 /  4.  1.100
      libswresample   2.  2.100 /  2.  2.100
      libpostproc    54.  0.100 / 54.  0.100
    Trailing options were found on the commandline.
    Input #0, matroska,webm, from 'g:\Test Source 2.mkv':
      Metadata:
        encoder         : libebml v1.3.4 + libmatroska v1.4.5
        creation_time   : 2016-10-18T02:42:20.000000Z
      Duration: 00:01:31.72, start: 0.000000, bitrate: 24955 kb/s
        Stream #0:0: Video: h264 (High), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
        Metadata:
          BPS             : 24952629
          BPS-eng         : 24952629
          DURATION        : 00:01:31.717000000
          DURATION-eng    : 00:01:31.717000000
          NUMBER_OF_FRAMES: 2199
          NUMBER_OF_FRAMES-eng: 2199
          NUMBER_OF_BYTES : 286072545
          NUMBER_OF_BYTES-eng: 286072545
          _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 64bit
          _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 64bit
          _STATISTICS_WRITING_DATE_UTC: 2016-10-18 02:42:20
          _STATISTICS_WRITING_DATE_UTC-eng: 2016-10-18 02:42:20
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    [libx264 @ 000000000042dec0] using SAR=1/1
    [libx264 @ 000000000042dec0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 000000000042dec0] profile High, level 4.0
    Output #0, h264, to 'c:\videos\video.20161028Fri.ffmpeg_N-82143-gbf14393_h264_qsv_vhs.v3.h264':
      Metadata:
        encoder         : Lavf57.53.100
        Stream #0:0: Video: h264 (libx264), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 23.98 fps, 23.98 tbn, 23.98 tbc (default)
        Metadata:
          BPS             : 24952629
          BPS-eng         : 24952629
          DURATION        : 00:01:31.717000000
          DURATION-eng    : 00:01:31.717000000
          NUMBER_OF_FRAMES: 2199
          NUMBER_OF_FRAMES-eng: 2199
          NUMBER_OF_BYTES : 286072545
          NUMBER_OF_BYTES-eng: 286072545
          _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 64bit
          _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 64bit
          _STATISTICS_WRITING_DATE_UTC: 2016-10-18 02:42:20
          _STATISTICS_WRITING_DATE_UTC-eng: 2016-10-18 02:42:20
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
          encoder         : Lavc57.63.103 libx264
        Side data:
          cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    
    frame=   23 fps=0.0 q= 0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   47 fps= 21 q= 0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   52 fps= 16 q=28.0 size=       1kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   65 fps= 17 q=28.0 size=       2kB time=00:00:00.54 bitrate=  31.6kbits/s speed=0.146x    
    frame=   75 fps= 18 q=25.0 size=       3kB time=00:00:00.95 bitrate=  23.7kbits/s speed=0.225x    
    . 
    . 
    .    
    frame= 2176 fps=8.2 q=28.0 size=   35970kB time=00:01:28.58 bitrate=3326.2kbits/s speed=0.334x    
    frame= 2184 fps=8.2 q=28.0 size=   36043kB time=00:01:28.92 bitrate=3320.5kbits/s speed=0.335x    
    frame= 2192 fps=8.2 q=28.0 size=   36108kB time=00:01:29.25 bitrate=3314.0kbits/s speed=0.335x    
    frame= 2199 fps=8.2 q=28.0 size=   36161kB time=00:01:29.54 bitrate=3308.1kbits/s speed=0.335x    
    frame= 2199 fps=8.2 q=-1.0 Lsize=  36367kB time=00:01:31.63 bitrate=3251.2kbits/s speed=0.34x    
    
    video:36367kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
    
    [libx264 @ 000000000042dec0] frame I:12    Avg QP:17.57  size:133311
    [libx264 @ 000000000042dec0] frame P:660   Avg QP:22.12  size: 36202
    [libx264 @ 000000000042dec0] frame B:1527  Avg QP:24.31  size:  7693
    [libx264 @ 000000000042dec0] consecutive B-frames:  2.7%  9.6% 13.6% 74.0%
    [libx264 @ 000000000042dec0] mb I  I16..4: 24.4% 66.2%  9.4%
    [libx264 @ 000000000042dec0] mb P  I16..4:  1.6%  4.3%  0.3%  P16..4: 41.7% 13.6%  8.1%  0.0%  0.0%    skip:30.4%
    [libx264 @ 000000000042dec0] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 38.7%  1.5%  0.2%  direct: 1.0%  skip:58.4%  L0:41.4% L1:53.3% BI: 5.3%
    [libx264 @ 000000000042dec0] 8x8 transform intra:67.9% inter:82.6%
    [libx264 @ 000000000042dec0] coded y,uvDC,uvAC intra: 48.2% 38.5% 11.3% inter: 15.0% 16.2% 0.3%
    [libx264 @ 000000000042dec0] i16 v,h,dc,p: 52% 23%  4% 21%
    [libx264 @ 000000000042dec0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 20% 27%  5%  8%  5% 11%  4%  9%
    [libx264 @ 000000000042dec0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  8% 31% 14%  6% 10%  5% 14%  4%  9%
    [libx264 @ 000000000042dec0] i8c dc,h,v,p: 73% 16%  9%  2%
    [libx264 @ 000000000042dec0] Weighted P-Frames: Y:23.2% UV:4.1%
    [libx264 @ 000000000042dec0] ref P L0: 60.3% 23.1% 12.3%  3.8%  0.5%
    [libx264 @ 000000000042dec0] ref B L0: 92.6%  5.9%  1.5%
    [libx264 @ 000000000042dec0] ref B L1: 97.4%  2.6%
    [libx264 @ 000000000042dec0] kb/s:3248.23
    Last edited by vhelp; 28th Oct 2016 at 20:32. Reason: typos in the filename, had to correct
    Quote Quote  
  12. No it's not working for you. That is libx264

    Your log says
    Code:
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    It should say
    Code:
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
    Quote Quote  
  13. Trailing options were found on the commandline.
    Try this
    Code:
    "C:\tools\ffmpeg\ffmpeg" -i "g:\Test Source 2.mkv"  -an -c:v h264_qsv  "c:\videos\testoutput.mp4"
    Quote Quote  
  14. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    "C:\tools\ffmpeg\ffmpeg" -i "g:\Test Source 2.mkv" -an -c:v h264_qsv "c:\videos\testoutput.mp4"

    didn't work.

    Code:
    ffmpeg version N-82092-g89ec4ad Copyright (c) 2000-2016 the FFmpeg developers
      built with gcc 5.4.0 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
      libavutil      55. 33.100 / 55. 33.100
      libavcodec     57. 63.103 / 57. 63.103
      libavformat    57. 53.100 / 57. 53.100
      libavdevice    57.  0.103 / 57.  0.103
      libavfilter     6. 64.100 /  6. 64.100
      libswscale      4.  1.100 /  4.  1.100
      libswresample   2.  2.100 /  2.  2.100
      libpostproc    54.  0.100 / 54.  0.100
    Input #0, matroska,webm, from 'g:\Test Source 2.mkv':
      Metadata:
        encoder         : libebml v1.3.4 + libmatroska v1.4.5
        creation_time   : 2016-10-18T02:42:20.000000Z
      Duration: 00:01:31.72, start: 0.000000, bitrate: 24955 kb/s
        Stream #0:0: Video: h264 (High), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
        Metadata:
          BPS             : 24952629
          BPS-eng         : 24952629
          DURATION        : 00:01:31.717000000
          DURATION-eng    : 00:01:31.717000000
          NUMBER_OF_FRAMES: 2199
          NUMBER_OF_FRAMES-eng: 2199
          NUMBER_OF_BYTES : 286072545
          NUMBER_OF_BYTES-eng: 286072545
          _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 64bit
          _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 64bit
          _STATISTICS_WRITING_DATE_UTC: 2016-10-18 02:42:20
          _STATISTICS_WRITING_DATE_UTC-eng: 2016-10-18 02:42:20
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    [h264_qsv @ 0000000002f009e0] Error initializing an internal MFX session
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
    Quote Quote  
  15. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    I had the -y param in there to prevent the error below when i re-run the param. otherwise, I have to remember to DELETE the file "testoutput.mp4"

    File 'c:\videos\testoutput.mp4' already exists. Overwrite ? [y/N] Not overwriting - exiting

    Code:
    ffmpeg version N-82092-g89ec4ad Copyright (c) 2000-2016 the FFmpeg developers
      built with gcc 5.4.0 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
      libavutil      55. 33.100 / 55. 33.100
      libavcodec     57. 63.103 / 57. 63.103
      libavformat    57. 53.100 / 57. 53.100
      libavdevice    57.  0.103 / 57.  0.103
      libavfilter     6. 64.100 /  6. 64.100
      libswscale      4.  1.100 /  4.  1.100
      libswresample   2.  2.100 /  2.  2.100
      libpostproc    54.  0.100 / 54.  0.100
    Input #0, matroska,webm, from 'g:\Test Source 2.mkv':
      Metadata:
        encoder         : libebml v1.3.4 + libmatroska v1.4.5
        creation_time   : 2016-10-18T02:42:20.000000Z
      Duration: 00:01:31.72, start: 0.000000, bitrate: 24955 kb/s
        Stream #0:0: Video: h264 (High), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
        Metadata:
          BPS             : 24952629
          BPS-eng         : 24952629
          DURATION        : 00:01:31.717000000
          DURATION-eng    : 00:01:31.717000000
          NUMBER_OF_FRAMES: 2199
          NUMBER_OF_FRAMES-eng: 2199
          NUMBER_OF_BYTES : 286072545
          NUMBER_OF_BYTES-eng: 286072545
          _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 64bit
          _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 64bit
          _STATISTICS_WRITING_DATE_UTC: 2016-10-18 02:42:20
          _STATISTICS_WRITING_DATE_UTC-eng: 2016-10-18 02:42:20
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    File 'c:\videos\testoutput.mp4' already exists. Overwrite ? [y/N] Not overwriting - exiting
    Quote Quote  
  16. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    Just for the notes.. the "Test Source 2.mkv" file is from the link, below. In case you want to check it out. Its an 1920x1080p 24p source from KarMa, over there, 2nd file. I downloaded both so I could test with them:

    https://forum.videohelp.com/threads/380203-Why-does-x265-preset-fast-get-the-smallest-f...=1#post2463752
    Quote Quote  
  17. I don't know why qsvenc 2.57 would work, but ffmpeg (the exact same build that Ive verifed works) doesn't . I don't think they increased the version requirement for intel media sdk. But you can try downloading a newer version

    Code:
    [h264_qsv @ 0000000002f009e0] Error initializing an internal MFX session
    What does it say when you run
    Code:
    qsvencc64 --check-features
    Besides reporting v1.4 (most recent is 1.19), there might be some other clues
    Quote Quote  
  18. I'm in the same boat. QSVEnc works but ffmpeg gives an MFX error. Using ffmpeg-20161023-89ec4ad-win64-static.zip downloaded earlier today:

    Code:
    D:\Downloads\ffmpeg-20161023-89ec4ad-win64-static\bin>ffmpeg -i "0001.mkv" -an -
    c:v h264_qsv -preset:v fast -y  "output.mkv"
    ffmpeg version N-82092-g89ec4ad Copyright (c) 2000-2016 the FFmpeg developers
      built with gcc 5.4.0 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dx
    va2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-lib
    ebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --ena
    ble-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfree
    type --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enab
    le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-lib
    openh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschr
    oedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheor
    a --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvo
    rbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --ena
    ble-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --e
    nable-decklink --enable-zlib
      libavutil      55. 33.100 / 55. 33.100
      libavcodec     57. 63.103 / 57. 63.103
      libavformat    57. 53.100 / 57. 53.100
      libavdevice    57.  0.103 / 57.  0.103
      libavfilter     6. 64.100 /  6. 64.100
      libswscale      4.  1.100 /  4.  1.100
      libswresample   2.  2.100 /  2.  2.100
      libpostproc    54.  0.100 / 54.  0.100
    Input #0, matroska,webm, from '0001.mkv':
      Metadata:
        encoder         : libebml v1.3.4 + libmatroska v1.4.5
        creation_time   : 2016-10-24T18:10:32.000000Z
      Duration: 00:01:31.72, start: 0.000000, bitrate: 2731 kb/s
        Stream #0:0: Video: h264 (High 10), yuv420p10le, 1280x960 [SAR 1:1 DAR 4:3],
     23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
        Metadata:
          BPS             : 2410382
          BPS-eng         : 2410382
          DURATION        : 00:01:31.717000000
          DURATION-eng    : 00:01:31.717000000
          NUMBER_OF_FRAMES: 2199
          NUMBER_OF_FRAMES-eng: 2199
          NUMBER_OF_BYTES : 27634127
          NUMBER_OF_BYTES-eng: 27634127
          _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 32bit
          _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 32bit
          _STATISTICS_WRITING_DATE_UTC: 2016-10-24 18:10:32
          _STATISTICS_WRITING_DATE_UTC-eng: 2016-10-24 18:10:32
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
        Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 320 kb/s (default)
        Metadata:
          BPS             : 320000
          BPS-eng         : 320000
          DURATION        : 00:01:31.520000000
          DURATION-eng    : 00:01:31.520000000
          NUMBER_OF_FRAMES: 2860
          NUMBER_OF_FRAMES-eng: 2860
          NUMBER_OF_BYTES : 3660800
          NUMBER_OF_BYTES-eng: 3660800
          _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 32bit
          _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 32bit
          _STATISTICS_WRITING_DATE_UTC: 2016-10-24 18:10:32
          _STATISTICS_WRITING_DATE_UTC-eng: 2016-10-24 18:10:32
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    [h264_qsv @ 0000000002d587e0] Error initializing an internal MFX session
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters
    such as bit_rate, rate, width or height
    If I replace h264_qsv with just h264 it works fine, encoding with x264.
    Quote Quote  
  19. jagabo - which intel chip was that on?

    This was mine, but omitting -b:v 4000 still worked . (-b:v is in bits for qsv, so -b:v 4000000 for 4Mb/s worked to hit the actual target )
    Code:
    F:\_DOWNLOADS\New folder>ffmpeg -i "src.mp4" -c:v h264_qsv -b:v 4000 -an test.mp
    4 -y
    ffmpeg version N-82092-g89ec4ad Copyright (c) 2000-2016 the FFmpeg developers
      built with gcc 5.4.0 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dx
    va2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-lib
    ebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --ena
    ble-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfree
    type --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enab
    le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-lib
    openh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschr
    oedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheor
    a --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvo
    rbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --ena
    ble-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --e
    nable-decklink --enable-zlib
      libavutil      55. 33.100 / 55. 33.100
      libavcodec     57. 63.103 / 57. 63.103
      libavformat    57. 53.100 / 57. 53.100
      libavdevice    57.  0.103 / 57.  0.103
      libavfilter     6. 64.100 /  6. 64.100
      libswscale      4.  1.100 /  4.  1.100
      libswresample   2.  2.100 /  2.  2.100
      libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'src.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isommp42
        creation_time   : 2014-07-20T02:39:32.000000Z
      Duration: 00:08:27.12, start: 0.000000, bitrate: 1633 kb/s
        Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720
    [SAR 1:1 DAR 16:9], 1438 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default
    )
        Metadata:
          handler_name    : VideoHandler
        Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, flt
    p, 191 kb/s (default)
        Metadata:
          creation_time   : 2014-07-20T02:39:36.000000Z
          handler_name    : IsoMedia File Produced by Google, 5-11-2011
    Output #0, mp4, to 'test.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: isommp42
        encoder         : Lavf57.53.100
        Stream #0:0(und): Video: h264 (h264_qsv) ([33][0][0][0] / 0x0021), nv12, 128
    0x720 [SAR 1:1 DAR 16:9], q=2-31, 4 kb/s, 29.97 fps, 30k tbn, 29.97 tbc (default
    )
        Metadata:
          handler_name    : VideoHandler
          encoder         : Lavc57.63.103 h264_qsv
        Side data:
          cpb: bitrate max/min/avg: 0/0/4000 buffer size: 0 vbv_delay: -1
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
    Press [q] to stop, [?] for help
    frame=  198 fps=0.0 q=-0.0 size=      59kB time=00:00:04.93 bitrate=  98.0kbits/
    frame=  388 fps=388 q=-0.0 size=     245kB time=00:00:11.27 bitrate= 178.1kbits/
    .
    .
    .
    frame=14815 fps=393 q=-0.0 size=    9607kB time=00:08:12.65 bitrate= 159.7kbits/
    frame=15030 fps=394 q=-0.0 size=    9669kB time=00:08:19.83 bitrate= 158.5kbits/
    frame=15198 fps=393 q=-0.0 Lsize=    9869kB time=00:08:27.03 bitrate= 159.5kbits
    /s speed=13.1x
    video:9735kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
    overhead: 1.384614%
    Do you guys have you intel drivers up to date ?

    I don't recall seeing ffmpeg bump up the intel media sdk minimum requirement , but it might be something higher now
    Last edited by poisondeathray; 28th Oct 2016 at 22:29.
    Quote Quote  
  20. That was on my i5 2500K. I just tried it on my Celeron N3150 (HTPC) system and it worked there. And it worked on my i3 4130T system too. All Win7 64 bit.
    Last edited by jagabo; 28th Oct 2016 at 22:41.
    Quote Quote  
  21. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    the sdk is currently at 1.19 but mine is at 1.4 and i can't find an update file or resource to update it to 1.19 and the Intel website is of no use unless you have PHD and want to give Intel your name and address for their media sdk suite/software. But i'm not compiling with c/c++ nor building any sdk. So I don't need that resource. I (or we who are lacking the support) just need the uploader file to update our cpu/computer to the latst sdk. I believe that this is why it fails because ffmpeg expect the latest version 1.19 since that is what it is compiled with. If we can find the 1.19 sdk, then *all* the features will be readily exposed and available.

    If you run QSVEncC (or QSVEncC64) with the --check-features it will show you *your* most current available features for each hardware encoder on your cpu with *your* current sdk version. Mine is below.

    download instructions for QSVEnc

    1. its the last file, "QSVEnc_2.57_7zip.7z"
    2. create a folder and copy all files into it
    3. navigate to the x86 or x64 folder: ..\QSVEnc_2.57\QSVEncC\x86 or ..\QSVEnc_2.57\QSVEncC\x64
    4. run QSVEncC or QSVEncC64 --check-features

    Code:
    QSVEncC (x86) 2.57 (r1177) by rigaya, Sep 29 2016 23:14:33 (VC 1900/Win/avx2)
     reader: raw, avi, avs, vpy, avqsv [H.264/AVC, HEVC, MPEG2, VC-1, VP8, VP9]
    Environment Info
    OS : Windows 7 (x64)
    CPU: Intel Core i3-2370M @ 2.40GHz (2C/4T) <SandyBridge>
    RAM: Used 3835 MB, Total 6044 MB
    GPU: Intel HD Graphics 650-1150MHz
    
    Media SDK Version: Hardware API v1.4
    
    Supported Enc features:
    Codec: H.264/AVC
                 CBR   VBR   AVBR  QVBR  CQP   VQP   LA    LAHRD ICQ   LAICQ VCM  
    RC mode       o     o     o     x     o     o     x     x     x     x     x    
    Fixed Func    x     x     x     x     x     x     x     x     x     x     x    
    Interlace     o     o     o     x     o     o     x     x     x     x     x    
    SceneChange   o     o     o     x     o     o     x     x     x     x     x    
    VUI info      o     o     o     x     o     o     x     x     x     x     x    
    Trellis       x     x     x     x     x     x     x     x     x     x     x    
    Adaptive_I    x     x     x     x     x     x     x     x     x     x     x    
    Adaptive_B    x     x     x     x     x     x     x     x     x     x     x    
    WeightP       x     x     x     x     x     x     x     x     x     x     x    
    WeightB       x     x     x     x     x     x     x     x     x     x     x    
    FadeDetect    x     x     x     x     x     x     x     x     x     x     x    
    B_Pyramid     x     x     x     x     x     x     x     x     x     x     x    
     +Scenechange x     x     x     x     x     x     x     x     x     x     x    
     +ManyBframes x     x     x     x     x     x     x     x     x     x     x    
    PyramQPOffset x     x     x     x     x     x     x     x     x     x     x    
    Ext_BRC       x     x     x     x     x     x     x     x     x     x     x    
    MBBRC         x     x     x     x     x     x     x     x     x     x     x    
    LA Quality    x     x     x     x     x     x     x     x     x     x     x    
    QP Min/Max    x     x     x     x     x     x     x     x     x     x     x    
    IntraRefresh  x     x     x     x     x     x     x     x     x     x     x    
    No Debloc     x     x     x     x     x     x     x     x     x     x     x    
    No GPB        x     x     x     x     x     x     x     x     x     x     x    
    Windowed BRC  x     x     x     x     x     x     x     x     x     x     x    
    PerMBQP(CQP)  x     x     x     x     x     x     x     x     x     x     x    
    DirectBiasAdj x     x     x     x     x     x     x     x     x     x     x    
    MVCostScaling x     x     x     x     x     x     x     x     x     x     x    
    
    
    
    Codec: MPEG2
                 CBR   VBR   AVBR  QVBR  CQP   VQP   LA    LAHRD ICQ   LAICQ VCM  
    RC mode       o     o     o     x     o     o     x     x     x     x     x    
    Fixed Func    x     x     x     x     x     x     x     x     x     x     x    
    Interlace     o     o     o     x     o     o     x     x     x     x     x    
    SceneChange   o     o     o     x     o     o     x     x     x     x     x    
    VUI info      o     o     o     x     o     o     x     x     x     x     x    
    Trellis       x     x     x     x     x     x     x     x     x     x     x    
    Adaptive_I    x     x     x     x     x     x     x     x     x     x     x    
    Adaptive_B    x     x     x     x     x     x     x     x     x     x     x    
    WeightP       x     x     x     x     x     x     x     x     x     x     x    
    WeightB       x     x     x     x     x     x     x     x     x     x     x    
    FadeDetect    x     x     x     x     x     x     x     x     x     x     x    
    B_Pyramid     x     x     x     x     x     x     x     x     x     x     x    
     +Scenechange x     x     x     x     x     x     x     x     x     x     x    
     +ManyBframes x     x     x     x     x     x     x     x     x     x     x    
    PyramQPOffset x     x     x     x     x     x     x     x     x     x     x    
    Ext_BRC       x     x     x     x     x     x     x     x     x     x     x    
    MBBRC         x     x     x     x     x     x     x     x     x     x     x    
    LA Quality    x     x     x     x     x     x     x     x     x     x     x    
    QP Min/Max    x     x     x     x     x     x     x     x     x     x     x    
    IntraRefresh  x     x     x     x     x     x     x     x     x     x     x    
    No Debloc     x     x     x     x     x     x     x     x     x     x     x    
    No GPB        x     x     x     x     x     x     x     x     x     x     x    
    Windowed BRC  x     x     x     x     x     x     x     x     x     x     x    
    PerMBQP(CQP)  x     x     x     x     x     x     x     x     x     x     x    
    DirectBiasAdj x     x     x     x     x     x     x     x     x     x     x    
    MVCostScaling x     x     x     x     x     x     x     x     x     x     x
    From what I've read, anything with an "O" means feature not available. But I believe its the other way around. Its should have been written as, anything with an "X" means feature not available.
    Last edited by vhelp; 28th Oct 2016 at 22:48. Reason: corrected typos and added instructions to download and run QSVEncC
    Quote Quote  
  22. It didn't work on "Test Source 2.mkv" from that thread for me. Maybe a downloading error or something, or corrupt container. Because it works on other mkvs for me

    But the difference is I didn't get the same "Error initializing an internal MFX session" message, it just was "stuck"

    But I re-wrapped it to mp4 and it worked. Or try another video in MP4

    Code:
    ffmpeg -i "Test Source 2.mkv" -c:v copy -an copy.mp4
    Code:
    ffmpeg -i "copy.mp4" -c:v h264_qsv -an -b:v 2000000 ff_qsv_2Mbps.mkv -y
    Quote Quote  
  23. the discussion says they did raise the minimum , apparently it's the lookahead function added in 1.9

    https://trac.ffmpeg.org/ticket/4831

    But rigaya's must have some detection or workaround logic

    But try adding

    Code:
    -look_ahead 0

    Code:
      -look_ahead        <int>        E..V.... Use VBR algorithm with look ahead (from 0 to 1) (default 1)
    Quote Quote  
  24. avc in mp4 gave me the same error. Adding "-look_ahead 0" -- same error.
    Quote Quote  
  25. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    same here. only i'm now using a much smaller 720x480 24p clip for testing. ffmpeg is happy to process in any other format. Its just a matter of figuring out why MFX is not initializing in some peoples setups when using ffmpeg even though it is compiled with --enable-libmfx.
    Quote Quote  
  26. It works on jagabo's other computers, a braswell and haswell . Just not his SB. You have a SB too. So maybe some HW features not supported on newer qsv versions? Each generation is faster with more excecution units, but also the quality is higher. And didn't you get an older 2015 ffmpeg qsv to work ?

    Originally Posted by jagabo View Post
    That was on my i5 2500K. I just tried it on my Celeron N3150 (HTPC) system and it worked there. And it worked on my i3 4130T system too. All Win7 64 bit.
    Quote Quote  
  27. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    I'm not sure it worked on the older ffmpeg. Maybe you can help me determine that. see below. Maybe jagabo can try that version on the one that isn't working for him. i'm about ready for bed, its 1:30am here. let me know, so i can go to bed already.

    Code:
    C:\tools\ffmpeg\ffmpeg -i "C:\tools\movie.avs"  -c:v h264_qsv  -q 18  -y "c:\videos\video.20161026wed.ffmpeg_video_h264_qsv_karma1.v1.mkv"
    
    ffmpeg version N-72805-g913685f Copyright (c) 2000-2015 the FFmpeg developers
      built with gcc 4.9.2 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
      libavutil      54. 27.100 / 54. 27.100
      libavcodec     56. 41.100 / 56. 41.100
      libavformat    56. 36.100 / 56. 36.100
      libavdevice    56.  4.100 / 56.  4.100
      libavfilter     5. 16.101 /  5. 16.101
      libswscale      3.  1.101 /  3.  1.101
      libswresample   1.  2.100 /  1.  2.100
      libpostproc    53.  3.100 / 53.  3.100
    Input #0, avisynth, from 'C:\tools\movie.avs':
      Duration: 00:01:31.72, start: 0.000000, bitrate: 1 kb/s
        Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc
    Output #0, matroska, to 'c:\videos\video.20161026wed.ffmpeg_video_h264_qsv_karma1.v1.mkv':
      Metadata:
        encoder         : Lavf56.36.100
        Stream #0:0: Video: h264 (h264_qsv) (H264 / 0x34363248), nv12, 1920x1080, q=2-31, 1000 kb/s, 23.98 fps, 1k tbn, 23.98 tbc
        Metadata:
          encoder         : Lavc56.41.100 h264_qsv
    Stream mapping:
      Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_qsv))
    Press [q] to stop, [?] for help
    frame=   12 fps=0.0 q=0.0 size=       2kB time=00:00:00.04 bitrate= 379.7kbits/s    
    frame=   23 fps= 23 q=0.0 size=       3kB time=00:00:00.04 bitrate= 575.0kbits/s    
    frame=   33 fps= 22 q=0.0 size=      93kB time=00:00:00.04 bitrate=18519.4kbits/s    
    frame=   42 fps= 21 q=0.0 size=     387kB time=00:00:00.04 bitrate=75467.2kbits/s    
    frame=   51 fps= 20 q=0.0 size=     832kB time=00:00:00.04 bitrate=162249.0kbits/s    
    . 
    . 
    .    
    frame= 2166 fps= 20 q=0.0 size=   94937kB time=00:00:00.04 bitrate=18517206.5kbits/s    
    frame= 2175 fps= 20 q=0.0 size=   95018kB time=00:00:00.04 bitrate=18533094.7kbits/s    
    frame= 2185 fps= 20 q=0.0 size=   95080kB time=00:00:00.04 bitrate=18545122.3kbits/s    
    frame= 2194 fps= 20 q=0.0 size=   95108kB time=00:00:00.04 bitrate=19003114.3kbits/s    
    frame= 2199 fps= 20 q=0.0 Lsize=   95109kB time=00:00:00.04 bitrate=18550844.0kbits/s    
    video:95089kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.021011%
    Quote Quote  
  28. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    If anyone finds that version, (i don't have the link to where I found it) please encode that clip (in post # 106) and tell me if you get the same filesize as I did: 96MB

    Enoding params are below.

    Code:
    C:\tools\ffmpeg\ffmpeg -i "g:\Test Source 2.mkv"  -c:v h264_qsv  -q 18  -y "c:\videos\Test Source 2.mkv"
    
    ffmpeg version N-72805-g913685f Copyright (c) 2000-2015 the FFmpeg developers
      built with gcc 4.9.2 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
      libavutil      54. 27.100 / 54. 27.100
      libavcodec     56. 41.100 / 56. 41.100
      libavformat    56. 36.100 / 56. 36.100
      libavdevice    56.  4.100 / 56.  4.100
      libavfilter     5. 16.101 /  5. 16.101
      libswscale      3.  1.101 /  3.  1.101
      libswresample   1.  2.100 /  1.  2.100
      libpostproc    53.  3.100 / 53.  3.100
    Input #0, matroska,webm, from 'g:\Test Source 2.mkv':
      Metadata:
        encoder         : libebml v1.3.4 + libmatroska v1.4.5
        creation_time   : 2016-10-18 02:42:20
      Duration: 00:01:31.72, start: 0.000000, bitrate: 24955 kb/s
        Stream #0:0: Video: h264 (High), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
        Metadata:
          BPS             : 24952629
          BPS-eng         : 24952629
          DURATION        : 00:01:31.717000000
          DURATION-eng    : 00:01:31.717000000
          NUMBER_OF_FRAMES: 2199
          NUMBER_OF_FRAMES-eng: 2199
          NUMBER_OF_BYTES : 286072545
          NUMBER_OF_BYTES-eng: 286072545
          _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 64bit
          _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 64bit
          _STATISTICS_WRITING_DATE_UTC: 2016-10-18 02:42:20
          _STATISTICS_WRITING_DATE_UTC-eng: 2016-10-18 02:42:20
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Output #0, matroska, to 'c:\videos\Test Source 2.mkv':
      Metadata:
        encoder         : Lavf56.36.100
        Stream #0:0: Video: h264 (h264_qsv) (H264 / 0x34363248), nv12, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 1000 kb/s, 23.98 fps, 1k tbn, 23.98 tbc (default)
        Metadata:
          BPS             : 24952629
          BPS-eng         : 24952629
          DURATION        : 00:01:31.717000000
          DURATION-eng    : 00:01:31.717000000
          NUMBER_OF_FRAMES: 2199
          NUMBER_OF_FRAMES-eng: 2199
          NUMBER_OF_BYTES : 286072545
          NUMBER_OF_BYTES-eng: 286072545
          _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 64bit
          _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 64bit
          _STATISTICS_WRITING_DATE_UTC: 2016-10-18 02:42:20
          _STATISTICS_WRITING_DATE_UTC-eng: 2016-10-18 02:42:20
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
          encoder         : Lavc56.41.100 h264_qsv
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
    Press [q] to stop, [?] for help
    frame=   20 fps=0.0 q=0.0 size=       3kB time=00:00:00.04 bitrate= 666.3kbits/s    
    frame=   39 fps= 38 q=0.0 size=     230kB time=00:00:00.04 bitrate=44948.8kbits/s    
    frame=   56 fps= 36 q=0.0 size=    1208kB time=00:00:00.04 bitrate=235628.2kbits/s    
    frame=   75 fps= 36 q=0.0 size=    2220kB time=00:00:00.04 bitrate=433006.5kbits/s    
    frame=   94 fps= 37 q=0.0 size=    3250kB time=00:00:00.04 bitrate=649379.1kbits/s    
    . 
    . 
    . 
    frame= 2135 fps= 38 q=0.0 size=   95474kB time=00:00:00.04 bitrate=18622037.1kbits/s    
    frame= 2154 fps= 38 q=0.0 size=   95853kB time=00:00:00.04 bitrate=18695844.0kbits/s    
    frame= 2172 fps= 38 q=0.0 size=   96071kB time=00:00:00.04 bitrate=19195482.3kbits/s    
    frame= 2189 fps= 38 q=0.0 size=   96178kB time=00:00:00.04 bitrate=19216856.8kbits/s    
    frame= 2199 fps= 38 q=0.0 Lsize=   96190kB time=00:00:00.04 bitrate=18761562.7kbits/s    
    video:96169kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.021565%
    Quote Quote  
  29. yes qsv is working in that one . You can tell because stream mapping says h264_qsv instead of libx264

    Code:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
    Quote Quote  
  30. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    great. i get about 40 fps for that 1080p but it was about the same for the 720x480p i did also. This ffmpeg version encodes to a large file. i'm not sure i am using the correct encoding parameters, that's why i asked earlier if you know some that I could try because for that same clip, Epaminaidos filesize was 24mb (in that thread i mentioned in post # 106). its a huge difference to my 96MB. increasing -q to a higher value only made the quality worse. so if there is anything i can do to enhance it and bring down the filesize as Epaminaidos, than, that would be great. well, let me get to bed. tomorrow is another day. Thanks for your assistance.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!