[mythtv-users] How to make the image gallery show MTS files?

Ronald Frazier ron at ronfrazier.net
Tue Feb 19 19:40:41 UTC 2013


On Tue, Feb 19, 2013 at 1:58 PM, Ronald Frazier <ron at ronfrazier.net> wrote:
> On Tue, Feb 19, 2013 at 11:48 AM, Raymond Wagner <raymond at wagnerrp.com> wrote:
>> On 2/19/2013 05:39, Doug Lytle wrote:
>>>
>>> Martin Moores wrote:
>>>>
>>>> Same here on 0.26
>>>
>>>
>>> I don't know on .24, but for .26 it's in Mythfrontend, using Blue
>>> Abstract 1.9:
>>>
>>> Setup
>>> Media Settings
>>> Video Settings
>>> File Types
>>
>>
>> That's for the video library. He's talking about the MythGallery plugin.
>
>
> Wait....MythGallery supports videos? LOL, and here I thought it was
> just for photos. I always throw my camera's videos into mythvideo.
>

OK, so I just went and took a look. It appears to be hard coded. In
galleryutil.cpp

QStringList GalleryUtil::GetMovieFilter(void)
{
    QStringList filt;
    filt.push_back("*.avi");
    filt.push_back("*.bin");
    filt.push_back("*.iso");
    filt.push_back("*.img");
    filt.push_back("*.mpg");
    filt.push_back("*.mp4");
    filt.push_back("*.mpeg");
    filt.push_back("*.mov");
    filt.push_back("*.wmv");
    filt.push_back("*.3gp");
    filt.push_back("*.wmv");
    filt.push_back("*.flv");
    return filt;
}


So, If you are compiling your own myth from source, this is where you
would add it. If you are not, then you are out of luck...

UNLESS...warning: here comes a REALLY BIG hack. You could always pick
one of those extensions you don't need, and then do a hex edit of the
executable to replace it with *.mts

I'll provide no more details than that (if you can't figure it out
from there, you've got no business even thinking about it). Hex
editing an executable is often frowned upon, but I've had to do it
before for similar situations. Of course, be warned that you'll lose
your changes the next time the binary is updated. And I have no idea
whether doing so would break your update manager (it could use
checksums to verify files before upgrading them).



-- 
Ron Frazier


More information about the mythtv-users mailing list