Hello.
I'm using bytedeco ffmpeg bindings to decode h264 inputs - here is the code:
......
while (av_read_frame(fmt_ctx, pkt) >= 0) {
if (pkt.stream_index() == v_stream_idx) {
ret1 = avcodec_send_packet(codec_ctx, pkt);
ret2 = avcodec_receive_frame(codec_ctx, frm);
if (ret2 >= 0 && ret1 >=0){
long time = frm.pts();
.......
What I need is to write the decoded frame - 'frm' to a disk as YUV.
Any suggestions are welcome.