Here you can ask your questions on how to use Comskip for the detection of commercials. Also questions on how to remove commercials are welcome
Sufreak
Posts: 20 Joined: Tue Sep 13, 2016 2:17 am
Post
by Sufreak » Tue Sep 13, 2016 2:32 am
I'm trying to use comskip without wine. (Overkill for one app)
Going through the instructions, with sudo. I cloned to the /opt/ directory.
Code: Select all
$ add-apt-repository -y ppa:mc3man/trusty-media
$ apt-get update
$ apt-get install -y git build-essential libargtable2-dev libsdl1.2-dev
$ apt-get install -y ffmpeg libva-dev libsoxr-dev libvorbis-dev libbz2-dev zlib1g-dev libxvidcore-dev libvpx-dev libx264-dev libx265-dev libspeex-dev libfdk-aac-dev libvorbisenc2 libopus-dev libmp3lame-dev libdca-dev libfaac-dev libopencore-amrnb-dev libvo-aacenc-dev libopencore-amrwb-dev
$ git clone https://github.com/foo86/dcadec
$ cd dcadec
$ make install
Then, I followed these instructions, also cloning to /opt/
Code: Select all
$ git clone git://github.com/erikkaashoek/Comskip
$ cd Comskip
$ ./autogen.sh
$ ./configure
$ make
When I get to autogen, I get the error
"unable to locate gnu autoconf"
Any ideas?
erik
Site Admin
Posts: 3369 Joined: Sun Aug 21, 2005 3:49 pm
Post
by erik » Tue Sep 13, 2016 7:30 am
Do you have autoconf installed?
Sufreak
Posts: 20 Joined: Tue Sep 13, 2016 2:17 am
Post
by Sufreak » Tue Sep 13, 2016 9:40 am
Nope. I'm a bit inexperienced with compiling.
when I run make, I get the folllowing:
Code: Select all
gcc -g -O2 -mtune=generic -o comskip comskip-comskip.o comskip-mpeg2dec.o comskip-platform.o comskip-video_out_dx.o ccextratorwin/comskip-608.o ccextratorwin/comskip-ccextractor.o ccextratorwin/comskip-encoding.o ccextratorwin/comskip-general_loop.o ccextratorwin/comskip-myth.o -largtable2 -pthread -L/opt/ffmpeg/lib -L/build/ffmpeg-zTq240/ffmpeg-3.1.1~trusty/build_libs/lib -lavformat -lavcodec -lXv -lXext -lvdpau -lva-drm -lva-x11 -lva -lxcb-shm -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -lX11 -lasound -lSDL -lxvidcore -lx265 -lx264 -lpthread -lvpx -lvorbisenc -lvorbis -logg -lvidstab -lspeex -lpulse -lopus -lopencore-amrwb -lopencore-amrnb -lmp3lame -lfreetype -lfdk-aac -lass -lgnutls -lbz2 -lz -ldl -lswresample -lsoxr -lavutil -lm -lpthread -lm
/usr/bin/ld: cannot find -lXv
/usr/bin/ld: cannot find -lvdpau
/usr/bin/ld: cannot find -lxcb-shm
collect2: error: ld returned 1 exit status
make: *** [comskip] Error 1
Got the following problem beat by runnnig export PKG_CONFIG_PATH=/opt/ffmpeg/lib/pkgconfig.
checking for ffmpeg... no
configure: error: Package requirements (libavutil >= 54.7 libavformat >= 56.4 libavcodec >= 56.1) were not met:
No package 'libavutil' found
No package 'libavformat' found
No package 'libavcodec' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables ffmpeg_CFLAGS
and ffmpeg_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
root:/opt/Comskip# make
make: *** No targets specified and no makefile found. Stop.
erik
Site Admin
Posts: 3369 Joined: Sun Aug 21, 2005 3:49 pm
Post
by erik » Tue Sep 13, 2016 12:24 pm
You first have to install autoconf and ffmpeg-dev
If you don't know how to do that use google or else you may not be the right person to compile from scratch
Sufreak
Posts: 20 Joined: Tue Sep 13, 2016 2:17 am
Post
by Sufreak » Tue Sep 13, 2016 1:07 pm
erik wrote: You first have to install autoconf and ffmpeg-dev
If you don't know how to do that use google or else you may not be the right person to compile from scratch
I didn't know I needed ffmpeg-dev. The Trusty docs just mention ffmpeg
apt-get install -y ffmpeg....
I'll try again now
Sufreak
Posts: 20 Joined: Tue Sep 13, 2016 2:17 am
Post
by Sufreak » Tue Sep 13, 2016 1:21 pm
I followed the instructions, but I'm still getting the error:
/usr/bin/ld: cannot find -lXv
/usr/bin/ld: cannot find -lvdpau
/usr/bin/ld: cannot find -lxcb-shm
collect2: error: ld returned 1 exit status
I checked and /usr/bin/ld exists
FFmpeg
libargtable2
autoconf, automake, and libtool are installed
I'm not quite an expert, but I'm a bit more than a rookie with linux. But I don't have a lot of compling experience.
erik
Site Admin
Posts: 3369 Joined: Sun Aug 21, 2005 3:49 pm
Post
by erik » Tue Sep 13, 2016 1:53 pm
Suggest you ask for further help on github