
Recherche avancée
Autres articles (65)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
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
Sur d’autres sites (11266)
-
cmdutils : show timeline support in -filters listing
19 mai 2013, par Stefano Sabatini -
avformat/dump : Show coded dimensions again
5 juin 2016, par Michael Niedermayer -
Not able to show RTSP stream with Angular
15 mai 2020, par Q.Reyi'm working on a web application with angular where i need to show an rtsp stream inside my window.
I'm using JSMpeg player related to this topic : Not able to Show live camera RTSP streaming with Angular.



For my websocket i used the node websocket library and i runned it like this in my cmd :
node websocket-relay.js supersecret 8081 8082



It detect each connection i make on it.



Then for the conversion part i used FFMPEG where I convert a h264 format to mpegts (mpegvideo1 gave me an error)
I run it like this :



ffmpeg -i "rtsp://myurl/media.smp" -vcodec h264 -f mpegts -max_muxing_queue_size 9999 -b 800k -r 30 http://localhost:8081/supersecret/640/480/



For the angular part I have this :



@ViewChild('streaming', {static: true}) streamingcanvas: ElementRef; 

constructor( ... ) { }

ngOnInit() {
 ....
 let player = new JSMpeg.Player('ws://localhost:8081/supersecret', {
 canvas: this.streamingcanvas, autoplay: true, audio: false, loop: true
 })
}








What did i missed to make it works and get a real video stream ?



Thanks for help



EDIT : My first ffmpeg command was wrong, only the audio was sent, now i got this :



ffmpeg -i "rtsp://myurl/media.smp" -vcodec h264 -f mpegts -codec:v mpeg1video -s 640x360 -b: 700k -r 25 -bf 0 -codec:a mp2 -ar 44100 -ac 1 -b:a 64k -max_muxing_queue_size 9999 http://localhost:8081/supersecret/640/360/




It still doesnt work but the canvas is not black anymore