• 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 23
Comskip for Linux released
#76
@marc - ah, I wondered what would break - I've always used mkv, but I'm playing with moving away from that because of some sound issues I've been getting with mkv containers. So I might survive the loss of that container, but it's not ideal...

Yes, I'm sure it's perfectly possible to build against a different ffmpeg version, so long as it's a static build and includes all library calls it needs (because it can't depend on your local ffmpeg version since the shared libraries won't include the right functions). I'll maybe look later, although I'll warn now that I got horribly knotted up trying to build comskip until we had some idiot-proof instructions... but those same instructions should apply, albeit with a bit of tweaking of the Makefile or command-line options, perhaps.

The other option is to upgrade ffmpeg system-wide, which gets things compiling as you'd expect, but I don't know if that then breaks anything...

Reply
#77
Here's a link to a thread about tweeking comskip.ini.

http://www.thegreenbutton.tv/forums/view...6&start=20

Reply
#78
(2013-01-11, 00:51)Prof Yaffle Wrote: @MarcAngelo - I had the same problem - it's because (I suspect) your ffmpeg version is too old. If you don't fancy updating system-wide, or pointing tvheadend to the updated version you inevitably installed while compiling comskip, try ./configure --disable-libav instead before make. I don't know what this really leaves out, I think it's some new muxing code.

@schumi2004 - you don't need to do anything with tvheadend, comskip is standalone with no dependencies between them. You could run them on separate boxes if you wished...

I understand it's a standalone instance but can it be run on a Synology NAS?
Reply
#79
(2013-01-12, 00:57)schumi2004 Wrote:
(2013-01-11, 00:51)Prof Yaffle Wrote: @MarcAngelo - I had the same problem - it's because (I suspect) your ffmpeg version is too old. If you don't fancy updating system-wide, or pointing tvheadend to the updated version you inevitably installed while compiling comskip, try ./configure --disable-libav instead before make. I don't know what this really leaves out, I think it's some new muxing code.

@schumi2004 - you don't need to do anything with tvheadend, comskip is standalone with no dependencies between them. You could run them on separate boxes if you wished...

I understand it's a standalone instance but can it be run on a Synology NAS?

If the NAS is running Linux and you can compile it, it should work fine. The program even nice's itself so even though it will consume as much CPU as possible, other programs will have priority.
Reply
#80
Okay, I seem to have successfully built tvheadend against the ffmpeg I compiled as part of comskip - I haven't tested it yet, but it's linked okay and created the executable in ~/tvheadend/buid.linux/tvheadend. So I'll post this here in case someone gets a chance to test before I do (it's bed o'clock here).

It's as simple as changing to the tvheadend directory (~/tvheadend, most likely, if you've done a git clone from your home directory) and configuring the build with the following:

Code:
cd ~/tvheadend
PKG_CONFIG_PATH=/var/tmp/ComSkipWork/ffmpeg-1.0.1-install/lib/pkgconfig ./configure

Then make, and it sailed through without a hiccough for me. Note that you'll need to have installed and built ffmpeg as instructed in the first post, though:

Code:
cd /var/tmp
mkdir ComSkipWork
wget http://ffmpeg.org/releases/ffmpeg-1.0.1.tar.bz2
tar xf ffmpeg-1.0.1.tar.bz2
cd ffmpeg-1.0.1
./configure --prefix=/var/tmp/ComSkipWork/ffmpeg-1.0.1-install
make -j8
make install

You can vary this to your installation if required, i.e. build it alongside tvheadend if you're not using comskip.
Reply
#81
everything installed fine until I got to
Code:
$ PKG_CONFIG_PATH=/var/tmp/ComSkipWork/ffmpeg-1.0.1-install/lib/pkgconfig ./configure --prefix=/usr

I am missing argtable2, here is the bottom of my output

Code:
........................................................................
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=gnu++11... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for memset... yes
checking for strerror... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for AVCODEC... yes
checking for AVFORMAT... yes
checking for AVUTIL... yes
checking for ARGTABLE2... no
configure: error: Package requirements (argtable2 >= 9) were not met:

No package 'argtable2' 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 ARGTABLE2_CFLAGS
and ARGTABLE2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
me@me:/var/tmp/comskip-0.92d$

