Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (96)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (6684)

  • Add comment to match other files

    21 juillet 2014, par tkleinhakisa
    Add comment to match other files
  • php exec won't execute what is executable in console regarding audio and video

    29 novembre 2018, par FJ-web

    I have php to run a shell command to start an audio/video stream via ffmpeg. I tried the syntax in the console (as the same user as php [www-data] and from the same location as the php-script :

    pi@raspberrypi:/var/www/html/ $ sudo -H -u www-data ffmpeg {parameters}

    This works nicely. Both audio and video is visible on youtube. When I execute from php with exactly the same parameters

    $pid = exec("ffmpeg {parameters} 2> out.txt");

    the response is

    cannot open audio device hw:1,0 (No such file or directory)

    My first guess was that this had something to do with users and groups, but I can’t tell what. I even put www-data in the sudo group. Still not working.

    If I do

    exec("whoami 2> user.txt");

    the file user.txt is created (with owner www-data) but remains empty. Can anyone help me out ?

    UPDATE
    When I reboot the pi it works only one time. I think that somehow after closing the stream

    exec("kill -9 ".$pid);

    the audio is still busy. The error message is changed in

    cannot open audio device hw:1,0 (Device or resource busy)

    The video (via uv4l : localhost:port/stream/video.mjpeg) is available.

  • Redirect ffmpeg console output to a string or a file in C++

    21 juillet 2019, par NeoFahrenheit

    I’m trying to use ffmpeg to do some operations for me. It’s really simple for now. I want to omit the ffmpeg output in my console, either redirecting them to strings or a .txt file that I can control. I’m on Windows 10.

    I have tried _popen (with and "r" and "w") and system("ffmpeg command > output.txt")’, with no success.

    #include <iostream>
    #include
    using namespace std;

    #define BUFSIZE 256

    int main()
    {
       /* 1.
       x = system("ffmpeg -i video.mp4 -i audio.mp4 -c copy output.mp4 > output.txt");
       */

       /* 2.
       FILE* p;
       p = _popen("ffmpeg -i video.mp4 -i audio.mp4 -c copy output.mp4", "w");
       _pclose(p);
       */

       /* 3.
       char cmd[200] = { "ffmpeg -i video.mp4 -i audio.mp4 -c copy output.mp4" };

       char buf[BUFSIZE];
       FILE* fp;

       if ((fp = _popen(cmd, "r")) == NULL) {
           printf("Error opening pipe!\n");
           return -1;
       }

       while (fgets(buf, BUFSIZE, fp) != NULL) {
           // Do whatever you want here...
           // printf("OUTPUT: %s", buf);
       }

       if (_pclose(fp)) {
           printf("Command not found or exited with error status\n");
           return -1;
       }
       */


       return 0;
    }
    </iostream>

    Further in the development, I would like to know when the ffmpeg process finished (maybe I can monitor the ffmpeg return value ?) or to display only the last line if the some error occurred.