Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (111)

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

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

Sur d’autres sites (8556)

  • Anomalie #3930 : Moteur de recherche : combinaison de DEUX mots avec accents ne retourne rien

    18 septembre 2017, par - Equipement

    Je confirme que je constate le problème en SPIP 3.1.6 [23598] avec MYSQL 5.5.41 (tables MYISAM).

    En ajoutant, dans inc/recherche_to_array.php (ligne 57), le spip_log ci-dessous :

    spip_log("expression_recherche :".$methode.’ / ’.$q.’ / ’.$preg, _LOG_ERREUR) ;
    

    le résultat de la trace est :
    expression_recherche :REGEXP / ’secr.tariat g.n.ral|secr.tariat|g.n.ral’ / /secretariat general|secretariat|general/UimsSu

    Si dans inc/rechercher.php (SPIP 3.1.6 [23598]), je déplace les lignes suivantes :

            // tous les caracteres transliterables de $q sont remplaces par un joker
          // permet de matcher en SQL meme si on est sensible aux accents (SQLite)
          $q_t = $q ;
          for ($i = 0 ; $i < spip_strlen($q) ; $i++) 
              $char = spip_substr($q, $i, 1) ;
              if (!is_ascii($char)
                  and $char_t = translitteration($char)
                  and $char_t !== $char
              ) 
                  $q_t = str_replace($char, $is_preg ? "." : "_", $q_t) ;
              
          
    

    $q = $q_t ;

    dans la condition (if) juste en dessous :

        if (isset($GLOBALS[’connexions’][$options[’serveur’] ? $options[’serveur’] : 0][’type’])
            and strncmp($GLOBALS[’connexions’][$options[’serveur’] ? $options[’serveur’] : 0][’type’], ’sqlite’, 6) == 0
        ) 

    la recherche sur secrétariat général fonctionne et le résultat de la trace est :
    expression_recherche :REGEXP / ’secrétariat général|secrétariat|général’ / /secretariat general|secretariat|general/UimsSu

  • FFMPEG is not recording the whole window

    25 mai 2021, par John

    I'm using FFMPEG to record a window as illustrated in the figure below. In all cases, the right hand side of the recorded window is cropped. The command I'm giving is

    &#xA;&#xA;

    ffmpeg -f gdigrab -i title="example.txt - Notepad&#x2B;&#x2B;" output.mkv&#xA;

    &#xA;&#xA;

    Any suggestion on how to fix this problem is much appreciated.

    &#xA;&#xA;

    Using FFMPEG to record a window

    &#xA;&#xA;

    Here are some additional info :

    &#xA;&#xA;

      &#xA;
    • Running Windows 10
    • &#xA;

    • Using ffmpeg-20181215-011c911-win64-static, but I have the same issue using other versions of FFMPEG
    • &#xA;

    • Desktop resolution is 3200x1800 (dpi scaling issue ?)
    • &#xA;

    &#xA;&#xA;

    This is what the recorded area looks like in the example above

    &#xA;&#xA;

    FFMPEG cropping right hand side of window

    &#xA;&#xA;

    Update 1 :

    &#xA;&#xA;

    Recording the whole desktop works fine, however, when recording a region using x and y offsets, the region captured is correct, but the region indicated is wrong. I illustrate this in the image below that shows a screen capture of the desktop during recording. The background image is a grid and the taskbar has been hidden.

    &#xA;&#xA;

    enter image description here

    &#xA;&#xA;

    The size of the area to capture is specified to 1280x720, but the region indicated is 1600x900. Also, the x offset is specified to 400px, but the region indicted starts at 500px.

    &#xA;&#xA;

    The area recorded is correct ! The image below shows a screenshot of the recording during playback in vlc, note that the "misplaced" region indicator can be seen

    &#xA;&#xA;

    enter image description here

    &#xA;&#xA;

    Update 2 :

    &#xA;&#xA;

    I noticed that the cursor, the mouse, is not correctly placed when capturing from the desktop, see recording below. Everything looks fine during recording, but at playback the cursor is misplaced.

    &#xA;&#xA;

    enter image description here

    &#xA;&#xA;

    The command issued for the recording above was :

    &#xA;&#xA;

    ffmpeg -f gdigrab -framerate 30 -offset_x 1820 -offset_y 100 -video_size 1280x720 -i desktop output5.mkv&#xA;

    &#xA;&#xA;

    Windows 10 / ffmpeg-20181215-011c911-win64-static

    &#xA;

  • "Convert regions extracted from wav audio file into Flac audio file " python using FFMPAG in Django

    9 avril 2019, par maryam mehboob

    Regions extracted from wav audio file have "Invalid duration specification for ss"
    For Example in my case duration is in this format

    [(0.006000000000000005, 1.03), (2.0540000000000003, 4.870000000000003)]

    This is for converting regions into Flac format.

        class FLACConverter(object):
            # pylint: disable=too-few-public-methods
       """
            Class for converting a region of an input audio or video file into a FLAC audio file
       """

        def __init__(self, source_path, include_before=0.25, include_after=0.25):
           self.source_path = source_path
           self.include_before = include_before
           self.include_after = include_after


        def __call__(self, region):
           try:
               print("regions to convert in flac:{}".format(region))
               start = region
               end = region
             #  start = max(0, start - self.include_before)
               start = list(map(lambda x: tuple(max(0, y - self.include_before) for y in x), start))
               end = list(map(lambda x: tuple(y + self.include_after for y in x), end))
               temp = tempfile.NamedTemporaryFile(suffix='.flac', delete=False)
               command = ["ffmpeg", "-ss", str(start), "-t", str([tuple(x-y for x, y in zip(x1, x2)) for (x1, x2) in zip(end, start)]),
                          "-y", "-i", self.source_path,
                          "-loglevel", "error", temp.name]
               use_shell = True if os.name == "nt" else False
               subprocess.check_output(command)
               print(temp.name)
               #subprocess.check_output(command, stdin=open(os.devnull), shell=use_shell)
               read_data = temp.read()
               temp.close()
               os.unlink(temp.name)
               print("read_data :{}".format(read_data))
               print("temp :{}".format(temp.name))

               return read_data

           except KeyboardInterrupt:
               return None

    I expect the output of /var/folders/p1/6ttydjfx2sq9zl4cnmjxgjh40000gp/T/tmpwz5n4fnv.flac but it returns an error

    CalledProcessError at /

    Command '['ffmpeg', '-ss', '[(0.006000000000000005, 1.03), (2.0540000000000003, 4.870000000000003)]', '-t', '[(0.5, 0.5), (0.5, 0.5)]', '-y', '-i', '/var/folders/p1/6ttydjfx2sq9zl4cnmjxgjh40000gp/T/tmpuyi5spat.wav', '-loglevel', 'error', '/var/folders/p1/6ttydjfx2sq9zl4cnmjxgjh40000gp/T/tmp0vdewoyd.flac']' returned non-zero exit status 1.```