On Sat, Jan 3, 2015 at 4:52 AM, Geoffroy Montel <
geoffroy.montel...@gmail.com> wrote:
> Thanks again a lot Dan !
>
> Last question : is it possible to force the Webvfx producer to render the
> web page at a specific width/height, different from the profile
> width/height ?
> The idea is to generate a HTML page with a fixed width/height (like 1920 x
> 1080), independently of the video output (which may be 1280 x 720 for
> instance).
>
>
In theory, you can use the producer named "consumer." It encapsulates a
consumer running with a different profile than the outer graph/project's
profile. Then, the auto-attached normalizing filters take care of things
like scaling and padding to adapt the nested consumer's output to the outer
profile. However, this is not working correctly with webvfx based on my
test today to provide you with an example.
If you are providing and controlling the HTML, then I suggest you take care
of what you need to do in there. If not, then there ought to be an API for
Qt WebKit to adjust the zoom factor just as a browser GUI does. You could
look into that, hook it up to a MLT property, and submit a patch for this.
> On the following output profile
>
> frame_rate_num=25
> frame_rate_den=1
> width=1280
> height=720
> progressive=0
> sample_aspect_num=1
> sample_aspect_den=1
> display_aspect_num=16
> display_aspect_den=9
> colorspace=709
>
> I tried adding the following producer
>
> <producer id="1">
> <property name="mlt_service">webvfx</property>
> <property name="resource">plain:index.html</property>
> <property name="transparent">1</property>
> <property name="meta.media.width">1920</property>
> <property name="meta.media.height">1080</property>
> </producer>
>
> but it crashes melt (core dump). It works without "meta.media.width" and
> "meta.media.height" but the HTML page generated is 1280x720
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel