JBoss Community Archive (Read Only)

ModeShape 5

Video files

This is available starting with 5.1

A sequencer which supports the following list of files: video/x-matroska, video/quicktime, video/x-msvideo, video/x-ms-wmv, video/x-flv, video/3gpp, video/webm, video/mp4, video/ogg for which it can extract the following metadata information:

//------------------------------------------------------------------------------
// N A M E S P A C E S
//------------------------------------------------------------------------------
<jcr='http://www.jcp.org/jcr/1.0'>
<nt='http://www.jcp.org/jcr/nt/1.0'>
<mix='http://www.jcp.org/jcr/mix/1.0'>
<video='http://www.modeshape.org/video/1.0'>

//------------------------------------------------------------------------------
// N O D E T Y P E S
//------------------------------------------------------------------------------

[video:metadata] > nt:unstructured, mix:mimeType
 - video:duration (double)
 - video:bitrate (long)
 - video:title (string)
 - video:comment (string)
 - video:encoder (string)
 + video:stream (video:stream)

[video:stream] > nt:unstructured
 - video:streamType (string) < 'audio', 'video', 'unknown'
 - video:codec (string)
 - video:bitrate (long)
 - video:framerate (double)
 - video:samplerate (long)
 - video:channels (long)
 - video:width (long)
 - video:height (long)

You can configure it in embedded mode like so:

{
    "name" : "Video Format Sequencer Test Repository",
    "sequencing" : {
        "sequencers" : {
            "Video Format sequencer" : {
                "classname" : "video",
                "pathExpressions" : ["default://(*.(mp4|3gp|mkv|avi|flv|wmv|mov|webm|ogv))/jcr:content[@jcr:data] => default:/sequenced/video" ]
            }
        }
    }
}

Note that this sequencer is not available by default in the JBoss AS kit because of the size of libraries required to parse the video information

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 12:12:59 UTC, last content change 2016-05-20 09:47:13 UTC.