Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (38)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (6608)

  • Python read byte array of avi header

    25 février 2020, par CDY

    I am trying to get rtsp data from server using ffmpeg and convert it to avi format then temporary saving in the memory.

    I wish that I can query 2 minutes data then drop first minute only remain and save second minute. As a result, I need to get the avi header firstly.

    However, I don’t know so much about the avi format, so not 100% for sure about my code which get right avi header.

    The header I got is like that :

    b'RIFF\xff\xff\xff\xffAVI LIST&\x01\x00\x00hdrlavih8\x00\x00\x00\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

    and the code I used as following :

    class CCTVReader():
    def __init__(self, q, in_stream, name):
       super().__init__()
       self.isHeader = True
       self.q = q
       self.name = name
       self.startTime = datetime.datetime.timestamp(datetime.datetime.now())
       self.in_stream = in_stream
       self.chunk_size = 1024
       self.command = ["ffmpeg",
                       "-c:v", "h264",    
                       "-rtsp_transport", "tcp",
                       "-i", in_stream,    
                       "-c:v", "copy",    
                       "-an", "-sn",      
                       "-f", "avi",
                       "-"]

    def run(self):
       pipe = sp.Popen(self.command, stdout=sp.PIPE, bufsize=1024**3)

       while True:
           if self.isHeader:
               data = pipe.stdout.read(56)
               if len(data) < 56:
                   break
               self.isHeader = False
           else:
               if datetime.datetime.timestamp(datetime.datetime.now()) - self.startTime >= 60 * 2:
                   break
               data = pipe.stdout.read(self.chunk_size)      
           self.q.put((data, datetime.datetime.timestamp(datetime.datetime.now())))



       print("finish", self.in_stream, time.time())

    Could I just put this header with second minute data together and write a avi format video stream ?

  • Read block_align from extradata when decoding qclp in aiff.

    23 avril 2013, par Carl Eugen Hoyos

    Read block_align from extradata when decoding qclp in aiff.

  • lavf/mxfdec : read field dominance flag

    16 février 2013, par Matthieu Bouron

    lavf/mxfdec : read field dominance flag