On Wed, Sep 18, 2013 at 2:00 PM, Tomas Neme <lacrymol...@gmail.com> wrote: > I made a producer that might change it's frame metadata in the middle > of the run, everything, image dimensions, audio samples, might change. > > I produce the frame objects with the right data inserted in them but > at least SDL doesn't change itself to adjust to the new size. > > I'd like to know if this is something I'm doing wrong (the old data > may be in my producer's .meta properties, for instance), or if support > for this kind of thing depends on the consumer, in which case I'd need > to somehow resize the frame to some standard before giving it to the > consumer.
Resizing is done for you by the normalization filters that are attached by the default "loader" virtual producer. I do not know what problems you are seeing or what you are expecting to happen that does not. Well, you did say that the SDL window size did not change. OK, that is by design. There is this thing called mlt_profile that you need to understand [1]. Basically, it tells the consumer (and other services) the composition's video attributes such as resolution. The consumer then asks for the producer to make an image at WxH resolution. The source producer (e.g., avformat) may or may not comply. When it does not comply, the resize and rescale filters will adjust the image to give the consumer what it requested. Resolution is just one of these normalization processes. See src/modules/core/loader.ini for all of them. Your producer does not need to just set meta properties, but more importantly, it needs to set accurate return values to the get_image() and get_audio() virtual functions. It does not necessarily need to do any of its own scaling or deinterlacing or image format conversion, but it should try to conform to the mlt_profile frame rate, and it must supply the image using one of MLT's supported image formats. Audio attributes are not part of the mlt_profile at this time, but you can change them from the default 48KHz stereo 16-bit signed PCM using consumer properties [2]: frequency, channels, mlt_audio_format. There is some support for a consumer or app to request source audio and video unprocessed, but I am not certain that is what you need, and I would have to look up some details. [1] http://www.mltframework.org/bin/view/MLT/Profiles [2] http://www.mltframework.org/doxygen/properties.html > Thanks > Tomas > > -- > "The whole of Japan is pure invention. There is no such country, there > are no such people" --Oscar Wilde > > |_|0|_| > |_|_|0| > |0|0|0| > > (\__/) > (='.'=)This is Bunny. Copy and paste bunny > (")_(") to help him gain world domination. > > ------------------------------------------------------------------------------ > LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! > 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint > 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes > Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. > http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk > _______________________________________________ > Mlt-devel mailing list > Mlt-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mlt-devel -- +-DRD-+ ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel