Recherche avancée

Médias (91)

Autres articles (47)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

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

  • RTMP stream monitoring in python

    18 mars 2015, par lasgun

    I don’t have experience with python, but I found this online :
    https://gist.github.com/sinkers/d647a80fdb180b4cc3a6
    Assuming it works with the current version of ffmpeg (ffprobe), I tried to just modify the code a bit, so it doesn’t log in to Amazon SNS to send a message. Just simply opening an audio file when the stream goes down, with the following command (I found it on this site) would do just fine :

    os.system("start /sound/xyz.mp3")

    I tried to do this-and-that, but I can’t seem to succeed. I have 3.x installed.

    I know it’s probably silly, but do I need to enter the relative, or absolute file locations ? For ffprobe and the sound file, is it C :\... or what’s the correct format and path ?

    Any help to solve this would be greatly appreciated.

  • Which release of ffmpeg is used in the book "Understanding FFmpeg with source code : FFMPEG Fundamentals" ?

    28 septembre 2021, par user3344036

    Just bought the book "Understanding FFmpeg with source code : FFMPEG Fundamentals" from Amazon. I have downloaded ffmpeg release 4.4, but the code has been different from that in the book. Just wondering which release the author was using, can anyone help ?

    


  • Passing python's file like object to ffmpeg via subprocess

    3 juillet 2012, par tejinderss

    I have a django FileField, which i use to store wav files on the Amazon s3 server. I have set up the celery task to read that file and convert it to mp3 and store it to another FileField. Problem i am facing is that i am unable to pass the input file to ffmpeg as the file is not the physical file on the hard disk drive. To circumvent that, i used stdin to feed the input stream of the file with the django's filefield. Here is the example :

    output_file = NamedTemporaryFile(suffix='.mp3')
    subprocess.call(['ffmpeg', '-y', '-i', '-', output_file.name], stdin=recording_wav)

    where recording_wav file is : , which is actually stored on the amazon s3 server.
    The error for the above subprocess call is :

    AttributeError: 'cStringIO.StringO' object has no attribute 'fileno'

    How can i do this ? Thanks in advance for the help.

    Edit :

    Full traceback :

    [2012-07-03 04:09:50,336: ERROR/MainProcess] Task api.tasks.convert_audio[b7ab4192-2bff-4ea4-9421-b664c8d6ae2e] raised exception: AttributeError("'cStringIO.StringO' object has no attribute 'fileno'",)
    Traceback (most recent call last):
     File "/home/tejinder/envs/tmai/local/lib/python2.7/site-packages/celery/execute/trace.py", line 181, in trace_task
       R = retval = fun(*args, **kwargs)
     File "/home/tejinder/projects/tmai/../tmai/apps/api/tasks.py", line 56, in convert_audio
       subprocess.Popen(['ffmpeg', '-y', '-i', '-', output_file.name], stdin=recording_wav)
     File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
       errread, errwrite) = self._get_handles(stdin, stdout, stderr)
     File "/usr/lib/python2.7/subprocess.py", line 1043, in _get_handles
       p2cread = stdin.fileno()
     File "/home/tejinder/envs/tmai/local/lib/python2.7/site-packages/django/core/files/utils.py", line 12, in <lambda>
       fileno = property(lambda self: self.file.fileno)
     File "/home/tejinder/envs/tmai/local/lib/python2.7/site-packages/django/core/files/utils.py", line 12, in <lambda>
       fileno = property(lambda self: self.file.fileno)
    AttributeError: &#39;cStringIO.StringO&#39; object has no attribute &#39;fileno&#39;
    </lambda></lambda>