#7030: qsv in ffmpeg
-------------------------------------+-------------------------------------
             Reporter:  palich2000   |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  qsv          |               Blocked By:
  regression                         |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by palich2000):

 {{{
 Linux 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64
 x86_64 x86_64 GNU/Linux
 }}}
 {{{
  [ OK ] Media SDK HW API level:1.19
  [ OK ] Media SDK SW API level:1.19
  [ OK ] OpenCL check:platform:Intel(R) OpenCL GPU OK CPU OK
 }}}

 {{{
 ffmpeg -t 30 -v verbose -i rtmp://xxxxx \
     -c:v h264_qsv -b:v 1000k\
     -strict experimental -acodec aac -ab 64k -ar 44100 \
     -f flv rtmp://127.0.0.1/vip/_77_
 }}}

 {{{
 ffmpeg version N-90198-g7056d06 Copyright (c) 2000-2018 the FFmpeg
 developers
   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)
   configuration: --prefix=/home/palich/ffmpeg-test/ --extra-
 cflags='-I/home/palich/ffmpeg-test//include -Ofast -march=native' --extra-
 ldflags='-L/home/palich/ffmpeg-test//lib -ldl' --enable-avresample
 --enable-static --enable-shared --enable-nonfree --enable-gpl --enable-
 version3 --enable-libx264 --enable-libfdk-aac --enable-librtmp --enable-
 gnutls --enable-libfreetype --enable-filters --enable-postproc --disable-
 doc --enable-libmp3lame --disable-stripping --enable-debug=3 --enable-
 runtime-cpudetect --enable-libmfx
   libavutil      56.  8.100 / 56.  8.100
   libavcodec     58. 13.100 / 58. 13.100
   libavformat    58. 10.100 / 58. 10.100
   libavdevice    58.  2.100 / 58.  2.100
   libavfilter     7. 12.100 /  7. 12.100
   libavresample   4.  0.  0 /  4.  0.  0
   libswscale      5.  0.101 /  5.  0.101
   libswresample   3.  0.101 /  3.  0.101
   libpostproc    55.  0.100 / 55.  0.100
 Routing option strict to both codec and muxer layer
 Parsing...
 Parsed protocol: 0
 Parsed host    : vr0.dpl-streaming.com
 Parsed app     : virtual
 RTMP_Connect1, ... connected, handshaking
 HandShake: Type Answer   : 03
 HandShake: Server Uptime : 134225664
 HandShake: FMS Version   : 0.0.0.0
 HandShake: Handshaking finished....
 RTMP_Connect1, handshaked
 Invoking connect
 HandleServerBW: server BW = 5000000
 HandleClientBW: client BW = 5000000 2
 HandleChangeChunkSize, received: chunk size change to 4096
 RTMP_ClientPacket, received: invoke 190 bytes
 (object begin)
 Property: <Name:           no-name., STRING:    _result>
 Property: <Name:           no-name., NUMBER:    1.00>
 Property: <Name:           no-name., OBJECT>
 (object begin)
 Property: <Name:             fmsVer, STRING:    FMS/3,0,1,123>
 Property: <Name:       capabilities, NUMBER:    31.00>
 (object end)
 Property: <Name:           no-name., OBJECT>
 (object begin)
 Property: <Name:              level, STRING:    status>
 Property: <Name:               code, STRING:
 NetConnection.Connect.Success>
 Property: <Name:        description, STRING:    Connection succeeded.>
 Property: <Name:     objectEncoding, NUMBER:    0.00>
 (object end)
 (object end)
 HandleInvoke, server invoking <_result>
 HandleInvoke, received result for method call <connect>
 sending ctrl. type: 0x0003
 Invoking createStream
 RTMP_ClientPacket, received: invoke 29 bytes
 (object begin)
 Property: <Name:           no-name., STRING:    _result>
 Property: <Name:           no-name., NUMBER:    2.00>
 Property: NULL
 Property: <Name:           no-name., NUMBER:    1.00>
 (object end)
 HandleInvoke, server invoking <_result>
 HandleInvoke, received result for method call <createStream>
 SendPlay, seekTime=0, stopTime=0, sending play: vrm_foot_live
 Invoking play
 sending ctrl. type: 0x0003
 HandleCtrl, received ctrl. type: 0, len: 6
 HandleCtrl, Stream Begin 1
 RTMP_ClientPacket, received: invoke 96 bytes
 (object begin)
 Property: <Name:           no-name., STRING:    onStatus>
 Property: <Name:           no-name., NUMBER:    0.00>
 Property: NULL
 Property: <Name:           no-name., OBJECT>
 (object begin)
 Property: <Name:              level, STRING:    status>
 Property: <Name:               code, STRING:    NetStream.Play.Start>
 Property: <Name:        description, STRING:    Start live>
 (object end)
 (object end)
 HandleInvoke, server invoking <onStatus>
 HandleInvoke, onStatus: NetStream.Play.Start
 RTMP_ClientPacket, received: notify 24 bytes
 (object begin)
 Property: <Name:           no-name., STRING:    |RtmpSampleAccess>
 Property: <Name:           no-name., BOOLEAN:   TRUE>
 Property: <Name:           no-name., BOOLEAN:   TRUE>
 (object end)
 RTMP_ClientPacket, received: invoke 110 bytes
 (object begin)
 Property: <Name:           no-name., STRING:    onStatus>
 Property: <Name:           no-name., NUMBER:    0.00>
 Property: NULL
 Property: <Name:           no-name., OBJECT>
 (object begin)
 Property: <Name:              level, STRING:    status>
 Property: <Name:               code, STRING:
 NetStream.Play.PublishNotify>
 Property: <Name:        description, STRING:    Start publishing>
 (object end)
 (object end)
 HandleInvoke, server invoking <onStatus>
 HandleInvoke, onStatus: NetStream.Play.PublishNotify
 RTMP_ClientPacket, received: notify 387 bytes
 (object begin)
 Property: <Name:           no-name., STRING:    onMetaData>
 Property: <Name:           no-name., OBJECT>
 (object begin)
 Property: <Name:             Server, STRING:    NGINX RTMP
 (github.com/arut/nginx-rtmp-module)>
 Property: <Name:              width, NUMBER:    1280.00>
 Property: <Name:             height, NUMBER:    720.00>
 Property: <Name:       displayWidth, NUMBER:    1280.00>
 Property: <Name:      displayHeight, NUMBER:    720.00>
 Property: <Name:           duration, NUMBER:    0.00>
 Property: <Name:          framerate, NUMBER:    25.00>
 Property: <Name:                fps, NUMBER:    25.00>
 Property: <Name:      videodatarate, NUMBER:    976.00>
 Property: <Name:       videocodecid, NUMBER:    7.00>
 Property: <Name:      audiodatarate, NUMBER:    62.00>
 Property: <Name:       audiocodecid, NUMBER:    10.00>
 Property: <Name:            profile, STRING:    >
 Property: <Name:              level, STRING:    >
 (object end)
 (object end)
 Metadata:
   Server                NGINX RTMP (github.com/arut/nginx-rtmp-module)
   width                 1280.00
   height                720.00
   displayWidth          1280.00
   displayHeight         720.00
   duration              0.00
   framerate             25.00
   fps                   25.00
   videodatarate         976.00
   videocodecid          7.00
   audiodatarate         62.00
   audiocodecid          10.00
 [h264 @ 0x138b040] Reinit context to 1280x720, pix_fmt: yuv420p
 Input #0, live_flv, from 'rtmp://xxxxxxxx':
   Metadata:
     Server          : NGINX RTMP (github.com/arut/nginx-rtmp-module)
     displayWidth    : 1280
     displayHeight   : 720
     fps             : 25
     profile         :
     level           :
   Duration: 00:00:00.00, start: 100110.018000, bitrate: N/A
     Stream #0:0: Video: h264 (High), 1 reference frame,
 yuv420p(progressive, left), 1280x720 [SAR 1:1 DAR 16:9], 999 kb/s, 25 fps,
 25 tbr, 1k tbn, 50 tbc
     Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 63 kb/s
 Parsing...
 Parsed protocol: 0
 Parsed host    : 127.0.0.1
 Parsed app     : vip
 RTMP_Connect1, ... connected, handshaking
 HandShake: Type Answer   : 03
 HandShake: Server Uptime : 134227824
 HandShake: FMS Version   : 0.0.0.0
 HandShake: Handshaking finished....
 RTMP_Connect1, handshaked
 Invoking connect
 HandleServerBW: server BW = 5000000
 HandleClientBW: client BW = 5000000 2
 HandleChangeChunkSize, received: chunk size change to 1024
 RTMP_ClientPacket, received: invoke 190 bytes
 (object begin)
 Property: <Name:           no-name., STRING:    _result>
 Property: <Name:           no-name., NUMBER:    1.00>
 Property: <Name:           no-name., OBJECT>
 (object begin)
 Property: <Name:             fmsVer, STRING:    FMS/3,0,1,123>
 Property: <Name:       capabilities, NUMBER:    31.00>
 (object end)
 Property: <Name:           no-name., OBJECT>
 (object begin)
 Property: <Name:              level, STRING:    status>
 Property: <Name:               code, STRING:
 NetConnection.Connect.Success>
 Property: <Name:        description, STRING:    Connection succeeded.>
 Property: <Name:     objectEncoding, NUMBER:    0.00>
 (object end)
 (object end)
 HandleInvoke, server invoking <_result>
 HandleInvoke, received result for method call <connect>
 Invoking releaseStream
 Invoking FCPublish
 Invoking createStream
 RTMP_ClientPacket, received: invoke 29 bytes
 (object begin)
 Property: <Name:           no-name., STRING:    _result>
 Property: <Name:           no-name., NUMBER:    4.00>
 Property: NULL
 Property: <Name:           no-name., NUMBER:    1.00>
 (object end)
 HandleInvoke, server invoking <_result>
 HandleInvoke, received result for method call <createStream>
 Invoking publish
 RTMP_ClientPacket, received: invoke 105 bytes
 (object begin)
 Property: <Name:           no-name., STRING:    onStatus>
 Property: <Name:           no-name., NUMBER:    0.00>
 Property: NULL
 Property: <Name:           no-name., OBJECT>
 (object begin)
 Property: <Name:              level, STRING:    status>
 Property: <Name:               code, STRING:    NetStream.Publish.Start>
 Property: <Name:        description, STRING:    Start publishing>
 (object end)
 (object end)
 HandleInvoke, server invoking <onStatus>
 HandleInvoke, onStatus: NetStream.Publish.Start
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
   Stream #0:1 -> #0:1 (aac (native) -> aac (native))
 Press [q] to stop, [?] for help
 [graph_1_in_0_1 @ 0x168c680] tb:1/44100 samplefmt:fltp samplerate:44100
 chlayout:0x3
 [h264 @ 0x14b4f40] Reinit context to 1280x720, pix_fmt: yuv420p
 [graph 0 input from stream 0:0 @ 0x139b400] w:1280 h:720 pixfmt:yuv420p
 tb:1/1000 fr:25/1 sar:1/1 sws_param:flags=2
 [auto_scaler_0 @ 0x13f6600] w:iw h:ih flags:'bicubic' interl:0
 [format @ 0x148d5c0] auto-inserting filter 'auto_scaler_0' between the
 filter 'Parsed_null_0' and the filter 'format'
 [auto_scaler_0 @ 0x13f6600] w:1280 h:720 fmt:yuv420p sar:1/1 -> w:1280
 h:720 fmt:nv12 sar:1/1 flags:0x4
 [h264_qsv @ 0x13903c0] Initialized an internal MFX session using hardware
 accelerated implementation
 [h264_qsv @ 0x13903c0] Using the VBR with lookahead (LA) ratecontrol
 method
 [h264_qsv @ 0x13903c0] Selected ratecontrol mode is not supported by the
 QSV runtime. Choose a different mode.
 Error initializing output stream 0:0 -- Error while opening encoder for
 output stream #0:0 - maybe incorrect parameters such as bit_rate, rate,
 width or height
 Invoking FCUnpublish
 Invoking deleteStream
 [aac @ 0x14854c0] Qavg: 62580.895
 [aac @ 0x14854c0] 2 frames left in the queue on closing
 Invoking deleteStream
 Conversion failed!

 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7030#comment:17>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac

Reply via email to