vatic icon indicating copy to clipboard operation
vatic copied to clipboard

turkic publish offline mode outputs some rubbish links

Open manisoftwartist opened this issue 9 years ago • 4 comments

When there is more than 1 video in the vatic database (ascertained turkic list), the turkic publish --offline options spews out invalid URLs. For instance, in my case, I had 2 videos (2 separate identifiers) in the vatic database. The tool outputs: http://localhost?id=1&hitId=offline http://localhost?id=2&hitId=offline http://localhost?id=3&hitId=offline http://localhost?id=16&hitId=offline http://localhost?id=17&hitId=offline

Of these, only the last 2 are valid. Trying to access the first 3 URLs in the browser just displays '"Downloading the video" 0%

manisoftwartist avatar May 26 '15 12:05 manisoftwartist

I am also trying to figure out how to actually launch turkic for the first time, offline.

turkic find

returns a bunch of links like yours that lead to a "Server Error" page.

turkic publish --offline doesn't do anything as far as I can tell.

drewm1980 avatar Feb 19 '16 14:02 drewm1980

The issue lies in the database structure. This happens when you had previously loaded videos and deleted them. The next uploaded video will not have in the url id=1 but the incremental number of all the segments of all videos you have previously loaded (even deleted ones). For example, id=1 stands for the first segment of the first video you upload. since id is primary key for the table "jobs" you cannot reset it but goes incrementally. Try manually το change the id number or go to the output frame directory and count incrementally the segments of each video.

aaman-ee avatar Sep 26 '16 08:09 aaman-ee

I agree with the above. I believe the error occurs when a video is loaded without the 'offline' keyword but published with the 'offline' keyword. When that video is deleted the urlid counter is not properly adjusted and continues to include that deleted video. The accurate analogue in the database is groupid under vatic.turkic_hits Those id's should still correspond to the urlid's.

zesoft23 avatar Apr 28 '17 19:04 zesoft23

my problem is that it sends out many links. But none of them works. I load the video only once. And I use the option "--offline" for loading the publishing. Do you have any suggestion?

http://localhost/?id=85&hitId=offline http://localhost/?id=86&hitId=offline http://localhost/?id=87&hitId=offline http://localhost/?id=88&hitId=offline http://localhost/?id=89&hitId=offline http://localhost/?id=90&hitId=offline http://localhost/?id=91&hitId=offline http://localhost/?id=92&hitId=offline http://localhost/?id=93&hitId=offline http://localhost/?id=94&hitId=offline http://localhost/?id=95&hitId=offline http://localhost/?id=96&hitId=offline http://localhost/?id=97&hitId=offline http://localhost/?id=98&hitId=offline http://localhost/?id=99&hitId=offline http://localhost/?id=100&hitId=offline http://localhost/?id=101&hitId=offline http://localhost/?id=102&hitId=offline

@zesoft23 @aaman-ee 

yang-fei avatar May 08 '17 10:05 yang-fei