Media Commons
Media Commons
Convert Image to Pyramidal TIFF
Example:
gdal_translate -co "TILED=YES" original.tif output.tif gdaladdo -r average output.tif 2 4 8 16 32 64
The first command will tile the image which helps with performance. The second will add overviews: 2 4 8 16 32 64 (each number is a split level (so this will create 6 levels - you can create more but making a tile smaller than 256 by 256 is pointless). The final image in the example will be output.tif.
To make the image show up in the menu, copy it to /home/demo/demo_content.
Convert high resolution video for CGLX player
Converting high resolution video into CGLX renderable OSG tile clusters with XML metadata for playback under MediaCommons:
Script requires FFMPEG and Python 2.7
Usage: sh clustertile.sh [INPUT_DIR_FILE] [OUTPUT_DIR] [OUTPUT_PREFIX] [WIDTH] [HEIGHT] [COL] [ROW]
Example: user$> sh clustertile.sh /foo/foo.mp4 /bar test 3840 2160 8 8
Depending on the source resolution and level of subdivision FFMPEG crop streaming can be fast or take some time. Transcoding your source content to H264 before running the clustertile script can speed things up significantly.