reduced the video size in video writer tests; retained only most popular codecs. added ffmpeg support on MacOSX.

This commit is contained in:
Vadim Pisarevsky
2012-04-05 18:26:49 +00:00
parent 0ef71c04db
commit 32d72047d5
4 changed files with 82 additions and 10 deletions

View File

@@ -383,9 +383,7 @@ bool CvCapture_FFMPEG::open( const char* _filename )
/* register all codecs, demux and protocols */
av_register_all();
#ifndef _DEBUG
// av_log_level = AV_LOG_QUIET;
#endif
//av_log_set_level(AV_LOG_ERROR);
int err = avformat_open_input(&ic, _filename, NULL, NULL);
if (err < 0) {
@@ -1392,11 +1390,13 @@ bool CvVideoWriter_FFMPEG::open( const char * filename, int fourcc,
}
#endif
#if 0
#if FF_API_DUMP_FORMAT
dump_format(oc, 0, filename, 1);
#else
av_dump_format(oc, 0, filename, 1);
#endif
#endif
/* now that all the parameters are set, we can open the audio and
video codecs and allocate the necessary encode buffers */