[FFmpeg-user] ffmpeg 4.0 fails to transcoding one 4k clip

Yang Zhang yzfedora at gmail.com
Sat Jul 28 02:05:24 EEST 2018


[test at localhost ~]$ uname -r
4.4.0-quicksync
[test at localhost ~]$ vainfo
libva info: VA-API version 0.99.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.99 (libva 1.67.0.pre1)
vainfo: Driver version: 16.5.2.64009-ubit
vainfo: Supported profile and entrypoints
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: <unknown entrypoint>
      VAProfileH264ConstrainedBaseline: <unknown entrypoint>
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : <unknown entrypoint>
      VAProfileH264Main               : <unknown entrypoint>
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : <unknown entrypoint>
      VAProfileH264High               : <unknown entrypoint>
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : <unknown entrypoint>
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileVP9Profile0            : <unknown entrypoint>
      <unknown profile>               : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : <unknown entrypoint>


On Sat, Jul 28, 2018 at 4:32 AM, Dennis Mungai <dmngaie at gmail.com> wrote:

> Also, can you provide the output of vainfo?
>
> On 27 July 2018 at 09:27, Yang Zhang <yzfedora at gmail.com> wrote:
>
> > It will cause you get the "partial HW acceleration" error message
> > always. there is a patch fix the problem I remember, but I couldn't
> > find the patch in the latest FFmpeg
> >
> > On 7/27/18, qw <applemax82 at 163.com> wrote:
> > > Hi,
> > >
> > >
> > > I use the following command, which reports error:
> > >
> > >
> > > ffmpeg -nostdin -y -hwaccel qsv -c:v h264_qsv -i src_AVC_4K.mp4 -b:a
> > 80000
> > > -ar 44100 -c:v h264_qsv -g 300 -profile:v high -preset veryfast -c:a
> > > libfdk_aac -max_muxing_queue_size 4000 -b:v 17418000 -movflags
> +faststart
> > > -strict -3 -vsync passthrough -f mp4 dst_AVC_4K.mp4
> > >
> > >
> > > ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
> > >   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-16)
> > >   configuration: --enable-version3 --enable-asm --enable-x86asm
> > > --enable-avfilter --disable-static --enable-shared --enable-gpl
> > > --enable-nonfree --prefix=/usr/local/ --enable-libvidstab
> --enable-libass
> > > --enable-libfreetype --extra-libs=-lfreetype --enable-libtesseract
> > > --enable-libfdk_aac --enable-libmp3lame --enable-libx264
> > > --enable-libopenjpeg --enable-libwebp --enable-libx265
> --enable-libvorbis
> > > --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
> > > --enable-stripping --enable-libmfx
> > >   libavutil      56. 14.100 / 56. 14.100
> > >   libavcodec     58. 18.100 / 58. 18.100
> > >   libavformat    58. 12.100 / 58. 12.100
> > >   libavdevice    58.  3.100 / 58.  3.100
> > >   libavfilter     7. 16.100 /  7. 16.100
> > >   libswscale      5.  1.100 /  5.  1.100
> > >   libswresample   3.  1.100 /  3.  1.100
> > >   libpostproc    55.  1.100 / 55.  1.100
> > > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'src_AVC_4K.mp4':
> > >   Metadata:
> > >     major_brand     : isom
> > >     minor_version   : 512
> > >     compatible_brands: isomiso2avc1mp41
> > >     encoder         : Lavf58.12.100
> > >   Duration: 00:00:03.05, start: 0.000000, bitrate: 42590 kb/s
> > >     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
> > > 3840x2160 [SAR 1:1 DAR 16:9], 43119 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,
> > > fltp, 82 kb/s (default)
> > >     Metadata:
> > >       handler_name    : SoundHandler
> > > Stream mapping:
> > >   Stream #0:0 -> #0:0 (h264 (h264_qsv) -> h264 (h264_qsv))
> > >   Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac))
> > > [h264_qsv @ 0x22b8480] Encoder will work with partial HW
> accelerationte=
> > > -0.0kbits/s speed=N/A
> > > [h264_qsv @ 0x22b8480] Error initializing the encoder: invalid video
> > > parameters (-15)
> > > 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
> > > [libfdk_aac @ 0x23b12c0] 2 frames left in the queue on closing
> > > Conversion failed!
> > >
> > >
> > > src_AVC_4K.mp4 can be downloaded via the link url:
> > > https://drive.google.com/file/d/15X7RYIEEvInN8y1gqrZax3-
> > ZGjpcJQ_C/view?usp=sharing
> > >
> > >
> > > Is it a ffmpeg bug?
> > >
> > >
> > > Thanks!
> > >
> > >
> > > Regards
> > >
> > >
> > > Andrew
> > > _______________________________________________
> > > ffmpeg-user mailing list
> > > ffmpeg-user at ffmpeg.org
> > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > >
> > > To unsubscribe, visit link above, or email
> > > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> >
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list