Recherche avancée

Médias (1)

Mot : - Tags -/swfupload

Autres articles (65)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (4035)

  • Get thumbnail image from video not working with PHP and ffmpeg (Ubuntu)

    16 octobre 2015, par a_pajic

    I have generated a $cmd string :

    ffmpeg -i /home/alen/www/mysite/video/Guitarist-139.mp4 -an -ss 0 -s
    1280x720 /home/alen/www/mysite/img/Guitarist-139.jpg

    then I have typing a command in PHP :

    shell_exec($cmd) ;

    but not working,

    then I have pasted this string in terminal but in terminal work perfectly.

    What is wrong.

  • 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

  • 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 !