NVDecodeD3d11 sample code option question....

Hi

I’d like to see a video of 30 fps encoded in the FPS to match the FPS.
I wonder if I should put you in here somewhere.

The options I used to use - repeatframe and - vsync, when I used to use - and - -, I found that there was a doubling of the number of frames.

I’d like to see 150 frames of encoded fps encoded in 5 seconds, but can you figure out the possibility?
Thank you very much.


Command Line Arguments:
argv[0] = C:\Users\VML_\Desktop\Video_Codec_SDK_7.1.9\Samples\NvDecodeD3D11…/bin/x64/Debug/NvDecodeD3D11.exe
argv[1] = -i=traffic
argv[2] = -o=3.yuv
[NVDecodeD3D11]: input file: [traffic]
[NVDecodeD3D11]: output file: [3.yuv]
VideoCodec : H.265/HEVC
Frame rate : 30/1fps ~ 30fps
Sequence format : Progressive
Coded frame size: [2560, 1600]
Display area : [0, 0, 2560, 1600]
Chroma format : 4:2:0
Bitrate : unknown
Aspect ratio : 2560:1600

Frame Rate Playback Speed = 60 fps

Device 0: <GeForce GTX 1060 6GB >, Compute SM 6.1 detected
-> GPU 0: < GeForce GTX 1060 6GB > driver mode is: WDDM

Display Device: “NVIDIA GeForce GTX 1060 6GB” supports Direct3D11
MapSMtoCores for SM 6.1 is undefined. Default to use 128 Cores/SM
Using GPU Device 0: GeForce GTX 1060 6GB has SM 6.1 compute capability
Total amount of global memory: 6144.0000 MB

modInitCTX<NV12ToARGB_drvapi_x64.ptx > initialized OK
modGetCudaFunction< CUDA file: NV12ToARGB_drvapi_x64.ptx >
CUDA Kernel Function (0xfe95fc10) = < NV12ToARGB_drvapi >

modGetCudaFunction< CUDA file: NV12ToARGB_drvapi_x64.ptx >
CUDA Kernel Function (0xfe95ae80) = < Passthru_drvapi >
VideoDecoder::cudaVideoCreateFlags = <4>Use CUVID decoder

initCudaVideo()
CUDA Streams (Enabled) <g_ReadbackSID = 000001F98DEC8D30>
CUDA Streams (Enabled) <g_KernelSID = 000001F98DEC8B30>
ImageDX::CUcontext = fd7ad880
ImageDX::CUdevice = 00000000
++++++++++++++++[NVDecodeD3D11] - [Frame: 0016, 120.6 fps, time: 8.29 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0032, 119.6 fps, time: 8.36 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0048, 135.4 fps, time: 7.39 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0064, 134.9 fps, time: 7.41 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0080, 138.9 fps, time: 7.20 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0096, 136.4 fps, time: 7.33 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0112, 138.0 fps, time: 7.25 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0128, 138.6 fps, time: 7.22 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0144, 139.2 fps, time: 7.19 (ms) ]
++++++
[NVDecodeD3D11] statistics
Video Length (hh:mm:ss.msec) = 00:00:01.136
Frames Presented (inc repeats) = 149
Average Present Rate (fps) = 131.12
Frames Decoded (hardware) = 150
Average Rate of Decoding (fps) = 132.00


<Result when option -vsync ON>
Command Line Arguments:
argv[0] = C:\Users\VML_\Desktop\Video_Codec_SDK_7.1.9\Samples\NvDecodeD3D11…/bin/x64/Debug/NvDecodeD3D11.exe
argv[1] = -i=traffic
argv[2] = -o=3.yuv
argv[3] = -vsync
[NVDecodeD3D11]: input file: [traffic]
[NVDecodeD3D11]: output file: [3.yuv]
VideoCodec : H.265/HEVC
Frame rate : 30/1fps ~ 30fps
Sequence format : Progressive
Coded frame size: [2560, 1600]
Display area : [0, 0, 2560, 1600]
Chroma format : 4:2:0
Bitrate : unknown
Aspect ratio : 2560:1600

Frame Rate Playback Speed = 60 fps

Device 0: <GeForce GTX 1060 6GB >, Compute SM 6.1 detected
-> GPU 0: < GeForce GTX 1060 6GB > driver mode is: WDDM

Display Device: “NVIDIA GeForce GTX 1060 6GB” supports Direct3D11
MapSMtoCores for SM 6.1 is undefined. Default to use 128 Cores/SM
Using GPU Device 0: GeForce GTX 1060 6GB has SM 6.1 compute capability
Total amount of global memory: 6144.0000 MB

modInitCTX<NV12ToARGB_drvapi_x64.ptx > initialized OK
modGetCudaFunction< CUDA file: NV12ToARGB_drvapi_x64.ptx >
CUDA Kernel Function (0x6d468fc0) = < NV12ToARGB_drvapi >

modGetCudaFunction< CUDA file: NV12ToARGB_drvapi_x64.ptx >
CUDA Kernel Function (0x6d467d80) = < Passthru_drvapi >
VideoDecoder::cudaVideoCreateFlags = <4>Use CUVID decoder

initCudaVideo()
CUDA Streams (Enabled) <g_ReadbackSID = 000001EE6D4C8F80>
CUDA Streams (Enabled) <g_KernelSID = 000001EE6D4C8F90>
ImageDX::CUcontext = 5ce82690
ImageDX::CUdevice = 00000000
++++++++++++++++[NVDecodeD3D11] - [Frame: 0016, 56.9 fps, time: 17.57 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0032, 60.2 fps, time: 16.62 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0048, 60.1 fps, time: 16.64 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0064, 60.1 fps, time: 16.64 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0080, 60.1 fps, time: 16.63 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0096, 60.1 fps, time: 16.63 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0112, 60.1 fps, time: 16.64 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0128, 60.1 fps, time: 16.64 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0144, 60.1 fps, time: 16.64 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0160, 60.2 fps, time: 16.62 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0176, 60.1 fps, time: 16.65 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0192, 60.1 fps, time: 16.64 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0208, 60.1 fps, time: 16.63 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0224, 60.2 fps, time: 16.62 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0240, 60.2 fps, time: 16.62 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0256, 29.1 fps, time: 34.37 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0272, 31.0 fps, time: 32.26 (ms) ]
++++++++++++++++[NVDecodeD3D11] - [Frame: 0288, 34.2 fps, time: 29.22 (ms) ]
++++++++++++
[NVDecodeD3D11] statist
ics
Video Length (hh:mm:ss.msec) = 00:00:05.905
Frames Presented (inc repeats) = 298
Average Present Rate (fps) = 50.46
Frames Decoded (hardware) = 300
Average Rate of Decoding (fps) = 50.80