Recherche avancée

Médias (0)

Mot : - Tags -/gis

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

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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (11926)

  • FFmpeg How to write video to a file

    9 décembre 2014, par NoviceAndNovice

    What i want is

    1. Get video packet from stream source
    2. Decode it
    3. And write  that decoded data as video file(avi, mpeg etc)

    I can able to get video Packets from a file (as AVPacket) and also can decode and save as an image.(raw)( FFmpeg tutorials show how to do it).
    But i can not ( do not know ) write that video data to a file(other) which can be played by media players(such as VLC).

    Best Wishes

    Ps : Real code samples will be great if possible...

    Now i make test with av_interleaved_write but i got strange error "non monotone timestamps" ( i have no control over pts values of media source )

    Some Extra Info

    In FFmpeg I have to

    1. Read media packets from media source ( it may be real file(.avi,mov) or even rtsp server).
    2. Then write those media packets to a real file (physical .avi, .mov etc file)

    I need reader and writer. I can read the media source file ( even encode packets according to given format). But i can not write to file...(which any player can play)

    And some pseudoCode

    File myFile("MyTestFile.avi");

    while ( source ->hasVideoPackets)
    {
        packet = source->GetNextVideoPacket();
        Frame decodedFrame = Decode(packet);
        VideoPacket encodedPacket = Encode( decodedFrame);
        myFile.WriteFile(encodedPacket);
    }

    Or Just write the original file without encode decode

        File myFile("MyTestFile.avi");

        while ( source ->hasVideoPackets)
        {
            packet = source->GetNextVideoPacket();
            myFile.WriteFile(packet);
        }

    Then

    I can able to open MyTest.avi file with a player.
  • Python gets stuck at pipe.stdin.write(image.tostring())

    10 mars 2020, par Vandana Rajan

    I am reading each frame of video and adding time stamp to it as given below.

    command = ['ffmpeg',
               '-y', # (optional) overwrite output file if it exists
               '-f', 'rawvideo', #Input is raw video
               '-pix_fmt', 'bgr24', #Raw video format
               '-s', str(int(width)) + 'x' + str(int(height)), # size of one frame
               '-i', '-', # The input comes from a pipe
               '-an', # Tells FFMPEG not to expect any audio
               '-vcodec', 'mpeg4',
               '-b:v', '10M', #Sets a maximum bit rate
               Output_name]
       #Open the pipe
       pipe = sp.Popen(command, stdin=sp.PIPE, stderr=sp.PIPE)

       print('Processing....')
       print(' ')
       #Reads through each frame, calculates the timestamp, places it on the frame and exports the frame to the output video.
       #import pdb
       #pdb.set_trace()
       while current_frame < total_frames:
           success, image = video.read()
           if success:
               elapsed_time = video.get(cv2.CAP_PROP_POS_MSEC)
               current_frame = video.get(cv2.CAP_PROP_POS_FRAMES)
               timestamp = initial + dt.timedelta(microseconds = elapsed_time*1000)
               cv2.putText(image, 'Date: ' + str(timestamp)[0:10], (50,int(height-150)), cv2.FONT_HERSHEY_COMPLEX_SMALL, 2, (255, 255, 255), 3)
               cv2.putText(image, 'Time: ' + str(timestamp)[11:-4], (50,int(height-100)), cv2.FONT_HERSHEY_COMPLEX_SMALL, 2, (255, 255, 255), 3)
               pipe.stdin.write(image.tostring())
               print('frame number',current_frame)
           else:
               print('video reader fail')    
       video.release()
       pipe.stdin.close()
       pipe.stderr.close()

    However, after around 18k frames, Python gets stuck at ’pipe.stdin.write(image.tostring())’. It does not produce any error, but simply hangs. How to resolve this issue ?

    Thanks in advance.

  • avcodec/ac3 : rename identifier used to select the fixed point variant

    1er avril 2014, par Michael Niedermayer
    avcodec/ac3 : rename identifier used to select the fixed point variant
    

    the CONFIG_ prefix is used by configure, using it for other things
    is potentially confusing to the reader

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>
    Signed-off-by : Nedeljko Babic <nbabic@mips.com>

    • [DH] libavcodec/ac3.h
    • [DH] libavcodec/ac3dec.c
    • [DH] libavcodec/ac3dec.h
    • [DH] libavcodec/ac3dec_fixed.c