I installed libargtable2-0 through synaptic, and re-ran
Code:
$ PKG_CONFIG_PATH=/var/tmp/ComSkipWork/ffmpeg-1.0.1-install/lib/pkgconfig ./configure --prefix=/usr

still no luck... what do I need to change to use the version of argtable2 I have or install the correct one?

I am excited to see comskip for linux and also support mkv files directly, I once had the lonlycoder's method working via wine, but I could not use .mkv files directly, and had to change containers to .mpeg before running comskip. I would love to use this on my desktop to deal with my tvheadend recordings recorded on my htpc running openelec+xbmc.

thanks for all the hard work... open source rules!!!

I am running Ubuntu 12.10 64bit on this machine
everything installed fine until I got to
Code:
$ PKG_CONFIG_PATH=/var/tmp/ComSkipWork/ffmpeg-1.0.1-install/lib/pkgconfig ./configure --prefix=/usr

I am missing argtable2, here is the bottom of my output

Code:
........................................................................
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=gnu++11... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for memset... yes
checking for strerror... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for AVCODEC... yes
checking for AVFORMAT... yes
checking for AVUTIL... yes
checking for ARGTABLE2... no
configure: error: Package requirements (argtable2 >= 9) were not met:

No package 'argtable2' 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 ARGTABLE2_CFLAGS
and ARGTABLE2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
me@me:/var/tmp/comskip-0.92d$

I installed libargtable2-0 through synaptic, and re-ran
Code:
$ PKG_CONFIG_PATH=/var/tmp/ComSkipWork/ffmpeg-1.0.1-install/lib/pkgconfig ./configure --prefix=/usr

still no luck... what do I need to change to use the version of argtable2 I have or install the correct one?

I am excited to see comskip for linux and also support mkv files directly, I once had the lonlycoder's method working via wine, but I could not use .mkv files directly, and had to change containers to .mpeg before running comskip. I would love to use this on my desktop to deal with my tvheadend recordings recorded on my htpc running openelec+xbmc.

thanks for all the hard work... open source rules!!!

I am running Ubuntu 12.10 64bit on this machine
Reply
#82
(2013-01-12, 07:45)dreadycarpenter Wrote: everything installed fine until I got to
Code:
$ PKG_CONFIG_PATH=/var/tmp/ComSkipWork/ffmpeg-1.0.1-install/lib/pkgconfig ./configure --prefix=/usr

I am missing argtable2, here is the bottom of my output

Code:
........................................................................
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=gnu++11... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for memset... yes
checking for strerror... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for AVCODEC... yes
checking for AVFORMAT... yes
checking for AVUTIL... yes
checking for ARGTABLE2... no
configure: error: Package requirements (argtable2 >= 9) were not met:

No package 'argtable2' 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 ARGTABLE2_CFLAGS
and ARGTABLE2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
me@me:/var/tmp/comskip-0.92d$

I installed libargtable2-0 through synaptic, and re-ran
Code:
$ PKG_CONFIG_PATH=/var/tmp/ComSkipWork/ffmpeg-1.0.1-install/lib/pkgconfig ./configure --prefix=/usr

still no luck... what do I need to change to use the version of argtable2 I have or install the correct one?

I am excited to see comskip for linux and also support mkv files directly, I once had the lonlycoder's method working via wine, but I could not use .mkv files directly, and had to change containers to .mpeg before running comskip. I would love to use this on my desktop to deal with my tvheadend recordings recorded on my htpc running openelec+xbmc.

thanks for all the hard work... open source rules!!!

I am running Ubuntu 12.10 64bit on this machine
everything installed fine until I got to
Code:
$ PKG_CONFIG_PATH=/var/tmp/ComSkipWork/ffmpeg-1.0.1-install/lib/pkgconfig ./configure --prefix=/usr

I am missing argtable2, here is the bottom of my output

Code:
........................................................................
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=gnu++11... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for memset... yes
checking for strerror... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for AVCODEC... yes
checking for AVFORMAT... yes
checking for AVUTIL... yes
checking for ARGTABLE2... no
configure: error: Package requirements (argtable2 >= 9) were not met:

No package 'argtable2' 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 ARGTABLE2_CFLAGS
and ARGTABLE2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
me@me:/var/tmp/comskip-0.92d$

