Problem adjusting bitrate during H265 encoding

I am running a H265 encoder based on the NvV4l classes in /usr/src/jetson_multimedia. The code starts an encoder, and then occasionally changes the requested bandwidth.

It seems that something goes wrong, and the encoder output does not match the requested bandwidth. I am having trouble precisely identifying what is happening, but my impression is that after X bandwidth updates, further updates no longer have any effect.

The setBitrate command does not return any error.

I’m attaching a DEBUG level output from the wrapper classes.

To further make things complicated, the precise same code (our, not only the classes) is used in another project, seemingly in the precise same way, without any problem.

Debug logs follow. In this run, actual encoding bitrate was around 900kbps:

[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:376) <enc0> :Capture Plane:VIDIOC_S_FMT at capture plane successful
NvMMLiteOpen : Block : BlockType = 8 
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 8 
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:376) <enc0> :Output Plane:VIDIOC_S_FMT at capture plane successful
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:191) <enc0> :Setting encoder bitrate to 512000: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:264) <enc0> :Setting encoder profile to 0: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:299) <enc0> :Setting encoder level to 4294967295: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:350) <enc0> :Setting encoder rate control mode to 1: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:419) <enc0> :Setting encoder IDR interval to 256: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:396) <enc0> :Setting encoder I-frame interval to 30: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:594) <enc0> :Output Plane:Successfully set stream parameters
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:167) <enc0> :Setting framerate to 30/1: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:677) <enc0> :Setting encoder virtual buffer size to 415000: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:373) <enc0> :Enabling Maximum Performance : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:350) <enc0> :Setting encoder rate control mode to 1: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:419) <enc0> :Setting encoder IDR interval to 4294967295: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:771) <enc0> :Setting encoder SPSPPSatIDR to 1: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:396) <enc0> :Setting encoder I-frame interval to 4294967295: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:594) <enc0> :Output Plane:Successfully set stream parameters
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:167) <enc0> :Setting framerate to 25/1: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:511) <enc0> :Setting encoder HW Preset type to 1: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:748) <enc0> :Setting encoder number of B frames to 0: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:373) <enc0> :Enabling Maximum Performance : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:522) <enc0> :Output Plane:Reqbuf returned 4 buffers
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:522) <enc0> :Capture Plane:Reqbuf returned 4 buffers
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:627) <enc0> :Capture Plane:QueryBuf for 0th buffer successful
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:665) <enc0> :Capture Plane:ExportBuf successful for Buffer 0, Plane 0, fd = 1193
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvBuffer.cpp:175) <Buffer> Mapped buffer 0, plane 0 to 
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:627) <enc0> :Capture Plane:QueryBuf for 1th buffer successful
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:665) <enc0> :Capture Plane:ExportBuf successful for Buffer 1, Plane 0, fd = 1194
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvBuffer.cpp:175) <Buffer> Mapped buffer 1, plane 0 to 
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:627) <enc0> :Capture Plane:QueryBuf for 2th buffer successful
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:665) <enc0> :Capture Plane:ExportBuf successful for Buffer 2, Plane 0, fd = 1195
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvBuffer.cpp:175) <Buffer> Mapped buffer 2, plane 0 to 
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:627) <enc0> :Capture Plane:QueryBuf for 3th buffer successful
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:665) <enc0> :Capture Plane:ExportBuf successful for Buffer 3, Plane 0, fd = 1196
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvBuffer.cpp:175) <Buffer> Mapped buffer 3, plane 0 to 
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:556) <enc0> :Output Plane:STREAMON successful
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:556) <enc0> :Capture Plane:STREAMON successful
NVMEDIA: H265 : Profile : 1 
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:191) <enc0> :Setting encoder bitrate to 1024000: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:440) <enc0> :Forcing IDR: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:311) <enc0> :Output Plane:Mapped Nvbuffer to buffers 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 0: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:440) <enc0> :Forcing IDR: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:311) <enc0> :Output Plane:Mapped Nvbuffer to buffers 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 1: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:311) <enc0> :Output Plane:Mapped Nvbuffer to buffers 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 2: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:311) <enc0> :Output Plane:Mapped Nvbuffer to buffers 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 3: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 0: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:191) <enc0> :Setting encoder bitrate to 1536000: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 1: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 2: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 3: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 0: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:191) <enc0> :Setting encoder bitrate to 2048000: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 1: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 2: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 3: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:191) <enc0> :Setting encoder bitrate to 2560000: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 0: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 1: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 2: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 3: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 0: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:191) <enc0> :Setting encoder bitrate to 3072000: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 1: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 2: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 3: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:191) <enc0> :Setting encoder bitrate to 3584000: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 0: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 1: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 2: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:191) <enc0> :Setting encoder bitrate to 4096000: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 3: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 0: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:440) <enc0> :Forcing IDR: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 1: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:440) <enc0> :Forcing IDR: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 2: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 3: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:191) <enc0> :Setting encoder bitrate to 4608000: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 0: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 0
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 1: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 1
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:191) <enc0> :Setting encoder bitrate to 5120000: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 2: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 2
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Output Plane:DQed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Output Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:152) <enc0> :Capture Plane:DQed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:208) <enc0> :Got controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:864) <enc0> :Getting encoder output metadata for buffer 3: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2ElementPlane.cpp:260) <enc0> :Capture Plane:Qed buffer 3
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:440) <enc0> :Forcing IDR: success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1056) <enc0> :Setting encoder poll interrupt to 1 : success
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvV4l2Element.cpp:190) <enc0> :Set controls
[DEBUG] (/usr/src/jetson_multimedia_api/samples/common/classes/NvVideoEncoder.cpp:1034) <enc0> :Done calling video device poll : success

1 Like

Hi,
Are you able to reproduce it with this sample?

Or 01_video_encode? We would need to replicate it and check further. A possible reason is that the bitrate is too low and encoder cannot achieve the compression rate. We observe it in the topic:

I have not yet checked with 01_video_encode. I will point out that the code, as used and written, does work when compiled against another version of our own application, so I’m not sure I’ll be able to reproduce using 01_video_encode.

Rather than having you give me the answer (which I believe is impossible in this case), I was hoping to get tips of things to look up for. Tips such as:

Sadly irrelevant for this particular case. As can be seen from the logs, we start at 500kbps, but quickly climb well above 1.5mbps. Sadly, the actual encoding does not follow suite.

Of another curiosity is that when I ask, without changing bitrate at runtime, for 10mbps, I only get 8.4mbps.

Essentially, I’m wondering whether the code that handles bitrate change has any conditions under which it ignores the command. As the logs also show, the command itself does not report failure.

Hi,
The bitrate change commands are not dropped. The valid q value is 1~50 and possible reason is that it cannot meet the bitrate within the range. For example, if 500kbps is the setting for 1080p30, it is not possible to keep in the low value in complex scenes, when q value is at max 50 already.