Mlt::Frame::get_audio() does not work in the script/managed-language
bindings. See here what we did for get_image(). You need to extend this to
get_audio() and build it yourself. If you do, we appreciate if you will
contribute the patch that adds it.
On Fri, May 1, 2015 at 11:28 AM Pierre-Emmanuel Viau <
pierre-emman...@timecodelab.com> wrote:
> Hello, I am trying to write a simple test in order to get the audio level
> at a certain frame. So far I have:
>
>
> import mlt
> import sys
>
> mlt.Factory.init()
> profile = mlt.Profile( )
> prod = mlt.Producer(profile, sys.argv[1])
> profile.from_producer(prod)
>
> #test
> i = 172
> prod.seek(i)
> frame = prod.get_frame()
> print type(frame.get_audio(mlt.mlt_audio_float, 48000, 2, 1))
>
> This doesn't work, I get the following exception:
> TypeError: in method 'Frame_get_audio', argument 2 of type
> 'mlt_audio_format &'
>
> Do you have an idea of how to fix this?
> Thank you!
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Mlt-devel mailing list
> Mlt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mlt-devel
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel