Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (99)

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

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • 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 ;

Sur d’autres sites (9500)

  • Media Fragment URI Specification in Last Call WD

    9 juillet 2010, par silvia

    After two years of effort, the W3C Media Fragment WG has now created a Last Call Working Draft document. This means that the working group is fairly confident that they have addressed all the required issues for media fragment URIs and their implementation on HTTP and is asking for outside (...)

  • Pipe raw audio from mp4 using ffmpeg

    24 février 2015, par user1447257

    I have following class, that enables to read audio frames per video frame :

    class AudioAcquisition :
    ’’’
    This component returns an audio signal per video frame.
    ’’’

    def __init__(self, video_filename, bufsize=10**8):
       '''
       Parameters:
       -----------

       video_filename : String of the location of video file.
       '''

       # Read info from video using ffmpeg
       cmd = ["ffmpeg", \
           '-i', video_filename]
       info_pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, \
               stderr=subprocess.PIPE)
       _, err = info_pipe.communicate()

       self.__audio_fps = int(re.search('Stream[^\n]*Audio:[^\n]*, (\d*) Hz', err).group(1))
       self.__video_fps = int(re.search('Stream[^\n]*Video:[^\n]*, (\d*) fps', err).group(1))

       # Open audio using ffmpeg
       cmd = ['ffmpeg', \
           '-loglevel', 'quiet', \
           '-i', video_filename, \
           '-vn', \
           '-f', 's16le', \
           '-acodec', 'pcm_s16le', \
           '-ac', '1', \
           '-']
       print " ".join(cmd)
       self.__pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, \
           stderr=subprocess.STDOUT)

    def run(self):
       '''
       Yields:
       -------

       An audio signal per video frame.
       '''

       while (True):
           try:
               size = int(2 * self.__audio_fps / self.__video_fps)
               data = self.__pipe.stdout.read(size)
               if (len(data) < size):
                   break
               yield numpy.fromstring(data, dtype="int16")
           except IOError as e:
               print('Error encoutered while reading audio via ffmpeg: ' \
                   + str(e))
               break

    This somehow does not work properly, as the audio is dumped out with some noise frames at about 20s and repetitively occuring more often at later timestamps.

    Do you guys have any suggestions what I am missing in calling ffmpeg ?

    Thanks !

  • ffmpeg creating gif from images, how to prevent loop ?

    8 mai, par Geuis

    I'm creating gifs from a small group of images. Currently the gif loops by default. I've been trying variations of -loop in the ffmpeg command, but the gif still loops. What's the right way to do this ?