Viper220679
June 20, 2007, 12:16:53
Hello!
I want to record an image stream by using a codec.
The sample "\\vc71\CreateVideoFile.cpp" shows how to choose a codec:
// Get a list of all available video compressors (codecs)
tCodecListPtr pCodecList = Codec::getAvailableCodecs();
if( pCodecList == 0 )
{
std::cerr << "No codecs found." << std::endl;
return 1;
}
int Compressor_idx = presentUserChoice( toStringArrayPtrListPtr( pCodecList ) );
if( Compressor_idx == -1 )
{
std::cerr << "No compressor chosen." << std::endl;
return 1;
}
My problem is that my program doesn´t return the message "No codecs found." but it says "No compressor chosen.".
It seems that codecs were found, but I can´t choose any codec.
The integer "compressor_idx" is "-1" anytime.
Maybe someone can help me... :confused: :confused:
Regards
Viper220679
I want to record an image stream by using a codec.
The sample "\\vc71\CreateVideoFile.cpp" shows how to choose a codec:
// Get a list of all available video compressors (codecs)
tCodecListPtr pCodecList = Codec::getAvailableCodecs();
if( pCodecList == 0 )
{
std::cerr << "No codecs found." << std::endl;
return 1;
}
int Compressor_idx = presentUserChoice( toStringArrayPtrListPtr( pCodecList ) );
if( Compressor_idx == -1 )
{
std::cerr << "No compressor chosen." << std::endl;
return 1;
}
My problem is that my program doesn´t return the message "No codecs found." but it says "No compressor chosen.".
It seems that codecs were found, but I can´t choose any codec.
The integer "compressor_idx" is "-1" anytime.
Maybe someone can help me... :confused: :confused:
Regards
Viper220679