Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (99)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

Sur d’autres sites (13771)

  • Including ffmpeg in c program/application

    11 mars 2016, par user14598204

    I want to make a C program in which I want to directly use actual functions of ffmpeg. Right now I’m using ’system("ffmpeg command")’ to run ffmpeg
    command in my C program. This directly or indirectly executes in the terminal of my Ubuntu Linux. However this frequently opens terminal, runs the command and
    closes terminal. Thus multiple terminals are working at a time which is not a good solution.

    I want to include/embed ffmpeg command in my program so shtat I can directly access the actual fumctions which are defined in the ffmpeg source. I’m working
    on a C project in which I need to make a complete firmware which runs this single program so that I don’t have to rely on the multiple terminals and can call the
    function directly.

    So how can I achieve my goal to integrate/embed/include ffmpeg in my C program ?
    Any useful links, suggestions are gratey appreciated.

  • PHP ffmpeg not found

    17 décembre 2020, par heisenberg

    so I already browse all the forum but I still get error "sh : 1 : /usr/bin/ffmpeg : not found".
If I run ffmpeg from terminal it works just fine and can do convert video without problem, but if I use PHP exec or shell_exec, the return always ffmpeg not found.

    


    this is my code :

    


    $cmd = "/usr/bin/ffmpeg";

$run = exec($cmd." -i 'linkvideo.m3u8' -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 /test_stream/newfile.mp4 2>&1");

var_dump($run);


    


    if I run which ffmpeg or whereis ffmpeg from terminal it will return /usr/bin/ffmpeg, but if I exec('which ffmpeg') from my code it will return ffmpeg not found. I already chown and chmod the ffmpeg to grant rwx, i tried move ffmpeg to /usr/local/bin still same result. If i run whoami from terminal it will show root but if from my code using exec('whoami') it will show www-data so maybe I miss something about the user but I also already tried to chown ffmpeg from root to www-data still the result is ffmpeg not found, maybe anyone can help, I'm using codeigniter and already install ffmpeg in server using sudo apt-get ffmpeg, thanks before !

    


  • Code forks fine on macbook laptop..but on Imac(Yosemite) I get errors in my shell script

    2 mars 2015, par arantx

    I’m still figuring out how to work within the terminal, mainly with FFmpeg at the moment. I have this code running for a while now on my macbook pro (snow leopard I think). It works fine, no glitches whatsover. I just got an Imac (yosemite) and I wanted to install the same code, but now it gives these minor stupid syntax errors - that are not at fault on my laptop ! Its seems bizar to me, but maybe it’s something I forgot to install .. like a certain library ? I’ve tried to use the same steps as before but ofcourse I might have forgotten about one..

    The code will make a clip of 5 seconds on every hour via the embedded webcam, (the hourly notice is being programmed within crontab). This is the shell script :


    #!/bin/bash

    FNAME=videocapture_`date +"%F_%H_%M"`.mpg
    echo $FNAME

    /usr/local/bin/ffmpeg -t 5 -f avfoundation -i "default" $FNAME

    And these are the erros (I tried to change a few small syntaxes to see if it would stop but it just finds new errors)

    "SyntaxError: EOL while scanning string literal
    Arantxas-iMac:~ arantx$ python /Users/arantx/Documents/terminal\ stuff/camera.sh
     File "/Users/arantx/Documents/terminal stuff/camera.sh", line 3
       FNAME=videocapture_'date +"%F_%H_%M"`.mpeg
                                                ^
    SyntaxError: EOL while scanning string literal
    Arantxas-iMac:~ arantx$ python /Users/arantx/Documents/terminal\ stuff/camera.sh
     File "/Users/arantx/Documents/terminal stuff/camera.sh", line 3
       FNAME=videocapture_'date +"%F_%H_%M"`.mpeg
                                                 ^
    SyntaxError: EOL while scanning string literal
    Arantxas-iMac:~ arantx$ python /Users/arantx/Documents/terminal\ stuff/camera.sh
     File "/Users/arantx/Documents/terminal stuff/camera.sh", line 3
       FNAME=videocapture_'date +"%F_%H_%M"`.mp4"

    If someone can point something out that I might have missed, let me know !

    Kind regards,

    Arantxa