
Recherche avancée
Autres articles (75)
-
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 ;
-
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 ) (...) -
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 (5611)
-
How to add watermark text and image on video in ffmpeg in flutter
29 août 2022, par JatinI have tried so many commands from stackoverflow and manny other resources but no any single command worked.


Most of the time I got error




Error : No such filter : 'drawtext'


Error : initializing complex filters.


FATAL : Invalid argument




commands that I have used but did not work :


- 

- $path_of_file = input video path (most preferred .mp4)
- $fullTemporaryPathImage = image path (can be watermarked_logo.png)
- $fullTemporaryPath = font file path (can be .ttf , .otf) $filePath1
- $filePath1 = output video file path (most preferred .mp4)










Note : please provide path as per you directory.


- ""-i $path_of_file -vf "
 "[in]drawtext=text='StackOverflow':x=(w-text_w)-(w*0.04):y=(h-text_h)-(w*0.04)[out]"
 " -codec:a copy $filePath1""
 - "Command -i $path_of_file -filter_complex drawtext=fontfile=$fullTemporaryPath:text='Hello' $filePath1"
 - "-i $path_of_file -i $fullTemporaryPathImage -filter_complex "
 "[0:v][1:v]overlay=10:10,drawtext=fontfile=fullTemporaryPath:text='Hello World':fontcolor=white@1.0:fontsize=30:y=h/2:x=0:enable='between(t,6,20)'"
 " -c:a copy -movflags +faststart output.mp4"
 - "-i $path_of_file -i $fullTemporaryPathImage -filter_complex " +
 "[0:v][1:v]overlay=10:10,drawtext=text='Hello'" +
 " -c:a copy -movflags +faststart $filePath1"
 - "-i $path_of_file -i -vf subtitle.$subtitlePath -c copy -c:s mov_text $filePath1"
 - "-i $path_of_file -i $subtitlePath -c copy -c:s mov_text $filePath1"
 - "-i $path_of_file -i $subtitlePath -c:v libx264 -ar 44100 -ac 2 -ab 128k -strict -2 -c:s mov_text -map 0 -map 1 $filePath1"
 - "-ss 00:00:15 -t 5 -i $path_of_file -vf drawtext=\"fontfile=$fullTemporaryPath:fontsize=200:fontcolor=white:box=1:boxcolor=black@0.8:x=w-tw-100:y=100: text='This'\" $filePath1"
 - "-i $path_of_file -f srt -i $subtitlePath -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s mov_text $filePath1"
 - "-i $path_of_file -i $fullTemporaryPathImage -filter_complex [0:v] setpts=PTS-STARTPTS [v01] [1:v] setpts=PTS-STARTPTS [gradient] color=black@0:duration=8 format=yuv420p[txtbase][txtbase][v01]scale2ref[txtbase][v01][txtbase] drawtext=fontfile=$fullTemporaryPath:text='Test':fontcolor=white:fontsize=54:shadowcolor=black@0.6:shadowx=4:shadowy=2:box=1:boxcolor=a60000@0.4:boxborderw=10:x='310':y='350' fade=t=in:st=1:d=1:alpha=1 fade=t=out:st=7:d=1:alpha=1[txt] [v01][gradient] overlay [v02] [v02][txt] overlay[outv] -c:v libx264 -profile:v main -level:v 3.1 -pix_fmt yuv420p -c:a aac -map [outv] -f mp4 -y $filePath1"
 - "-i $path_of_file -vf " +
 "drawtext=enable='between(t,12,15)':fontfile=$fullTemporaryPath:text='Test test':x=10:y=10" +
 " -acodec copy $filePath1"
 - "-i $path_of_file -i $fullTemporaryPathImage -filter_complex [0:v][1:v]overlay=5:5,drawtext=text=mytext:fontcolor=orange@1.0:fontsize=30:x=30:y=200[output] -map [output] -map 0:a -c:a copy $filePath1"
 - "-i $path_of_file -i $fullTemporaryPathImage -filter_complex [0:v][1:v]overlay=5:5,drawtext=text=mytext:fontcolor=orange@1.0:fontsize=30:x=30:y=200[v] -map [v] -map 0:a -c:a copy $filePath1"
 - "-i $path_of_file -i $path_of_file -filter_complex [0:v:0] [0:a:0] [0:v:1] [0:a:1] concat=n=2:v=1:a=1 [v][a][v]drawtext=text='SOME TEXT':x=(w-text_w):y=(h-text_h):fontfile=$fullTemporaryPath:fontsize=30:fontcolor=white[v] \-map [v] -map [a] -deinterlace \-vcodec libx264 -pix_fmt yuv420p \-acodec libmp3lame -ar 44100 -threads 6 -qscale 3 -b:a 712000 -bufsize 512k \-f $filePath1"
 - "-i $path_of_file -i $fullTemporaryPathImage -filter_complex [0:v][1:v]overlay=10:10 'drawtext=fontfile=$fullTemporaryPath:text=mytext:fontcolor=orange@1.0:fontsize=30:x=30:y=200[output]' -map [output] -c:a copy $filePath1"
 - "-i $path_of_file -i $fullTemporaryPathImage -filter_complex [0:v][1:v]overlay=5:5,drawtext=text=mytext:fontcolor=orange@1.0:fontsize=30:x=30:y=200[v] -map [v] -map 0:a -c:a copy $filePath1"
 - "hii"
 - "-i $path_of_file -vf drawtext=text='My Text':enable='between(t,20,120)': x=(w-text_h)/2: y=(h-text_h)/2: fontsize=32: fontcolor=white: box=1: boxcolor=black@0.5: boxborderw=5: -c:a copy $filePath1 "
 - "'-i $path_of_file -i $fullTemporaryPathImage -filter_complex "[0:v][1:v]overlay=5:5, drawtext="expansion=strftime:fontfile='
 '$fullTemporaryPath'
 ':fontsize=14:fontcolor=white:shadowcolor=black:shadowx=2:shadowy=1:text='
 '$dateTimeVcode'
 ':x=w-tw-10:y=8"" -pix_fmt yuv420p -crf 49 -b:a 128k -cpu-used 8 -deadline realtime -strict experimental $filePath1'"



