[Mp4-tech] IBM BatchXMT file format
Michelle Y Kim
mykim us.ibm.com
Wed Dec 3 14:58:03 EST 2003
You are not limited by XmtBatch to use only .cmp (or m4v), which are just
raw bitstreams as created typically by reference software. You can refer
to media content directly from a track in another mp4 file. To refer to a
track just append #video (or #audio if its an audio track you want) after
the file name e.g. "myfile.mp4#video". If there is more than one track of
a given type you can do "myfile.mp4#video(2)" which will use the second
video track it finds. Hence "myfile.mp4#video" is equivalent to explicitly
specifying the first video track using "myfile.mp4#video(1)". You can
find other posts about using #video etc on the alphaworks forum for the
IBM Toolkit for MPEG-4.
In XMT-O <video> and <image> are specified to be converted into MPEG-4
using a Bitmap geometry node. This geometry is unlike most others and is
explicitly stated that it cannot be rotated. However video can be achieved
another way which is to use a <texture> and texture a geometry such as a
<rectangle> as in the following example. You can make the size of the
rectangle the same as the video.
<rectangle size="320 240">
<transformation>
<animate id="sdlfkj" dur="5s" repeatDur="indefinite"
attributeName="rotation" from="0deg" to="180deg"
calcMode="linear" />
<animate id="cmov2" dur="5s" repeatDur="indefinite"
attributeName="scale"
from="1.0 1.0" to="5.0 5.0"/>
</transformation>
<texture src="../multimedia/myvideofile.mp4#video" />
</rectangle>
Regards,
Michelle
Dr. Michelle Y. Kim, IBM T. J. Watson Research Center
Manager, Composite Media Technologies Group
mykim us.ibm.com (e-mail)
(914) 784-7709 (voice)
(914) 784-7455 (fax)
Andreas Åkre Solberg <video solweb.no>
Sent by: mp4-tech-bounces lists.mpegif.org
12/03/2024 10:51 AM
To: mp4-tech lists.mpegif.org
cc:
Subject: [Mp4-tech] IBM BatchXMT file format
I am playing with the IBM BatchXMT tool for creating mp4 files from
XMT-O scene descriptions. In the samples I downloaded the XMT files
refer to .cmp video files. I tried to include one of my own mp4 files
(created from qt pro), but without success. Do I need to convert them
to the .cmp format, in that case; what is the .cmp file format, and how
do I convert to it?
I also have problems scaling and rotating videos with the same tools. I
have tried the following code:
<video dur="media" src="../multimedia/videofile.cmp">
<transformation>
<animate id="sdlfkj" dur="5s" repeatDur="indefinite"
attributeName="rotation" from="0deg" to="180deg"
calcMode="linear" />
<animate id="cmov2" dur="5s" repeatDur="indefinite"
attributeName="scale"
from="1.0 1.0" to="5.0 5.0"/>
</transformation>
</video>
The same code works for rotating circles and rectangles.
Regards,
Andreas
--
Andreas Åkre Solberg, Telematikk NTNU
http://www.item.ntnu.no/~andrs - andrs item.ntnu.no
_______________________________________________
Mp4-tech mailing list
Mp4-tech lists.mpegif.org
http://lists.mpegif.org/mailman/listinfo/mp4-tech
Note: Conduct on the mailing list is subject to the Antitrust guidelines
found at
http://www.mpegif.org/public/documents/vault/mp-out-30042-Antitrust.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/mp4-tech/attachments/20031203/1757e9a4/attachment.html
More information about the Mp4-tech
mailing list