Giter VIP home page Giter VIP logo

qnapi's Introduction

QNapi Build Status Build status GitHub release Github All Releases

QNapi is free software for automatic fetching subtitles for given movie file. It uses online databases such as NapiProjekt, OpenSubtitles and Napisy24. It is based on Qt5 library, so it can be launched on any supported operating system, including Windows, OSX and Linux.

Binary packages

Latest binary packages are available at http://qnapi.github.io/#download

Building from source

Prerequisites

  • C++ compiler with c++11 support installed (clang++, g++ or MinGW for Windows), present in PATH
  • Qt 5.2+ (most recent 5.x recommended) installed with qmake present in PATH (you can find one at http://www.qt.io/download-open-source/)

Binary prerequisites

QNapi requires these binary dependencies:

  • p7zip (7z, 7za) - to unpack subtitles, which are commonly compressed with 7zip
  • libmediainfo - to retrieve movie info such as dimensions, duration and frame rate

Linux/UNIX users can find these dependencies in separate packages.

Statically compiled p7zip binaries are provided in this repository for Windows/OSX users at win32/content/7za.exe and macx/content/7za, respectively. Similarly, compiled libmediainfo libraries are provided for Windows/OSX in deps/libmediainfo/.

WARNING! Precompiled binaries are stripped from the source archive!

Cloning the source code

First, you have to clone project source code using git client:

$ git clone --recursive https://github.com/QNapi/qnapi.git

Compiling

To compile the application, you have to execute two following commands in qnapi root directory:

$ qmake

This will produce Makefile.

$ make (or mingw32-make on Windows)

This will compile the sources and build executable binary (or app bundle on OSX).

Important! Windows users have to execute one more command:

$ make install (or mingw32-make install)

This one will copy all binaries, libraries and other dependencies to win32/out directory.

Running

By default, output binaries are placed by make in different locations, depending on your operating system:

  • Linux - qnapi in root project directory
  • OSX - macx/QNapi.app bundle
  • Windows - win32/out/qnapi.exe executable

After you locate your binaries, you can run the application.

7zip note

For proper subtitle extraction after download, 7zip executable is required to be passed in application's settings. Linux users have to install 7zip binary package from distribution repositories or compile on its own. For Windows and OSX there are pre-built binaries included in this repository, in win32 and macx directories appropriately and should be automatically detected by the application.

Making redistributable package

OSX

Prerequisites

You need appdmg script installed. You can found it at https://github.com/LinusU/node-appdmg

Building .dmg image

To build .dmg image for OSX with nice, drag&drop installer, you have to execute:

$ make appdmg

QNapi-x.y.z.dmg will appear in macx directory when command is completed.

Windows

Prerequisites

You need to have NSIS 2.x installed. You can found it at http://nsis.sourceforge.net

Also, you will need to manually install NSIS plugin nsProcess. It can be found at http://nsis.sourceforge.net/NsProcess_plugin

Building Windows installer

Installer script is placed at win32/QNapi-setup.nsi. You can build binary exe package using NSIS user interface (by right mouse button -> compile NSIS script) or from command line:

$ C:\Path\To\makensis.exe QNapi-setup.nsi

After a while, QNapi-x.y.z-setup.exe file will appear in win32 directory.

qnapi's People

Contributors

krzemin avatar michalkrasowski avatar luigino avatar kempniu avatar lgbaldoni avatar fisiu avatar psokol avatar greedysky avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.