Comskip Support Forum

Comskip is a free commercial detector, browse the forum for more information
It is currently Wed Dec 12, 2018 4:02 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Nov 16, 2017 1:51 pm 
Offline

Joined: Thu Nov 16, 2017 1:08 pm
Posts: 2
Hi,

I am new to Comskip and am trying to compile on Debian 8.9. I have put in all the dependencies and build ffmpeg. Also put the dependencies and completed the configure on the Comskip.

When I run the make I get the error

mpeg2dec.c:1202:57: error: ‘CODEC_FLAG_GRAY’ undeclared (first use in this function)
if (!hardware_decode) is->video_st->codec->flags |= CODEC_FLAG_GRAY;

I know I am missing something but cant' quite figure out where or what declares this.

For the configure of Comskip I am using the command below otherwise i am just following the instructions to compile from the git hub.

PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --bindir="$HOME/bin"

many thanks for any help


Top
 Profile  
Reply with quote  
PostPosted: Thu Nov 16, 2017 4:07 pm 
Offline

Joined: Thu Nov 16, 2017 1:08 pm
Posts: 2
Sorry I found my own issue and resolution. I think the define CODEC_FLAG_GRAY comes from the ffmpeg, I am compiling from the git hub version which has defined AV_CODEC_FLAG_GREY

I added the lines below to mpeg2dec.c and it is compiling correctly. I am assuming that there was a change in the later versions of ffmpeg.

#ifndef CODEC_FLAG_GRAY
#define CODEC_FLAG_GRAY AV_CODEC_FLAG_GRAY
#endif


Top
 Profile  
Reply with quote  
PostPosted: Fri Nov 17, 2017 4:20 pm 
Offline

Joined: Fri Oct 25, 2013 6:39 am
Posts: 10
They actually made that change about 2 years ago.

https://github.com/FFmpeg/FFmpeg/commit/94d68a41fabb55dd8c7e59b88fe4a28a637d1e5f


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group