Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (27)

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

  • Revision 3b7ec9657a1f63786a350c56c19eb2b2926e80b7 : Neutraliser explicitement le validateur en boucle sur le script d’export ...

    15 août 2010, par Committo,Ergo:sum — Log

    Neutraliser explicitement le validateur en boucle sur le script d’export qui l’empêche de continuer, en attendant de trouver une interface plus stable que celle qui le neutralisait auparavant. git-svn-id : svn ://trac.rezo.net/spip/branches/spip-2.1@15941 (...)

  • I need assistance of making a automated script for ffmpeg [closed]

    18 décembre 2024, par user2614404

    Currently i use this script that GPT generated :

    


    ffmpeg -c:v av1_qsv -b:v 0 -global_quality 20 -preset veryslow -look_ahead 64 -c:a copy -c:s copy G:\1ARC-movies\A-View-to-a-kill.mkv -i Y:\media\Movies\A_VIEW_TO_A_KILL_t05.mkv

    


    But sadly GPT being gpt, it hallucinates answers, and none of it's deeper automation code scripts were working when it made the scripts for a .ps1 script file.

    


    And as i find most of the docs quite overwhelming, i need help to simplify what i need. As i learn best when i get explained what i currently try to do, and not every variable ffmpeg can do.

    


    what i want the script to do is :

    


    1 : convert movies with AV1_QSV with "veryslow", as that's apparently from what i've read up being the best it can do

    


    2 : Global quality as close to 50 as possible (smaller, the better), as 20-6 gave the same range of percentage of 97% VMAF score, 22 gave 95%, so 20 is the largest number i can go, as VMAF via NMKODER reported any higher number was sub 97%.

    


    3 : Give it a main folder for movies and shows to scan, and convert all the media in there to their respective subfolders to a designated output folder.

    


    2 : Automatic crop detection, as some crops it to a 21:9 ratio, others has very small letterboxes. As GPT's code for that attempt for some reason used cpu instead of arc's quicksync.

    


    As this will be ran from powershell, and it's to replace my plex library, by transcoding all movies and shows, starting with the least watched ones/shows that my family has seen, as then those will be unavailable for them until unraid 7 is out of beta to read intel arc for av1.

    


  • How to improve this Powershell script ?

    3 janvier 2023, par Joan Venge

    I wrote a powershell script that merges go pro video files if they have multiple files. It works when the videos are at the root drive i.e. C :, but otherwise not. The mergevideos.txt file is not created if I run the script from a different directory. Or the txt is created but it's empty. Not sure what's going on when run from a different directory.

    


    So is there a way to fix these issues and refactor this code to make it better ? Ideally I want the script to automatically look at the directory it's in or allows me to specify the directory it should work in so I can just call it from the same location but the videos can be anywhere.

    


    $path = "C:/NewVideos/"
$oldvids = Get-ChildItem -Path $path *.mp4
foreach ($oldvid in $oldvids) {
    $curpath = $oldvid.DirectoryName

    $name = [System.IO.Path]::GetFileNameWithoutExtension($oldvid)
    $ext = [System.IO.Path]::GetExtension($oldvid)
    if ($name.StartsWith("GX01") -and !($name.EndsWith("_merged")))
    {
        $newvid = $curpath + $name + "_merged" + $ext
        if ([System.IO.File]::Exists($newvid))
        {
            Write-Output "$name | ALREADY MERGED"
            continue
        }

        $count = 1

        for ($num = 2; $num -lt 10; $num++)
        {
            $nextpart = $name.Replace("GX01", "GX0" + $num)
            if ([System.IO.File]::Exists($curpath + "/" + $nextpart + $ext))
            {
                $count = $num
            }
        }

        if ($count -eq 1)
        {
            Write-Output "$name | SINGLE VIDEO"
            continue
        }

        $mergefile = $curpath + "mergevideos.txt"
        if (!(Test-Path $mergefile))
        {
            New-Item -path $curpath -name mergevideos.txt -type "file"
        }

        Clear-Content $mergefile

        for ($num = 1; $num -le $count; $num++)
        {
            $nextpart = $name.Replace("GX01", "GX0" + $num)
            $videofilename = "file '" + $nextpart + $ext + "'"
            Add-Content $mergefile $videofilename
        }

         Write-Output "$name | MERGING  $count VIDEOS"
         ffmpeg -f concat -safe 0 -i $mergefile -c copy $newvid
    }
}