
Recherche avancée
Autres articles (39)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (4753)
-
using ffmpeg from macOS terminal for uploading youtube short from android just do nothing
25 juin 2023, par Yogi Arif Widodomy component / recording is using blachole plugin on macOS.


engine : 13" Macbook Pro M1 ( macOS 13.2 / Ventura )


step to reproduce


- 

- my output is screenRecordingAudio ( this name is custom name ).




// screenRecordingAudio in audioMidi : 
BlackHole 16ch [mark as checked on use]
External Headphones [mark as checked on use]





screenRecordingAudio is using on by click on right top of bar UI, click sound, click screenRecordingAudio.




OR




screenRecordingAudio is using on Settings ➡️ Sounds ➡️ Output ➡️ then choose screenRecordingAudio




- 

- my input is quickTimeInput ( this name is custom name ).




// quickTimeInput in audioMidi : 
BlackHole 16ch [mark as checked on use]



- 

- then using
⌘
+shift
+5
, on option i usequickTimeInput
- i use these command to convert into mp4 and also purpose to get more small size video






#!/bin/bash

# greet the user
function yoVideo() {
 ffmpeg -i $1.mov -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k -movflags +faststart $1.mp4
}



OR


ffmpeg -i yogiarifwidodo.mov -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k -movflags +faststart yogiarifwidodo.mp4



- 

- then i move the video into my phone android.
- then when i tried to upload on youtube as short, its cannot be process to upload ( its just do nothing ) but when i upload on facebook reels its work also on instagram story its still working also for whatsapp story.






when i didnt convert into mp4 its also happend and in any other case for example whatsapp story , its lagging to review video before upload . its happend to on instagram .
but when i force upload , the result video is good and smooth . then i re download my video its still best video and when try to upload my download video , there is no lagging in any condition.


how to get ffmpeg perform into mp4 and also no lagging on editing while uploading at whatsapp story or instagram story or facebook , etc ?
by the way i dont know command ffmpeg , the code is copied from stackoverflow and i forgot where is it.


-
Running command Subprocess python failed but the same exact command runs well in Terminal
15 juillet 2023, par willAs the title says : weird problem. I've been struggling to make this work for a whole day but to no avail. Any help would be deeply appreciated.


# I've tried every one of the below path but still errors: Fontconfig error: Cannot load default config file: No such file: (null)

FONT_LOC = r'C\\:/Users/acer/AppData/Local/Microsoft/Windows/Fonts/jf-openhuninn-1.1.ttf'
FONT_LOC = 'C:/Users/acer/AppData/Local/Microsoft/Windows/Fonts/jf-openhuninn-1.1.ttf'
FONT_LOC = 'C://Users/acer/AppData/Local/Microsoft/Windows/Fonts/jf-openhuninn-1.1.ttf'


duration = '30
subtitle='abc'
comd = [
 "ffmpeg",
 "-f", "lavfi",
 "-i", "color=c=black:s=1280x720:d={duration}".format(duration=duration),
 "-vf", f'''drawtext=fontfile="{FONT_LOC}":text='{subtitle}':fontcolor=white:fontsize=24:x=(w-text_w)/2:y=(h-text_h)/2''',
 "-c:v", "libx264",
 "-t", duration,
 "-pix_fmt", "yuv420p",
 output_file+'.mp4'
 ]
print(' '.join(comd))
subprocess.run(comd, check=True, capture_output=True, text=True) # Failed


# The below command runs successfully in the terminal.
# ffmpeg -f lavfi -i color=c=black:s=1280x720:d=2.352000 -vf drawtext=fontfile="C\\://Users/acer/AppData/Local/Microsoft/Windows/Fonts/jf-openhuninn-1.1.ttf":text='abc':fontcolor=white:fontsize=24:x=(w-text_w)/2:y=(h-text_h)/2 -c:v libx264 -t 2.352000 -pix_fmt yuv420p output_Test-0004.mp3.mp4




I expect the subprocess.run() would produce the same result. I've tried all versions of paths (different kind of escaping) but none of the aforementioned one worked.


-
How to install ffmpeg for generating thumbnail images ? I got no package ffmpeg available while run on Linux(centos) terminal
16 mai 2015, par Intrepid UliyarHow to install ffmpeg for generating thumbnail images ? I got "no package ffmpeg available" while run on Linux(centos) terminal by using "yum ffmpeg install" command.
I need to install ffmpeg for generating thumbnail images, it’s working fine in localhost(Windows), but doesn’t work in Linux (I don’t know server platform). I have refer some website. In that they put like exe are not execute in linux server, we need to install ffmpeg programmatically. Can anyone give me suggestion. I have refer some website, but that wasn’t useful.
My code :
$video = "../../".$down_path;
$rand=mt_rand(111111,999999);
//where to save the image
$image1 = "../../completed_project/thumb/".$rand.'ss.jpg';
$image2 = "../../completed_project/thumb/".$rand.'uu.jpg';
$image3 = "../../completed_project/thumb/".$rand.'rr.jpg';
$thumb_image1 = "completed_project/thumb/".$rand.'ss.jpg';
$thumb_image2 = "completed_project/thumb/".$rand.'uu.jpg';
$thumb_image3 = "completed_project/thumb/".$rand.'rr.jpg';
//time to take screenshot at
$interval1 = 2;
$interval2 = 4;
$interval3 = 5;
//screenshot size
$size = '320x240';
//ffmpeg command
$cmd1 = "$ffmpeg -i $video -deinterlace -an -ss $interval1 -f mjpeg -t 1 -r 1 -y -s $size $image1 2>&1";
$cmd2 = "$ffmpeg -i $video -deinterlace -an -ss $interval2 -f mjpeg -t 1 -r 1 -y -s $size $image2 2>&1";
$cmd3 = "$ffmpeg -i $video -deinterlace -an -ss $interval3 -f mjpeg -t 1 -r 1 -y -s $size $image3 2>&1";
$return = `$cmd1`.`$cmd2`.`$cmd3`;
print_r($cmd1);I’ve got this output :
ffmpeg.exe -i ../../completed_project/606560114793SK_PROMO-45s.mp4 -deinterlace -an -ss 2 -f mjpeg -t 1 -r 1 -y -s 320x240 ../../completed_project/thumb/362796ss.jpg 2>&1