
Recherche avancée
Autres articles (37)
-
Activation de l’inscription des visiteurs
12 avril 2011, parIl est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (9281)
-
Rolling screen capture with ffmpeg on windows
11 décembre 2020, par gap210I have the following code to capture a video stream from my webcam. I use ffmpeg to write to named windows pipe, then read it with python and display with opencv. The thing is that the opencv stream is 'rolling' as shown here https://www.youtube.com/watch?v=H78TRo3DZIo


If I capture the output to a video instead of a pipe, with the command :


ffmpeg -f dshow -video_size 1920x1080 -framerate 60 -i video="USB Video" -c:v copy out.avi


everything looks fine. What should I change to achieve the desired effect ? (non-rolling stream)


My code below :


import cv2
import time
import subprocess
import numpy as np

w, h = 800, 600

# Get frame generator
gen = ffmpegGrab()

# Get start time
start = time.time()

# Read video frames from ffmpeg in loop
nFrames = 0
cmd = 'C:/Users/......./Downloads/ffmpeg-4.3.1-2020-11-19-full_build/bin/ffmpeg.exe -f dshow -framerate 60 -video_size 800x600 -i video="USB Video" -pix_fmt bgr24 -vcodec rawvideo -f image2pipe -'

proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True, bufsize=10**9)
while True:
 # Read next frame from ffmpeg

 frame = proc.stdout.read(w * h * 3)
 frame = np.frombuffer(frame, dtype=np.uint8).reshape((h, w, 3))
 cv2.imshow('screenshot', frame)

 if cv2.waitKey(1) == ord("q"):
 break

 fps = nFrames / (time.time() - start)
 print(f'FPS: {fps}')

cv2.destroyAllWindows()



-
Live streaming video on multiple platforms [closed]
4 mars 2019, par Nikolay NikolovI want to build an application similar to Twitch/YouTube, which mainly offers two things (and a couple of other, but they are not related to the question) - to record and send live streams and to watch other people’s live streams. Basically, if I wanted to build Twitch, where would I start in terms of protocols and back-end libraries for the processing and sending/receiving of video segments (more detailed questions follow) ? I am new to the video streaming software development and need a bit of guidance on where/how to start.
Here are the details/requirements :
- Video and audio
- Scalability and low latency are more important than supreme quality
- Adaptive bit-rate
- No services like Wowza and such (I am willing to build the whole structure)
- Has to work on iOS and Android (Desktop support is not as important)
- The users should be able to watch every stream and every user should be able to stream through his camera
- VOD is not as important
- Going back in the stream is not as important
If I have it right, this is how the whole process should work :
- Android/iOS camera records video
- Simultaneously the app saves every x seconds as a single segment and sends it to the server
- Server processes the video in different bit rates and saves them
- Another user requests stream based on the bandwidth of its internet connection
- Server responds with a playlist of segments and sends each new chunk of video to the user
Questions :
- What protocols should I be using (HLS, MPEG-DASH, WebRTC, RTSP, etc.) and do these protocols have implementations on Android/iOS or do I have to implement them myself ?
- What books/other resources would you recommend ?
Thank you very much for reading my question and I look forward to reading your answers !
-
play MPD file of mpeg-dash on android and IOS
9 janvier 2019, par user3223551I have used ffmpeg to create a MPD file for my video, and I could play and watch it on my pc using :http://dashplayer.azurewebsites.net/
now I want to make sure it works and plays appropriately on andoid and IOS, could anyone tell me how to test this file on android and IOS ?