Recherche avancée

Médias (91)

Autres articles (67)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (2103)

  • How to execute a cmd command using java program [duplicate]

    21 mars 2013, par Yaswanth Veeramachaneni

    This question already has an answer here :

    I want to execute a cmd command using java program

    ffmpeg -i input.mp4 output.mp3

    I want the above command to be executed in cmd using java language.
    and in above code I have directly given the input file name to execute but can I write a code so that user can manually give an input file ?

  • Intermitent Connection Issues for FFMPEG Stream capture

    22 novembre 2014, par Quentin Spottiswoode

    I intend to create a Python shell script to open a connection to an MP3 stream and record the stream over a specified period and save the file to a .mp3 file for distribution. ffmpeg will likely be involved through a shell command, rather than using any kind of python wrapper class.

    Occasionally, the source of the stream may encounter connection issues with the internet, resulting in the listening client (ffmpeg) losing it’s connection with the host. Currently ffmpeg discards the recording entirely and forgets about attempting to reconnect to the host.

    having had a look through ffmpeg’s extensive documentation, I found myself very confused...

    • Is there some method to retain the recording up to the point of the connection failure ?
    • Is there a method of automatically re-connecting to the stream when the host reappears, or do I have to catch the error and try a certain number of times ?
    • Is there a method of passing the error to the python script in order to create a suitable response ?

    Many thanks for your insight :)

  • How to catch the ffmpeg connection error on python

    6 janvier 2017, par user824624

    I am working on the ffmpeg with python.This works when the remote server is working well, however when the remote server is down, I could see the message on the shell saying
    ’Connection to tcp ://xxxxxxx failed : Connection refused, blabla’

    pro = sp.Popen(command, preexec_fn=os.setsid, shell=False, stderr=sp.PIPE, stdout=sp.PIPE)

    catch exception approach 1 :

    try:
      out = self.pro.stderr.readline()
      while out:
               print '......'
    except BrokenPipeError:
        print 'err'

    catch exception approach 2 :

    for line in self.pro.stderr:
       try:
           print line
       except BrokenPipeError:
           print 'error'

    However none of these works.