#7526: VAAPI HEVC Encoder Bitrate parameter no longer works in Master compared to 4.0.x -------------------------------------+------------------------------------- Reporter: jlsantiago0 | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: vaapi | Resolution: regression | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+-------------------------------------
Comment (by FuweiTang): This issue can't be reproduced on git-master with the latest code: {{{ root@tangfw-WHL:/home/tangfw/workspace/video/build/temp# ffmpeg -vaapi_device /dev/dri/renderD128 -s:v 1920x1080 -i /root/media/encoderbitstreams/1080p_blue_sky.yuv -vf 'format=nv12,hwupload' -c:v hevc_vaapi -b:v 2M -g 30 -bf 2 -y test-vaapi- 2m.hevc ffmpeg version N-92558-ge695b0beba Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: --enable-vaapi --prefix=/opt/X11R7/iHD/ffmpeg_mainline --enable-nonfree --enable-shared --enable-libmfx --enable-gpl --enable- libx264 --enable-libx265 libavutil 56. 24.101 / 56. 24.101 libavcodec 58. 40.100 / 58. 40.100 libavformat 58. 23.101 / 58. 23.101 libavdevice 58. 6.100 / 58. 6.100 libavfilter 7. 46.101 / 7. 46.101 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100 [rawvideo @ 0x5612f61490c0] Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from '/root/media/encoderbitstreams/1080p_blue_sky.yuv': Duration: 00:00:08.68, start: 0.000000, bitrate: 622080 kb/s Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1080, 622080 kb/s, 25 tbr, 25 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> hevc (hevc_vaapi)) Press [q] to stop, [?] for help Output #0, hevc, to 'test-vaapi-2m.hevc': Metadata: encoder : Lavf58.23.101 Stream #0:0: Video: hevc (hevc_vaapi) (Main), vaapi_vld, 1920x1080, q=-1--1, 2000 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc58.40.100 hevc_vaapi frame= 217 fps= 81 q=-0.0 Lsize= 2190kB time=00:00:08.64 bitrate=2076.1kbits/s speed=3.24x video:2190kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000% root@tangfw-WHL:/home/tangfw/workspace/video/build/temp# ffmpeg -vaapi_device /dev/dri/renderD128 -s:v 1920x1080 -i /root/media/encoderbitstreams/1080p_blue_sky.yuv -vf 'format=nv12,hwupload' -c:v hevc_vaapi -b:v 4M -g 30 -bf 2 -y test-vaapi- 4m.hevc ffmpeg version N-92558-ge695b0beba Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: --enable-vaapi --prefix=/opt/X11R7/iHD/ffmpeg_mainline --enable-nonfree --enable-shared --enable-libmfx --enable-gpl --enable- libx264 --enable-libx265 libavutil 56. 24.101 / 56. 24.101 libavcodec 58. 40.100 / 58. 40.100 libavformat 58. 23.101 / 58. 23.101 libavdevice 58. 6.100 / 58. 6.100 libavfilter 7. 46.101 / 7. 46.101 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100 [rawvideo @ 0x55fb3d0760c0] Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from '/root/media/encoderbitstreams/1080p_blue_sky.yuv': Duration: 00:00:08.68, start: 0.000000, bitrate: 622080 kb/s Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1080, 622080 kb/s, 25 tbr, 25 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> hevc (hevc_vaapi)) Press [q] to stop, [?] for help Output #0, hevc, to 'test-vaapi-4m.hevc': Metadata: encoder : Lavf58.23.101 Stream #0:0: Video: hevc (hevc_vaapi) (Main), vaapi_vld, 1920x1080, q=-1--1, 4000 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc58.40.100 hevc_vaapi frame= 217 fps= 79 q=-0.0 Lsize= 4390kB time=00:00:08.64 bitrate=4162.4kbits/s speed=3.14x video:4390kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000% root@tangfw-WHL:/home/tangfw/workspace/video/build/temp# ls -al total 6592 drwxr-xr-x 2 root root 4096 11月 30 13:10 . drwxr-xr-x 39 tangfw tangfw 4096 11月 30 13:08 .. -rw-r--r-- 1 root root 2242181 11月 30 13:10 test-vaapi-2m.hevc -rw-r--r-- 1 root root 4495439 11月 30 13:10 test-vaapi-4m.hevc }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/7526#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://ffmpeg.org/mailman/listinfo/ffmpeg-trac