[mythtv-users] Missing Thumbnails in Mythweb
Kirk Bocek
t004 at kbocek.com
Mon Jun 15 04:20:12 UTC 2015
On 6/14/2015 6:09 PM, Kirk Bocek wrote:
>
>
> On 6/14/2015 3:53 PM, Bill Meek wrote:
>> On 06/14/2015 05:26 PM, Kirk Bocek wrote:
>>>
>>>
>>> On 6/14/2015 2:53 PM, Mike Holden wrote:
>>>> On 14 June 2015 at 04:42, Kirk Bocek <t004 at kbocek.com
>>>> <mailto:t004 at kbocek.com>> wrote:
>>>>
>>>>
>>>> I couldn't get this to work. For this set of files in storage:
>>>>
>>>> 5072_20150506215900.mpg
>>>> 5072_20150506215900.mpg.-1.100x75.png
>>>> 5072_20150506215900.mpg.png
>>>>
>>>> I manually created this URL:
>>>>
>>>> http://MyServer:6544/Content/GetPreviewImage?ChanId=5702&StartTime=2015-05-06T21:59:00Z&Height=120&Width=160
>>>>
>>>>
>>>> And got nothing.
>>>>
>>>> http://MyServer:6544 *is* working
>>>>
>>>>
>>>> Are you aware you have 5072 in the filenames, and 5702 in the link
>>>> for the
>>>> chanid? Not sure if one or the other is a typo in the email, or if
>>>> you've
>>>> transcribed them in your work?
>>>>
>>>
>>> Intentional. Some recordings on channel 72 (TV Land), some on 702
>>> (KTVU).
>>> Coincidence.
>>
>> But unless there's a recording at exactly the same time, you
>> must use 5072 for this preview. I'd have expected to see
>> something in the BE log for this:
>>
>> ... HttpServer50 services/content.cpp:524 (GetPreviewImage) -
>> GetPreviewImage: No recording ...
>>
>> Also, the initial lookup is in the DB, which now stores the starttime
>> (and others)
>> in UTC. Hopefully you used a recording that already displays a
>> preview for your
>> 1st attempt (as suggested.) After you know that the GetPreviewImage
>> endpoint works,
>> then looking for your old (non preview generating) image based on the
>> filename means
>> that you'll have to adjust the filename's timestamp to UTC,
>> remembering to include
>> DST in that adjustment. Or, you can get it out of the DB or use:
>>
>> MyServer:6544/Dvr/GetRecordedList
>>
>> from you browser and use its search feature to find the recording and
>> get the
>> timestamp from there.
>>
>
> Sorry if I wasn't clear of if I had typos in my posting. However this
> problem is solved. The error was in the hostname field of the recorded
> table. Once I corrected the old recordings to have the same hostname
> as the newer recordings, all the preview images popped up.
>
> I didn't say this, but in my testing, the URL specified here:
>
> https://www.mythtv.org/wiki/Content_Service#GetPreviewImage
>
> was working for the newer recordings. I never got your image size
> string to work. I probably typed it in wrong.
>
> Now I need to get the ASX and Direct Download links to work.
>
I think this is an selinux problem. The storage directory is owned by
mythtv.mythtv but the context is mnt_t. After trying to download a video
I see in /var/log/audit/audit.log:
type=SYSCALL msg=audit(1434341708.404:20139): arch=c000003e syscall=4
success=no exit=-13 a0=ee24f0 a1=d25130 a2=d25130 a3=3536303331 items=0
ppid=8425 pid=11908 auid=4294967295 uid=48 gid=48 euid=48 suid=48
fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295
comm="mythweb.pl" exe="/usr/bin/perl"
subj=system_u:system_r:httpd_sys_script_t:s0 key=(null)
This is of course called by httpd.
Who is familiar with context sharing between mythbackend and httpd?
More information about the mythtv-users
mailing list