Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (106)

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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    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 (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (7179)

  • wavdec : refactor wav_read_header()

    19 décembre 2014, par Thomas Volkert
    wavdec : refactor wav_read_header()
    

    Make it more readable and display an error message in case an invalid
    header is detected (the current version just returns
    AVERROR_INVALIDDATA)

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/wavdec.c
  • Convert long video to 16:9 by blurring sides ?

    13 mai 2019, par JackChap77

    I am taking screenshots in python using selenium and want to convert them to a video. At the moment I have a black border around the top and bottom but I want it to be a blured image of the video in the background (the video is just a still image and audio)

    Used the filter from https://stackoverflow.com/a/30832903/8502422 but it returns ’invalid too big or non positive size’

    ffmpeg -loop 1 -i image.png -i audio.mp3 -c:v libx264 -preset veryslow -crf 0 -c:a copy -lavfi "[0:v]scale=iw:2*trunc(iw*16/18),boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[bg][0:v]overlay=(W-w)/2:(H-h)/2,setsar=1" -shortest post.mp4
  • OpenCV videocapture() not opening video file from hard disk

    8 janvier 2020, par Rossi Riccardo

    Despite being a lot of threads on the issue of open CV not being able to open videos i still can’t manage to solve it.

    I’m trying to open and extract frames using openCV with spyder (os : windows 10, python 3.7.4). As far as i know (provided the file path is correct) cv2.read returns a 0 if either the codec is unsupported (converted the video to H264 to be sure and also downloaded a test avi used to test out this very issue in an older post ) or if there is a problem with the ffmpeg dependency.

    Since i thought this was the source of the issue i added conda and phyton to the PATH with the SETX command and, after that, ended up copying ffmpeg dll and cv2 folders everywhere since i couldn’t understand well were i was supposed to paste it. Results is that i still can’t make it work and can’t even opt to try to make the frame extractor directly with ffmpeg since even that one gives me an error with a copypasted function from it’s site.

    Here is the code :

    import os
    import ffmpeg


    def read_frame_as_jpeg(in_filename, frame_num):
       out, err = (
           ffmpeg
           .input(in_filename)
           .filter('select', 'gte(n,{})'.format(frame_num))
           .output('pipe:', vframes=1, format='image2', vcodec='mjpeg')
           .run(capture_stdout=True)
       )

    # Read the video from specified path
    #cam = cv2.VideoCapture(r'C:\MY\folder\264H.mp4')
    cam = cv2.VideoCapture(r'C:\Users\name\Downloads\drop.avi')
    fps=60
    vid_start=371
    vid_end=377
    sens=20
    out_dir=r"C:\MY\folder"
    out_dir=out_dir+'\\'
    print(out_dir)

    stri="drop.avi"#even tried putting the fiel in the same directory, no change
    read_frame_as_jpeg(stri, 1)

    # frame
    currentframe = 0

    while(True):

       # reading from frame
       ret,frame = cam.read()

       print(currentframe)
       if ret and currentframe>= (fps*vid_start)-sens and currentframe&lt;= (fps*vid_end)+sens:
           # if video is still left continue creating images
           name = out_dir+ str(currentframe) + '.bmp'
           print ('Creating...' + name)

           # writing the extracted images
           cv2.imwrite(name, frame)

           # increasing counter so that it will
           # show how many frames are created
           currentframe += 1
       else:
           break

    # Release all space and windows once done
    cam.release()
    cv2.destroyAllWindows()  

    The ffpeg error that i get is

    [WinError 2] Impossible to find the specified file

    while on the other hand since videocapture returns a 0 it doesn’t even enter the loop so i get just a "0" print