me@jetson:/usr/src/jetson_multimedia_api/samples/01_video_encode$ ./video_encode ~/evil-frank.yuv 1920 1080 H264 ~/evil-frank.h264 --stats --dbg-level 3 Opening in BLOCKING MODE [DEBUG] (NvV4l2Element.cpp:70) :Opened, fd = 17 [DEBUG] (NvV4l2ElementPlane.cpp:376) :Capture Plane:VIDIOC_S_FMT at capture plane successful NvMMLiteOpen : Block : BlockType = 4 ===== NVMEDIA: NVENC ===== NvMMLiteBlockCreate : Block : BlockType = 4 [DEBUG] (NvV4l2ElementPlane.cpp:376) :Output Plane:VIDIOC_S_FMT at capture plane successful 875967048 842091865 [DEBUG] (NvV4l2Element.cpp:190) :Set controls [DEBUG] (NvVideoEncoder.cpp:191) :Setting encoder bitrate to 4194304: success [DEBUG] (NvV4l2Element.cpp:190) :Set controls [DEBUG] (NvVideoEncoder.cpp:264) :Setting encoder profile to 0: success [DEBUG] (NvV4l2Element.cpp:190) :Set controls [DEBUG] (NvVideoEncoder.cpp:299) :Setting encoder level to 15: success [DEBUG] (NvV4l2Element.cpp:190) :Set controls [DEBUG] (NvVideoEncoder.cpp:350) :Setting encoder rate control mode to 1: success [DEBUG] (NvV4l2Element.cpp:190) :Set controls [DEBUG] (NvVideoEncoder.cpp:419) :Setting encoder IDR interval to 256: success [DEBUG] (NvV4l2Element.cpp:190) :Set controls [DEBUG] (NvVideoEncoder.cpp:396) :Setting encoder I-frame interval to 30: success [DEBUG] (NvV4l2ElementPlane.cpp:594) :Output Plane:Successfully set stream parameters [DEBUG] (NvVideoEncoder.cpp:167) :Setting framerate to 30/1: success [DEBUG] (NvV4l2ElementPlane.cpp:522) :Output Plane:Reqbuf returned 6 buffers [DEBUG] (NvV4l2ElementPlane.cpp:522) :Capture Plane:Reqbuf returned 6 buffers [DEBUG] (NvV4l2ElementPlane.cpp:627) :Capture Plane:QueryBuf for 0th buffer successful [DEBUG] (NvV4l2ElementPlane.cpp:665) :Capture Plane:ExportBuf successful for Buffer 0, Plane 0, fd = 1033 [DEBUG] (NvBuffer.cpp:175) Mapped buffer 0, plane 0 to [DEBUG] (NvV4l2ElementPlane.cpp:627) :Capture Plane:QueryBuf for 1th buffer successful [DEBUG] (NvV4l2ElementPlane.cpp:665) :Capture Plane:ExportBuf successful for Buffer 1, Plane 0, fd = 1034 [DEBUG] (NvBuffer.cpp:175) Mapped buffer 1, plane 0 to [DEBUG] (NvV4l2ElementPlane.cpp:627) :Capture Plane:QueryBuf for 2th buffer successful [DEBUG] (NvV4l2ElementPlane.cpp:665) :Capture Plane:ExportBuf successful for Buffer 2, Plane 0, fd = 1035 [DEBUG] (NvBuffer.cpp:175) Mapped buffer 2, plane 0 to [DEBUG] (NvV4l2ElementPlane.cpp:627) :Capture Plane:QueryBuf for 3th buffer successful [DEBUG] (NvV4l2ElementPlane.cpp:665) :Capture Plane:ExportBuf successful for Buffer 3, Plane 0, fd = 1036 [DEBUG] (NvBuffer.cpp:175) Mapped buffer 3, plane 0 to [DEBUG] (NvV4l2ElementPlane.cpp:627) :Capture Plane:QueryBuf for 4th buffer successful [DEBUG] (NvV4l2ElementPlane.cpp:665) :Capture Plane:ExportBuf successful for Buffer 4, Plane 0, fd = 1037 [DEBUG] (NvBuffer.cpp:175) Mapped buffer 4, plane 0 to [DEBUG] (NvV4l2ElementPlane.cpp:627) :Capture Plane:QueryBuf for 5th buffer successful [DEBUG] (NvV4l2ElementPlane.cpp:665) :Capture Plane:ExportBuf successful for Buffer 5, Plane 0, fd = 1038 [DEBUG] (NvBuffer.cpp:175) Mapped buffer 5, plane 0 to [DEBUG] (NvV4l2Element.cpp:228) :Successfully subscribed to event 2 [DEBUG] (NvV4l2ElementPlane.cpp:556) :Output Plane:STREAMON successful [DEBUG] (NvV4l2ElementPlane.cpp:556) :Capture Plane:STREAMON successful H264: Profile = 66, Level = 51 [DEBUG] (NvV4l2ElementPlane.cpp:866) :Capture Plane:Started DQ Thread [DEBUG] (NvV4l2ElementPlane.cpp:260) :Capture Plane:Qed buffer 0 [DEBUG] (NvV4l2ElementPlane.cpp:260) :Capture Plane:Qed buffer 1 [DEBUG] (NvV4l2ElementPlane.cpp:260) :Capture Plane:Qed buffer 2 [DEBUG] (NvV4l2ElementPlane.cpp:260) :Capture Plane:Qed buffer 3 [DEBUG] (NvV4l2ElementPlane.cpp:260) :Capture Plane:Qed buffer 4 [DEBUG] (NvV4l2ElementPlane.cpp:260) :Capture Plane:Qed buffer 5 [DEBUG] (NvV4l2ElementPlane.cpp:311) :Output Plane:Mapped Nvbuffer to buffers 0 [DEBUG] (NvV4l2ElementPlane.cpp:801) :Capture Plane:Starting DQthread [DEBUG] (NvV4l2ElementPlane.cpp:260) :Output Plane:Qed buffer 0 [DEBUG] (NvV4l2ElementPlane.cpp:311) :Output Plane:Mapped Nvbuffer to buffers 1 Could not read complete frame from input file [DEBUG] (NvV4l2ElementPlane.cpp:260) :Output Plane:Qed buffer 1 File read complete. [DEBUG] (NvV4l2ElementPlane.cpp:346) :Output Plane:Unmapped Nvbuffer to buffers 0 [DEBUG] (NvV4l2ElementPlane.cpp:346) :Output Plane:Unmapped Nvbuffer to buffers 1 [DEBUG] (NvV4l2ElementPlane.cpp:346) :Output Plane:Unmapped Nvbuffer to buffers 2 [DEBUG] (NvV4l2ElementPlane.cpp:346) :Output Plane:Unmapped Nvbuffer to buffers 3 [DEBUG] (NvV4l2ElementPlane.cpp:346) :Output Plane:Unmapped Nvbuffer to buffers 4 [DEBUG] (NvV4l2ElementPlane.cpp:346) :Output Plane:Unmapped Nvbuffer to buffers 5 [DEBUG] (NvV4l2ElementPlane.cpp:556) :Output Plane:STREAMOFF successful [DEBUG] (NvV4l2ElementPlane.cpp:916) :Output Plane:Stopped DQ Thread [DEBUG] (NvV4l2ElementPlane.cpp:522) :Output Plane:Reqbuf returned 0 buffers [DEBUG] (NvV4l2ElementPlane.cpp:458) :Output Plane:deinit successful [DEBUG] (NvV4l2ElementPlane.cpp:556) :Capture Plane:STREAMOFF successful [ERROR] (NvV4l2ElementPlane.cpp:178) Capture Plane:Error while DQing buffer: Broken pipe Segmentation fault (core dumped)