LinuxMCE Forums

General => Users => Topic started by: jeangot on August 17, 2011, 05:19:52 am

Title: lmce-autotagger ?
Post by: jeangot on August 17, 2011, 05:19:52 am
Hello,

I just updated my 0810 installation to the current version (apt-get update; apt-get upgrade), and one of the improvements I was looking for is the autotagger.
According to this page: http://wiki.linuxmce.org/index.php/LinuxMCE-0810_beta
There was a package lmce-autotagger created on May 30th.

However that package did not install during my update, and
apt-get update; apt-get install lmce-autotagger
says that this package doesn't exist.

What am I doing wrong, and if the autotagger does not come in a package, is the only way to install it compiling it from source?

Thank you!

Jean
Title: Re: lmce-autotagger ?
Post by: sambuca on August 17, 2011, 07:37:24 am
From what I understand, there were missing dependencies(or differing API) for the autotagger in 810, as it was originally built for 1004. So it wasn't built for 810, afaik. The beta page is thus likely wrong in this case. It should be possible for someone with the right motivation to fix this though, but none has yet.

best regards,
sambuca
Title: Re: lmce-autotagger ?
Post by: golgoj4 on August 17, 2011, 10:37:34 am
since its my baby, i should get that fixed. I have updated it to build on 0810 and updated the source tree, i just keep forgetting to ask possy to add it to the build.

-golgoj4
Title: Re: lmce-autotagger ?
Post by: jeangot on August 17, 2011, 05:15:32 pm
Thanks for the quick reply. I have corrected the wiki page so that nobody else gets confused, and will wait for the package to be available in 0810.

Jean
Title: Re: lmce-autotagger ?
Post by: donpaul3 on August 18, 2011, 02:52:52 pm
Would the lmce-autotagger work with Dianemo 10.10? I am using Dianemo which currently doesn't have IMDB tagging or functional Amazon. Would love to use autotagger.
Title: Re: lmce-autotagger ?
Post by: donpaul3 on August 18, 2011, 03:21:04 pm
Would the lmce-autotagger work with Dianemo 10.10? I am using Dianemo which currently doesn't have IMDB tagging or functional Amazon. Would love to use autotagger.

I will answer my own question - YES, autotagger works on Dianemo 10.10. First try and flawless. Great job! PM me a Paypal address for donation!
Title: Re: lmce-autotagger ?
Post by: donpaul3 on August 18, 2011, 03:52:46 pm
Is it possible to put the episode number (s03e11) in the title of the shows? It is difficult to look at the list of shows and know which episode is next.
Title: Re: lmce-autotagger ?
Post by: golgoj4 on August 18, 2011, 07:09:46 pm
I will answer my own question - YES, autotagger works on Dianemo 10.10. First try and flawless. Great job! PM me a Paypal address for donation!

Donation to the LMCE project in general would be nice. :) If you feel so compelled. :)

as far as whats going to be mapped to what, we are still working that out. The idea is to have episode number and title in two separate fields, but i will see what i can do in the mean time.

-golgoj4
also, kinda cool it works on Dianemo too :) never even crossed my mind when I was writing it. Anyways, on to improvements.

-golgoj4
Title: Re: lmce-autotagger ?
Post by: donpaul3 on August 18, 2011, 10:22:54 pm
I creating my own auto-tag script for TV shows that has been working great. Metadata from TV episodes is in an NFO file and I parse that for details. When I tag shows, I put the show name and the episode as the title and it works out perfectly (Dexter - s02e06).

Code: [Select]
#!/bin/bash

for each in public user_2 user_1 user_5
do

cd "/home/$each/data/videos/TV"

find . -mtime -1| egrep -e 'avi|mkv|xvid|ts|m2ts' | grep -v id3 | while read "files"
do
file=`echo "$files" | cut -f2 -d"/"`
name=`echo "$files" | cut -f4 -d"/" | cut -f1 -d"."`
nfo=`echo "$files" | cut -f1-2 -d"."`
title=`cat "$nfo.nfo" | grep title | cut -f2 -d">" | cut -f1 -d"<"`
aired=`cat "$nfo.nfo" | grep aired | cut -f2 -d">" | cut -f1 -d"<"`
rm "$files.id3"
touch "$files.id3"
id3v2 --TIT2 "$name - $title" "$files.id3"
id3v2 --TYER "$aired" "$files.id3"
eyeD3 --add-image="./$file/folder.jpg":OTHER "$files.id3"
done

done

