Giter Site home page Giter Site logo

Comments (16)

krzemin avatar krzemin commented on June 7, 2024

Please provide more information.

  1. Link to a movie file (or torrent) you are downloading subtitles for.
  2. QNapi configuration file (qnapi.ini)

from qnapi.

miniworm avatar miniworm commented on June 7, 2024

I've provided few more details in #37 . Sorry, no links to torrents or files since i've tried with files on my HDD, which I've from my friend. But i've tried with few files and it works the same way with all of them.

Here is my qnapi.ini file:

[qnapi]
7z_path=/usr/bin/7z
auto_detect_encoding=false
change_permissions=false
download_policy=1
enc_from=windows-1250
enc_to=windows-1250
encoding_method=0
engines=@variant(\0\0\0\v\0\0\0\x2\0\0\0\x16\0N\0\x61\0p\0i\0P\0r\0o\0j\0\x65\0k\0t\0\0\0\x2\0\x31), @variant(\0\0\0\v\0\0\0\x2\0\0\0\x1a\0O\0p\0\x65\0n\0S\0u\0\x62\0t\0i\0t\0l\0\x65\0s\0\0\0\x2\0\x31), @variant(\0\0\0\v\0\0\0\x2\0\0\0\x10\0N\0\x61\0p\0i\0s\0y\0\x32\0\x34\0\0\0\x2\0\x31)
ffprobe_path=/usr/bin/ffprobe
firstrun=false
language=pl
language_backup=en
nick=
no_backup=false
pass=
permissions=644
post_processing=true
prev_dialog_path=/media/Video/
quiet_batch=false
remove_lines=false
remove_words=movie info, "synchro "
search_policy=0
show_all_encodings=false
skip_convert_ads=true
sub_ext=
sub_format=
tmp_path=/tmp
use_brushed_metal=true
version=0.2.1

from qnapi.

krzemin avatar krzemin commented on June 7, 2024

I can confirm that after subtitle selection dialog, only when you select subtitles provided by OpenSubtitles engine, they are not downloaded. But it doesn't matter whether format/encoding conversion is enabled. When I selected subtitles provided by NapiProjekt or Napisy24, everything worked as expected.
The most probably it is a problem with OpenSubtitles API. Try disabling OpenSubtitles engine and check whether you can reproduce the problem.

Regarding problems with file conversion from menu, please don't mix different topics in a single issue. If there is a problem - create another issue and describe all the details like source/destination formats and providing original source file.

from qnapi.

miniworm avatar miniworm commented on June 7, 2024

Sadly it doesn't change for better after disabling OpenSubtitles. Files are downloaded when i set original format but not after enabling format conversion (tried with both NapiProjekt and Napisy24).

from qnapi.

krzemin avatar krzemin commented on June 7, 2024

It's very strange. I don't have any problems that you are describing when format conversion is enabled.

  1. Did you installed pre-built package or used version compiled from source?
  2. Which Qt version your qnapi binary is linked against?

from qnapi.

miniworm avatar miniworm commented on June 7, 2024

I compile package myself since i'm on Ubuntu 14.04 and official package is only for 15.10. But i use the same script form Ubuntu official package so compilation is exactly the same. I've compiled official 0.2 and master from git. Here are dependencies:

Depends: libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libqt5core5a (>= 5.0.2), libqt5gui5 (>= 5.0.2) | libqt5gui5-gles (>= 5.0.2), libqt5network5 (>= 5.0.2), libqt5widgets5 (>= 5.2.0), libqt5xml5 (>= 5.0.2), libstdc++6 (>= 4.5), p7zip-full
Suggests: ffmpeg
Replaces: qnapi-gnome, qnapi-kde

from qnapi.

krzemin avatar krzemin commented on June 7, 2024

So, what is the current Qt version? You can check it on about dialog, on the newest master.

from qnapi.

miniworm avatar miniworm commented on June 7, 2024

