
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (54)
-
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 -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Emballe Médias : Mettre en ligne simplement des documents
29 octobre 2010, parLe plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...)
Sur d’autres sites (9247)
-
FFMpeg - Merge multiple rtmp stream inputs to a single rtmp output
21 juillet 2020, par Paulo Miguel AlmeidaI'm trying to combine/merge two rtmp streams and then publish 'em to another stream



Ex. :



ffmpeg -i rtmp://ip:1935/live/micMyStream7 -i rtmp://ip:1935/live/MyStream7 -strict -2 -f flv rtmp://ip:1935/live/bcove7




The scenario is the following, I got a stream which comes from an user's microphone that 
is the first one (micMyStream7) and I also got a stream from another user but this one has audio and video(MyStream7).



As they are talking to each other when a user is speaking, the other one would only be listening to and vice versa.



My idea is to set up a third stream called (bcove) which would "merge" both of them so that I could have spectators who would only be listening to the entire conversation between them.



This is the log that ffmpeg printed although I couldn't recognize any message which helped me out.



paulo@paulo-desktop:~$ ffmpeg -re -i rtmp://ip:1935/live/micMyStream7 -i rtmp://ip:1935/live/MyStream7 -strict -2 -f flv rtmp://ip:1935/live/bcove7
ffmpeg version N-56029-g2ffead9 Copyright (c) 2000-2013 the FFmpeg developers
 built on Sep 4 2013 11:05:57 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1)
 configuration: 
 libavutil 52. 43.100 / 52. 43.100
 libavcodec 55. 31.100 / 55. 31.100
 libavformat 55. 16.100 / 55. 16.100
 libavdevice 55. 3.100 / 55. 3.100
 libavfilter 3. 83.102 / 3. 83.102
 libswscale 2. 5.100 / 2. 5.100
 libswresample 0. 17.103 / 0. 17.103
Input #0, flv, from 'rtmp://ip:1935/live/micMyStream7':
 Metadata:
 author : 
 copyright : 
 description : 
 keywords : 
 rating : 
 title : 
 presetname : Medium Bandwidth (300 Kbps) - VP6
 creationdate : Wed Sep 4 16:41:52 2013
 : 
 videodevice : Built-in iSight
 videokeyframe_frequency: 5
 audiodevice : External microphone
 audiochannels : 1
 audioinputvolume: 75
 Duration: N/A, start: 0.000000, bitrate: 253 kb/s
 Stream #0:0: Video: vp6f, yuv420p, 320x240, 204 kb/s, 44.83 tbr, 1k tbn, 1k tbc
 Stream #0:1: Audio: mp3, 22050 Hz, mono, s16p, 49 kb/s
Input #1, flv, from 'rtmp://ip:1935/live/MyStream7':
 Metadata:
 author : 
 copyright : 
 description : 
 keywords : 
 rating : 
 title : 
 presetname : Custom
 creationdate : Wed Sep 4 12:02:24 2013
 : 
 videodevice : FaceTime HD Camera (Built-in)
 videokeyframe_frequency: 5
 audiodevice : Internal microphone
 audiochannels : 1
 audioinputvolume: 75
 Duration: N/A, start: 0.000000, bitrate: 253 kb/s
 Stream #1:0: Video: vp6f, yuv420p, 320x240, 204 kb/s, 45.08 tbr, 1k tbn, 1k tbc
 Stream #1:1: Audio: mp3, 22050 Hz, mono, s16p, 49 kb/s
Output #0, flv, to 'rtmp://ip:1935/live/bcove7':
 Metadata:
 author : 
 copyright : 
 description : 
 keywords : 
 rating : 
 title : 
 presetname : Medium Bandwidth (300 Kbps) - VP6
 creationdate : Wed Sep 4 16:41:52 2013
 : 
 videodevice : Built-in iSight
 videokeyframe_frequency: 5
 audiodevice : External microphone
 audiochannels : 1
 audioinputvolume: 75
 encoder : Lavf55.16.100
 Stream #0:0: Video: flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p, 320x240, q=2-31, 200 kb/s, 1k tbn, 44.83 tbc
 Stream #0:1: Audio: adpcm_swf ([1][0][0][0] / 0x0001), 22050 Hz, mono, s16, 88 kb/s
Stream mapping:
 Stream #0:0 -> #0:0 (vp6f -> flv)
 Stream #0:1 -> #0:1 (mp3 -> adpcm_swf)
Press [q] to stop, [?] for help
[mp3 @ 0x3625ec0] overread, skip -9 enddists: -3 -300:14.44 bitrate= 224.0kbits/s 
[mp3 @ 0x3625ec0] overread, skip -7 enddists: -3 -30:26.39 bitrate= 203.5kbits/s 




Thanks in advance


-
FFMPEG zoompan for continuous zoom in/zoom out from start duration
10 juillet 2020, par Nikhil SolankiI am creating continues zoomin/zoomout effect for input image using this command :


ffmpeg -i combine.mp4 -i image1.jpg -filter_complex "[0]split=2[color][alpha]; 
[color]crop=iw/2:ih:0:0[color]; [alpha]crop=iw/2:ih:iw/2:ih[alpha]; [colo][alpha]alphamerge[v1];
[1]scale=540*2:960*2, setsar=1, zoompan=z='if(lte(zoom,1.0),1.02,max(1.001,zoom-0.0015))':d=25*0.25:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':s=540x960[v2]; 
[v2]zoompan=z='if(gte(zoom,1.1),1.0,min(zoom+0.0015,1.1))':d=25*0.25:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':s=540x960[v2];
[v2]curves=vintage, format=yuv444p[v2];
[v2][v1] overlay=1" output_video.mp4 -y



This command will continues
zoomin
andzoomout
inputimage1.jpg
for 1 second and stop after 1 second its OK. But problem is I want performzoomin
zoomout
effect after 5 second of video. Video duration is 20s. So, how can I performzoompan
after some duration.

-
FFMPEG - can you have comments in script files ?
25 mai, par rossmcmBecause of batch's poor ability to handle multi-line strings, I'm using FFMPEG script files more and more for
filter_complex
arguments. I'm wondering if there is any way to include comments in these files. They seem to be quite tolerant of white space and line breaks. I've tried :

#
# comment
#



and


;
; comment
;



and


`
` comment
`



and


'
' comment
'



with no success. It doesn't look as if comments are officially supported, but I'm wondering of there is some syntax quirk that allows them ?


*** CLARIFICATION ***


I'm not talking about comments in batch files here, but comments in
filter_complex_script
files. FFMPEG supports specifying thefilter_complex
argument string in a separate file. So instead of :

ffmpeg -i "input.mp4" -filter_complex "[0:v] crop=w=100:h=100:x=12:y=34 " "output.mp4"



you can specify :


ffmpeg -i "input.mp4" -filter_complex_script "crop.txt" "output.mp4"



where crop.txt contains


[0:v] crop=w=100:h=100:x=12:y=34



This is really handy when the filter_complex string gets more complicated (I routinely deal with arguments 10,000 characters in length).