
Recherche avancée
Autres articles (100)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (8507)
-
concat two video using ffmpeg working on local but not working on server why ?
21 février 2018, par Jinal SomaiyaHere the code is for
concat
two video and adding watermark to that video but this code working perfectly in local but not in server.The code is as follows :
$videoFileName = rand('111111', '999999').'_'.time().'.'.$request->file('video1')->getClientOriginalExtension();
$intermediateVideo1 = rand('1111111', '9999999').'_'.time().'.ts';
$intermediateVideo2 = rand('1111111', '9999999').'_'.time().'.ts';
$concatVideoFileName = rand('111111', '999999').'_'.time().'.'.$request->file('video1')->getClientOriginalExtension();
exec('ffmpeg -i '.$request->file('video1').' -c copy -bsf:v h264_mp4toannexb -f mpegts '.$intermediateVideo1);
exec('ffmpeg -i '.$request->file('video2').' -c copy -bsf:v h264_mp4toannexb -f mpegts '.$intermediateVideo2);
exec('ffmpeg -i "concat:'.$intermediateVideo1.'|'.$intermediateVideo2.'" -c copy -bsf:a aac_adtstoasc '.public_path('uploads/videos/'.$concatVideoFileName));
exec('ffmpeg -i '.public_path('uploads/videos/'.$concatVideoFileName).' -i '.storage_path("assets/image/watermark.png").' -filter_complex "overlay" '.public_path('uploads/videos/'.$videoFileName));
File::delete($intermediateVideo1);
File::delete($intermediateVideo2);
File::delete(public_path('uploads/videos/'.$concatVideoFileName)); -
How to open file\live stream with FFMPEG edit each frame with openCV and save that as encoded with FFMPEGfile\live stream ?
17 février 2013, par SpenderHow to open file\live stream with FFMPEG edit each frame with openCV and save that as encoded with FFMPEGfile\live stream ?
-
How to create output live stream from bunch of input live streams on the fly with ffmpeg
27 septembre 2022, par AlexIam looking for a solution how to merge a bunch of live streams into one output live stream with ability to adding new streams and remove old on the fly without output stream stopping.


Something like this command shoud work fine for static number of streams :


ffmpeg -i "rtsp://steam1" -i "rtsp://steam2" -filter_complex "overlay=70:70" -vcodec libx264 -preset ultrafast -f flv rtmp://steam1-stream2-mosaic



But main issue that number of streams is a dynaminc parameter in my case.


I'll try to explain using YouTube as an example and why that "on-the-fly"-logic is important to me. If on start I have two input streams as in command above, and run ffmpeg command to push merged output stream to YouTube, when third input stream is make available, I should somehow add it to main output stream, that already publishing to YouTube. Or, if one of two streams are closed, remove it from published stream.


Obvious solution is to terminate first ffmpeg command with two streams, make new one with new stream list and republish output stream to where I need it. But, when previous output stream stopped, RTMP(S) connection closes, YouTube detect connection loss and close stream, disconnect all viewers, close chat and others. So when ffmpeg pushed new output stream with new stream list, this will be a completely new RTMP(S) connection for YouTube, with empty watch list and chat history.


Main issue is how to add new and remove old streams for single output stream without closing RTMP(S) connection. Modifying existing ffmpeg process looks unavailable, but, maybe, there is some network socket magic, when new ffmpeg process push their output stream to socket that opened by old ffmpeg process. RTMP(S) protocol in this case may generate some errors or "black screen" for a seconds, but this is applicable for me.


ffmpeg is not a requirement : if you can suggest solution with other software, it will be also interesting.