Hi,
what is the equivalent of the "-t" option using the api. I'm not sure
how to limit the streamig of the video.
e.g:
ffmpeg -i "rtsp://195.200.199.8/mpeg4/media.amp" -t 5 toto.mpeg
In the folllowing piece of code how you include the "-t" option
....
char* input_filename = "rtsp://195.200.199.8/mpeg4/media.amp";
av_register_all();
avcodec_register_all();
avformat_network_init();
if(avformat_open_input(&pFormatCtx, input_filename,NULL,NULL) != 0)
{
fprintf(stderr, "could not open input: %s!\n", input_filename);
return -1;
}
printf("opened input\n");
if (avformat_find_stream_info(pFormatCtx,NULL) <0)
{
fprintf(stderr, "could not find stream information\n");
return -1;
}
av_dump_format(pFormatCtx, 0, input_filename, 0 );
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user