I'm encoding video with h264_nvenc, and I would like to disable B-Frames. I'm trying to use -bframes 0 parameter, but I'm not sure if it works, and where exactly put the command.
For now, this is my code:
-probesize 10MB -s 1920x1080 -framerate 30 -i video.h264 -c:v h264_nvenc -preset p7 -tune 4 -rc:v vbr -cq:v 1 -profile:v high -pix_fmt yuv420p -s 1920x1080 -r:v 30 video.h264
Furthermore, should I need to use bframes 0 when I'm already using tune 4 (lossless)?
The original video doesn't have any B-frame.
The FFmpeg option is:
In
libavcodec/nvenc.cit setsframeIntervalP(0- intra-only,1- IPP,2- IBP,3- IBBP etc.):For the older
LosslessHPpreset theframeIntervalPis1(IPP).If you use the new presets as recommended you should set it manually. See the NVENC Preset Migration Guide.