Recherche avancée

Médias (21)

Mot : - Tags -/Nine Inch Nails

Autres articles (95)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (10983)

  • dnn-layer-mathunary-test : add unit test for tan

    6 juin 2020, par Ting Fu
    dnn-layer-mathunary-test : add unit test for tan
    

    Signed-off-by : Ting Fu <ting.fu@intel.com>
    Signed-off-by : Guo Yejun <yejun.guo@intel.com>

    • [DH] tests/dnn/dnn-layer-mathunary-test.c
  • How to prevent screen tearing when updating stdin input to ffmpeg for youtube livestream

    8 septembre 2021, par Cameron Sima

    I am working on a livestream application that allows multiple web clients to stream video through webrtc to a 'controller' client which will add their audio track, then be able to switch between these video feeds and output the raw stream data to a server running ffmpeg, which will then send the feed to youtube live.

    &#xA;

    The 'controller' client simply sets one peer video source as the 'active' stream on button press and all others as 'inactive'.

    &#xA;

    The data is then sent to a node.js server like so :

    &#xA;

          this.mediaSources.forEach((source, _) => {&#xA;    source.recorder.ondataavailable = (e: BlobEvent) => {&#xA;        if (source.active) {&#xA;          this.socket.emit(&#x27;binarystream&#x27;, e.data)&#xA;        }&#xA;      }&#xA;

    &#xA;

    The node server starts an ffmepg process like so :

    &#xA;

    export class FfmpegService {&#xA;ffmpeg: ChildProcess&#xA;youtubeUrl = &#x27;rtmp://a.rtmp.youtube.com/live2&#x27;&#xA;&#xA;start(rtmpDestination: string) {&#xA;    this.ffmpeg = spawn(&#x27;ffmpeg&#x27;, this.getFfmpegOptions(rtmpDestination), &#xA;        { shell: process.env.NODE_ENV !== &#x27;production&#x27; }&#xA;    )&#xA;}&#xA;&#xA;stop() {&#xA;    if (this.ffmpeg) {&#xA;        this.ffmpeg.stdin.end()&#xA;        this.ffmpeg.kill(&#x27;SIGINT&#x27;)&#xA;        this.ffmpeg = null&#xA;    }&#xA;}&#xA;&#xA;feedStream(data: any) {&#xA;    this.ffmpeg.stdin.write(data)&#xA;}&#xA;&#xA;private getFfmpegOptions(streamKey: string): string[] {&#xA;    const rtmpDestination = this.youtubeUrl &#x2B; &#x27;/&#x27; &#x2B; streamKey&#xA;    return [&#xA;        &#x27;-i&#x27;,&#x27;-&#x27;,&#xA;        &#x27;-c:v&#x27;, &#x27;libx264&#x27;, &#xA;        &#x27;-preset&#x27;, &#x27;fast&#x27;, &#x27;-tune&#x27;, &#x27;zerolatency&#x27;,  // video codec config: low latency, adaptive bitrate&#xA;        &#x27;-c:a&#x27;, &#x27;aac&#x27;, &#x27;-ar&#x27;, &#x27;44100&#x27;, &#x27;-b:a&#x27;, &#x27;64k&#x27;, // audio codec config: sampling frequency (11025, 22050, 44100), bitrate 64 kbits&#xA;        &#x27;-y&#x27;, //force to overwrite&#xA;        &#x27;-use_wallclock_as_timestamps&#x27;, &#x27;1&#x27;, // used for audio sync&#xA;        &#x27;-async&#x27;, &#x27;1&#x27;, // used for audio sync&#xA;        //&#x27;-filter_complex&#x27;, &#x27;aresample=44100&#x27;, // resample audio to 44100Hz, needed if input is not 44100&#xA;        //&#x27;-strict&#x27;, &#x27;experimental&#x27;, &#xA;        &#x27;-bufsize&#x27;, &#x27;300k&#x27;,&#xA;        &#x27;-pix_fmt&#x27;, &#x27;yuv420p&#x27;,&#xA;        &#x27;-f&#x27;, &#x27;flv&#x27;, rtmpDestination&#xA;    ];&#xA;}&#xA;

    &#xA;

    Everything works as expected in a youtube live session. The only problem is when switching between input streams, there is about 5 seconds of screen tearing before settling down. From all outward appearances, the switch happens immediately and seamlessly. I feel this can be attenuated/solved by tweaking the ffmpeg options but I'm pretty new to ffmpeg. I have tried increasing/decreasing -bufsize and -preset cli options, but nothing has worked so far.

    &#xA;

  • using ffmpeg on youtube video url php

    29 novembre 2014, par king

    I am trying to get youtube video from its actual url and convert it into avi using ffmpeg could anyone help me in this

    &lt;?php
    $video = "http://r3---sn-cxaauxax-cage.googlevideo.com/videoplayback?initcwndbps=471250&amp;ipbits=0&amp;itag=22&amp;sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmime%2Cmm%2Cms%2Cmv%2Csource%2Cupn%2Cexpire&amp;expire=1417308390&amp;upn=mdUcarOb9uA&amp;sver=3&amp;mt=1417286760&amp;mime=video%2Fmp4&amp;fexp=3300113%2C3300113%2C3300134%2C3300134%2C3300137%2C3300137%2C3300161%2C3300161%2C3310366%2C3310366%2C3310705%2C3310705%2C3312478%2C3312478%2C900245%2C907259%2C927622%2C932404%2C937427%2C941458%2C943909%2C947209%2C948124%2C951501%2C952302%2C952605%2C952901%2C953000%2C953912%2C957103%2C957105%2C957201&amp;mm=31&amp;key=yt5&amp;signature=5FBF01B3A073A5B1BCEF5FDC480420872E365766.FA2463D05DD20DFE72E4243723D76DC551A8E3F7&amp;id=o-AG_18OU8gTru9RXONTqv_lYhbFcvoJgEzvbFUwObjNY6&amp;dur=2825.984&amp;mv=m&amp;source=youtube&amp;ms=au&amp;ip=27.34.252.158";

          $num = 3;
          $secpos = 1;
        $thumb = "C:\\ffmpeg";
       echo "Starting ffmpeg...\n\n";
       echo shell_exec("ffmpeg -i $video -ss 90 -t 100  output.avi ");
       echo "Done.\n";
    ?>