I installed libargtable2-0 through synaptic, and re-ran
Code:
$ PKG_CONFIG_PATH=/var/tmp/ComSkipWork/ffmpeg-1.0.1-install/lib/pkgconfig ./configure --prefix=/usr

still no luck... what do I need to change to use the version of argtable2 I have or install the correct one?

I am excited to see comskip for linux and also support mkv files directly, I once had the lonlycoder's method working via wine, but I could not use .mkv files directly, and had to change containers to .mpeg before running comskip. I would love to use this on my desktop to deal with my tvheadend recordings recorded on my htpc running openelec+xbmc.

thanks for all the hard work... open source rules!!!

I am running Ubuntu 12.10 64bit on this machine

Extend the technique specified for an external static ffmpeg....
1. download the latest argtable2
2. extract it into it's own subdirectory
3. ./configure --prefix=/var/tmp/ComSkipWork/argtable2-install
4. make -j8

Then to build comskip add /var/tmp/ComSkipWork/argtable2-install to the PKG_CONFIG_PATH (man pkg-config).

I'll add that to post # 1.
Reply
#83
(2013-01-12, 02:13)Prof Yaffle Wrote:
Code:
cd ~/tvheadend
PKG_CONFIG_PATH=/var/tmp/ComSkipWork/ffmpeg-1.0.1-install/lib/pkgconfig ./configure

Thanks for your suggestion.
I recompiled tvheadend succesfully!
There is a difference for Media container in tvheadend configuration now (more options).

First I was able to choose "Matroska" or "Same as source (pass through)", which created .ts files.

Since I re-compiled it with the options you suggested, I got 2 extra options in Media container now:
"MPEG-TS" and "MPEG-PS (DVD)".

Thanks!

Marc
Acer Aspire Idea 500 with 2 Yuan MPC718 MiniPCI hybrid DVB-T Tuners running
XBMCbuntu 11.0 "Eden", TVheadend 3.2 and Comskip 0.91e.
Reply
#84
Update on my attempt to get it compiled for my Synology NAS.
I don't think it's possible to get this running on my NAS because of the missing C++11 support in Synology toolchain.

