Advanced search

Medias (0)

Tag: - Tags -/xmlrpc

No media matches your criterion on the site.

Other articles (34)

  • Configuration spécifique d’Apache

    4 February 2011, by

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

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

    5 September 2013, by

    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;

  • Gestion générale des documents

    13 May 2011, by

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet; la récupération des métadonnées du document original pour illustrer textuellement le fichier;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP sur (...)

On other websites (6897)

  • Trying to stream webcam with VLC, video works but no audio

    19 August 2021, by MirceaKitsune

    I created a bash script a while back to stream my webcam to http with VLC. The line I used was:

    


    cvlc -vvv v4l2:///dev/video0 input_stream --sout '#transcode{vcodec=MJPG,vb=0,scale=1,acodec=none}:standard{access=http,mux=mpjpeg,dst=:1234}'


    


    That works fine but no audio. I've been trying to update it to capture sound from the webcam as well, but nothing I do seems to get that working. I know the ALSA address of the mic which is "hw:2,0" and using the arecord command as a test confirms it works, it's just vlc that isn't capturing or streaming accordingly. Here's the latest command I managed to work out, video is functional but no audio:

    


    cvlc -vvv v4l2:///dev/video0 alsa://hw:2,0 --live-caching=5000 --sout '#transcode{vcodec=h264,vb=1024,acodec=mpga,ab=128,samplerate=44100,channels=2}:standard{access=http,mux=ffmpeg{mux=flv},dst=:1234}'


    


    What is wrong with it and how do you recommend improving this? Thanks.

    


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

    4 August 2021, by 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 July 2021, by 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?