Recherche avancée

Médias (0)

Mot : - Tags -/navigation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (78)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • 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 (6422)

  • Icecast : always send a content-type

    11 novembre 2014, par Marvin Scholz
    Icecast : always send a content-type
    

    use a default (audio/mpeg for historical reason) if none. Required since Icecast 2.4.1
    Not using AVOption default because this breaks content-type warnings (needs to
    detect if no type was set by the user)

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/icecast.c
  • FFMPEG Script Produces video of 1 second

    17 septembre 2019, par Tim J

    I am trying to work the script found here

    #########################
    ## START CONFIGURATION ##
    #########################

    # path to video playlist.txt
    playlist="playlist.txt";

    # output frame size
    outsize="1920x1080";

    # frames per second
    fps="60";

    # video bitrate
    bv="20M";

    # audio bitrate
    ba="256k";

    # video codec
    cv="h264";

    # audio codec
    ca="libfdk_aac";

    # output container format
    fmt="flv";

    # base frequency (Hz)
    bfreq="20";

    # end frequency (Hz)
    efreq="1420";

    #######################
    ## END CONFIGURATION ##
    #######################

    randfile="$(cat "$playlist" | rl | head -1)";
    duration="$(mediainfo --Inform="Video;%Duration/String3%" $randfile)";
    viz="volume=2,showcqt=s=1920x144:text=0:r=$fps:axis=0:basefreq=$bfreq:endfreq=$efreq:count=15:sono_g=4:bar_g=4:bar_v=35:sono_h=144:sono_v=bar_v*a_weighting(f):tc=0.1,rotate=1200*sin(200*PI/200*t):ow=24:oh=24:c=none,scale=$outsize,setsar=1/1[viz];[1:v]scale=$outsize,setsar=1/1[vid1];[viz][vid1]blend=all_mode=heat:shortest=1:repeatlast=0,hue="H="2*PI*t/420""";
    enc="-s $outsize -c:a $ca -b:a $ba -c:v $cv -preset ultrafast -b:v $bv -profile:v high -level 4.2 -g "$(bc &lt;&lt;&lt; $fps*2)" -bf 2 -x264opts keyint="$(bc &lt;&lt;&lt; $fps*2)":min-keyint="$(bc &lt;&lt;&lt; $fps*2)":8x8dct=1 -pix_fmt yuv420p -r $fps";
    ffmpeg -hide_banner -i "$1" -r $fps -i "$randfile" -filter_complex $viz $enc -t $duration -shortest -f $fmt "$2";

    When running however I am only getting a video output of 1 second, there is no exit message the process just ends.

    The command I am running is ./ffviz.sh http://50.7.77.114:8277 output.mp4

    The 1 second clip does contain the correct mp4 and and audio, so I believe the process is working, I am not able however to make it run it for longer than 1 second.

  • add watermark on video upload and compress to 360p using my script [closed]

    31 janvier 2023, par Realbro media tips

    I want to add watermark to my videos on upload using this my remote upload script and also compress video to 360p.

    &#xA;

    if (isset($_POST["submit"])) {&#xA;  $file_url = $_POST["file_url"];&#xA;  $file_name = $_POST["file_name"];&#xA;&#xA;  if (filter_var($file_url, FILTER_VALIDATE_URL)) {&#xA;    $pathinfo = pathinfo($file_url);&#xA;    if (isset($pathinfo["extension"])) {&#xA;      $file_name .= "." . $pathinfo["extension"];&#xA;      $file_content = file_get_contents($file_url);&#xA;      $fopen = fopen("files/" . $file_name, "w");&#xA;      $fwrite = fwrite($fopen, $file_content);&#xA;      fclose($fopen);&#xA;      if ($fwrite) {&#xA;        $msg["success"] = "<input type="&#x27;text&#x27;" value="&#x27;https://example.com/file/files/$file_name&#x27;" />&#xA;<button>Copy text</button> File Uploaded Successfully.";&#xA;        $_POST["file_url"] = "";&#xA;        $_POST["file_name"] = "";&#xA;      } else {&#xA;        $msg["error"] = "Something wrong went. Please try again.";&#xA;      }&#xA;    } else {&#xA;      $msg["error"] = "Please enter a file URL.";&#xA;    }&#xA;  } else {&#xA;    $msg["error"] = "Please enter a valid URL.";&#xA;  }&#xA;}&#xA;?>&#xA;

    &#xA;

    I have not tried anything cos am yet to learn more on this category.

    &#xA;