The goal is to setup MediaTomb to (almost) instantaneously resize a 4-7MB jpeg from its original 8 or 12MP resolution down to somewhere about 1280x* so that it can be viewed on a mobile device.
Information on my setup: VM running arch with MediaTomb and another VM running arch and BubbleUPnP server to allow me to connect to all of my UPnP servers at home wherever I am. The problem is that I don't want to convert all of the pictures I take on trips. I simply want to browse them remotely and have the images resized quickly enough that I don't notice a lag when displaying/viewing pictures. Obviously the resizing is also to decrease the time it takes to display them.
I've tried using Imagemagick and it is very slow (5-10 seconds per picture) and
ffmpeg is unsuitable for images over 5,000px. What are my options here?
VM 1: 2x3.00Ghz, 768mb ram (MediaTomb) VM 2: 2x3.00Ghz, 512mb ram (XBMC, BubbleUPnP)
Original image resize script contained:
convert "$1" -filter lanczos -resize 1280x* "$2"
In the mediatomb config.xml I have added the following to their appropriate sections:
<transcode mimetype="image/jpeg" using="jpeg-small"/>
And under profiles:
<profile name="jpeg-small" enabled="yes" type="external"> <mimetype>image/jpeg</mimetype> <agent command="convert" arguments="%in -resize 1280x1280 %out"/> <hide-original-resource>yes</hide-original-resource> <buffer size="10485760" chunk-size="131072" fill-size="2621440"/> <accept-url>no</accept-url> <first-resource>yes</first-resource> </profile>
UPDATE: Now it "works", but I can only find sub-200x200 pictures when I browse MediaTomb share from a UPnP client. Not sure why as I'm telling it to make 1280 the maximum length of a side.