
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (69)
-
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 (...) -
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (5049)
-
Segmenting a video and adding text that differs in each segment [FFMPEG]
31 octobre 2023, par Kal-TohI have a folder full of videos I want to segment, resize and add text to. So far I've managed to segment and resize them.


I'm trying to add text in a TikTok Style : [Kind of like][1] this but black text in a white background. (If that isn't possible, I'd be fine with just white text).


I already have the font file(.oft file type, is that ok or does it need to be .ttf ?)
The video is being converted to 720x1280 (9:16) and I'd like the text to display at the top centre of the video, taking up roughly the top 25%.


Further to this, and this is where I'm having trouble understanding the process :


I'd like text at the bottom of the video in the same style, that would change each segment.


For example :


I have a 10 minute long video. I want to split this video into 60 second segments. Each segment will have a title (the same across each segment) and a sub title at the bottom that would differ for each segment (for example 'Part 1/10', 'Part 2/10' etc)


I know I could run one command to segment each video, add the title and change the aspect ratio and a second command to add the bottom text, feeding in a variable based on the number of mp4 files in the folder, however that doesn't seem like the most efficient process. Is there a way to do this all in one command ?


This is the command I'm using so far :


ffmpeg_command = [
 'ffmpeg',
 '-i', os.path.join(input_folder, video_file),
 '-vf', f'scale=720:1280:force_original_aspect_ratio=decrease,pad=720:1280:(ow-iw)/2:(oh-ih)/2
 ,drawtext=text=\'{text}\':x=(w-tw)/2:y=(h/4)-th:fontsize=24:fontfile={font_path}:fontcolor=black:box=1:boxcolor=white',
 '-threads', '100',
 "-c:a", "copy",
 '-t', str(duration),
 '-segment_time', '160', # 3 minutes
 '-reset_timestamps', '1',
 '-f', 'segment',
 os.path.join(output_subfolder, f'{video_name}_%03d.mp4')
 ]



Although not styled the way I want it to be, it's a decent start and all else works fine.


It's just the bottom text I can't figure.
[1] : https://i.insider.com/61aa608a983f360019c854a5?width=1300&format=jpeg&auto=webp


-
avcodec/dovi_rpu : fix dm_metadata_id handling
9 juin 2024, par Niklas Haasavcodec/dovi_rpu : fix dm_metadata_id handling
Despite the suggestive size limits, this metadata ID has nothing to do
with the VDR metadata ID used for the data mappings. Actually, the
specification leaves them wholly unexplained, other than acknowleding
their existence. Must be some secret dolby sauce. They're not even
involved in DM metadata compression, which is handled using an entirely
separate ID.That leaves us with a lack of anything sensible to do with these IDs.
Since we unfortunately only expose one `dm_metadata_id` field to the
user, just ensure that they match ; which appears to always be the case
in practice. If somebody ever hits this error, I would really much
rather like to see the triggering file. -
FFMPEG in Android not rendering Arabic characters
14 octobre 2024, par Henry SmithI have an Android app that uses FFMPEG to add text overlays onto a mp4 video files.


It works fine with a Latin alphabet, but when I try and add Arabic characters as an overlay on the .mp4 file, the output video displays rectangles (assuming unrecognised characters).


FFMPEG command example is :

-y -i video-in.mp4 -preset ultrafast -vf "[in]drawtext=text='نقطة البداية قلا':enable='between(t, 0,5)':fontcolor=White:fontsize=20:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2,drawtext=text='وصلات مزاحجة كبيرة الإزاحة (من ١٢ إلى ٤)':enable='between(t, 15,20)':fontcolor=White:fontsize=20:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2[out]" -r 24 "video-out.mp4"


Output mp4 video comes out a below :
enter image description here


Using Android SDK Version 13, FFMPEG plugin : com.arthenica:mobile-ffmpeg-full-gpl:4.4


Class example code :


import com.arthenica.mobileffmpeg.ExecuteCallback
import com.arthenica.mobileffmpeg.FFmpeg

class VideoUtils() {

 fun addTextOverlay(inputFile: String, outputFile: String, text: String) {
 // create video filter for overlay text between 0 - 5 seconds, centre aligned, white font and black box
 val tempTextString =
 "drawtext=text='$text:enable='between(t, 0,5)':fontcolor=White:fontsize=20:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2"

 // create FFMPEG command
 val cmd =
 "-y -i $inputFile -preset ultrafast -vf \"[in]$tempTextString[out]\" -r 24 \"$outputFile\""

 FFmpeg.execute(cmd)
 }
}