Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (79)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (7641)

  • FFmpeg audio behind video. Video from IP camera, Audio from microphone

    4 août 2021, par Evgeniy Russkih

    I'm trying to mix audio and video from different sources.
Video from camera via h264-converter and audio from microphone.
Unfortunately audio is stitching behind video for about 1-2s.
After that stream is supposed to be shown in browser with smallest delay possible, so adding -itsoffset would not going to work.

    


    Here is my command :

    


    


    ffmpeg.exe -r 30 -fflags nobuffer -i http://192.168.88.168/0.ts -f
dshow -i audio="Microphone (Realtek)" -acodec mp2 -ac 1 -f mpegts -r
30 -c:v mpeg1video -b:v 3200k
http://localhost:5000/upload/ae7e32f660b6427a9b6d9ab6abf4cf19

    


    


  • How to stream a video from localhost to web browser using video tag ?

    31 juillet 2021, par kup

    Basically what i want to stream a video to my browser both on localhost, using flask and opencv or ffmpeg.

    


    But not sure how to do it.

    


    i tried this :

    


    #!/usr/bin/env python
from flask import Flask, render_template, Response
import cv2
import sys
import numpy

app = Flask(__name__)

def get_frame():
    c=cv2.VideoCapture("output.mkv") 

    while True:
        retval, im = c.read()
        imgencode=cv2.imencode('.jpg',im)[1]
        stringData=imgencode.tostring()
        yield (b'--frame\r\n'
            b'Content-Type: text/plain\r\n\r\n'+stringData+b'\r\n')

    del(c)

@app.route('/vid')
def vid():
     return Response(get_frame(),mimetype='multipart/x-mixed-replace; boundary=frame')


if __name__ == '__main__':
    app.run(host='localhost',port=5000, debug=True, threaded=True)


    


    but its not working may be because it is sending images, how can i stream video ?

    


  • How to add overlay video with opacity and run in loop using ffmpeg-python ?

    30 juillet 2021, par kup

    I am trying the below code :

    


    in0 = ffmpeg.input('left.mkv')
in1 = ffmpeg.input('right.mkv')
aout = ffmpeg.filter([in0.audio, in1.audio.filter('adelay', "5000|5000")],'amix')
vout = ffmpeg.filter([inv0.video, inv1.video.filter('tpad', start_duration=5, start_mode='add', color='black')], 'hstack')

overlay_file = ffmpeg.input(overlay).filter('scale', 1280, 720, force_original_aspect_ratio='decrease')
vout = vout.overlay(overlay_file, x=0, y=0)


(
    ffmpeg
    .concat(vout, aout, v=1, a=1)
    .output("out.mkv")
    .run()
)


    


    But the overlay does not appear to be at top left (0,0) instead it is at top left of the stacked video which is somewhat at (0, 260). Is it possible to make the overlay video to cover full screen and with opacity to run in loop.