[FFmpeg-trac] #8393(undetermined:new): -stream_loop option works neither with QSV, nor VA-API

FFmpeg trac at avcodec.org
Fri Nov 22 14:45:43 EET 2019


#8393: -stream_loop option works neither with QSV, nor VA-API
-------------------------------------+-------------------------------------
             Reporter:  eero-t       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 "-stream_loop" option works with libx264, but neither with with QSV or VA-
 API.

 Test-case:
 1. Get e.g. quicktime/AVC "trailer_iphone.m4v" trailer from here:
 ​https://peach.blender.org/trailer-page/
 2. Loop that to output with libx264:
 {{{
 $ ffmpeg -stream_loop 2 -y -i trailer_iphone.m4v -c:v libx264  output.h264
 ...
 frame= 3684 fps=711 q=-1.0 Lsize=    2941kB time=00:02:27.28 bitrate=
 163.6kbits/s dup=1254 drop=0 speed=28.4x
 video:2941kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.000000%
 }}}
 3. Loop that to output with VA-API:
 {{{
 $ ffmpeg -stream_loop 2 -y -hwaccel vaapi -vaapi_device
 /dev/dri/renderD128 -hwaccel_output_format vaapi -i trailer_iphone.m4v
 -c:v h264_vaapi output.h264
 ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
 <... after ~800 frames, when video should loop ...>
 Impossible to convert between the formats supported by the filter
 'Parsed_null_0' and the filter 'auto_scaler_0'
 Error reinitializing filters!
 Failed to inject frame into filter network: Function not implemented
 Error while processing the decoded data for stream #0:1
 Conversion failed!
 }}}
 4. Loop that to output with QSV:
 {{{
 $ ffmpeg -stream_loop 2 -y -hwaccel qsv -qsv_device /dev/dri/renderD128
 -c:v h264_qsv -i trailer_iphone.m4v -c:v h264_qsv output.h264
 <... after ~800 frames, when video should loop ...>
 Impossible to convert between the formats supported by the filter
 'Parsed_null_0' and the filter 'auto_scaler_0'
 Error reinitializing filters!
 Failed to inject frame into filter network: Function not implemented
 Error while processing the decoded data for stream #0:1
 Conversion failed!
 }}}

 Same issue regardless of whether input video is in container or raw video
 like .h264.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8393>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list