[FFmpeg-user] vaapi hardware encoding gives me no video anymore
Bernd Butscheidt
bbutscheidt at yahoo.de
Thu May 13 15:28:07 EEST 2021
Hello,
I quite enjoyed using hardware encoding with ffmpeg and my AMD Ryzen 5 2400G.
Today I did what I assumed I always did and despite of seeing no error messages from ffmpeg I get a file with sound but with no video (mpv or vlc).
The encoding:
====================
/mnt/Data_bb/sda8/makepkg/ffmpeg-own/ffmpeg-git/ffmpeg/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device /dev/dri/renderD128 -init_hw_device vaapi=vaapi0:
/dev/dri/renderD128 -filter_hw_device vaapi0 -i test.mp4 -c:v hevc_vaapi -compression_level 1 -rc_mode 1 -qp 25 -c:a copy -map 0:v -map 0:a test_ouput_hw_x265.mkv
ffmpeg version N-102519-gdcb285d2b7 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.2.0 (GCC)
configuration:
libavutil 57. 0.100 / 57. 0.100
libavcodec 59. 1.100 / 59. 1.100
libavformat 59. 2.100 / 59. 2.100
libavdevice 59. 0.100 / 59. 0.100
libavfilter 8. 0.101 / 8. 0.101
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.76.100
Duration: 00:00:30.04, start: 0.000000, bitrate: 8109 kb/s
Stream #0:0(deu): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 7980 kb/s, 50 fps, 50 tbr, 12800 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1(deu): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 124 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> hevc (hevc_vaapi))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[hevc_vaapi @ 0x5563da961dc0] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
[hevc_vaapi @ 0x5563da961dc0] Quality attribute is not supported: will use default quality level.
Output #0, matroska, to 'test_ouput_hw_x265.mkv':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf59.2.100
Stream #0:0(deu): Video: hevc (Main), vaapi(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 50 fps, 1k tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
encoder : Lavc59.1.100 hevc_vaapi
Stream #0:1(deu): Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, fltp, 124 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
frame= 1501 fps=132 q=-0.0 Lsize= 14171kB time=00:00:30.02 bitrate=3866.9kbits/s speed=2.65x
video:13692kB audio:457kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.153361%
===========================
mpv test_ouput_hw_x265.mkv
.
.
.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #1.
Error while decoding frame!
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #1.
Error while decoding frame!
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #1.
Error while decoding frame!
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #1.
Error while decoding frame!
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #1.
Error while decoding frame!
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #1.
Error while decoding frame!
[ffmpeg/video] hevc: Luma bit depth (8) is different from chroma bit depth (12), this is unsupported.
[ffmpeg/video] hevc: SPS 0 does not exist.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #4.
Error while decoding frame!
.
.
.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #1.
Error while decoding frame!
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #1.
Error while decoding frame!
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #1.
Error while decoding frame!
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #1.
Error while decoding frame!
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #1.
Error while decoding frame!
Error while decoding frame!
Error while decoding frame!
Error while decoding frame!
Error while decoding frame!
Error while decoding frame!
Error while decoding frame!
Error while decoding frame!
AO: [pulse] 48000Hz stereo 2ch float
AV: 00:00:03 / 00:00:30 (13%) A-V: 0.000
Exiting... (Quit)
==========================
More information about the ffmpeg-user
mailing list