Never mind my last e-mail. It seems that if I don't re-open the file,
I'll have the last frame repeated during X number of time. Is there no
way to still detect the correct profile without having to re-open the
file (e.g. just getting the meta data the first time)? I ask this
because re-opening it significantly increases the loading time of my
program and I still need to load other stuff after the video.

On Wed, Apr 29, 2015 at 2:11 PM, João Gouveia <jtrgouv...@gmail.com> wrote:
> Thank you! That fixed it. I used the following code:
>
> profile = new Mlt::Profile(profileName);
> producer = new Mlt::Producer(*profile, filePath.toUtf8().constData());
> if(!profileName) profile->from_producer(*producer);
>
> The documentation says that I should need to re-open the file, but it
> doesn't seem to be the case with this. The fps are corrected after I
> call from_producer. I am using avformat as the producer. So, I'm not
> sure if there is a mistake there or I should really do it as it could
> not work with other files?
>
> Kind regards,
> João Gouveia.
>
> On Tue, Apr 28, 2015 at 10:32 PM, Dan Dennedy <d...@dennedy.org> wrote:
>> The default MLT profile is dv_pal, which is 25 fps. Either you need to
>> specify a profile by its base name, or you can generate one (i.e.
>> auto-profile) using mlt_profile_from_producer():
>> http://www.mltframework.org/doxygen/structmlt__profile__s.html#adf600692f0381afa77a2d23fafbb692d
>>
>>
>> On Tue, Apr 28, 2015 at 2:20 PM João Gouveia <jtrgouv...@gmail.com> wrote:
>>>
>>> Hello all.
>>>
>>> I've been using the MLT Framework for a c++ project which provides
>>> some level of video editing. I'm loading a video file which was
>>> rendered at 15 fps but when I ask the profile, or the producer for the
>>> fps value, it always gives me 25.
>>>
>>> The video plays fine, so I assume it is repeating frames? Is there a
>>> setting that I need to set so that it uses the file's fps? It is
>>> extremely important that the frames play at the correct fps otherwise
>>> the video will desynchronize from the user's annotations.
>>>
>>> Kind regards,
>>> João Gouveia.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> 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

Reply via email to