Recherche avancée

Médias (1)

Mot : - Tags -/stallman

Autres articles (57)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (12691)

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