[mythtv-users] MythGallery Display MP4s?

Paul Harrison mythtv at sky.com
Sun Jan 17 12:58:44 UTC 2010


Kirk Bocek wrote:
>
>
> Raymond Wagner wrote:
>> On 1/14/2010 6:05 PM, Kirk Bocek wrote:
>>> Right you are! I had forgotten that MP4 is simply a
>>> variation/extension of the MPEG standard. After renaming the files
>>> to ".mpg" they play fine in VLC on Windows and mplayer under linux.
>>> They display fine in the MythGallery browser.
>>
>> MP4 is the container format for the MPEG4 standard (specifically part
>> 14), and is based off the QuickTime container format.  It is
>> completely independent of MPG, which is the container format for the
>> old MPEG and MPEG2 standards.  The reason the above works is because
>> any properly designed media player outright disregards the extension,
>> and instead reads the 'magic number' in the first couple bytes of the
>> file to determine what format it is in.
>
> Well I'm unhappy that's is a hacky work-around. I'd rather find a way
> for MythGallery to recognize that extension.

Looks like the extensions used for both images and movie files are
hardcoded into MythGallery (see GalleryUtil::GetImageFilter() and
GalleryUtil::GetMovieFilter()).  It would be trivial to add new
extensions to the list but that would require recompiling. If it was my
decision I would add a couple of settings to allow you to choose what
extensions to use but that would upset a few of my fellow devs who are
trying to reduce the number of settings. You can't assume that all
MythGallery users will also have MythVideo installed so you can't really
use the MythVideo setting unless it is moved to some common location.

Paul H. 



More information about the mythtv-users mailing list