Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (83)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (8319)

  • Latency and frame break using Hikvison using OpenCV

    24 septembre 2024, par Arjun Mani

    When I try reading frames from Hikvision camera, I face latency and frame break, from OpenCV, but it works fine with ffmpeg, and if I use any other camera, like axis, it works, fine but in Hikvision, I have some issue, so if someone has solved this issue, can please share me to solve

    


    I need to resolve this issue.

    


    import cv2

    


    import cv2

# RTSP URL
rtsp_url = "rtsp://admin:okulr123@192.168.0.64:554/Streamings/channels/101"

# Create a VideoCapture object
cap = cv2.VideoCapture(rtsp_url)

# Check if the connection is opened
if not cap.isOpened():
    print("Error: Couldn't open the video stream")
    exit()

# Read frames in a loop
while True:
    ret, frame = cap.read()

    # Check if frame was successfully captured
    if not ret:
        print("Error: Couldn't read frame")
        break

    # Display the frame
    cv2.imshow('RTSP Stream', frame)

    # Break the loop if 'q' key is pressed
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

# Release the VideoCapture object and close windows
cap.release()
cv2.destroyAllWindows()



    


  • FFMPEG set volume in amix

    23 juin 2017, par user5839

    I’ve been trying to mix an audio mp3 with a video mp4 while retaining the mp4 audio. This is working with .

    ffmpeg -y  -i video.mp4 -i audio.mp3
    -filter_complex "[0:a][1:a]amix=inputs=2:duration=longest[out]"
    -map 0:v -map [out] output.mp4

    I’m now trying to adjust the volumes of the sound files (video 0.5, audio 1) as part of the mix.

    I’ve been trying things like

    ffmpeg  -i 020c276b-face-4bb3-9169-e8969c1232ba.mp4 -i test.mp3 -filter_complex
    "[0:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume=0.5[a1];
     [1:a]aformat=sample_fmts fltp:sample_rates=44100:channel_layouts=stereo,volume=0.8[a2];
     [a1][a2]amerge,pan=stereo:c0code>

    And I get errors such as

    [Parsed_aformat_2 @ 037f8620] Error parsing sample format : sample_fmts
    fltp. [AVFilterGraph @ 038be620] Error initializing filter ’aformat’
    with args ’sample
    _fmts fltp:sample_rates=44100:channel_layouts=stereo’ Error initializing complex filters. Invalid argument

    Does anyone know how to make the code I’ve code above that is working, also change the volume of the inputs ?

    Thanks

  • Revision 33026 : Ajout des classes mots, breves, auteurs ... dans les extras

    17 novembre 2009, par shnoulle@… — Log

    Ajout des classes mots, breves, auteurs ... dans les extras