Code:
checking for inline... inline
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether /home/spksrc-schumi2004/toolchains/syno-88f6281/work/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ supports C++11 features by default... no
checking whether /home/spksrc-schumi2004/toolchains/syno-88f6281/work/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ supports C++11 features with -std=gnu++11... no
checking whether /home/spksrc-schumi2004/toolchains/syno-88f6281/work/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ supports C++11 features with -std=gnu++0x... no
configure: error: *** A compiler with support for C++11 language features is required.
make[1]: *** [configure_target] Error 1
make[1]: Leaving directory `/home/spksrc-schumi2004/cross/comskip'
make: [arch-88f6281] Error 2 (ignored)

Edit:
Maybe there is a change getting it compiled for my NAS which is a arm based system.
Is there something specific to know for this script ?
http://www.xilka.com/xilka/source/BuildC...2012.05.sh
Reply
#85
My donation: a (pretty) generic build script.
Retrieves and builds everything in /tmp/comskip-build.
This script creates a static binary, so there will be no external dependencies, which makes the result easily usable in something like OpenElec.
There are 2 settings commented out, which I use to optimize specifically for the Intel Atom processor in my OpenElec box.
Feel free to include it in the distribution, website or forum thread under whatever license. Smile Thank you for this Linux port.
(BTW, I tried to do some optimization, such as excluding some unused ffmpeg components, but there is likely room for improvement.)

Code:
COMSKIP_VERSION=0.92g
ARGTABLE2_VERSION=13
FFMPEG_VERSION=1.1.1
FFMPEG_SETTINGS="--cpu=atom"
FLAGS="-march=atom -pipe -fomit-frame-pointer -fexcess-precision=fast -ffast-math"
COMSKIP_FLAGS="$FLAGS -floop-parallelize-all -ftree-parallelize-loops=4"
TMP_DIR=/var/tmp

export CFLAGS="$FLAGS"
export CXXFLAGS="$FLAGS"
mkdir $TMP_DIR/comskip-build
cd $TMP_DIR/comskip-build

wget --trust-server-name -N  "http://downloads.sourceforge.net/project/argtable/argtable/argtable-2.${ARGTABLE2_VERSION}/argtable2-${ARGTABLE2_VERSION}.tar.gz?r=http%3A%2F%2Fargtable.sourceforge.net%2F&ts=1357723321&use_mirror=freefr"
tar xzf argtable2-${ARGTABLE2_VERSION}.tar.gz
cd argtable2-${ARGTABLE2_VERSION}
./configure --disable-shared --prefix=$TMP_DIR/comskip-build/argtable-install
make -j8 || exit $?
make install
cd ..

wget -N http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2
tar xjf ffmpeg-${FFMPEG_VERSION}.tar.bz2
cd ffmpeg-${FFMPEG_VERSION}
./configure --prefix=$TMP_DIR/comskip-build/ffmpeg-install \
  --disable-runtime-cpudetect \
  --disable-doc \
  --disable-network \
  --disable-ffmpeg \
  --disable-ffplay \
  --disable-ffprobe \
  --disable-ffserver \
  --disable-avdevice \
  --disable-swresample \
  --disable-swscale \
  --disable-postproc \
  --disable-avfilter \
  --disable-everything \
  --enable-decoders \
  --enable-hwaccels \
  --enable-demuxers \
  --enable-bsfs \
  --enable-parsers  \
  --enable-protocols \
  --disable-bzlib \
  --disable-zlib \
  ${FFMPEG_SETTINGS}
make -j8 || exit $?
make install
cd ..

mkdir pkgconfig
cp ffmpeg-install/lib/pkgconfig/* pkgconfig
cp argtable-install/lib/pkgconfig/* pkgconfig

export CFLAGS="$COMSKIP_FLAGS"
export CXXFLAGS="$COMSKIP_FLAGS"
wget -N http://www.xilka.com/xilka/source/comskip-${COMSKIP_VERSION}.tar.xz
tar xJf comskip-${COMSKIP_VERSION}.tar.xz
cd comskip-${COMSKIP_VERSION}
PKG_CONFIG_PATH=$TMP_DIR/comskip-build/pkgconfig ./configure --prefix=$TMP_DIR/comskip-build/comskip
make -j8 || exit $?
cd ..

mv comskip-${COMSKIP_VERSION}/comskip comskip
rm -r argtable2-${ARGTABLE2_VERSION} ffmpeg-${FFMPEG_VERSION} comskip-${COMSKIP_VERSION} pkgconfig ffmpeg-install argtable-install
Reply
#86
(2013-01-16, 17:18)gnomis Wrote: My donation: a (pretty) generic build script.
Retrieves and builds everything in /tmp/comskip-build.
This script creates a static binary, so there will be no external dependencies, which makes the result easily usable in something like OpenElec.
There are 2 settings commented out, which I use to optimize specifically for the Intel Atom processor in my OpenElec box.
Feel free to include it in the distribution, website or forum thread under whatever license. Smile Thank you for this Linux port.
(BTW, I tried to do some optimization, such as excluding some unused ffmpeg components, but there is likely room for improvement.)

Code:
#!/bin/bash
COMSKIP_VERSION=0.92d
ARGTABLE2_VERSION=13
FFMPEG_VERSION=1.0.1
# FFMPEG_SETTINGS="--cpu=atom"
FFMPEG_SETTINGS=""
# FLAGS="-march=atom -pipe -fomit-frame-pointer -fexcess-precision=fast -ffast-math"
FLAGS="-pipe -fomit-frame-pointer -fexcess-precision=fast -ffast-math"
COMSKIP_FLAGS="$FLAGS -floop-parallelize-all -ftree-parallelize-loops=4"

export CFLAGS="$FLAGS"
export CXXFLAGS="$FLAGS"
mkdir /tmp/comskip-build
cd /tmp/comskip-build

wget --trust-server-name -N  "http://downloads.sourceforge.net/project/argtable/argtable/argtable-2.${ARGTABLE2_VERSION}/argtable2-${ARGTABLE2_VERSION}.tar.gz?r=http%3A%2F%2Fargtable.sourceforge.net%2F&ts=1357723321&use_mirror=freefr"
tar xzf argtable2-${ARGTABLE2_VERSION}.tar.gz
cd argtable2-${ARGTABLE2_VERSION}
./configure --disable-shared --prefix=/tmp/comskip-build/argtable-install
make -j8
make install
cd ..

wget -N http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2
tar xjf ffmpeg-${FFMPEG_VERSION}.tar.bz2
cd ffmpeg-${FFMPEG_VERSION}
./configure --prefix=/tmp/comskip-build/ffmpeg-install \
  --disable-runtime-cpudetect \
  --disable-doc \
  --disable-network \
  --disable-ffmpeg \
  --disable-ffplay \
  --disable-ffprobe \
  --disable-ffserver \
  --disable-avdevice \
  --disable-swresample \
  --disable-swscale \
  --disable-postproc \
  --disable-avfilter \
  --disable-everything \
  --enable-decoders \
  --enable-hwaccels \
  --enable-demuxers \
  --enable-bsfs \
  --enable-parsers  \
  --enable-protocols \
  --disable-bzlib \
  --disable-zlib \
  ${FFMPEG_SETTINGS}
make -j8
make install
cd ..

mkdir pkgconfig
cp ffmpeg-install/lib/pkgconfig/* pkgconfig
cp argtable-install/lib/pkgconfig/* pkgconfig

export CFLAGS="$COMSKIP_FLAGS"
export CXXFLAGS="$COMSKIP_FLAGS"
wget -N http://www.xilka.com/xilka/source/comskip-${COMSKIP_VERSION}.tar.xz
tar xJf comskip-${COMSKIP_VERSION}.tar.xz
cd comskip-${COMSKIP_VERSION}
PKG_CONFIG_PATH=/tmp/comskip-build/pkgconfig ./configure --prefix=/tmp/comskip-build/comskip
make -j8
cd ..

mv comskip-${COMSKIP_VERSION}/comskip comskip
rm -r argtable2-${ARGTABLE2_VERSION} ffmpeg-${FFMPEG_VERSION} comskip-${COMSKIP_VERSION} pkgconfig ffmpeg-install argtable-install
Looks great. So with this script i should be able to compile a binary which i can run on OpenELEC like you said but also on a Linux based NAS then?

Edit:
Gave it a test run but it didn't worked out the way expected.

http://pastebin.com/5FHGAMZ1
Reply
#87
I think this is where it goes wrong:
checking whether the C compiler works... no
configure: error: in `/tmp/comskip-build/argtable2-13':
configure: error: C compiler cannot create executables

