> As for your question, you can set up your own URLProtocol (implement
> your own read/seek/etc. functions) and let them handle the internal
> byte-array. You would then open the URL "myproto://" and it would
> automatically call your functions. GStreamer uses this, for example.
>
> If you want a "push-based" solution (I really wouldn't recommend this
> at all) where you push in data as it comes, then you could consider
> using a pipe:// protocol and write your data to the pipe. FFmpeg will
> read it as it comes internally, but this disables seeking.
>
> HTH,
> Ronald
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-use
The way I am currently working is to create a AVCodecContext, populate 
the required fields, then keep calling "avcodec_decode_video" with an 
array of bytes representing one complete frame, then immediately 
refreshing a PictureBox with the decoded image.
The problem is that the frames are decoded in the order that they are 
given, and sometimes when decoding, they appear out of order and require 
sorting according to PTS.

I would like to avoid having to write my own protocol to fix this. What 
I would like is to have a way of decoding frames as above, and have the 
frames decoded in the correct order. Is that possible?

Thanks for your help,
Mark.

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to