
Recherche avancée
Autres articles (99)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
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 -
À propos des documents
21 juin 2013, parQue faire quand un document ne passe pas en traitement, dont le rendu ne correspond pas aux attentes ?
Document bloqué en file d’attente ?
Voici une liste d’actions ordonnée et empirique possible pour tenter de débloquer la situation : Relancer le traitement du document qui ne passe pas Retenter l’insertion du document sur le site MédiaSPIP Dans le cas d’un média de type video ou audio, retravailler le média produit à l’aide d’un éditeur ou un transcodeur. Convertir le document dans un format (...)
Sur d’autres sites (8096)
-
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"



-
Matomo’s privacy-friendly web analytics software named best of the year 2022
25 janvier 2023, par Erin -
Troll spirit
15 juin 2013, par Mans — Law and libertyLast week’s announcements from the White House of steps being taken to begin fighting back against patent trolls, along with legislation passed in Vermont for the same purpose, are worthy of praise. Whether they prove effective or not, they are a sign of the problem finally having been recognised by the highest authorities. That said, only one aspect of the issue is addressed, that of non-practising entities or trolls. Little effort is being made to stymie troll-like behaviour from otherwise legitimate actors. While a stake is driven through the heart of the troll, its spirit remains free to roam the corporate world, and like a demon of darkness it possesses companies, compelling them to engage in the very practices we seek to eradicate.
The demon
The most damaging, when wielded by a troll, are those patents with vague or overly broad claims. These can easily be asserted against large numbers of alleged infringers, many of which likely choose to settle out of court rather than risk an expensive litigation process with uncertain outcome. Such negotiations are frequently subject to non-disclosure agreements prohibiting publication of details in any deals, or even the existence thereof. As a result, an accused has no way of assessing a fair price for a licence (assuming the patent is in fact valid), and the patent holder can thus extract from each would-be infringer precisely as much as they are willing or able to pay to avoid a lawsuit.
At the root of this problem is the ease with which applications for the patents in question are granted. Given the volume of patent applications, it is hardly reasonable to demand a hugely more extensive examination process than currently takes place (although some improvements here are no doubt possible) ; after all, a speedy decision is in the best interest of all parties. The solution must evidently be found elsewhere.
The exorcism
An obvious cure to the problem is the abolishment of the patent system. As this is clearly not feasible today, more practical, albeit less effective, remedies must be sought. A few ideas follow.
- Make patent validity all or nothing
- Change the rules such that any claim being found invalid cancels the patent its entirety. With the full patent at stake in this manner, companies would be discouraged from gambling on frivolous claims and encouraged to conduct a more thorough background investigation before filing.
- Maintain a registry of licences
- Require that all patent licence agreements be filed in an open, easily searchable registry. This would hopefully increase fairness in licensing deals.
- Mandate reimbursement of licence fees for invalidated patents
- If a patent is challenged and found invalid, require that the owner reimburse any licence fees previously collected for the patent in question. Apart from being morally right, this could act as a deterrent to over-charging. The amount requested for a licence would likely be balanced against the risk of being made to pay it all back later, resulting in lower licence fees for low-confidence patents.
These suggestions, alone or together, will not completely eradicate the problems of patent abuse. They are but small steps towards a more thorough overhaul of a system increasingly ill-suited to the nature and pace of modern technological development.