Recherche avancée

Médias (91)

Autres articles (73)

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

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (5121)

  • Flash Media Server Recording Delay

    14 novembre 2011, par Corey

    I have an application where a user can record themselves singing along to a song. Once I receive the NetStream status event 'Record.Start' I start playing an audio file. Once the audio completes, I stop recording. Next, I have a script that runs FFMPEG to combine the recorded video/audio with the same music file. The problem I'm finding is that there is a noticeable delay between the recorded audio and the music. It seems also that this delay depends on network speed as it varies depending on the network. Can I determine this delay through the FMS dynamically ?

  • libavformat/hls : add support for decryption of HLS media segments encrypted using...

    21 septembre 2021, par Nachiket Tarate
    libavformat/hls : add support for decryption of HLS media segments encrypted using SAMPLE-AES encryption method
    

    Apple HTTP Live Streaming Sample Encryption :

    https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/HLS_Sample_Encryption

    Signed-off-by : Nachiket Tarate <nachiket.programmer@gmail.com>
    Signed-off-by : Steven Liu <lq@chinaffmpeg.org>

    • [DH] libavformat/Makefile
    • [DH] libavformat/hls.c
    • [DH] libavformat/hls_sample_encryption.c
    • [DH] libavformat/hls_sample_encryption.h
    • [DH] libavformat/mpegts.c
  • Python OpenCV VideoCapture Color Differs from ffmpeg and Other Media Players

    17 avril 2024, par cliffsu

    I’m working on video processing in Python and have noticed a slight color difference when using cv2.VideoCapture to read videos compared to other media players.

    &#xA;

    enter image description here

    &#xA;

    I then attempted to read the video frames directly using ffmpeg, and despite using the ffmpeg backend in OpenCV, there are still differences between OpenCV’s and ffmpeg’s output. The frames read by ffmpeg match those from other media players.

    &#xA;

    enter image description here

    &#xA;

    Below are the videos I’m using for testing :

    &#xA;

    test3.webm

    &#xA;

    test.avi

    &#xA;

    Here is my code :

    &#xA;

    import cv2&#xA;import numpy as np&#xA;import subprocess&#xA;&#xA;def read_frames(path, res):&#xA;    """Read numpy arrays of video frames. Path is the file path&#xA;       and res is the resolution as a tuple."""&#xA;    args = [&#xA;        "ffmpeg",&#xA;        "-i",&#xA;        path,&#xA;        "-f",&#xA;        "image2pipe",&#xA;        "-pix_fmt",&#xA;        "rgb24",&#xA;        "-vcodec",&#xA;        "rawvideo",&#xA;        "-",&#xA;    ]&#xA;&#xA;    pipe = subprocess.Popen(&#xA;        args,&#xA;        stdout=subprocess.PIPE,&#xA;        stderr=subprocess.DEVNULL,&#xA;        bufsize=res[0] * res[1] * 3,&#xA;    )&#xA;&#xA;    while pipe.poll() is None:&#xA;        frame = pipe.stdout.read(res[0] * res[1] * 3)&#xA;        if len(frame) > 0:&#xA;            array = np.frombuffer(frame, dtype="uint8")&#xA;            break&#xA;&#xA;    pipe.stdout.close()&#xA;    pipe.wait()&#xA;    array = array.reshape((res[1], res[0], 3))&#xA;    array = cv2.cvtColor(array, cv2.COLOR_RGB2BGR)&#xA;    return array&#xA;&#xA;ORIGINAL_VIDEO = &#x27;test3.webm&#x27;&#xA;&#xA;array = read_frames(ORIGINAL_VIDEO, (1280, 720))&#xA;&#xA;cap = cv2.VideoCapture(ORIGINAL_VIDEO, cv2.CAP_FFMPEG)&#xA;while cap.isOpened():&#xA;    ret, frame = cap.read()&#xA;    if not ret:&#xA;        break&#xA;    print(frame.shape)&#xA;    cv2.imshow("Opencv Read", frame)&#xA;    cv2.imshow("FFmpeg Direct Read", array)&#xA;    cv2.waitKeyEx()&#xA;    cv2.waitKeyEx()&#xA;    break&#xA;cap.release()&#xA;

    &#xA;

    I’ve attempted to use different media players to compare cv2.VideoCapture and ffmpeg’s frame reading, to confirm that the issue lies with opencv. I’m looking to determine whether it’s a bug in OpenCV or if there are issues in my code.

    &#xA;

    EDIT :

    &#xA;

    Just use the following code to check the difference between opencv read and ffmpeg read.

    &#xA;

    cv2.imshow(&#x27;test&#x27;, cv2.absdiff(array, frame)*10)&#xA;cv2.waitKey(0)&#xA;

    &#xA;

    Here is the result :&#xA;enter image description here

    &#xA;