Command that is worked in IOS to overlay image on video :


"-i $path_of_file -i $fullTemporaryPathImage -filter_complex \"[0:v][1:v] overlay=25:25:enable='between(t,0,20)'\" -pix_fmt yuv420p -c:a copy $filePath1"



-
Video Conferencing in HTML5 : WebRTC via Web Sockets
1er janvier 2014, par silviaA bit over a week ago I gave a presentation at Web Directions Code 2012 in Melbourne. Maxine and John asked me to speak about something related to HTML5 video, so I went for the new shiny : WebRTC – real-time communication in the browser.
I only had 20 min, so I had to make it tight. I wanted to show off video conferencing without special plugins in Google Chrome in just a few lines of code, as is the promise of WebRTC. To a large extent, I achieved this. But I made some interesting discoveries along the way. Demos are in the slide deck.
UPDATE : Opera 12 has been released with WebRTC support.
Housekeeping : if you want to replicate what I have done, you need to install a Google Chrome Web Browser 19+. Then make sure you go to chrome ://flags and activate the MediaStream and PeerConnection experiment(s). Restart your browser and now you can experiment with this feature. Big warning up-front : it’s not production-ready, since there are still changes happening to the spec and there is no compatible implementation by another browser yet.
Here is a brief summary of the steps involved to set up video conferencing in your browser :
- Set up a video element each for the local and the remote video stream.
- Grab the local camera and stream it to the first video element.
- (*) Establish a connection to another person running the same Web page.
- Send the local camera stream on that peer connection.
- Accept the remote camera stream into the second video element.
Now, the most difficult part of all of this – believe it or not – is the signalling part that is required to build the peer connection (marked with (*)). Initially I wanted to run completely without a server and just enter the remote’s IP address to establish the connection. This is, however, not a functionality that the PeerConnection object provides [might this be something to add to the spec ?].
So, you need a server known to both parties that can provide for the handshake to set up the connection. All the examples that I have seen, such as https://apprtc.appspot.com/, use a channel management server on Google’s appengine. I wanted it all working with HTML5 technology, so I decided to use a Web Socket server instead.
I implemented my Web Socket server using node.js (code of websocket server). The video conferencing demo is in the slide deck in an iframe – you can also use the stand-alone html page. Works like a treat.
While it is still using Google’s STUN server to get through NAT, the messaging for setting up the connection is running completely through the Web Socket server. The messages that get exchanged are plain SDP message packets with a session ID. There are OFFER, ANSWER, and OK packets exchanged for each streaming direction. You can see some of it in the below image :
I’m not running a public WebSocket server, so you won’t be able to see this part of the presentation working. But the local loopback video should work.
At the conference, it all went without a hitch (while the wireless played along). I believe you have to host the WebSocket server on the same machine as the Web page, otherwise it won’t work for security reasons.
A whole new world of opportunities lies out there when we get the ability to set up video conferencing on every Web page – scary and exciting at the same time !
-
Video Conferencing in HTML5 : WebRTC via Web Sockets
14 juin 2012, par silviaA bit over a week ago I gave a presentation at Web Directions Code 2012 in Melbourne. Maxine and John asked me to speak about something related to HTML5 video, so I went for the new shiny : WebRTC – real-time communication in the browser.
I only had 20 min, so I had to make it tight. I wanted to show off video conferencing without special plugins in Google Chrome in just a few lines of code, as is the promise of WebRTC. To a large extent, I achieved this. But I made some interesting discoveries along the way. Demos are in the slide deck.
UPDATE : Opera 12 has been released with WebRTC support.
Housekeeping : if you want to replicate what I have done, you need to install a Google Chrome Web Browser 19+. Then make sure you go to chrome ://flags and activate the MediaStream and PeerConnection experiment(s). Restart your browser and now you can experiment with this feature. Big warning up-front : it’s not production-ready, since there are still changes happening to the spec and there is no compatible implementation by another browser yet.
Here is a brief summary of the steps involved to set up video conferencing in your browser :
- Set up a video element each for the local and the remote video stream.
- Grab the local camera and stream it to the first video element.
- (*) Establish a connection to another person running the same Web page.
- Send the local camera stream on that peer connection.
- Accept the remote camera stream into the second video element.
Now, the most difficult part of all of this – believe it or not – is the signalling part that is required to build the peer connection (marked with (*)). Initially I wanted to run completely without a server and just enter the remote’s IP address to establish the connection. This is, however, not a functionality that the PeerConnection object provides [might this be something to add to the spec ?].
So, you need a server known to both parties that can provide for the handshake to set up the connection. All the examples that I have seen, such as https://apprtc.appspot.com/, use a channel management server on Google’s appengine. I wanted it all working with HTML5 technology, so I decided to use a Web Socket server instead.
I implemented my Web Socket server using node.js (code of websocket server). The video conferencing demo is in the slide deck in an iframe – you can also use the stand-alone html page. Works like a treat.
While it is still using Google’s STUN server to get through NAT, the messaging for setting up the connection is running completely through the Web Socket server. The messages that get exchanged are plain SDP message packets with a session ID. There are OFFER, ANSWER, and OK packets exchanged for each streaming direction. You can see some of it in the below image :
I’m not running a public WebSocket server, so you won’t be able to see this part of the presentation working. But the local loopback video should work.
At the conference, it all went without a hitch (while the wireless played along). I believe you have to host the WebSocket server on the same machine as the Web page, otherwise it won’t work for security reasons.
A whole new world of opportunities lies out there when we get the ability to set up video conferencing on every Web page – scary and exciting at the same time !