1 Mar 2009 01:06
Re: [PATCH] metadata conversion API
Baptiste Coudurier <baptiste.coudurier <at> gmail.com>
2009-03-01 00:06:55 GMT
2009-03-01 00:06:55 GMT
On 2/28/2009 3:30 PM, Michael Niedermayer wrote: > On Sat, Feb 28, 2009 at 02:24:45PM -0800, Baptiste Coudurier wrote: >> On 2/28/2009 1:43 PM, Michael Niedermayer wrote: >>> On Sat, Feb 28, 2009 at 01:24:41PM -0800, Baptiste Coudurier wrote: >>>> On 2/28/2009 5:57 AM, Michael Niedermayer wrote: >>> [...] >>>>>>> * more compatibility for apps, apps already can through >>>>>>> AVOptions set and get by name and enumerate fields. >>>>>> AVOptions uses OPT_<type> isn't it ? Why don't you want to >>>>>> apply this to AVMetadata ? >>>>> i explained it already above: >>>>>>> [...] This has the advantage that it can be muxed in >>>>>>> containers that do not support storing such information. >>>>> [...] >>>>>>> Or how would you store these types? If they are lost on >>>>>>> remuxing or their types are randomized then they arent >>>>>>> particularely usefull IMHO >>>> Well, they are useful to gather information, print metadata and >>>> debugging, maybe less useful for remuxing inter-container, however, >>>> mov to mov could end in a pretty accurate way. >>>> >>>> Exporting all information using AVFormatContext fields will lead to >>>> an huge struct. >>> exporting all fields as name value pairs will consume more memory >>> what i mean is, an int needs 4 bytes a av_malloc() will need at least >>> 16 byte due to alignment alone but i would not be surprised if it >>> needs twice that to keep track of things so malloc& free work now >>> each metadata tag contains 2 strings, if we assume both fit in the 16 >>> byte and no additional byte is needed to keep track of things then >>> theres 16 bytes for ther struct (2 8byte pointers on 64bit archs)(Continue reading)
RSS Feed