Balti2016 / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

FFMPEG File reader can support streams as well #294

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
in the filereader class just changing:

libffmpeg::AVFormatContext* formatContext;
if ( libffmpeg::av_open_input_file( &formatContext, fileName, NULL, 0, NULL ) 
!=0 ) { return NULL;}

to:

libffmpeg::AVFormatContext* formatContext = libffmpeg::avformat_alloc_context( 
);

if ( libffmpeg::avformat_open_input( &formatContext, fileName, NULL, NULL ) !=0 
)
{
    return NULL;
}

adds support for a whole load of network video streams example:

mmsh://live1.wm.skynews.servecast.net/skynews_wmlz_live300k

Original issue reported on code.google.com by ad...@activeunlimited.com on 12 Apr 2012 at 7:00

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 12 Apr 2012 at 7:56