
Recherche avancée
Autres articles (6)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
D’autres logiciels intéressants
12 avril 2011, parOn ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
Videopress
Site Internet : (...) -
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)
Sur d’autres sites (3539)
-
Video streaming to YouTube using JavaScript and Java
28 septembre 2020, par user1597121I'm trying to stream live video from a user's browser to YouTube Live. I already have the following working :


- 

- Capture video from the webcam using
navigator.mediaDevices.getUserMedia
- Send video data to the server via WebSocket by periodically invoking this function :






function getFrame(video)
{
 var canvas = document.createElement('canvas');
 canvas.width = video.videoWidth;
 canvas.height = video.videoHeight;
 canvas.getContext('2d').drawImage(video, 0, 0);

 return canvas.toDataURL('image/png', 1);
}



- 

- Creating a live broadcast and stream on YouTube via their API and receiving the RTMP info where they expect the video stream to be sent.




This is where I seem to be stuck. I'm not sure how to send the video data from my Java server to YouTube's RTMP endpoint. I've looked into using Red5 or ffmpeg, but haven't been able to find an example where the data is continually being sent via WebSocket. Rather, there's always some "stream" that is being redirected to YouTube, coming in on a dedicated port, or perhaps from a pre-recorded video file.


I have very limited knowledge of how video streaming works, so that's presumably making things more difficult than they should be. I'd really appreciate some help with getting this figured out. Thank you !


- Capture video from the webcam using
-
Stream to youtube using Hardware Encoding
28 août 2021, par Renan F.I'm currently streaming to youtube using NVIDIA hardware encoding to reduce the load on the CPU, with this code :


ffmpeg -framerate 30 -f gdigrab -i desktop -f lavfi -i anullsrc -c:v h264_nvenc -f flv "rtmp://a.rtmp.youtube.com/live2/KEY"



My screen resolution is 2560x1080, but this is the result i get in youtube :



There are huge empty spaces on both sides, and the resolution is not so good, even selecting "HD" on youtube.


I tried to specify in the last parameter before
flv
,
-s 2560x1080
but I could not see any difference.

Also would like to ask if someone knows what
-qp 0
does, I could not find it in the documentation, it does appear here :

https://trac.ffmpeg.org/wiki/Capture/Desktop


Under hardware encoding.


Looking for any advice, taking in mind I'm trying to reduce the CPU usage and keep a normal/good resolution.


-
Using ffmpeg to restream youtube videos
2 juin 2020, par ILoveCakeI want to restream 3 youtube videos (each one is a live webcam) in this way : they would run one after the other, but each one runs for only 1 minute. All this in a loop. So my live stream would eventually look like this :
cam1, cam2, cam3, cam1, cam2, cam3, ...
I have tried to used youtube-dl and ffmpeg (these are my preferred command line tools) to download each stream, let it run for 1 minute and restream it. The problem is that I have to start ffmpeg each time. So when it stops and starts again, the live stream stops and starts again (after about 15 seconds). Here is my code (for bash) :



The main script : (FILE is an array with the 3 URLs for the videos)



for URL in "${FILE[@]}"
do
 timeout 1m /usr/local/bin/get_livestream.sh $URL
done





and get_livestream.sh :



youtube-dl -q -o - -- $1 | ffmpeg -re -loglevel warning -hide_banner \
 -i - -s 960x540 -c:v libx264 -b:v 2M -c:a copy \
 -strict -2 -flags +global_header -bsf:a aac_adtstoasc -bufsize 2100k \
 -f flv rtmp://live.twitch.tv/app/<key>
</key>