Opened 11 months ago

Last modified 10 months ago

#10410 new enhancement

h264_nvenc passlogfiles are zero

Reported by: maclin Owned by:
Priority: normal Component: ffmpeg
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

ffmpeg -i test-input.mp4 -an -pass 1 -passlogfile passlog_test -codec:v h264_nvenc -profile:v high -b:v 3800k -minrate 2400k -maxrate 4500k -bufsize '2*3800k' -qmin 0 -qmax 40 -qdiff 4 -s 1280x720 -aspect 16:9 -pix_fmt yuv420p -movflags +faststart -f rawvideo  -y /dev/null

ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-cuda --enable-cuvid --enable-fontconfig --enable-gpl --enable-libaom --enable-libaribb24 --enable-libass --enable-libbluray --enable-libfdk_aac --enable-libfreetype --enable-libkvazaar --enable-libmp3lame --enable-libnpp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsrt --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-libzmq --enable-nonfree --enable-nvenc --enable-openssl --enable-postproc --enable-shared --enable-small --enable-version3 --extra-cflags='-I/opt/ffmpeg/include -I/opt/ffmpeg/include/ffnvcodec -I/usr/local/cuda/include/' --extra-ldflags='-L/opt/ffmpeg/lib -L/usr/local/cuda/lib64 -L/usr/local/cuda/lib32/' --extra-libs=-ldl --extra-libs=-lpthread --prefix=/opt/ffmpeg
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100

Passlogfile and mbtree files are zero, how to make it be non-zero?

For example when used libx264 - files appears and ready to be used for second pass?

Change History (2)

comment:1 by maclin, 11 months ago

Summary: h264_nvenc passlogfile are zeroh264_nvenc passlogfiles are zero

comment:2 by Robert Horstmann, 10 months ago

Just a note, NVEnc, as far as I know, does not support "2 pass encoding" like x264 does.

For NVEnc, it refers to a mechanism for "per frame pre-analysis".
There are no "pass 1" and "pass 2" steps, and there is no statistics file.

https://docs.nvidia.com/video-technologies/video-codec-sdk/12.1/nvenc-video-encoder-api-prog-guide/index.html#multi-pass-frame-phencoding

Note: See TracTickets for help on using tickets.