Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

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

  • How to overwrite file with ffmpeg when opened with pygame.mixer.music

    11 février 2015, par Lewistrick

    I have this interesting situation in which I want to convert a lot of audio fragments using ffmpeg via subprocess.check_call() and then play them using pygame.mixer.music.play().
    But because there would be a lot of small files when converting all of them, I want to overwrite the file every time, calling it tmp.wav.

    Converting goes as follows :

    outfilename = "tmp.wav"
    proc_args  = ["ffmpeg"]
    proc_args += ["-ss", str(begin / 1000)]
    proc_args += ["-i", os.path.join(audiodir, infilename)]
    proc_args += ["-to", str(duration / 1000)]
    proc_args += ["-ar", str(AUDIORATE)] # sample frequency (audio rate)
    proc_args += ["-y"]
    proc_args += [outfilename]
    DEVNULL = open(os.devnull, 'wb')
    try:
       subprocess.check_call(proc_args, stdout = DEVNULL, stderr = DEVNULL)
       # print "Converting audio succeeded."
    except subprocess.CalledProcessError as e:
       print "Converting audio failed."
       return 0.

    Playing goes as follows :

    pygame.mixer.music.load(outfilename)
    pygame.mixer.music.play()

    Now, a problem arises. The first file is converted and played correctly. But when skipping to the next file, tmp.wav can’t be overwritten. I think this is due to the fact that the file is still opened in the music module, but that doesn’t say how to close the file. I already tried pygame.mixer.music.stop(), pygame.mixer.quit() and pygame.mixer.stop() before converting the new file, but none of them works.

    How do I solve this problem ?

  • How to use FFmpeg to get lyrics ?

    14 février 2018, par XChy

    FFmpeg version:3.3.2

    I try to use stream to get lyrics,but that cannot.

    Code :

    AVFormatContext* fmt_ctx = NULL;
    int ret;
    av_register_all();

    if ((ret = avformat_open_input(&fmt_ctx, "media path", NULL, NULL))){
       printf("Fail to open file");
       return;
    }
    if (fmt_ctx->iformat->read_header(fmt_ctx) < 0) {
       printf("No header format");
       return;
    }
    for (uint i = 0; i < fmt_ctx->nb_streams; i++){
       auto stream=fmt_ctx->streams[i];
       if(stream->disposition==AV_DISPOSITION_LYRICS){
           printf("lyrics!");//"will not print"
       }
    }
  • FFMPEG stream separate video and music files

    10 janvier 2018, par Kulcanhez

    I want to stream using FFMPEG some random nature videos and have some random music playing under it, by other words, playing some video files and some music files at the same time. I already searched but I found no solutions. I’m using Ubuntu currently. I said FFMPEG because I didn’t found any other solution. Thanks !!