Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (25)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (4719)

  • Pydub unable to locte ffprobe

    22 décembre 2020, par Recessive

    First of all, here is the link to a similar question to this : Pydub (WindowsError : [Error 2] The system can not find the file specified)
Although in this one the problem is with ffmpeg, which I solved by setting the absolute path.

    



    After setting the absolute path for converter and/or ffmpeg with either :

    



    AudioSegment.converter = r'C:\ffmpeg\bin'

    



    or

    



    AudioSegment.ffmpeg = r'C:\ffmpeg\bin'

    



    I still get this error :

    



    


    C :\Program Files\Python36\lib\site-packages\pydub\utils.py:193 : RuntimeWarning : Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
 warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
 Traceback (most recent call last) :
 File "C :/Users/Sean/Desktop/vp/encode_audio/m4a_to_wav.py", line 4, in 
 song = AudioSegment.from_file("pines.m4a", "m4a")
 File "C :\Program Files\Python36\lib\site-packages\pydub\audio_segment.py", line 660, in from_file
 info = mediainfo_json(orig_file)
 File "C :\Program Files\Python36\lib\site-packages\pydub\utils.py", line 263, in mediainfo_json
 res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
 File "C :\Program Files\Python36\lib\subprocess.py", line 707, in init
 restore_signals, start_new_session)
 File "C :\Program Files\Python36\lib\subprocess.py", line 990, in _execute_child
 startupinfo)
 FileNotFoundError : [WinError 2] The system cannot find the file specified`

    


    



    I have ffmpeg in my path envvar. I also have libav in my path envvar, and installed libav and then pydub in the order specified at https://github.com/jiaaro/pydub#dependencies.

    



    Nothing I'm doing appears to be working, so any ideas or solutions would be greatly appreciated !

    


  • Pydub unable to locate ffprobe

    25 décembre 2022, par Recessive

    Here is the link to a similar question to this : Pydub (WindowsError : [Error 2] The system can not find the file specified)
Although in this one the problem is with ffmpeg, which I solved by setting the absolute path.

    


    After setting the absolute path for converter and/or ffmpeg with either :

    


    AudioSegment.converter = r'C:\ffmpeg\bin'

    


    or

    


    AudioSegment.ffmpeg = r'C:\ffmpeg\bin'

    


    I still get this error :

    


    


    C :\Program Files\Python36\lib\site-packages\pydub\utils.py:193 : RuntimeWarning : Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
Traceback (most recent call last) :
File "C :/Users/Sean/Desktop/vp/encode_audio/m4a_to_wav.py", line 4, in 
song = AudioSegment.from_file("pines.m4a", "m4a")
File "C :\Program Files\Python36\lib\site-packages\pydub\audio_segment.py", line 660, in from_file
info = mediainfo_json(orig_file)
File "C :\Program Files\Python36\lib\site-packages\pydub\utils.py", line 263, in mediainfo_json
res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
File "C :\Program Files\Python36\lib\subprocess.py", line 707, in init
restore_signals, start_new_session)
File "C :\Program Files\Python36\lib\subprocess.py", line 990, in _execute_child
startupinfo)
FileNotFoundError : [WinError 2] The system cannot find the file specified`

    


    


    I have ffmpeg in my path envvar. I also have libav in my path envvar, and installed libav and then pydub in the order specified at https://github.com/jiaaro/pydub#dependencies.

    


    Nothing I'm doing appears to be working, so any ideas or solutions would be greatly appreciated !

    


  • Using FFmpeg programmatically with a proxy

    2 mai 2013, par William Seemann

    I'm trying to use FFmpeg with a proxy. The following code works if I comment out :

    setenv("http_proxy", "http://172.0.0.1:3128/", 1);

    The proxy server is an instance of Squid. I know the proxy server is working because I can use the same URL with VLC without any issues. With the proxy specified, the output from my code is always :

    Proxy path: http://172.0.0.1:3128/
    Metadata could not be retrieved -5 // indicates an IO Error
    setDataSource failed, rc is: -1

    I compiled FFmpeg with everything enabled. Can someone explain why this code doesn't work with a proxy ?

    #include
    #include
    #include <libavcodec></libavcodec>avcodec.h>
    #include <libavformat></libavformat>avformat.h>

    const int SUCCESS = 0;
    const int FAILURE = -1;

    typedef struct State {
       AVFormatContext *pFormatCtx;
       int             audio_stream;
       int             video_stream;
       AVStream        *audio_st;
       AVStream        *video_st;
    } State;

    int setDataSource(State** ps, const char* path) {
       State *state = *ps;

       if (state->pFormatCtx) {
           avformat_close_input(&amp;state->pFormatCtx);
       }

       int ret = 0;

       if ((ret = avformat_open_input(&amp;state->pFormatCtx, path, NULL, NULL)) != 0) {
           printf("Metadata could not be retrieved %d\n", ret);
           *ps = NULL;
           return FAILURE;
       }

       if (avformat_find_stream_info(state->pFormatCtx, NULL) &lt; 0) {
           printf("Metadata could not be retrieved\n");
           avformat_close_input(&amp;state->pFormatCtx);
           *ps = NULL;
           return FAILURE;
       }

       *ps = state;
       return SUCCESS;
    }

    const char* extractMetadata(State** ps, const char* key) {
       char* value = NULL;

       State *state = *ps;

       if (!state->pFormatCtx) {
           goto fail;
       }

       if (key) {
           if (av_dict_get(state->pFormatCtx->metadata, key, NULL, AV_DICT_IGNORE_SUFFIX)) {
               value = av_dict_get(state->pFormatCtx->metadata, key, NULL, AV_DICT_IGNORE_SUFFIX)->value;
           }
       }

       fail:

       return value;
    }

    int main(void) {
       setenv("http_proxy", "http://172.0.0.1:3128/", 1);
       unsetenv("no_proxy");

       const char *proxy_path = getenv("http_proxy");

       if (proxy_path) {
           printf("Proxy path: %s\n", proxy_path);
       } else {
           printf("No proxy specified\n");
       }

       av_register_all();
       avformat_network_init();

       State * state = av_mallocz(sizeof(State));

       int ret = setDataSource(&amp;state, "http://<some host="host">/song.mp3");

       if (ret == 0) {
           printf("setDataSource succedded!\n");
           printf("Artist: %s\n", extractMetadata(&amp;state, "artist"));
       } else {
           printf("setDataSource failed, rc is: %d\n", ret);
       }

       return EXIT_SUCCESS;
    }
    </some>