With respect to size of outputfile related to 00_video_decode

Hi,
You may add logic of dumping single frame:

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;
                }