Advanced search

Medias (91)

Other articles (11)

  • Les formats acceptés

    28 January 2010, by

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 February 2011, by

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Gestion générale des documents

    13 May 2011, by

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet; la récupération des métadonnées du document original pour illustrer textuellement le fichier;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP sur (...)

On other websites (3500)

  • Python gets stuck at pipe.stdin.write(image.tostring())

    10 March 2020, by 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.

  • h264: eliminate low_delay

    11 April 2016, by Anton Khirnov
    h264: eliminate low_delay
    

    It is always unconditionally initialized in decode_postinit() and then
    immediately used in one place further below. All the other places where
    it is accessed are just useless fluff.

    • [DBH] libavcodec/h264.c
    • [DBH] libavcodec/h264.h
    • [DBH] libavcodec/h264_slice.c
  • build: Drop check for sys/mman.h in favor of mmap() check

    24 September 2017, by Diego Biurrun
    build: Drop check for sys/mman.h in favor of mmap() check
    

    We already rely on just mmap() in other places.

    • [DBH] configure
    • [DBH] libswscale/utils.c