I used your autotagger to tag a new series of shows, and I loved the result. The only problem is that I have no idea in which order to watch the shows!
Title: Re: lmce-autotagger ?
Post by: wombiroller on September 19, 2011, 12:36:40 pm
Hey golgoj4,

I know you are flat out with other things - so am hesitant to interrupt, but thought I might ask if you know what might be going on.

I can run this on my movie collection (dcerouter:~/autotagger$ sudo ./linuxmceTag.bin /directory/location )... but if I try on a large amount of media - it keeps hanging due to what seems like corrupt jpegs. E.g.

Code: [Select]
Done! New AttributeID = 28419|| Now for file...Done! New AttributeID = 28420|| Now for file...Done! New AttributeID = 28421|| Now for file...Done! New AttributeID = 28422|| Now for file...Done! New AttributeID = 28423|| Now for file...Getting Pic for file
Code: [Select]
Corrupt JPEG data: premature end of data segment
 QUrl( "http://cf1.imgobject.com/backdrops/4bc/4bc90714017a3c57fe0024bc/miller-s-crossing-original.jpg" )
 QUrl( "http://cf1.imgobject.com/posters/dbc/4bc92c4b017a3c57fe011dbc/bad-santa-original.jpg" )

Is there any way to force the script to continue? The failures seem to be a bit random. An image it failed on in the past - it will breeze through the next time. Files prior to this point get tagged correctly (assuming the name is found in IMDB).

Can anyone else duplicate this on a largish media collection?

Thanks!
WR.

p.s - not sure if it supposed to work but the "Auto Tag" button in media file sync doesn't do anything for me.
Title: Re: lmce-autotagger ?
Post by: golgoj4 on September 20, 2011, 05:54:54 pm
Hey golgoj4,

I know you are flat out with other things - so am hesitant to interrupt, but thought I might ask if you know what might be going on.

I can run this on my movie collection (dcerouter:~/autotagger$ sudo ./linuxmceTag.bin /directory/location )... but if I try on a large amount of media - it keeps hanging due to what seems like corrupt jpegs. E.g.

Code: [Select]
Done! New AttributeID = 28419|| Now for file...Done! New AttributeID = 28420|| Now for file...Done! New AttributeID = 28421|| Now for file...Done! New AttributeID = 28422|| Now for file...Done! New AttributeID = 28423|| Now for file...Getting Pic for file
Code: [Select]
Corrupt JPEG data: premature end of data segment
 QUrl( "http://cf1.imgobject.com/backdrops/4bc/4bc90714017a3c57fe0024bc/miller-s-crossing-original.jpg" )
 QUrl( "http://cf1.imgobject.com/posters/dbc/4bc92c4b017a3c57fe011dbc/bad-santa-original.jpg" )

Is there any way to force the script to continue? The failures seem to be a bit random. An image it failed on in the past - it will breeze through the next time. Files prior to this point get tagged correctly (assuming the name is found in IMDB).

Can anyone else duplicate this on a largish media collection?

Thanks!
WR.

p.s - not sure if it supposed to work but the "Auto Tag" button in media file sync doesn't do anything for me.

no worries, this is going to be an important component moving on so it needs attention.
 when you see this happen, are you sure the script stops? I thought I just had that as a warning more than a show-stopper. As far as the button from the webadmin not working, ill need to look into that. Not sure why it stopped.

Ill let you know when I have some fixes.
-golgoj4
Title: Re: lmce-autotagger ?
Post by: wombiroller on September 21, 2011, 12:27:03 am
Thx golgoj4!

Yeah pretty sure it stops. I did a top and watched it stop after around 3.5 min. Left it for half and hour anway (before ctrl - C) and nothing happened. I'll test again tonight though to make 100% sure.

Cheers,
WR
Title: Re: lmce-autotagger ?
Post by: wombiroller on September 21, 2011, 12:47:04 pm
Yep - it hangs for me.... has been @ 5:30 for the last 40min. Stuck at the Getting pic for file output again. Let me know if you need any info / testing.

Thanks!
WR.
Title: Re: lmce-autotagger ?
Post by: golgoj4 on September 30, 2011, 08:52:04 pm
Yep - it hangs for me.... has been @ 5:30 for the last 40min. Stuck at the Getting pic for file output again. Let me know if you need any info / testing.

Thanks!
WR.

Can you do an apt-get update / apt-get upgrade then let me know if things are still broken?
-thanks golgoj4
Title: Re: lmce-autotagger ?
Post by: golgoj4 on October 02, 2011, 10:36:29 pm
bump
Title: Re: lmce-autotagger ?
Post by: wombiroller on October 02, 2011, 11:49:18 pm
Sorry bout the delay (have been away). Will try tonight and confirm.  :)

