static int dump = 1;
/* Write raw video frame to file. */
if (!ctx->stats && ctx->out_file && dump)
{
/* Dumping two planes for NV12, NV16, NV24 and three for I420 */
dump_dmabuf(ctx->dst_dma_fd, 0, ctx->out_file);
dump_dmabuf(ctx->dst_dma_fd, 1, ctx->out_file);
if (ctx->out_pixfmt == 2)
{
dump_dmabuf(ctx->dst_dma_fd, 2, ctx->out_file);
}
dump = 0;
}
It looks to be certain issue in your system image. It is default command and should work fine. You may re-flash through SDKManager and run the sample in
Hi,DaneLLL:
Thank you for your reply!
I have a question to confirm with you:
I downloaded the sample code file from this connection[ L4T Jetson TX1 R28.3.2 Multimedia API].
Does it mean that my source code download is wrong?
My jetson nano configuration is as follows:
system:Ubuntu 18.04.4 LTS
jetpack:4.4 DP [ L4T 32.4.2 ]
Thanks!The sample is now working properly.
But,i used the jtop command to find that the hardware decoder was turned off and it seems to be decoding on the CPU.
Hi, have you tried to run jtop with sudo? I see from your screen you run it without.
Usually NVDEC is available on tegrastats only when you run with sudo.