avcodec_encode_video2() return value is 0 on success, encoded frame size is stored in the packet.
Attach a file by drag & drop or click to upload