Title: Re: lmce-autotagger ?
Post by: wombiroller on October 04, 2011, 12:05:37 am
Hey golgoj4,

Left it running last night and it worked  ;D Thanks!

I am a bit confused as to what changed though as the update/upgrade didn't actually change anything (0 installed, 0 upgraded, 0 removed)...

I must have updated it a few days before and forgot about it?


Anyway - thanks again. Let me know if you need more info.

Cheers,
WR
Title: Re: lmce-autotagger ?
Post by: golgoj4 on October 04, 2011, 01:23:13 am
Hey golgoj4,

Left it running last night and it worked  ;D Thanks!

I am a bit confused as to what changed though as the update/upgrade didn't actually change anything (0 installed, 0 upgraded, 0 removed)...

I must have updated it a few days before and forgot about it?


Anyway - thanks again. Let me know if you need more info.

Cheers,
WR

We added new db tables for some attributes. I dont know what was going on, but it was supposed to skip them if they were not there but it appears that something caused it to hang. Anyways, is the button in the webadmin still broken?

Also keep in mind, there is the tvdb scraper that allows you to do single file or entire directory tagging.
http://www.youtube.com/watch?v=LqOQ5PqNQKk. Kind of long but hits the main points!

-golgoj4
Title: Re: lmce-autotagger ?
Post by: wombiroller on October 04, 2011, 10:37:01 am
Thx golgoj4.

Sorry - forgot to try that.

The autotag button brings a pop-up now (didn't before), but it is just a blank page. I get waiting for 192.168.80.1... but no response/data. Is there somewhere I can check logs to provide more info?

EDIT: Also, I noticed in your video the new feature "program filter". I have this in my orbiter (after regen) but after tagging a few folders (breaking bad) - it doesn't show up when using that filter. Only Futurama and Entourage do (must have been from using TVDB many moons ago). The TV Program ID shows on all files I have tagged (352534), as does the TV Series ID (8118). Am I missing something?

Cheers,
WR
Title: Re: lmce-autotagger ?
Post by: golgoj4 on October 04, 2011, 04:07:24 pm
Thx golgoj4.

Sorry - forgot to try that.

The autotag button brings a pop-up now (didn't before), but it is just a blank page. I get waiting for 192.168.80.1... but no response/data. Is there somewhere I can check logs to provide more info?

EDIT: Also, I noticed in your video the new feature "program filter". I have this in my orbiter (after regen) but after tagging a few folders (breaking bad) - it doesn't show up when using that filter. Only Futurama and Entourage do (must have been from using TVDB many moons ago). The TV Program ID shows on all files I have tagged (352534), as does the TV Series ID (8118). Am I missing something?

Cheers,
WR

The Program filter keys off of the 'Program' attribute. The tagger should be adding the program title to your media files as well, allowing them to show up. I will look into why the button isnt working as you shouldn't have to do this from the command line.

Thanks for taking the time to look at this.
-golgoj4
Title: Re: lmce-autotagger ?
Post by: wombiroller on October 05, 2011, 02:23:14 pm
No worries - least I can do ;)

Doesn't seem to be adding the Program attribute via the TVDB when tagging a directory. It works when you select a single file though...

Title: Re: lmce-autotagger ?
Post by: DragonK on January 20, 2012, 09:22:59 pm
Hi Golgoj4,

I just used the Autotag feature in 1004. I had about a 100 movies that didnt have any clipart or any attributes.
AT first the popup window came up with "/var/log/pluto/linuxmcetag.log Permission denied."
I created the file and set permissions on it. After that the Autotag function worked Perfectly!!!!

Now I dont have to go and add the attributes and clipart for each movie, one at a time!!! Just One button to click for all.
Superb work!!!!

Karel
Title: Re: lmce-autotagger ?
Post by: Garbui on February 26, 2012, 10:32:56 am
@ Donpaul3

Hi Donpaul, any chance of a write-up, steps etc to get auto-tagger on a Dianemo system? Whilst I love the new movie tagger, i have no option for all my tv shows and other clips. A simple apt-get install doesn't seem to work. I am assuming it is because of Dianemo use separate repositories? Sorry, still learning the Linux ropes. In fact any guidance generally for adding lmce packages to Dianemo would be really helpful as i would love to get Tschak's game player onto my system also?

Thanks All

Garath