aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tg14/vlc/encoder/southcam-flash.sh
blob: 29d21bd5e17025bd70186b9577eff2775890ea96 (plain)
1
2
3
4
5
6
#!/bin/sh
while :; do
cvlc -vv --network-caching 3000 --sout-x264-preset fast --sout-transcode-threads 2 --sout-x264-tune film --sout-mux-caching 2000 --sout-x264-lookahead 50 --sout-x264-vbv-maxrate 1500 --sout-x264-vbv-bufsize 1500 --sout-x264-keyint 50 -v http://cubemap.tg14.gathering.org/southcam.ts vlc://quit \
--sout '#transcode{height=480,vcodec=h264,vb=2000,acodec=fdkaac,ab=128}:std{access=http{metacube},mux=ffmpeg{mux=flv},dst=:5005/southcam.flv}'
        sleep 1
done
* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*
 * Maps for FMS using Hounslow Highways' WMTS tile server
 */

fixmystreet.maps.layer_bounds = new OpenLayers.Bounds(
    500968.38879189314,
    164348.14012837573,
    528802.2803971764,
    185779.43299096148);

fixmystreet.maps.matrix_ids = [
    // The first 5 levels don't load and are really zoomed-out, so
    //  they're not included here.
    // {
    //     "identifier": 0,
    //     "scaleDenominator": 566965.4196450538,
    //     "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
    //     "tileWidth": 256,
    //     "tileHeight": 256,
    //     "matrixWidth": 142,
    //     "matrixHeight": 106,
    // },
    // {
    //     "identifier": 1,
    //     "scaleDenominator": 472471.18303754483,
    //     "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
    //     "tileWidth": 256,
    //     "tileHeight": 256,
    //     "matrixWidth": 170,
    //     "matrixHeight": 128,
    // },
    // {
    //     "identifier": 2,
    //     "scaleDenominator": 377976.9464300358,
    //     "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
    //     "tileWidth": 256,
    //     "tileHeight": 256,
    //     "matrixWidth": 213,
    //     "matrixHeight": 159,
    // },
    // {
    //     "identifier": 3,
    //     "scaleDenominator": 283482.7098225269,
    //     "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
    //     "tileWidth": 256,
    //     "tileHeight": 256,
    //     "matrixWidth": 283,
    //     "matrixHeight": 212,
    // },
    // {
    //     "identifier": 4,
    //     "scaleDenominator": 188988.4732150179,
    //     "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
    //     "tileWidth": 256,
    //     "tileHeight": 256,
    //     "matrixWidth": 425,
    //     "matrixHeight": 318,
    // },
    {
        "identifier": 5,
        "scaleDenominator": 94494.23660750895,
        "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
        "tileWidth": 256,
        "tileHeight": 256,
        "matrixWidth": 849,
        "matrixHeight": 636,
    },
    {
        "identifier": 6,
        "scaleDenominator": 70870.67745563173,
        "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
        "tileWidth": 256,
        "tileHeight": 256,
        "matrixWidth": 1132,
        "matrixHeight": 848,
    },
    {
        "identifier": 7,
        "scaleDenominator": 47247.118303754476,
        "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
        "tileWidth": 256,
        "tileHeight": 256,
        "matrixWidth": 1698,
        "matrixHeight": 1272,
    },
    {
        "identifier": 8,
        "scaleDenominator": 23623.559151877238,
        "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
        "tileWidth": 256,
        "tileHeight": 256,
        "matrixWidth": 3396,
        "matrixHeight": 2543,
    },
    {
        "identifier": 9,
        "scaleDenominator": 9449.423660750896,
        "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
        "tileWidth": 256,
        "tileHeight": 256,
        "matrixWidth": 8488,
        "matrixHeight": 6358,
    },
    {
        "identifier": 10,
        "scaleDenominator": 7559.538928600717,
        "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
        "tileWidth": 256,
        "tileHeight": 256,
        "matrixWidth": 10610,
        "matrixHeight": 7947,
    },
    {
        "identifier": 11,
        "scaleDenominator": 5669.654196450538,
        "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
        "tileWidth": 256,
        "tileHeight": 256,
        "matrixWidth": 14147,
        "matrixHeight": 10596,
    },
    {
        "identifier": 12,
        "scaleDenominator": 3779.7694643003583,
        "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
        "tileWidth": 256,
        "tileHeight": 256,
        "matrixWidth": 21220,
        "matrixHeight": 15893,
    },
    {
        "identifier": 13,
        "scaleDenominator": 1889.8847321501792,
        "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
        "tileWidth": 256,
        "tileHeight": 256,
        "matrixWidth": 42440,
        "matrixHeight": 31786,
    },
    {
        "identifier": 14,
        "scaleDenominator": 944.9423660750896,
        "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
        "tileWidth": 256,
        "tileHeight": 256,
        "matrixWidth": 84880,
        "matrixHeight": 63571,
    },
    {
        "identifier": 15,
        "scaleDenominator": 377.9769464300358,
        "supportedCRS": "urn:ogc:def:crs:EPSG:27700",
        "tileWidth": 256,
        "tileHeight": 256,
        "matrixWidth": 212200,
        "matrixHeight": 158927,
    }
];

/*
 * maps.config() is called on dom ready in map-OpenLayers.js
 * to setup the way the map should operate.
 */
fixmystreet.maps.config = function() {
    fixmystreet.controls = [
        new OpenLayers.Control.ArgParserFMS(),
        new OpenLayers.Control.Navigation(),
        new OpenLayers.Control.PermalinkFMS('map'),
        new OpenLayers.Control.PanZoomFMS({id: 'fms_pan_zoom' })
    ];

    /* Linking back to around from report page, keeping track of map moves */
    if ( fixmystreet.page == 'report' ) {
        fixmystreet.controls.push( new OpenLayers.Control.PermalinkFMS('key-tool-problems-nearby', '/around') );
    }

    this.setup_wmts_base_map();
};

fixmystreet.maps.marker_size = function() {
    var zoom = fixmystreet.map.getZoom() + fixmystreet.zoomOffset;
    if (zoom >= 8) {
        return 'normal';
    } else if (zoom >= 4) {
        return 'small';
    } else {
        return 'mini';
    }
};