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

FFmpeg trac at avcodec.org
Fri Nov 22 16:18:05 EET 2019


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

Comment (by eero-t):

 Replying to [comment:1 cehoyos]:
 > Please test current FFmpeg git head

 I was testing HW acceleration both with Git head (iHD) and old Ubuntu LTS
 version (i965). Libx264 testing I did only with Ubuntu version, as I'm not
 building my own FFmpeg versions with CPU encoding.

 Specifying looping with output filtering works with libx264, but also
 fails with HW acceleration:
 {{{-filter_complex loop=loop=<count>:start=<frame>:size=<frames>}}}

 As does using: {{{-lavfi "movie=...."}}}

 Using this as input works with HW accelerated transcoding though:
 {{{
 $ cat list.txt
 ffconcat version 1.0
 file trailer_iphone.m4v
 file trailer_iphone.m4v
 file trailer_iphone.m4v
 }}}

 As does doing the decoding with CPU and uploading it to GPU for encoding:
 {{{
 ffmpeg -stream_loop 8 -y -hwaccel vaapi -vaapi_device /dev/dri/renderD128
 -i trailer_iphone.m4v -vf hwupload -c:v h264_vaapi  output.h264
 }}}

 ''' => Looping of HW decoding is broken'''


 > provide the command line you tested together with the complete, uncut
 console output to make this a valid ticket.

 Here's full FFmpeg Git version output from the failure:
 {{{
 $ 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 N-95843-g55ca21d54e Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
   configuration: --enable-libmfx --enable-vaapi --enable-sdl2 --disable-
 libx265 --disable-libx264 --disable-libvpx --enable-libvorbis --enable-
 libopus --disable-libmp3lame --disable-libass --disable-sndio --enable-
 libfreetype --enable-gpl --disable-doc
   libavutil      56. 36.100 / 56. 36.100
   libavcodec     58. 62.100 / 58. 62.100
   libavformat    58. 35.100 / 58. 35.100
   libavdevice    58.  9.101 / 58.  9.101
   libavfilter     7. 66.100 /  7. 66.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'trailer_iphone.m4v':
   Metadata:
     major_brand     : M4VP
     minor_version   : 1
     compatible_brands: M4VPM4A mp42isom
     creation_time   : 2008-03-18T09:48:34.000000Z
   Duration: 00:00:33.02, start: 0.000000, bitrate: 942 kb/s
     Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
 stereo, fltp, 127 kb/s (default)
     Metadata:
       creation_time   : 2008-03-18T09:48:34.000000Z
       handler_name    : Apple Sound Media Handler
     Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 /
 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 480x270, 824 kb/s, 25
 fps, 25 tbr, 600 tbn, 1200 tbc (default)
     Metadata:
       creation_time   : 2008-03-18T09:48:34.000000Z
       handler_name    : Apple Video Media Handler
 Stream mapping:
   Stream #0:1 -> #0:0 (h264 (native) -> h264 (h264_vaapi))
 Press [q] to stop, [?] for help
 [h264_vaapi @ 0x5596c3804440] No quality level set; using default (20).
 Output #0, h264, to 'output.h264':
   Metadata:
     major_brand     : M4VP
     minor_version   : 1
     compatible_brands: M4VPM4A mp42isom
     encoder         : Lavf58.35.100
     Stream #0:0(eng): Video: h264 (h264_vaapi) (High), vaapi_vld, 480x270,
 q=-1--1, 25 fps, 25 tbn, 25 tbc (default)
     Metadata:
       creation_time   : 2008-03-18T09:48:34.000000Z
       handler_name    : Apple Video Media Handler
       encoder         : Lavc58.62.100 h264_vaapi
 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!
 }}}

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


More information about the FFmpeg-trac mailing list