Hi Tom,

On Mon, Mar 9, 2009 at 2:30 AM, Tom Handal <[email protected]> wrote:
> I was wondering if there was a way I could read from the file/socket myself
> so I can run my own pre-processing on the TS packets, then pass the TS
> packets to a function similar to av_read_frame to proceed as normal?

You can't do push-based processing, but here's something that comes
pretty close: you can create your own URLProtocol implementation
("my-file"), and then make the URLProtocol.read() function be fed data
that you've read yourself. GStreamer does it that way, it's not very
difficult, have a look at their gstffmpegprotocol.c file. You would
then open the protocol using av_open_input_protocol() instead of
av_open_input_file().

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

Reply via email to