• The forum software that supports hummy.tv has been upgraded to XenForo 2.1!

    This upgrade brings a number of improvements including the ability to bookmark posts to come back to later. Please bear with us as we continue to tweak things and open a new thread for any questions, issues or suggestions in Site/Forum Issues.

[thumbnails] Package to Auto-Generate Recordings Thumbnails

af123

Administrator
Staff member
It would be quite nice to have a parameter field to be able to add extra options to the queued for commands on the browse menu
I'll have a look to see how easy that would be.

There's a bug with queuing to force new thumbnails. If you select more than one recording and queue to force an overwrite of the old thumbnail, only the first queue entry has the 'force' parameter added to the command.
This is fixed in the latest version that was published last night.
 

4ndy

Forum Supporter
This package seems to have stopped working. The task is not being added to the queue.

The genthumbs diagnostic scans, but fails to create any thumbnails.

Tried the usual force package install and reboot.



Sent from my iPad using Tapatalk
 
OP
Black Hole

Black Hole

May contain traces of nut
What's in auto.log? If it says nothing useful, go into settings and increase the logging level.
 

4ndy

Forum Supporter
Reading af123's comments in this thread, I can see that the auto thumb process is hooked to decrypt. I had turned off auto decrypt as I (naively) thought that it was now built into the a beta stripts package. I obviously misinterpreted the opening post in the offline decryption thread.

Once recursive decrypt is turned back on I can see the thumb process in the queue. I will report back if it actually creates a thumbnail or not, as the diagnostic call did not.
 
Last edited:
OP
Black Hole

Black Hole

May contain traces of nut
Off-line decryption is not an alternative for auto-decryption - off-line decryption makes decryption available when the standard decryption processes are not suitable (eg HD-FOX, or if an HDR-FOX has died). Obviously an encrypted recording cannot be read to extract thumbnail frames, so decryption is a prerequisite for thumbnails.
 

prpr

Well-Known Member
I'm seeing lots of .bmp files left in various recording directories, presumably caused by some artefact of the thumbnail generation process.
This is happening across several machines. I noticed it because it stops tidy-folders from working properly.
I've had a look at the relevant code around this process and can't see anything obviously wrong. The thumbnail seems to be generated most of the time, but the .bmp file doesn't get deleted sometimes. It doesn't happen all the time - it's sporadic.
Anyone else getting this? Here's a command to find the files: humax# find "/media/My Video/"|grep bmp
 
OP
Black Hole

Black Hole

May contain traces of nut
Yes, but not many:

HDR1: no match
HDR4: no match (not used much, mainly radio)
HDR3:

4166

Note date of file involved!
 

MymsMan

Ad detector
I have no bmp files in the video directories.

I suspect @Black Hole 's 5 files are from the older manual Set Thumbnail option which generates samples .5 seconds apart. However when I tried it I didn't see any bmp files left behind

I do need to take a look at detectads though - I do have a bunch of orphaned -crop.thm that are not being renamed with the rest of the -crop files
 

Ezra Pound

Well-Known Member
I think MymsMan is correct in saying the files were created by an older program, in this case from Mar 2013 :-
Code:
Humax1# find "/media/My Video/"|grep bmp
/media/My Video/archive/Arena_ Produced by George Martin_20110425_2102.pos0.5.bmp
/media/My Video/archive/Arena_ Produced by George Martin_20110425_2102.pos1.0.bmp
/media/My Video/archive/Arena_ Produced by George Martin_20110425_2102.pos1.5.bmp
/media/My Video/archive/Arena_ Produced by George Martin_20110425_2102.pos2.0.bmp
/media/My Video/archive/Arena_ Produced by George Martin_20110425_2102.pos0.0.bmp
Humax1#

-rw-rw-rw-  1 root root      43734 Mar 12  2013 Arena_ Produced by George Martin_20110425_2102.pos0.0.bmp
-rw-rw-rw-  1 root root      43734 Mar 12  2013 Arena_ Produced by George Martin_20110425_2102.pos0.5.bmp
-rw-rw-rw-  1 root root      43734 Mar 12  2013 Arena_ Produced by George Martin_20110425_2102.pos1.0.bmp
-rw-rw-rw-  1 root root      43734 Mar 12  2013 Arena_ Produced by George Martin_20110425_2102.pos1.5.bmp
-rw-rw-rw-  1 root root      43734 Mar 12  2013 Arena_ Produced by George Martin_20110425_2102.pos2.0.bmp
 
Last edited:
OP
Black Hole

Black Hole

May contain traces of nut
I suspect @Black Hole 's 5 files are from the older manual Set Thumbnail option which generates samples .5 seconds apart. However when I tried it I didn't see any bmp files left behind
I can't imagine why I might have done that, unless I was just having a play. My recollection doesn't go back that far.
 

prpr

Well-Known Member
At the moment, deletion of the bitmap file is done using file tdelete which results in trm being executed.
This seems a bit ridiculous, as a standard rm command would appear to be perfectly adequate for small files such as this.
As a test, I've substituted this.

Poking further at trm, I see that it's actually quite needlessly resource expensive:
stat64("test.hmt", {st_mode=S_IFREG|0644, st_size=2072, ...}) = 0
open("test.hmt", O_RDWR|O_LARGEFILE) = 3
close(3) = 0
unlink("test.hmt") = 0

There is no point in opening the file if you're not going to do any operation on it (which only happens with 'large' files). It would seem there is definitely an optimisation to be made with this, regardless of what my test may or may not show up.
 

af123

Administrator
Staff member
Poking further at trm, I see that it's actually quite needlessly resource expensive:
I think expensive is a stretch, but it can definitely skip the open/close for small files. trm 1.2 is on its way up to the repository, thanks.
The threshold, btw, is 80MiB. trm was based on the logic that the Humax blob uses to remove files, using successive ftruncate() operations to spread the load across the ext2 log and reduce disk throughput issues that were experienced with just rm or Jim's file unlink. This was from before we had undelete as that help to defer deletions until a quiet time.
 

MymsMan

Ad detector
I can't imagine why I might have done that, unless I was just having a play. My recollection doesn't go back that far.
Since the date is very close to the creation of the new thumbnails package I expect you were looking at the old version before proposing the automatic version!
 
OP
Black Hole

Black Hole

May contain traces of nut
I don't always remember to take my current pills - some mornings I find last night's still in the packet, and some evenings I find I rushed out in the morning without taking what I should. I usually know - when the antihistamines wear off I get bunged up.
 
Top