
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (52)
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
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 -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...)
Sur d’autres sites (6282)
-
Chroma Key replace green color part with another image using FFMPEG
15 septembre 2021, par Welborn Machado


I want to replace green color of the above chromekey image with another image. The image should only replace with the green color not overlay entire image.



I am using following sample command below but it overlay the entire image not only the green color.



-y -i /storage/emulated/0/dummyResized.jpg -i /storage/emulated/0/circularImage.png -filter_complex [1:v]colorkey=green:0.3:0.2[ckout] ;[0:v][ckout]overlay[out] -map [out] /storage/emulated/0/outputBlackCircular.jpg


-
How to split one overlay script to multiple part scripts ?
4 mai 2024, par mikezangI can slide 30 images from left to center and countdown 10 seconds, then keep slide to left..., but run this script more than hours...


script.txt


[0:v]scale=864:504:force_original_aspect_ratio=decrease,pad=864:504:-1:-1,setsar=1[s0];
[1:v]scale=864:504:force_original_aspect_ratio=decrease,pad=864:504:-1:-1,setsar=1[s1];
...
[29:v]scale=864:504:force_original_aspect_ratio=decrease,pad=864:504:-1:-1,setsar=1[s29];

[s0]split=2[bg][v];
[bg]drawbox=c=white:t=fill[bg];
[bg][v]overlay=x='if(between(t,0,10),max(W-w*(t-0),0),max(0-w*(t-10),0-W))',
drawtext=fontfile='/WINDOWS/Fonts/Arial.ttf':text='%{eif\:10-t\:d}':
box=1:boxborderw=10|14:fontsize=24:x=w-tw-10:y=14:boxcolor=orange@0.4:fontcolor=red:enable='between(t,0,10)'[v0];

[v0][s1]overlay=x='if(between(t,10,20),max(W-w*(t-10),0),max(0-w*(t-20),0-W))',
drawtext=fontfile='/WINDOWS/Fonts/Arial.ttf':text='%{eif\:20-t\:d}':
box=1:boxborderw=10|14:fontsize=24:x=w-tw-10:y=14:boxcolor=orange@0.4:fontcolor=red:enable='between(t,10,20)'[v1];
...



script.bat


ffmpeg -hide_banner ^
 -loop 1 -i "images\01.png" ^
 -loop 1 -i "images\02.png" ^
...
 -loop 1 -i "images\30.png" ^
 -filter_complex_script script.txt ^
 -t 300 -y videos/mergeYearsTest.mp4



I think that I can split script to create 30 parts video then merge them to shorten time :


scipt-01.txt


[0:v]scale=864:504:force_original_aspect_ratio=decrease,pad=864:504:-1:-1,setsar=1[s0];
[s0]split=2[bg][v];
[bg]drawbox=c=white:t=fill[bg];
[bg][v]overlay=x='if(between(t,0,10),max(W-w*(t-0),0),max(0-w*(t-10),0-W))',
drawtext=fontfile='/WINDOWS/Fonts/Arial.ttf':text='%{eif\:10-t\:d}':
box=1:boxborderw=10|10:fontsize=24:x=w-tw-10:y=10:boxcolor=orange@0.4:fontcolor=red:enable='between(t,0,10)';



script-01.bat


ffmpeg -hide_banner -loop 1 -i "images\01.png" ^ 
 -filter_complex_script script-01.txt -t 10 -y v01.mp4



v01.mp4 is no any problems.


script-02.txt


[0:v]scale=864:504:force_original_aspect_ratio=decrease,pad=864:504:-1:-1,setsar=1[s0];
[1:v]scale=864:504:force_original_aspect_ratio=decrease,pad=864:504:-1:-1,setsar=1[s1];

[s0][s1]overlay=x='if(between(t,10,20),max(W-w*(t-10),0),max(0-w*(t-20),0-W))',
drawtext=fontfile='/WINDOWS/Fonts/Arial.ttf':text='%{eif\:20-t\:d}':
box=1:boxborderw=10|10:fontsize=24:x=w-tw-10:y=10:boxcolor=orange@0.4:fontcolor=red:enable='between(t,10,20)';



script-02.bat


ffmpeg -hide_banner -i "v01.mp4" -loop 1 -i "images\02.png" ^
 -filter_complex_script script-02.txt -t 10 -y v02.mp4



but this v02.mp4 is the same as v01.mp4 without slide next image, I also tried
-loop 1 "v01.mp4"
, that will be error, what can I do to create v02.mp4 as the same affect with full script ?

====================================================


I got what I wonder, script-02 should be as below :


script-02.txt
[0:v]scale=864:504:force_original_aspect_ratio=decrease,pad=864:504 :-1 :-1,setsar=1[s0] ;
[1:v]scale=864:504:force_original_aspect_ratio=decrease,pad=864:504 :-1 :-1,setsar=1[s1] ;


[s0][s1]overlay=x='if(between(t,0,10),max(W-w*t,0),max(0-w*(t-10),0-W))',
drawtext=fontfile='/WINDOWS/Fonts/Arial.ttf':text='%{eif\:10-t\:d}':
box=1:boxborderw=10|10:fontsize=24:x=w-tw-10:y=10:boxcolor=orange@0.4:fontcolor=red:enable='between(t,0,10)';



script-02.bat


ffmpeg -hide_banner 
 -loop 1 -i "images\01.png" 
 -loop 1 -i "images\02.png" 
 -filter_complex_script script-02.txt -t 10 -y v02.mp4





-
OpenCV : FFMPEG : tag 0x00000021/' !???' is not found (format 'mp4 / MP4 (MPEG-4 Part 14)')'
10 juin 2020, par Hepo8421I got error when trying to run a python script. Iam trying to make a project based on pyimagesearch tutorial.



Code :
In first script :



filename = tempVideo.path[tempVideo.path.rfind("/") + 1:]
 s3.upload_file(tempVideo.path, self.conf["s3_bucket"],
 filename, ExtraArgs={"ACL": "public-read",
 "ContentType": "video/mp4"})




In main script :



tempVideo = TempFile(ext=".mp4")
 writer = cv2.VideoWriter(tempVideo.path, 0x21, 30, (W, H),
 True)




Error I recieved :



OpenCV: FFMPEG: tag 0x00000021/'!???' is not found (format 'mp4 / MP4 (MPEG-4 Part 14)')'
Exception in thread Thread-4:
Traceback (most recent call last):
 File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
 self.run()
 File "/usr/lib/python3.7/threading.py", line 865, in run
 self._target(*self._args, **self._kwargs)
 File "/home/pi/Desktop/pi-security-camera/pyimagesearch/notifications/twilionotifier.py", line 27, in _send
 "ContentType": "video/mp4"})
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/boto3/s3/inject.py", line 131, in upload_file
 extra_args=ExtraArgs, callback=Callback)
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/boto3/s3/transfer.py", line 279, in upload_file
 future.result()
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/futures.py", line 106, in result
 return self._coordinator.result()
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/futures.py", line 265, in result
 raise self._exception
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/tasks.py", line 255, in _main
 self._submit(transfer_future=transfer_future, **kwargs)
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/upload.py", line 549, in _submit
 upload_input_manager.provide_transfer_size(transfer_future)
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/upload.py", line 237, in provide_transfer_size
 transfer_future.meta.call_args.fileobj))
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/utils.py", line 245, in get_file_size
 return os.path.getsize(filename)
 File "/usr/lib/python3.7/genericpath.py", line 50, in getsize
 return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: './/13675f07-ecec-48ae-97bf-32109eb3ed7d.mp4'




Thanks for advices :)