zrzut ekranu z 2015-12-06 13 16 38
Here is my about dialog - no Qt info ;-(

Anyway i've Qt available in Ubuntu 14.04 which is 5.2.1 - http://packages.ubuntu.com/trusty/libqt5core5a. Ubuntu 15.10 has 5.4.2.

from qnapi.

krzemin avatar krzemin commented on June 7, 2024

Qt version in about dialog is available since that commit 605d3fd. You have to pull changes from the master and recompile it to see that.

But anyway - it's Qt 5.2.1, which is a bit old and it can be the root of the problems. Do you have possibillity to check one of these?

  • try to compile Qnapi not against pre-packaged Qt in your distribution, but download 5.5.x online installer for Linux here: https://www.qt.io/download-open-source/#section-2 and use qmake from the installation directory of 5.5.x and check whether the problems still persist
  • try to install/upgrade/set up virtual one ubuntu 15.10 and install qnapi from packages - so far no ubuntu 15.10 users reported such errors and I'm curious if you can reproduce them

from qnapi.

miniworm avatar miniworm commented on June 7, 2024

I've tried qnapi from packages on Ubuntu 15.0 - version available is 0.1.9 - and can say that file type conversion works (at least for SRT). But regardless of selecting charset conversion or not in resulting file charset is some giberish (enca reports UTF-8 but it's not, it's something strange). Sadly i cannot chceck 02 version since it's not available in Ubuntu right now.

I'll try to compile Qnapi against Qt 5.5.1 but later in virtual machine - i don't want to mess-up things in my normal usage machine.

from qnapi.

krzemin avatar krzemin commented on June 7, 2024

Yes, that was known problem in 0.1.9 (#34) and was fixed in 0.2.0. I expect that 0.2.0 (and newest master) compiled against Qt 5.5.x works fine.
Then we would need to bump up required Qt version for the project...

from qnapi.

miniworm avatar miniworm commented on June 7, 2024

But it's not so good, at least for Ubuntu users since even in planned ubuntu 16.04 LTS right now Qt is at 5.4.2. So this requirement is very high. Solution: to provide for Linux not only tar.gz with source, but also DEB and RPM packages statically linked against Qt 5.5.

from qnapi.

krzemin avatar krzemin commented on June 7, 2024

Ubuntu 15.10 has Qt 5.4.x and those strange problems with format conversion don't appear. Apparently their reasons were fixed before Qt 5.4.x (you can check it by compiling on Ubuntu 15.10). So actual "requirement" would be some Qt version between 5.2 and 5.3. I don't know and don't have time for investigating that. README clearly recommends the most recent version.

from qnapi.

miniworm avatar miniworm commented on June 7, 2024

Ok, now i understand that in Ubuntu 14.04 the only solution is to have statically linked binary.

BTW - could you prepare 0.2.0 for Ubuntu? It's much better and this way it will be in 16.04 which is LTS so supported for next 5 years.

from qnapi.

miniworm avatar miniworm commented on June 7, 2024

Nevermind for me but (README even in master) says that Qt 5.1+ (most recent 5.x recommended)

from qnapi.

krzemin avatar krzemin commented on June 7, 2024

Ok, now i understand that in Ubuntu 14.04 the only solution is to have statically linked binary.

Not necessarily. There are external repos with Qt 5.5.x. Look at https://github.com/QNapi/qnapi/blob/master/.travis.yml to see how the compilation environment on even older ubuntu distro is bootstraped (Travis by default uses 12.04 LTS).

BTW - could you prepare 0.2.0 for Ubuntu?

The simple answer is: no. I'm not Debian/Ubuntu maintainer/packager. However I've submitted debian bugreport about new version available (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=807758).

Nevermind for me but (README even in master) says that Qt 5.1+ (most recent 5.x recommended)

Yes and that is true - 5.1 is minimal version required for compilation to succeed, but most recent one is recommended to have some features "unbugged".

from qnapi.

Related Issues (20)

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.