Guess codec from RTSP source (MPEG4)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Guess codec from RTSP source (MPEG4)

Robin Penea
Hi everyone,

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 ?

Thanks in advance.

Robin Penea
ffmpeg-user mailing list
[hidden email]