Dear All

i am decoding video frames using ffmpeg library in java, but if i want to decode multiple video at a time then decoding time is increasing.

1. i tried example given in ffmpeg hw_decode.c and converted to java but hardware acceleration not supporting

2. Able to call  av_hwdevice_ctx_create intializing properly

3.  recpack=av_read_frame(fmt_ctx, pkt);

              // if(recpack<=0)
                //   break;
            if (pkt.stream_index() == v_stream_idx) {
                ret1 = avcodec_send_packet(codec_ctx, pkt);


                ret2 = avcodec_receive_frame(codec_ctx, frm);

      no error even able to print format and width and height from frm variable.

 if ((ret = av_hwframe_transfer_data(frm, tmp_frm, 0)) < 0)

Above function also i am checking but when i try to display it gives black image

Or i am happy to know any other method to decode multiple file at a time .


Best Regards

Satish




_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to