
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (27)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (5104)
-
Upload video file to amazon S3 after FFMPEG conversions - Laravel
11 mai 2018, par SiddharthI’m trying to upload file to s3 using ffmpeg, and its creating a 0B file, what could be the reason behind this ?
My Code is as follows :
exec('ffmpeg -i '.config('medialibrary.s3.domain').'/listing_video/intromain.mp4'.' -vf "drawtext=fontfile='.storage_path('assets/video/FutuMd.ttf').': text='.$listing->car->name.': x=680: y=500: fontsize=55: fontcolor=white: enable=\'between(t,4,6)\'" '.Storage::put('intromainfinal.mp4', '').'');
-
Center crop image overlay using FFmpeg
27 mai 2020, par HB.I currently have an image that is being overlayed on top of a video, as demonstrated in this image :






The blue square is representing the video and the purple lines are representing the image on top of the video.





Currently, I have the following command :



"-i", InputVideoPath, "-i", InputImagePath, "-filter_complex", "[0:v]scale=iw*sar:ih,setsar=1,pad='max(iw\\,2*trunc(ih*9/16/2))':'max(ih\\,2*trunc(ow*16/9/2))':(ow-iw)/2:(oh-ih)/2[v0];[1:v][v0]scale2ref[v1][v0];[v0][v1]overlay=x=(W-w)/2:y=(H-h)/2[v]", "-map", "[v]", "-map", "0:a", "-c:v", "libx264", "-preset", "ultrafast", "-r", "30", OutputPath




This adds black padding to the sides of the video and outputs the following :






But I would like the center crop the image that is being overlayed instead, giving me this output :






I've seen answers that demonstrate how to crop an image or crop 2 videos, but I couldn't find a way to center crop an image that is being overlayed on top of a video.



The video I'm testing with is
1920x1080
and the size of the image is not constant.


Any help in achieving this will be appreciated.





EDIT (This edit is to add more clarification).



Please have a look at the image below :






The image above demonstrates :



- 

- Purple Lines : The entire screen of the device/player, this will be used as the input image. The user draws on the screen/player.
- Blue : The input video, scaled to fill the screen
- Green : The actual size of the input video









With this example, the player/image is
1920x1080
and the actual video size is640x640
. So the video is scaled440x440
to fill the player.




I tried to use a simple overlay, with the hopes that it will crop the video/image and output a video with the image at the same position as what was displayed on the device, by doing the following :



ffmpeg -i InputVideo -i InputImage -filter_complex "overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -c:v libx264 -preset ultrafast OutputPath




But, the image is not at the same position as what it was on the device.



I suspect that I will have to take into account the size difference between the scaling of the video to fit into the video player.



I'm not sure how I can do this ?


-
Manipulating strings (file extensions) in bash using find
26 mai 2016, par Darren ParkerI’m having trouble manipulating strings in bash. I wish to re-write extensions.
I have the following 2 files in a Downloads directory
- Example 001.mkv
- Example 002.mkv
Using the script below I always get the same filenames returned without .mkv rewritten into .mp4.
find /Downloads -name \*.mkv -execdir echo $(file={}; echo ${file/mkv/mp4};) \;
I understand this isn’t all you need to re-format a file but this script is part of a larger script that is passed to FFMPEG.
Here is the full command with FFMPEG.
find /Downloads -name \*.mkv -execdir ffmpeg -i {} -vcodec copy -acodec copy $(file={}; echo ${file/mkv/mp4};) \;