
Recherche avancée
Médias (3)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (100)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (10225)
-
MAINTAINERS : Add ubitux for text subtitles
13 juillet 2014, par Michael NiedermayerMAINTAINERS : Add ubitux for text subtitles
ubitux maintains them. It seems it was forgotten to update MAINTAINERs though
See : Re : [FFmpeg-devel] [PATCH] MAINTAINERS : add Subtitle maintainer
Message-ID : <20140713120546.GC26262@leki>Signed-off-by : Michael Niedermayer <michaelni@gmx.at>
-
Moviepy python images and text with colour background video
7 janvier, par sjpatelI trying to create video like below using Moviepy python.?


Video -
https://assets.json2video.com/examples/marketing/slide-text-right.mp4


Is this possible using Moviepy python ? I can't use FFMPEG because it not supported on my server.


from moviepy.editor import *

# Load the image
img_clip = ImageClip("your_image.png")

# Set the duration of the image clip
img_clip = img_clip.set_duration(5)

# Resize the image if necessary
img_clip = img_clip.resize(height=1080) # Keep the height consistent

# Define your text
text = "Your Marketing Message"

# Create a TextClip
txt_clip = TextClip(text, fontsize=70, color='white')

# Set the duration of the text clip
txt_clip = txt_clip.set_duration(5)

# Animate the text to slide in from the right
def slide_in(t):
 return 'center', -1000 + 1500 * t # Adjust these values based on your needs

txt_clip = txt_clip.set_position(slide_in)

# Set background color
txt_clip = txt_clip.on_color(size=(1920, 1080), color=(0, 0, 0), col_opacity=1)

# Position the image on the left side
img_clip = img_clip.set_position(('left', 'center'))

# Position the text clip on the right side
txt_clip = txt_clip.set_position(('right', 'center'))

# Composite the two clips together
final_clip = CompositeVideoClip([img_clip, txt_clip])

# Set the duration of the final clip
final_clip = final_clip.set_duration(5)

# Save the video
final_clip.write_videofile("image_and_slide_text.mp4", fps=24)



-
ffmpeg Add watermark/text in video on react native
3 janvier 2019, par R FRight now i’m stuck on android part,here is my code
I don’t want to define font styling or box it just i found this code somewhere so i just copy pasted it as i don’t have any knowledge of ffmpeg, I just want a simple text of right aligned in 2 lines on top of right of the video like this.
I am getting the error in this part of code as the video is getting generated but it does not play and it is of always 262B size
String[] cmd = new String[] {
"-i", path, "-vf", String.format("drawtext=\"fontfile=/systems/fonts/DroidSans.ttf: text='%s': " + "box=1: boxcolor=black@0.5: boxborder=5: x=(w-text_w)/t: y=(h-text_h)/2\"", text), "-codec:a", "aac", out.getAbsolutePath()
};This is the full code
@ReactMethod
public void embedTextOnVideo(String text, String path, int fontSize, String fontColor, final Callback successCallback, final Callback errorCallback)
{
FFmpeg ffmpeg = FFmpeg.getInstance(_reactContext);
try
{
ffmpeg.loadBinary(new LoadBinaryResponseHandler() {
@Override
public void onStart() {}
@Override
public void onFailure() {}
@Override
public void onSuccess() {}
@Override
public void onFinish() {}
});
} catch (FFmpegNotSupportedException e) {
// Handle if FFmpeg is not supported by device
}
File out = getOutputFile(TYPE_VIDEO);
String[] cmd = new String[] {
"-i", path, "-vf", String.format("drawtext=\"fontfile=/systems/fonts/DroidSans.ttf: text='%s': " + "box=1: boxcolor=black@0.5: boxborder=5: x=(w-text_w)/t: y=(h-text_h)/2\"", text), "-codec:a", "aac", out.getAbsolutePath()
};
try {
ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {
@Override
public void onStart() {}
@Override
public void onProgress(String message) {}
@Override
public void onFailure(String message) {
errorCallback.invoke("Error ffmpeg executing with message:\n\t" + message);
}
@Override
public void onSuccess(String message) {
successCallback.invoke("Successfully output file with message:\n\t");
}
@Override
public void onFinish() {}
});
} catch (FFmpegCommandAlreadyRunningException e) {
// Handle if FFmpeg is already running
}
}
@Nullable
private Throwable writeDataToFile(byte[] data, File file) {
try {
FileOutputStream fos = new FileOutputStream(file);
fos.write(data);
fos.close();
} catch (FileNotFoundException e) {
return e;
} catch (IOException e) {
return e;
}
return null;
}
@Nullable
private File getOutputFile(int type) {
File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM;
// Create storage dir if it does not exist
if (!storageDir.exists()) {
if (!storageDir.mkdirs()) {
Log.e(TAG, "Failed to create directory:" + storageDir.getAbsolutePath());
return null;
}
}
// media file name
String fileName = String.format("%s", new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()));
enter code hereif (type == TYPE_VIDEO) {
fileName = String.format("VID_%s.mp4", fileName);
} else {
Log.e(TAG, "Unsupported media type:" + type);
return null;
}
return new File(String.format("%s%s%s", storageDir.getPath(), File.separator, fileName));
}