I'm writing a soft that connects to a network camera to get an MPEG4 stream
and do some motion analysis on it.
To do this, I pipe the stream to my soft and read it from stdin. I modified
the video_decode example available
on api_example.c to read from stdin. I would like to find the
AVFormatContext of the stream in order to be able to
work with any kind of video source. My goal is to find what codec is used.
I'm sure it is possible, but what should I modify/look/study ?