Re: [Mlt-devel] Avoiding implicit conversions when fetching image/audio from frame

2016-07-27 Thread Dan Dennedy
That may work for a simple media player scenario. What if you are working with a multitrack composition and need to determine the image format for frame N where there is potentially a video on each track? Then, you have to repeat the logic that MLT does to determine which producer of which track wi

Re: [Mlt-devel] Avoiding implicit conversions when fetching image/audio from frame

2016-07-27 Thread Christophe THOMMERET
It seems you just want a video decoder, isn’t vlc being able to do that ? > Le 27 juil. 2016 à 18:24, Paweł Goliński a écrit : > > Hi, > > I want to pass as much of rescaling/resampling/color conversion tasks > to my consumer as I can. So, when calling, e.g. mlt_frame_get_image() > for image, I

Re: [Mlt-devel] Avoiding implicit conversions when fetching image/audio from frame

2016-07-27 Thread Brian Matherly
Depending on the producer, you might be able to query the image metadata and determine the native format. For example, the avformat_producer will often set the pix_fmt. Try to query "meta.media.0.codec.pix_fmt" on a frame from the avformat producer widget. Perhaps you could query the pix_fmt on t

Re: [Mlt-devel] Avoiding implicit conversions when fetching image/audio from frame

2016-07-27 Thread Dan Dennedy
Do you plan to use MLT filters or transitions? There is a way to do what you want, but I think only when not using existing MLT filters and transitions. If I recall correctly, you have to suppress the normalization filters that the loader producer automatically adds. Then, if you do include other M