Recherche avancée

Médias (91)

Autres articles (67)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur

    8 février 2011, par

    La visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
    Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
    Configuration de la boite multimédia
    Dès (...)

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

Sur d’autres sites (11929)

  • Recursively running ffmpeg concat script in bash across multiple folders

    15 août 2022, par Sam Feldman

    I wrote a bash script that concatenates all video files in a folder using ffmpeg. I would like to be able to run this script recursively on multiple folders. My problem has been that I am unable to change into the directory of every new folder to run the script. This is required for my script to work. Does anyone know what I could accomplish this ?

    


        #!/bin/bash

for f in *; do echo "file '$f'" >> files.txt; done
for f in *; do echo "'$f'" >> filesdelete.txt; done
ffmpeg -f concat -safe 0 -i files.txt -c copy "${PWD##*/}".MP4
xargs -I{} rm -r "{}" < filesdelete.txt
rm files.txt
rm filesdelete.txt


    


    I start with the file structure below. The script runs in each subdirectory (dir1, dir2, dir3) and combines the files in each subdirectory into one video. For the script to run, it needs to cd into each directory.

    


    root
├── dir1
│   ├── video1.mp4
│   ├── video2.mp4
│   └── video3.mp4
├── dir2
│   ├── video1.mp4
│   └── video2.mp4
└── dir3
    ├── video1.mp4
    └── video2.mp4


    


    The end result should look like the structure below.

    


    root
├── dir1
│   └── concat.mp4
├── dir2
│   └── concat.mp4
└── dir3
    └── concat.mp4


    


  • "Cannot find ffmpeg" error when using 'audioconcat'

    2 janvier 2020, par Mosukoshide

    I would like to concatenate three ’.oga’ sound files using audioconcat, however whenever I try to do so, I am met with this error :

    Error: Error: Cannot find ffmpeg
       at /root/user/node_modules/fluent-ffmpeg/lib/processor.js:136:22
       at /root/user/node_modules/fluent-ffmpeg/lib/capabilities.js:123:9
       at /root/user/node_modules/fluent-ffmpeg/lib/capabilities.js:116:11
       at /root/user/node_modules/fluent-ffmpeg/lib/utils.js:223:16
       at F (/root/user/node_modules/which/which.js:68:16)
       at E (/root/user/node_modules/which/which.js:80:29)
       at /root/user/node_modules/which/which.js:89:16
       at /root/user/node_modules/isexe/index.js:42:5
       at /root/user/node_modules/isexe/mode.js:8:5
       at FSReqWrap.oncomplete (fs.js:152:21)
    ffmpeg stderr: undefined

    I have already installed ffmpeg with the flags that were listed on the audioconcat npm page like this :

    npm i ffmpeg --enable-libass --enable-libmp3lame

    And the code I am trying to run looks like this :

                   audioconcat(audioFiles)
                   .concat(`main.oga`)
                   .on('start', function (command) {
                     console.log('ffmpeg process started:', command)
                   })
                   .on('error', function (err, stdout, stderr) {
                     console.error('Error:', err)
                     console.error('ffmpeg stderr:', stderr)
                   })
                   .on('end', function (output) {
                     console.error('Audio created in:', output)
                   })

    I’m not sure how to fix this problem...

  • Convert from webm to gif using FFMPEG with minimal loss in quality

    27 novembre 2017, par Neo Herakles

    so I want to convert all my webm files to gif but the quality degraded incredibly, there’s some barely visible lines along the picture, tried using crf to improve it but it doesn’t, could you help me ? Here’s my code :

    @echo off
    setlocal
    for %%G in ("%~dp0\webm\*.webm") do (
       ffmpeg -i "%%G" -pix_fmt rgb24 -crf 17 "%%G.gif"
       )
    )
    endlocal
    pause

    Also, could you instruct me in a way in which I can remove the .webm from the output filename ? it outputs as "(file name).webm.gif"