Recherche avancée

Médias (91)

Autres articles (21)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (5794)

  • webcam displyed on LAN not to the internet

    9 juin 2015, par Francois Baret

    OK, this is not due to a dumb mistake : I have forwarded the port and there is no firewall in between.
    I try to make the "live streaming" section of jsmpeg (https://github.com/phoboslab/jsmpeg) to work on the Internet. To get the webcam stream on my webpage I modify "stream-server.js"

    if( process.argv.length < 3 ) {
            console.log(
                    'Usage: \n' +
                    'node stream-server.js <secret> [ ]'
            );
            process.exit();
    }

    var STREAM_SECRET = process.argv[2],
            STREAM_PORT = process.argv[3] || 8082,
            WEBSOCKET_PORT = process.argv[4] || 8084,
            STREAM_MAGIC_BYTES = 'jsmp'; // Must be 4 bytes

    var width = 320,
            height = 240;

    // Websocket Server
    var socketServer = new (require('ws').Server)({port: WEBSOCKET_PORT});
    socketServer.on('connection', function(socket) {
            // Send magic bytes and video size to the newly connected socket
            // struct { char magic[4]; unsigned short width, height;}
            var streamHeader = new Buffer(8);
            streamHeader.write(STREAM_MAGIC_BYTES);
            streamHeader.writeUInt16BE(width, 4);
            streamHeader.writeUInt16BE(height, 6);
            socket.send(streamHeader, {binary:true});

            console.log( 'New WebSocket Connection ('+socketServer.clients.length+' total)' );
           
            socket.on('close', function(code, message){
                    console.log( 'Disconnected WebSocket ('+socketServer.clients.length+' total)' );
            });
    });

    socketServer.broadcast = function(data, opts) {
            for( var i in this.clients ) {
                    if (this.clients[i].readyState == 1) {
                            this.clients[i].send(data, opts);
                    }
                    else {
                            console.log( 'Error: Client ('+i+') not connected.' );
                    }
            }
    };


    // HTTP Server to accept incomming MPEG Stream
    var streamServer = require('http').createServer( function(request, response) {
            var params = request.url.substr(1).split('/');

            if( params[0] == STREAM_SECRET ) {
                    width = (params[1] || 320)|0;
                    height = (params[2] || 240)|0;
                   
                    console.log(
                            'Stream Connected: ' + request.socket.remoteAddress +
                            ':' + request.socket.remotePort + ' size: ' + width + 'x' + height
                    );
                    request.on('data', function(data){
                            socketServer.broadcast(data, {binary:true});
                    });
            }
            else {
                    console.log(
                            'Failed Stream Connection: '+ request.socket.remoteAddress +
                            request.socket.remotePort + ' - wrong secret.'
                    );
                    response.end();
            }
    }).listen(STREAM_PORT);

    console.log('Listening for MPEG Stream on http://127.0.0.1:'+STREAM_PORT+'/<secret>/<width>/<height>');
    console.log('Awaiting WebSocket connections on ws://127.0.0.1:'+WEBSOCKET_PORT+'/');

    var servi = require('servi'),                // include the servi library
            app = new servi(false);                // servi instance

    // configure the server's behavior:
    app.port(8080);                                                // port number to run the server on
    app.serveFiles("public");                        // serve all static HTML files from /public
    app.start();       
    console.log("Listening for new clients on port 8080");</height></width></secret></secret>
           
           
           


    <h1>
    The Canvas size specified
    </h1>
           
            <canvas width="640" height="480">
                    <p>
                            Please use a browser that supports the Canvas Element, like
                            <a href="http://www.google.com/chrome">Chrome</a>,
                            <a href="http://www.mozilla.com/firefox/">Firefox</a>,
                            <a href="http://www.apple.com/safari/">Safari</a> or Internet Explorer 10
                    </p>
            </canvas>
            <code class="echappe-js">&lt;script type=&quot;text/javascript&quot; src=&quot;http://stackoverflow.com/feeds/tag/jsmpg.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;<br />
                    // Show loading notice<br />
                    var canvas = document.getElementById('videoCanvas');<br />
                    var ctx = canvas.getContext('2d');<br />
                    ctx.fillStyle = '#444';<br />
                    ctx.fillText('Loading...', canvas.width/2-30, canvas.height/3);<br />
    <br />
                    // Setup the WebSocket connection and start the player<br />
                    var client = new WebSocket( 'ws://192.168.1.15:8084/' );<br />
                    var player = new jsmpeg(client, {canvas:canvas});<br />
            &lt;/script&gt;

    The "index.html" is included in a "public" folder.

    Then I start ffmpeg with :

    `ffmpeg -s 640x480 -f video4linux2 -i /dev/video0 -f mpeg1video -b:v 800k -r 30 http://192.168.1.15:8082/1693/640/480/`

    When I open, on any station of the lan, url 192.168.1.x:8080 I get the webcam streaming on my page "jsmpeg streaming webcam" ; but if use the public ip 41.142.x.y:8080 from outside the local network (using 3G) I get the page (with the h1 line "The Canvas size specified") but no video it just says in the frame "loading".
    I do not understand why it works locally and not globally. Why the page is streaming on the internet but not the webcam ?
    Thanks for your help !

  • Why X.Org's X Server has stopped working on Google Colab ?

    20 février 2021, par Rahul

    I am Using X server for the virtual screen on Google Colab and capturing that screen with ffmpeg to record it and live stream it to twitch. (for the reinforcement learning project)

    &#xA;

    &#xA;

    The above process was completely working till my last use of my Colab notebook (on mid-January 2021), but now (on 19th February 2021) I am using the same notebook and the streaming code has stopped working.

    &#xA;

    &#xA;

    I am adding config and log file data below. (I have never seen these files before because it was working, now it's not so I don't have any idea what wrong)

    &#xA;

    The config file stored at /etc/X11/xorg.conf have the following data :

    &#xA;

    # nvidia-xconfig: X configuration file generated by nvidia-xconfig&#xA;# nvidia-xconfig:  version 418.67&#xA;&#xA;Section "ServerLayout"&#xA;    Identifier     "Layout0"&#xA;    Screen      0  "Screen0"&#xA;    InputDevice    "Keyboard0" "CoreKeyboard"&#xA;    InputDevice    "Mouse0" "CorePointer"&#xA;EndSection&#xA;&#xA;Section "Files"&#xA;EndSection&#xA;&#xA;Section "InputDevice"&#xA;    # generated from default&#xA;    Identifier     "Mouse0"&#xA;    Driver         "mouse"&#xA;    Option         "Protocol" "auto"&#xA;    Option         "Device" "/dev/mouse"&#xA;    Option         "Emulate3Buttons" "no"&#xA;    Option         "ZAxisMapping" "4 5"&#xA;EndSection&#xA;&#xA;Section "InputDevice"&#xA;    # generated from default&#xA;    Identifier     "Keyboard0"&#xA;    Driver         "kbd"&#xA;EndSection&#xA;&#xA;Section "Monitor"&#xA;    Identifier     "Monitor0"&#xA;    VendorName     "Unknown"&#xA;    ModelName      "Unknown"&#xA;    HorizSync       28.0 - 33.0&#xA;    VertRefresh     43.0 - 72.0&#xA;    Option         "DPMS"&#xA;EndSection&#xA;&#xA;Section "Device"&#xA;    Identifier     "Device0"&#xA;    Driver         "nvidia"&#xA;    VendorName     "NVIDIA Corporation"&#xA;    BoardName      "Tesla T4"&#xA;    BusID          "PCI:0:4:0"&#xA;    MatchSeat      "seat-1"&#xA;EndSection&#xA;&#xA;Section "Screen"&#xA;    Identifier     "Screen0"&#xA;    Device         "Device0"&#xA;    Monitor        "Monitor0"&#xA;    DefaultDepth    24&#xA;    Option         "AllowEmptyInitialConfiguration" "True"&#xA;    SubSection     "Display"&#xA;        Virtual     1920 1080&#xA;        Depth       24&#xA;    EndSubSection&#xA;EndSection&#xA;

    &#xA;

    The log file stored at /var/log/Xorg.0.log have the following data :

    &#xA;

    [   464.605] &#xA;X.Org X Server 1.19.6&#xA;Release Date: 2017-12-20&#xA;[   464.605] X Protocol Version 11, Revision 0&#xA;[   464.605] Build Operating System: Linux 4.15.0-124-generic x86_64 Ubuntu&#xA;[   464.605] Current Operating System: Linux 9d3fe3949671 4.19.112&#x2B; #1 SMP Thu Jul 23 08:00:38 PDT 2020 x86_64&#xA;[   464.605] Kernel command line: BOOT_IMAGE=/syslinux/vmlinuz.A init=/usr/lib/systemd/systemd boot=local rootwait ro noresume noswap loglevel=7 noinitrd console=ttyS0 security=apparmor virtio_net.napi_tx=1 systemd.unified_cgroup_hierarchy=false systemd.legacy_systemd_cgroup_controller=false csm.disabled=1 dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 i915.modeset=1 cros_efi loadpin.enabled=0 root=/dev/dm-0 "dm=1 vroot none ro 1,0 4077568 verity payload=PARTUUID=555BDB75-CBD7-CD4A-B24E-29B13D7AC0DF hashtree=PARTUUID=555BDB75-CBD7-CD4A-B24E-29B13D7AC0DF hashstart=4077568 alg=sha256 root_hexdigest=42104d547ac104fb7061529e78f53e4f3e8c3d3cbb040dc6e0f84aad68491347 salt=9dc7f3acc4e2ce65be16356e960c2b21b51a917fa31d2e891fd295490c991e41" mitigations=off&#xA;[   464.605] Build Date: 30 November 2020  08:01:56PM&#xA;[   464.605] xorg-server 2:1.19.6-1ubuntu4.8 (For technical support please see http://www.ubuntu.com/support) &#xA;[   464.605] Current version of pixman: 0.34.0&#xA;[   464.605]    Before reporting problems, check http://wiki.x.org&#xA;    to make sure that you have the latest version.&#xA;[   464.605] Markers: (--) probed, (**) from config file, (==) default setting,&#xA;    (&#x2B;&#x2B;) from command line, (!!) notice, (II) informational,&#xA;    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.&#xA;[   464.605] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Feb 20 03:10:44 2021&#xA;[   464.606] (==) Using config file: "/etc/X11/xorg.conf"&#xA;[   464.606] (==) Using system config directory "/usr/share/X11/xorg.conf.d"&#xA;[   464.607] (==) ServerLayout "Layout0"&#xA;[   464.607] (**) |-->Screen "Screen0" (0)&#xA;[   464.607] (**) |   |-->Monitor "Monitor0"&#xA;[   464.607] (**) |   |-->Device "Device0"&#xA;[   464.607] (**) |-->Input Device "Keyboard0"&#xA;[   464.607] (**) |-->Input Device "Mouse0"&#xA;[   464.607] (==) Automatically adding devices&#xA;[   464.607] (==) Automatically enabling devices&#xA;[   464.607] (==) Automatically adding GPU devices&#xA;[   464.607] (==) Automatically binding GPU devices&#xA;[   464.607] (==) Max clients allowed: 256, resource mask: 0x1fffff&#xA;[   464.607] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.&#xA;[   464.607]    Entry deleted from font path.&#xA;[   464.607] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.&#xA;[   464.607]    Entry deleted from font path.&#xA;[   464.607] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.&#xA;[   464.607]    Entry deleted from font path.&#xA;[   464.607] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.&#xA;[   464.607]    Entry deleted from font path.&#xA;[   464.607] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.&#xA;[   464.607]    Entry deleted from font path.&#xA;[   464.607] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.&#xA;[   464.607]    Entry deleted from font path.&#xA;[   464.607] (==) FontPath set to:&#xA;    /usr/share/fonts/X11/misc,&#xA;    built-ins&#xA;[   464.607] (==) ModulePath set to "/usr/lib/xorg/modules"&#xA;[   464.607] (WW) Hotplugging is on, devices using drivers &#x27;kbd&#x27;, &#x27;mouse&#x27; or &#x27;vmmouse&#x27; will be disabled.&#xA;[   464.607] (WW) Disabling Keyboard0&#xA;[   464.607] (WW) Disabling Mouse0&#xA;[   464.607] (II) Loader magic: 0x556eb77b8020&#xA;[   464.607] (II) Module ABI versions:&#xA;[   464.607]    X.Org ANSI C Emulation: 0.4&#xA;[   464.607]    X.Org Video Driver: 23.0&#xA;[   464.607]    X.Org XInput driver : 24.1&#xA;[   464.607]    X.Org Server Extension : 10.0&#xA;[   464.607] (EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory)&#xA;[   464.609] (--) PCI: (0:0:4:0) 10de:1eb8:10de:12a2 rev 161, Mem @ 0xc0000000/16777216, 0x380000000/268435456, 0x390000000/33554432&#xA;[   464.609] (II) no primary bus or device found&#xA;[   464.609] (II) LoadModule: "glx"&#xA;[   464.609] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so&#xA;[   464.610] (II) Module glx: vendor="X.Org Foundation"&#xA;[   464.610]    compiled for 1.19.6, module version = 1.0.0&#xA;[   464.610]    ABI class: X.Org Server Extension, version 10.0&#xA;[   464.610] (II) LoadModule: "nvidia"&#xA;[   464.610] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so&#xA;[   464.610] (II) Module nvidia: vendor="NVIDIA Corporation"&#xA;[   464.610]    compiled for 4.0.2, module version = 1.0.0&#xA;[   464.610]    Module class: X.Org Video Driver&#xA;[   464.610] (II) NVIDIA dlloader X Driver  418.67  Sat Apr  6 02:51:17 CDT 2019&#xA;[   464.610] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs&#xA;[   464.610] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)&#xA;[   464.610] (II) Loading sub module "fb"&#xA;[   464.610] (II) LoadModule: "fb"&#xA;[   464.611] (II) Loading /usr/lib/xorg/modules/libfb.so&#xA;[   464.611] (II) Module fb: vendor="X.Org Foundation"&#xA;[   464.611]    compiled for 1.19.6, module version = 1.0.0&#xA;[   464.611]    ABI class: X.Org ANSI C Emulation, version 0.4&#xA;[   464.611] (II) Loading sub module "wfb"&#xA;[   464.611] (II) LoadModule: "wfb"&#xA;[   464.611] (II) Loading /usr/lib/xorg/modules/libwfb.so&#xA;[   464.611] (II) Module wfb: vendor="X.Org Foundation"&#xA;[   464.611]    compiled for 1.19.6, module version = 1.0.0&#xA;[   464.611]    ABI class: X.Org ANSI C Emulation, version 0.4&#xA;[   464.611] (II) Loading sub module "ramdac"&#xA;[   464.611] (II) LoadModule: "ramdac"&#xA;[   464.611] (II) Module "ramdac" already built-in&#xA;[   464.637] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the&#xA;[   464.637] (EE) NVIDIA:     system&#x27;s kernel log for additional error messages and&#xA;[   464.637] (EE) NVIDIA:     consult the NVIDIA README for details.&#xA;[   464.662] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the&#xA;[   464.662] (EE) NVIDIA:     system&#x27;s kernel log for additional error messages and&#xA;[   464.662] (EE) NVIDIA:     consult the NVIDIA README for details.&#xA;[   464.662] (EE) No devices detected.&#xA;[   464.662] (==) Matched modesetting as autoconfigured driver 0&#xA;[   464.662] (==) Matched fbdev as autoconfigured driver 1&#xA;[   464.662] (==) Matched vesa as autoconfigured driver 2&#xA;[   464.662] (==) Assigned the driver to the xf86ConfigLayout&#xA;[   464.662] (II) LoadModule: "modesetting"&#xA;[   464.662] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so&#xA;[   464.663] (II) Module modesetting: vendor="X.Org Foundation"&#xA;[   464.663]    compiled for 1.19.6, module version = 1.19.6&#xA;[   464.663]    Module class: X.Org Video Driver&#xA;[   464.663]    ABI class: X.Org Video Driver, version 23.0&#xA;[   464.663] (II) LoadModule: "fbdev"&#xA;[   464.663] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so&#xA;[   464.663] (II) Module fbdev: vendor="X.Org Foundation"&#xA;[   464.663]    compiled for 1.19.3, module version = 0.4.4&#xA;[   464.663]    Module class: X.Org Video Driver&#xA;[   464.663]    ABI class: X.Org Video Driver, version 23.0&#xA;[   464.663] (II) LoadModule: "vesa"&#xA;[   464.663] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so&#xA;[   464.663] (II) Module vesa: vendor="X.Org Foundation"&#xA;[   464.663]    compiled for 1.19.3, module version = 2.3.4&#xA;[   464.663]    Module class: X.Org Video Driver&#xA;[   464.663]    ABI class: X.Org Video Driver, version 23.0&#xA;[   464.663] (II) NVIDIA dlloader X Driver  418.67  Sat Apr  6 02:51:17 CDT 2019&#xA;[   464.663] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs&#xA;[   464.663] (II) modesetting: Driver for Modesetting Kernel Drivers: kms&#xA;[   464.663] (II) FBDEV: driver for framebuffer: fbdev&#xA;[   464.663] (II) VESA: driver for VESA chipsets: vesa&#xA;[   464.663] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)&#xA;[   464.663] (EE) open /dev/dri/card0: No such file or directory&#xA;[   464.663] (WW) Falling back to old probe method for modesetting&#xA;[   464.663] (EE) open /dev/dri/card0: No such file or directory&#xA;[   464.663] (WW) Falling back to old probe method for fbdev&#xA;[   464.663] (II) Loading sub module "fbdevhw"&#xA;[   464.663] (II) LoadModule: "fbdevhw"&#xA;[   464.663] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so&#xA;[   464.663] (II) Module fbdevhw: vendor="X.Org Foundation"&#xA;[   464.663]    compiled for 1.19.6, module version = 0.0.2&#xA;[   464.663]    ABI class: X.Org Video Driver, version 23.0&#xA;[   464.664] (EE) open /dev/fb0: No such file or directory&#xA;[   464.664] (WW) Falling back to old probe method for vesa&#xA;[   464.664] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support&#xA;[   464.664] (EE) Screen 0 deleted because of no matching config section.&#xA;[   464.664] (II) UnloadModule: "modesetting"&#xA;[   464.664] (EE) Device(s) detected, but none match those in the config file.&#xA;[   464.664] (EE) &#xA;Fatal server error:&#xA;[   464.664] (EE) no screens found(EE) &#xA;[   464.664] (EE) &#xA;Please consult the The X.Org Foundation support &#xA;     at http://wiki.x.org&#xA; for help. &#xA;[   464.664] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.&#xA;[   464.664] (EE) &#xA;[   464.664] (EE) Server terminated with error (1). Closing log file.&#xA;&#xA;

    &#xA;

    I am using this github repo to setup the video-streamer

    &#xA;

    If anyone wants the colab notebook for the example then I will add it over here.

    &#xA;

    For this problem I am really not sure where to file an issue for this so that's why I am writing this here.

    &#xA;

  • Data Privacy Day 2021 : Five ways to embrace privacy into your business

    27 janvier 2021, par Matomo Core Team — Community, Privacy

    Welcome to Data Privacy Day 2021 !

    This year we are excited to announce that we are participating as a #PrivacyAware Champion for DPD21 through the National Cyber Security Alliance. This means that on this significant day we are in partnership with hundreds of other organisations and businesses to share a unified message that empowers individuals to “Own Your Privacy” and for organisations to “Respect Privacy.”

    "Last year dawned a new era in the way many businesses operate from a traditional office work setting to a remote working from home environment for employees. This now means it’s more important than ever for your employees to understand how to take ownership of their privacy when working online."

    Matthieu - Founder of Matomo

    As a Data Privacy Day #PrivacyAware Champion we would like to provide some practical tips and share examples of how the Matomo team helps employees be privacy aware.

    Five ways to embrace privacy into your business

    1. Create a privacy aware culture within your business

    • Get leadership involved.
    • Appoint privacy ambassadors within your team. 
    • Create a privacy awareness campaign where you educate employees on your company privacy policy. 
    • Share messages about privacy around the office/or in meetings online, on internal message boards, in company newsletters, or emails. 
    • Teach new employees their role in your privacy culture and reinforce throughout their career.

    2. Organise privacy awareness training for your employees

    • Invite outside speakers to talk to employees about why privacy matters. 
    • Engage staff by asking them to consider how privacy and data security applies to the work they do on a daily basis.
    • Encourage employees to complete online courses to gain a better understanding of how to avoid privacy risks.

    3. Help employees manage their individual privacy

    • Better security and privacy behaviours at home will translate to better security and privacy practices at work. 
    • Teach employees how to update their privacy and security settings on personal accounts.
    • Use NCSA’s privacy settings page to help them get started

    4. Add privacy to the employee’s toolbox

    • Give your employees actual tools they can use to improve their privacy, such as company-branded camera covers or privacy screens for their devices, or virtual private networks (VPNs) to secure their connections.

    5. Join Matomo and we’ll be your web analytics experts

    • At Matomo, ensuring our users and customers that their privacy is protected is not only a core component of the work we do, it’s why we do what we do ! Find out how.

    Want to find out more about data privacy download your free DPD 2021 Champion Toolkit and read our post on “Why is privacy important”.

    Team Matomo

    2021 Data Privacy Day Toolkit

    Your guide to Data Privacy Day, January 28, 2021