[FFmpeg-devel] [PATCH] MTH demuxer (Gamecube format)

Michael Montanye montanye
Fri Feb 6 07:37:22 CET 2009


Mike Melanson wrote:
> Michael Montanye wrote:
>   
>> Mike Melanson wrote:
>>     
>>> Diego Biurrun wrote:
>>>  
>>>       
>>>> On Thu, Feb 05, 2009 at 10:12:52AM +0100, Marc Mason wrote:
>>>>    
>>>>         
>>>>> Diego Biurrun wrote:
>>>>>
>>>>>      
>>>>>           
>>>>>> Mike Melanson wrote:
>>>>>>
>>>>>>        
>>>>>>             
>>>>>>> I decided to go with the file signature instead.
>>>>>>>           
>>>>>>>               
>>>>>> What do you mean by signature?
>>>>>>         
>>>>>>             
>>>>> Perhaps he meant
>>>>>
>>>>> http://en.wikipedia.org/wiki/File_format#Magic_number
>>>>> http://en.wikipedia.org/wiki/Magic_number_(programming)#Magic_numbers_in_files 
>>>>>
>>>>>       
>>>>>           
>>>> I was basically wondering why it is called MTH in one place and MTHP in
>>>> another.  IMO we should use only one description, otherwise we will only
>>>> generate confusion.  DV is not the same as DVD or DVB.
>>>>     
>>>>         
>>> I vote for MTHP as the consistent term. As mentioned, it's the file's 
>>> signature and thus the most consistent identifier. MTH is just to 
>>> accomodate the common convention of the 3-letter file extensions. This 
>>> is consistent with our reasoning for referring to MPEG rather than MPG.
>>>
>>>   
>>>       
>> That makes sense, especially since I just found a GC game that uses no 
>> file extensions at all, and the only way to find the FMVs was to look at 
>> the signature.  And it's trivial to change.  Changed, new patch attached.
>>     
>
> BTW, do you know of any (quasi-)formal documentation for this format, or 
> did you sort it out from hex dumps?
>
>   
The same site that the MultimediaWiki links to for the THP format, 
http://www.amnoid.de/gc/ has a fragmented description in the comments of 
the source code for their thpplay1.5, which plays both THP and MTHP, but 
it's not broken out into a text file like their THP document is.

-Michael Montanye




More information about the ffmpeg-devel mailing list