Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

CV_CAP_PROP_FOURCC not returning video codec on some videos

I am using the follwing code to get the fourcc

    int ex = videocap.get(CV_CAP_PROP_FOURCC);
char vcodec[] = {(char)(ex & 0XFF) , (char)((ex & 0XFF00) >> 8),(char)((ex & 0XFF0000) >> 16),(char)((ex & 0XFF000000) >> 24), 0};

and on some files I get a blank string, it can't possible decode a file without knowing its codec so I must be doing something wrong. Here is how I'm storing the value and sending it to debug so I can see what's going on

insert_video.bindValue(":vcodec",vcodec);
qDebug() << "video codec: " << insert_video.boundValue(":vcodec").toString();

please help

CV_CAP_PROP_FOURCC not returning video codec on some videos

I am using the follwing code to get the fourcc

    int ex = videocap.get(CV_CAP_PROP_FOURCC);
char vcodec[] = {(char)(ex & 0XFF) , (char)((ex & 0XFF00) >> 8),(char)((ex & 0XFF0000) >> 16),(char)((ex & 0XFF000000) >> 24), 0};

and on some files I get a blank string, it can't possible decode a file without knowing its codec so I must be doing something wrong. Here is how I'm storing the value and sending it to debug so I can see what's going on

insert_video.bindValue(":vcodec",vcodec);
qDebug() << "video codec: " << insert_video.boundValue(":vcodec").toString();

please help

UPDATE: it seems to only be happening for flv files

CV_CAP_PROP_FOURCC not returning video codec on some videos

I am using the follwing code to get the fourcc

    int ex = videocap.get(CV_CAP_PROP_FOURCC);
char vcodec[] = {(char)(ex & 0XFF) , (char)((ex & 0XFF00) >> 8),(char)((ex & 0XFF0000) >> 16),(char)((ex & 0XFF000000) >> 24), 0};

and on some files I get a blank string, it can't possible decode a file without knowing its codec so I must be doing something wrong. Here is how I'm storing the value and sending it to debug so I can see what's going on

insert_video.bindValue(":vcodec",vcodec);
qDebug() << "video codec: " << insert_video.boundValue(":vcodec").toString();

please help

UPDATE: it seems to only be happening for flv files

is there another property I can pull for flv files?

CV_CAP_PROP_FOURCC not returning video codec on some videos

I am using the follwing code to get the fourcc

    int ex = videocap.get(CV_CAP_PROP_FOURCC);
char vcodec[] = {(char)(ex & 0XFF) , (char)((ex & 0XFF00) >> 8),(char)((ex & 0XFF0000) >> 16),(char)((ex & 0XFF000000) >> 24), 0};

and on some files I get a blank string, it can't possible decode a file without knowing its codec so I must be doing something wrong. Here is how I'm storing the value and sending it to debug so I can see what's going on

insert_video.bindValue(":vcodec",vcodec);
qDebug() << "video codec: " << insert_video.boundValue(":vcodec").toString();

please help

UPDATE: it seems to only be happening for flv files also for some mpg files so this isn't just about flv files

is there another property I can pull for flv files?

CV_CAP_PROP_FOURCC not returning video codec on some videos

I am using the follwing code to get the fourcc

    int ex = videocap.get(CV_CAP_PROP_FOURCC);
char vcodec[] = {(char)(ex & 0XFF) , (char)((ex & 0XFF00) >> 8),(char)((ex & 0XFF0000) >> 16),(char)((ex & 0XFF000000) >> 24), 0};

and on some files I get a blank string, it can't possible decode a file without knowing its codec so I must be doing something wrong. Here is how I'm storing the value and sending it to debug so I can see what's going on

insert_video.bindValue(":vcodec",vcodec);
qDebug() << "video codec: " << insert_video.boundValue(":vcodec").toString();

please help

UPDATE: it seems to only be happening for flv files also for some mpg files so this isn't just about flv files