This may be because your gcc does not accept the given flags. You could try whether setting FLAGS="" would fix it.
Also, you may get the same message if you have not installed libc6-dev, if I remember correctly.
Reply
#88
(2013-01-16, 18:03)gnomis Wrote: I think this is where it goes wrong:
checking whether the C compiler works... no
configure: error: in `/tmp/comskip-build/argtable2-13':
configure: error: C compiler cannot create executables

This may be because your gcc does not accept the given flags. You could try whether setting FLAGS="" would fix it.
Also, you may get the same message if you have not installed libc6-dev, if I remember correctly.
I think it's an issue with my GCC (checking whether the C compiler works... no), did FLAGS="" since libc6-dev was already installed but same error only later.
Going to check what is causing this.

Thanks for helping anyway Wink
Reply
#89
(2013-01-16, 14:00)schumi2004 Wrote: Update on my attempt to get it compiled for my Synology NAS.
I don't think it's possible to get this running on my NAS because of the missing C++11 support in Synology toolchain.

Code:
checking for inline... inline
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether /home/spksrc-schumi2004/toolchains/syno-88f6281/work/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ supports C++11 features by default... no
checking whether /home/spksrc-schumi2004/toolchains/syno-88f6281/work/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ supports C++11 features with -std=gnu++11... no
checking whether /home/spksrc-schumi2004/toolchains/syno-88f6281/work/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ supports C++11 features with -std=gnu++0x... no
configure: error: *** A compiler with support for C++11 language features is required.
make[1]: *** [configure_target] Error 1
make[1]: Leaving directory `/home/spksrc-schumi2004/cross/comskip'
make: [arch-88f6281] Error 2 (ignored)

Edit:
Maybe there is a change getting it compiled for my NAS which is a arm based system.
Is there something specific to know for this script ?
http://www.xilka.com/xilka/source/BuildC...2012.05.sh

I just put up a newer Cross toolchain build script. There are very few system specific things in the script, so it should run pretty much on any Linux system.

