
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (39)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (8633)
-
How to generate m3e8 file from mp4 files (Not from list)
4 août 2019, par David NajaryanI need to generate m3e8 file from mp4 videos
I have code to do it
ffmpeg -i "D:/12.mp4" -profile:v baseline -level 3.0 -s 640x360 -
start_number 0 -hls_time 10 -hls_list_size 0 -f hls -hls_flags append_list
"D:/testff/index.m3e8"But when i run script to stream this file to facebook i get many errors
ffmpeg -re -i "D:/testff/index.m3e8" -acodec libmp3lame -ar 44100 -b:a
128k -pix_fmt yuv420p -profile:v baseline -s 426x240 -bufsize 6000k -vb
400k -maxrate 1500k -deinterlace -vcodec libx264 -preset veryfast -g 30 -r
30 -f flv "rtmps://live-api-s.facebook.com:443/rtmp/1370514463086508?
s_bl=1&s_ps=1&s_sml=0&s_sw=0&s_vt=api-s&a=AbwMpTgugervvv6i"P.S. I need to dynamically add video files
Thanks
-
How to sync multiple rtsp inputs in ffmpeg ?
9 décembre 2019, par KOMsandFriendsI am combining multiple rtsp streams from local network cameras to a single output using ffmpeg. In the resulting video, the videos are out of sync.
ffmpeg -loglevel warning \
-f image2 -loop 1 \
-i logo.png \
-rtsp_transport tcp -thread_queue_size 1024 \
-i "rtsp://10.0.0.1" \
-rtsp_transport tcp -thread_queue_size 1024 \
-i "rtsp://10.0.0.2" \
-rtsp_transport tcp -thread_queue_size 1024 \
-i "rtsp://10.0.0.3" \
-filter_complex "[3:v][2:v][0:v][1:v]xstack=inputs=4:layout=0_0|w0_0|0_h0|w0_h0[v]" \
-map "[v]" \
-filter_complex "[1:a][1:a]amerge=inputs=2[aout]" -map "[aout]" \
-vcodec libx264 -pix_fmt yuv420p -r 30 -g 60 \
-preset fast -b:v 2400k -maxrate 4600k -bufsize 6000k \
-acodec aac -ar 44100 -b:a 128k \
-f flv "rtmp://live-api-s.facebook.com:80/rtmp/$STREAMKEY"If we take the first input (0) (10.0.0.1) as reference, the second input (1) is initially about 1000ms ahead, the third input (2) is about 2000ms ahead. It looks like the offset is even slightly increasing over time.
I tried to exchange the different inputs (e.g. 10.0.0.3 to input 0, 10.0.0.1 to input 2), then 10.0.0.1 is ahead of 10.0.0.3. So I would assume this is a matter of ffmpeg and how it processes the inputs.
How could I sync the different sources in the output ?
-
How to Configure nginx with stunnel to accept parameters for different FB Live Streams OR rtmps with FFMPEG
15 septembre 2020, par Yogesh AgarwalI want to setup RTMPS and learned that only way around is by using nginx and stunnel. I have the setup and it works with just one configured key.



I have several different keys and all are dynamic. A lot of different urls too.



My Goal is to add a parameter or some way by which i can send the custom url to nginx and it can send to Stunnel, and it can read the custom url and forward the encrypted stream to that url.



I am able to get everything done right via ngnix and stunnel but with preconfigured key only - But i want Dynamic key here.. just like a parameter where you can simply plug and send the stream.



I even tried to set this way.



push rtmp ://127.0.0.1:19350/rtmp/ ;



so i can simple forward the stream to rtmp ://127.0.0.1:19350/rtmp/my-key and it takes my-key and forward the stream via stunnel to facebook. but i cannot get it work.



I am about to bang my heads in walls. Kindly give me some pointers.. I am not sure how to do it via ffmpeg as it says it cannot find rtmps protocol.



My Nginx Config :



# RTMP configuration
rtmp {
 server {
 listen 1935; # Listen on standard RTMP port
 chunk_size 4000;
 # This application is to accept incoming stream
 application live {


 live on; # Allows live input from above
 exec_push rtmp://127.0.0.1:19350/rtmp/$name;
 allow play 127.0.0.1;
 dash on;
 dash_path /var/tmp/dashme;

 hls on; # Enable HTTP Live Streaming
 hls_cleanup on;
 hls_sync 100ms;
 hls_fragment 2s;
 hls_path /var/tmp/live/;


 }




and My Stunnel Config :



setuid = nobody
setgid = nobody
pid=/tmp/stunnel.pid
output = /var/log/stunnel.log
;include = /etc/stunnel/conf.d

[fb-live]
client = yes
accept = 127.0.0.1:19350
connect = live-api-s.facebook.com:443
;verifyChain = no