[FFmpeg-user] doubt with hardware acceleration

Leonardo lsbplsb at yahoo.com
Wed Jul 1 01:18:33 EEST 2020


Hello,

I'm trying to speed up conversion using hardware acceleration and the improvement is amazing but there a kind of "warning" when using ffmpeg that I would like to "remove".


Command and output:


$ ffmpeg -vaapi_device /dev/dri/renderD128 -i test.mp4 -vf 'hwupload,scale_vaapi=w=1280:h=720:format=nv12' -c:v h264_vaapi -qp 18 test_hw.mp4ffmpeg version N-98341-gcca982ee01 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --toolchain=hardened --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 55.100 / 56. 55.100
  libavcodec     58. 93.100 / 58. 93.100
  libavformat    58. 47.100 / 58. 47.100
  libavdevice    58. 11.100 / 58. 11.100
  libavfilter     7. 86.100 /  7. 86.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.47.100
  Duration: 00:00:20.73, start: 0.000000, bitrate: 963 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1366x768, 762 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_vaapi))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
Duplicate formats in ff_merge_formats detected
Output #0, mp4, to 'test_hw.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.47.100
    Stream #0:0(und): Video: h264 (h264_vaapi) (High) (avc1 / 0x31637661), vaapi_vld, 1280x720, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc58.93.100 h264_vaapi
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      encoder         : Lavc58.93.100 aac
frame=   76 fps=0.0 q=-0.0 size=     256kB time=00:00:02.62 bitrate= 799.4kbits/frame=  159 fps=159 q=-0.0 size=     256kB time=00:00:05.38 bitrate= 389.4kbits/frame=  241 fps=160 q=-0.0 size=     512kB time=00:00:08.12 bitrate= 516.1kbits/frame=  318 fps=158 q=-0.0 size=     768kB time=00:00:10.68 bitrate= 589.1kbits/frame=  399 fps=159 q=-0.0 size=    1024kB time=00:00:13.39 bitrate= 626.1kbits/frame=  482 fps=160 q=-0.0 size=    1024kB time=00:00:16.16 bitrate= 519.1kbits/frame=  563 fps=160 q=-0.0 size=    1536kB time=00:00:18.85 bitrate= 667.4kbits/frame=  622 fps=159 q=-0.0 Lsize=    2365kB time=00:00:20.66 bitrate= 937.6kbits/s speed=5.29x    
video:2016kB audio:324kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.062382%
[aac @ 0x55e29ed14e00] Qavg: 223.224


The "warning" is the line

Duplicate formats in ff_merge_formats detected

I could not find any information about the duplication.

Any tips?

Kind regards,
Leonardo


More information about the ffmpeg-user mailing list