1

Topic: avsInfo - basic infos from avisynth scripts

Here's the source code of avsInfo which is a small tool I wrote to get some general infos about Avisynth

binaries and source can be found here

Cu Selur

2

Re: avsInfo - basic infos from avisynth scripts

changed the code a bit and fixed a crash on 64bit systems,..

3

Re: avsInfo - basic infos from avisynth scripts

fixed, the problem of avsInfo not finishing properly.

4

Re: avsInfo - basic infos from avisynth scripts

Hi there,

I am working toward having toward having installation scripts for hybrid ready for Gentoo Linux https://bugs.gentoo.org/show_bug.cgi?id=578478 which obviously must include number of optional dependencies including avsinfo. avsInfo hoever does not include any compile instructions which is probably why it does not compile for me. Please take a look what is missing there in order for it to finish successfully.

make -j9
x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -DG_DISABLE_ASSERT -DNO_DEBUG -DNDEBUG -fomit-frame-pointer -ftree-vectorize -findirect-inlining -fabi-version=0 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o Analyser.o Analyser.cpp
x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -DG_DISABLE_ASSERT -DNO_DEBUG -DNDEBUG -fomit-frame-pointer -ftree-vectorize -findirect-inlining -fabi-version=0 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o main.o main.cpp
x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -DG_DISABLE_ASSERT -DNO_DEBUG -DNDEBUG -fomit-frame-pointer -ftree-vectorize -findirect-inlining -fabi-version=0 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o interface.o interface.cpp
/usr/lib64/qt5/bin/moc -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I/tmp/portage/media-video/avsinfo-20121013/work/avsInfo/source -I/usr/include/qt5 -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/g++-v5 -I/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/g++-v5/x86_64-pc-linux-gnu -I/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/g++-v5/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include-fixed -I/usr/include Analyser.h -o moc_Analyser.cpp
In file included from interface.cpp:50:0:
stdafx.h:11:16: fatal error: io.h: No such file or directory
 #include <io.h>
                ^
compilation terminated.
Makefile:305: polecenia dla obiektu 'interface.o' nie powiodły się
make: *** [interface.o] Error 1
make: *** Oczekiwanie na niezakończone zadania....
In file included from Analyser.h:14:0,
                 from main.cpp:7:
avisynth.h:50:21: fatal error: windows.h: No such file or directory
 #include <windows.h>
                     ^
compilation terminated.
Makefile:301: polecenia dla obiektu 'main.o' nie powiodły się
make: *** [main.o] Error 1
In file included from Analyser.h:14:0,
                 from Analyser.cpp:8:
avisynth.h:50:21: fatal error: windows.h: No such file or directory
 #include <windows.h>
                     ^
compilation terminated.
Makefile:297: polecenia dla obiektu 'Analyser.o' nie powiodły się
make: *** [Analyser.o] Error 1
 * ERROR: media-video/avsinfo-20121013::i7woj failed (compile phase):
 *   emake failed

5

Re: avsInfo - basic infos from avisynth scripts

Totally forgot I attached some old source code there. smile
a. avsInfo is a Windows only tool so compiling it on Linux doesn't make sence unless you do a cross-compile, there is no native Linux version. wink
b. Hybrid only does support 32bit Avisynth, thus compiling a 64bit version is a bad idead.
-> only way to use avsInfo on Linux is through wine and using the 32bit binaries which come with the avisynthPlugins download.

Cu Selur

6

Re: avsInfo - basic infos from avisynth scripts

Oh I see. That line kinda made me believe I would be able to compile as website said "avsInfo (Windows and Linux) Licence: free for all" tongue
As for 64bit then that is just default on AMD64 Gentoo system, but it has true multilib support for some time and if properly instructed it could compile and install both or just the 32bit one.

I am not an expert writing ebuilds (Gentoo install scripts) but they get job done wink So far I included the below dependencies in my local ebuild. It is definitely missing DivX265. Please take a look if there is any more one can add that would work natively on Linux (source or binary) I would do my best to include them and create ebuild for them if necessary. 

As for wine stuff it would be best if someone could create script name it hybrid or avisynth for https://www.playonlinux.com/pl/supported_apps.html This would also be system independent (Gentoo, Ubuntu, Debian etc.)

hybrid-160309.ebuild

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI="5"

DESCRIPTION="Advanced multisystem video editor"
HOMEPAGE="[removed due too link post limit]"
SRC_URI="[removed due too link post limit]"

#free for personal use, no right to redistribute see [removed due too link post limit]
LICENSE="free-noncomm"
SLOT="0"
KEYWORDS="~amd64"
IUSE="aac aften audio dts dvd memcoder mkv ogg opus sox subtitles qt4 tsmuxer vpx x264 x265"
RESTRICT="fetch"

#aac options - fhgaacenc, qaac, fdk-aac, neroaac
#memcoder flag used innstead of encode as primary purpuse
# of the program to to encode, but we need to pick specific
# kind of encode dependency
RDEPEND="
    >=dev-qt/qtmultimedia-5.2
        >=dev-qt/qtwidgets-5.2
        >=dev-qt/qtxml-5.2
        >=media-video/mediainfo-0.7
        media-video/framecounter

        aac? (
                  media-sound/fdkaac
                media-sound/neroaac
        )
    aften? ( >=media-libs/aften-0.0.8 )
        audio? (
                media-sound/delaycut
                >=media-video/mp4fpsmod-0.24
        )
    dts? ( media-sound/dcaenc )
        dvd? ( media-video/lsdvd )
        memcoder? ( media-video/mplayer[encode] )
        mkv? ( media-video/mkvtoolnix )
        ogg? ( media-sound/vorbis-tools )
        opus? ( media-sound/opus-tools )
        sox? ( media-sound/sox )
        subtitles? (
                qt4? ( media-video/bdsup2sub++ )
                media-video/telxcc
        )
           tsmuxer? ( >=media-video/tsmuxer-2.6 )
        vpx? ( media-libs/libvpx )
           x264? ( media-video/x264-encoder )
        x265? (
                media-libs/kvazaar
                media-libs/x265
        )
"
DEPEND=""

S="${WORKDIR}/"

src_install() {
        exeinto /opt/${PN}
        doexe Hybrid
}

7

Re: avsInfo - basic infos from avisynth scripts

It is definitely missing DivX265

-> http://labs.divx.com/divx265

Please take a look if there is any more one can add that would work natively on Linux

Things I don't see in the script:
flac
ffmpeg
ffmbc
faac
mplayer, also not that mplayer and mencoder should be compiled with xvid, libdvdread, libburay
also Qt Network is also required,..
(bdsup2sub++ doesn't require qt4, works fine with qt5)

Cu Selur

8 (edited by vojcek 2016-03-31 23:28:43)

Re: avsInfo - basic infos from avisynth scripts

Thanks! I will work on those
As for bdsup2sub++ it would not build without libqxt (I just checked) which needs qt4 to work in the last released version. Would have to port some patches for from master or even pull requests https://bitbucket.org/libqxt/libqxt/pul … -1204/diff to make it work with qt5

9

Re: avsInfo - basic infos from avisynth scripts

You are right, totally forgot about that.