
Recherche avancée
Autres articles (50)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Les images
15 mai 2013 -
Supporting all media types
13 avril 2011, parUnlike 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 (...)
Sur d’autres sites (4600)
-
FFmpeg audio behind video. Video from IP camera, Audio from microphone
4 août 2021, par Evgeniy RusskihI'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 kupBasically 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 kupI 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.