This version has been updated and should download all external dependencies.

http://www.xilka.com/xilka/source/BuildC...2013.01.sh

Reply
#90
(2013-01-16, 17:18)gnomis Wrote: My donation: a (pretty) generic build script.
Retrieves and builds everything in /tmp/comskip-build.
This script creates a static binary, so there will be no external dependencies, which makes the result easily usable in something like OpenElec.
There are 2 settings commented out, which I use to optimize specifically for the Intel Atom processor in my OpenElec box.
Feel free to include it in the distribution, website or forum thread under whatever license. Smile Thank you for this Linux port.
(BTW, I tried to do some optimization, such as excluding some unused ffmpeg components, but there is likely room for improvement.)

Code:
#!/bin/bash
COMSKIP_VERSION=0.92d
ARGTABLE2_VERSION=13
FFMPEG_VERSION=1.0.1
# FFMPEG_SETTINGS="--cpu=atom"
FFMPEG_SETTINGS=""
# FLAGS="-march=atom -pipe -fomit-frame-pointer -fexcess-precision=fast -ffast-math"
FLAGS="-pipe -fomit-frame-pointer -fexcess-precision=fast -ffast-math"
COMSKIP_FLAGS="$FLAGS -floop-parallelize-all -ftree-parallelize-loops=4"

export CFLAGS="$FLAGS"
export CXXFLAGS="$FLAGS"
mkdir /tmp/comskip-build
cd /tmp/comskip-build

wget --trust-server-name -N  "http://downloads.sourceforge.net/project/argtable/argtable/argtable-2.${ARGTABLE2_VERSION}/argtable2-${ARGTABLE2_VERSION}.tar.gz?r=http%3A%2F%2Fargtable.sourceforge.net%2F&ts=1357723321&use_mirror=freefr"
tar xzf argtable2-${ARGTABLE2_VERSION}.tar.gz
cd argtable2-${ARGTABLE2_VERSION}
./configure --disable-shared --prefix=/tmp/comskip-build/argtable-install
make -j8
make install
cd ..

wget -N http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2
tar xjf ffmpeg-${FFMPEG_VERSION}.tar.bz2
cd ffmpeg-${FFMPEG_VERSION}
./configure --prefix=/tmp/comskip-build/ffmpeg-install \
  --disable-runtime-cpudetect \
  --disable-doc \
  --disable-network \
  --disable-ffmpeg \
  --disable-ffplay \
  --disable-ffprobe \
  --disable-ffserver \
  --disable-avdevice \
  --disable-swresample \
  --disable-swscale \
  --disable-postproc \
  --disable-avfilter \
  --disable-everything \
  --enable-decoders \
  --enable-hwaccels \
  --enable-demuxers \
  --enable-bsfs \
  --enable-parsers  \
  --enable-protocols \
  --disable-bzlib \
  --disable-zlib \
  ${FFMPEG_SETTINGS}
make -j8
make install
cd ..

mkdir pkgconfig
cp ffmpeg-install/lib/pkgconfig/* pkgconfig
cp argtable-install/lib/pkgconfig/* pkgconfig

export CFLAGS="$COMSKIP_FLAGS"
export CXXFLAGS="$COMSKIP_FLAGS"
wget -N http://www.xilka.com/xilka/source/comskip-${COMSKIP_VERSION}.tar.xz
tar xJf comskip-${COMSKIP_VERSION}.tar.xz
cd comskip-${COMSKIP_VERSION}
PKG_CONFIG_PATH=/tmp/comskip-build/pkgconfig ./configure --prefix=/tmp/comskip-build/comskip
make -j8
cd ..

mv comskip-${COMSKIP_VERSION}/comskip comskip
rm -r argtable2-${ARGTABLE2_VERSION} ffmpeg-${FFMPEG_VERSION} comskip-${COMSKIP_VERSION} pkgconfig ffmpeg-install argtable-install

Looks pretty good. I would suggest using /var/tmp rather than /tmp. I'ts common for /tmp to be a ram based filesystem on current Linux systems whereas /var/tmp should always be physical media (meaning you should be able to count on /var/tmp having enough space).
Reply
  • 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 23

Logout Mark Read Team Forum Stats Members Help
Comskip for Linux released6