Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (87)

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

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (6186)

  • avcodec/vp8 : Move VPx specific functions inside #if CONFIG_VPx block

    6 mars, par Andreas Rheinhardt
    avcodec/vp8 : Move VPx specific functions inside #if CONFIG_VPx block
    

    where appropriate. Avoids including ff_vp8_decode_frame()
    when the VP8 decoder is disabled.

    Reviewed-by : Peter Ross <pross@xvid.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/vp8.c
  • Unable to retrieve video stream from RTSP URL inside Docker container

    6 février, par birdalugur

    I have a FastAPI application running inside a Docker container that is trying to stream video from an RTSP camera URL using OpenCV. The setup works fine locally, but when running inside Docker, the /video endpoint does not return a stream and times out. Below are the details of the issue.

    &#xA;

    Docker Setup :

    &#xA;

    Dockerfile :

    &#xA;

    FROM python:3.10.12&#xA;&#xA;RUN apt-get update &amp;&amp; apt-get install -y \&#xA;    libgl1-mesa-glx \&#xA;    libglib2.0-0&#xA;&#xA;WORKDIR /app&#xA;&#xA;COPY requirements.txt .&#xA;RUN pip install --no-cache-dir -r requirements.txt&#xA;&#xA;COPY . .&#xA;&#xA;CMD ["python", "app.py"]&#xA;&#xA;

    &#xA;

      &#xA;
    • Docker Compose :
    • &#xA;

    &#xA;

    services:&#xA;  api:&#xA;    build: ./api&#xA;    ports:&#xA;      - "8000:8000"&#xA;    depends_on:&#xA;      - redis&#xA;      - mongo&#xA;    networks:&#xA;      - app_network&#xA;    volumes:&#xA;      - ./api:/app&#xA;    environment:&#xA;      - REDIS_HOST=redis&#xA;      - REDIS_PORT=6379&#xA;      - MONGO_URI=mongodb://mongo:27017/app_db&#xA;&#xA;  frontend:&#xA;    build: ./frontend&#xA;    ports:&#xA;      - "3000:3000"&#xA;    depends_on:&#xA;      - api&#xA;    networks:&#xA;      - app_network&#xA;    volumes:&#xA;      - ./frontend:/app&#xA;      - /app/node_modules&#xA;&#xA;redis:&#xA;    image: "redis:alpine"&#xA;    restart: always&#xA;    networks:&#xA;      - app_network&#xA;    volumes:&#xA;      - redis_data:/data&#xA;&#xA;  mongo:&#xA;    image: "mongo:latest"&#xA;    restart: always&#xA;    networks:&#xA;      - app_network&#xA;    volumes:&#xA;      - mongo_data:/data/db&#xA;&#xA;networks:&#xA;  app_network:&#xA;    driver: bridge&#xA;&#xA;volumes:&#xA;  redis_data:&#xA;  mongo_data:&#xA;&#xA;

    &#xA;

    Issue :

    &#xA;

    When I try to access the /video endpoint, the following warnings appear :

    &#xA;

    [ WARN:0@46.518] global cap_ffmpeg_impl.hpp:453 _opencv_ffmpeg_interrupt_callback Stream timeout triggered after 30037.268665 ms&#xA;

    &#xA;

    However, locally, the RTSP stream works fine using OpenCV with the same code.

    &#xA;

    Additional Information :

    &#xA;

      &#xA;
    1. Network : The Docker container can successfully ping the camera IP (10.100.10.94).
    2. &#xA;

    3. Local Video : I can read frames from a local video file without issues.
    4. &#xA;

    5. RTSP Stream : I am able to access the RTSP stream directly using OpenCV locally, but not inside the Docker container.
    6. &#xA;

    &#xA;

    Code :

    &#xA;

    Here's the relevant part of the code in my api/app.py :

    &#xA;

    import cv2&#xA;from fastapi import FastAPI&#xA;from fastapi.responses import StreamingResponse&#xA;&#xA;RTSP_URL = "rtsp://deneme:155115@10.100.10.94:554/axis-media/media.amp?adjustablelivestream=1&amp;fps=10"&#xA;&#xA;def generate_frames():&#xA;    cap = cv2.VideoCapture(RTSP_URL)&#xA;    if not cap.isOpened():&#xA;        print("Failed to connect to RTSP stream.")&#xA;        return&#xA;&#xA;    while True:&#xA;        success, frame = cap.read()&#xA;        if not success:&#xA;            print("Failed to capture frame.")&#xA;            break&#xA;&#xA;        _, buffer = cv2.imencode(".jpg", frame)&#xA;        frame_bytes = buffer.tobytes()&#xA;&#xA;        yield (&#xA;            b"--frame\r\n" b"Content-Type: image/jpeg\r\n\r\n" &#x2B; frame_bytes &#x2B; b"\r\n"&#xA;        )&#xA;&#xA;    cap.release()&#xA;&#xA;@app.get("/video")&#xA;async def video_feed():&#xA;    """Return MJPEG stream to the browser."""&#xA;    return StreamingResponse(&#xA;        generate_frames(), media_type="multipart/x-mixed-replace; boundary=frame"&#xA;    )&#xA;

    &#xA;

    Has anyone faced similar issues or have suggestions on how to resolve this ?

    &#xA;


    &#xA;
  • How to put a video inside a frame and record whole thing as a video ?

    7 octobre 2024, par crysis

    I have a video. I want to create a new video such that the video plays inside a frame similar to this screenshot. Loom recording does this. Most of the screen recorders do this.

    &#xA;

    enter image description here

    &#xA;

    This screenshot is of the video. This is done in most of the screen recorders. Here is what I'm thinking

    &#xA;

      &#xA;
    • render video on a canvas with the background.
    • &#xA;

    • Play the video
    • &#xA;

    • Use mediarecorder API to record a new video.
    • &#xA;

    &#xA;

    I don't have good understanding of frontend development. Is that how it is generally done or I need to use ffmpeg ? I would really appreciate any guidance here.

    &#xA;