[mythtv-users] Problems get thumbnails for mythburn

David Asher david.asher at caviumnetworks.com
Sun Feb 19 05:18:18 UTC 2006


Well I have a workaround -- actually two workarounds:

1. transcode-1.0.2 must be compiled with --disable-xio.  (atrpms has 
--enable-xio, freshrpms appears to use --disable-xio)

There is a bug in the libxio implementation which manifests when the 
open() call inside xio_open() returns a different file descriptor than 
the xio descriptor returned by xio_open().  The return value of 
xio_open() is used in subsequent fdopen() calls.  This happens regularly 
when transcode is called from httpd, but not normally when called from 
an xterm.

By compiling --disable-xio, xio_open is #define'd to open, therefore the 
file descriptor is always legal in fdopen().

2. After applying workaround 1, you will get TONs of broken pipe 
messages in mythburn.log when extracting thumbnails... BUT, you will get 
good thumbnails.  I haven't figured out why the pipes get broken, but I 
figured out it is related to audio/video synchronization.  Since the 
thumbnails are .jpgs (no audio), I found that if you add "-M 0" to the 
transcode line in extractthumbnail.sh, the audio sync stuff doesn't get 
done.  Therefore the broken pipe messages go away.

With both workarounds applied I get good thumbnails -- both animated and 
static.

David.

Neil Bird wrote:
> Around about 13/02/06 22:14, David Asher typed ...
>   
>> Most things are working, but the thumbnails are all coming out green 
>> from transcode.  Here's the really odd part, however: the transcode 
>> command run from an xterm works correctly!  It only fails when run from 
>> mythweb.  To try and rule out permission issues, I su'ed to the apache 
>> user (switched to bash from nologin) and ran the same command and it 
>> still worked!  It ONLY produces green thumbnails when run from mythweb.  
>> I've run out of ideas how to debug this.
>>     
>
>    Ah, that's the last thing+ I've got to look at on my system.  I assumed the 
> 'green' icons where indicative of a basic failure as opposed to an incorrect 
> extraction.  Not looked at it yet, but glad to know I'm not alone!
>
>    I got the same static greenies when trying to get animated thumbs.
>
>
> + - not strictly true;  main 'main menu' seems to always be shorter than it 
> ought to be (sometimes loops after only a few seconds).
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060219/c6553c6b/attachment.htm 


More information about the mythtv-users mailing list