get if my rtsp input stream supports 'pause' command

For the developers that use FFmpeg in their software.
Post Reply
fzanelli
Posts: 2
Joined: Mon Feb 27, 2012 3:52 pm

get if my rtsp input stream supports 'pause' command

Post by fzanelli » Mon Feb 27, 2012 4:20 pm

I want to play a rtsp input stream from an ip camera and I'd like to know if it supports 'pause' command. At low level (rtsp protocol) would be sufficient read the response from the command 'OPTIONS', but how can get that information by ffmpeg api? This is my simplified code:

Code: Select all

AVFormatContext *fc = avformat_alloc_context();
int res;
res = avformat_open_input(&fc, "rtsp://10.0.4.58/h264", NULL, NULL);       
res = avformat_find_stream_info(fc, NULL);

AVCodecContext *cc = fc->streams[videoStream]->codec;
once I got FormatContext and CodecContext, how can I get if my stream supports 'pause' command, that means that av_read_pause() api has really effect?

thank you

Franco

Post Reply
'