Also, can you provide the output of vainfo? On 27 July 2018 at 09:27, Yang Zhang <[email protected]> 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 <[email protected]> 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 > > [email protected] > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > To unsubscribe, visit link above, or email > > [email protected] with subject "unsubscribe". > _______________________________________________ > ffmpeg-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > [email protected] with subject "unsubscribe". > _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
