Recherche avancée

Médias (0)

Mot : - Tags -/performance

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (13)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (4935)

  • create AVI file from compressed data

    3 décembre 2015, par Qureshi

    I am using ffmpeg libararies to create an AVI file as mentioned in the post (Make AVI file from H264 compressed data), this guy had the same problem as i currently have (i-e getting error value -22.

    Please anyone can explain me what’s the meaning of this error code "-22" that i get from "av_interleaved_write_frame" ?

    he suggested that "By setting pts and dts with AV_NOPTS_VALUE I’ve solved the problem." please share any example how to set pts value with AV_NOPTS_VALUE ? and what should be the value of pts any rought estimate ?

  • how to create video stream from images collection and data

    9 juillet 2016, par Yanshof

    I want to continue my last question about video

    I want to create video stream from 400 images.
    But on this time i want to add some string ( data ) to the video stream.

    I mean that i want to add to each frame some data.
    I know that video can hold a data that can belong to any frame that appear.

    How to do it ?
    I looking at aforgenet and i found there only how to create the video stream from images.

    I did not found any how to add data ( string ) about any frame.

  • How can I decode a packet data to image ? [duplicate]

    20 décembre 2020, par codcod55

    I am getting data which in .h264 format. The data which coming from camera is something like this :

    


    b'\x00\x00\x00\x01A\xf9\xc2 ;\xd7\x10\x0fQ\xbf\xa4+\x024\xd0\xf3_'\xceT\xe3\x1c4\xf7\xa2*\xc0`/J ;\xa5\xe8i\x99\xb1\x85\xf2\xe65\xf4\xeb\xcfD\x9e\x0b\xf2\xe5*\xcf2U\xabe\xf1\x0fJp\ ........ (It is longer)

    


    I want to decode this data format with ffmpeg or opencv functions. How can I save this data as a jpeg image.

    


    Here a piece of code :

    


     packet_data = b''
    while True:
        try:
            res_string, ip = self.socket_video.recvfrom(2048)
            packet_data += res_string
            print(packet_data)
            print(len(res_string))
            # end of frame
            if len(res_string) != 1460:
                for frame in self._h264_decode(packet_data):
                    self.frame = frame
                packet_data = ""

        except socket.error as exc:
            print ("Caught exception socket.error : %s" % exc)

def _h264_decode(self, packet_data):
    """
    decode raw h264 format data from Tello

    :param packet_data: raw h264 data array

    :return: a list of decoded frame
    """
    res_frame_list = []
    frames = ffmpeg.input(packet_data)
    for framedata in frames:
        (frame, w, h, ls) = framedata
        if frame is not None:
            # print 'frame size %i bytes, w %i, h %i, linesize %i' % (len(frame), w, h, ls)

            frame = np.fromstring(frame, dtype=np.ubyte, count=len(frame), sep='')
            frame = (frame.reshape((h, ls / 3, 3)))
            frame = frame[:, :w, :]
            res_frame_list.append(frame)

    return res_frame_list


    


    EDIT : My code working with python2 but I want to work with python3. h264 library doesn't support python3. Actually, I am trying to decode this data format without h264 library. I tried to use base64 format but I couldn't do it. As a result, I am looking for a method to convert this data to image without h264 library in python3.