
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (102)
-
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...) -
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 (...) -
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 (...)
Sur d’autres sites (10098)
-
FFmpeg version 4.0.1 cannot find h264 encoder
3 juillet 2018, par CristianoToday I updated FFmpeg to version 4.0.1 and my existing project cannot compile anymore. In particular
avcodec_find_encoder(AV_CODEC_ID_H264)
always returns null. I tried to reinstall the libx264 but nothing changed.
I also tried to callavcodec_find_encoder_by_name("libx264")
and it works, butavcodec_open2()
returns error. -
AviSynth script with subtitles errors
29 avril 2017, par CorpuscularWin7
FFmpeg version : 20170223-dcd3418 win32 shared
AVISynth version : 2.6
Calling ffmpeg in a Visual Studio 2015 C# Forms Application and using process.StartInfo.Arguments to pass arguments and read an avs script. Works fine.
The avs script :
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\VSFilter.dll")
a=ImageSource("01.png").trim(1,24)
b=ImageSource("02.png").trim(1,36)
c=ImageSource("03.png").trim(1,40)
d=ImageSource("04.png").trim(1,72)
e=ImageSource("05.png").trim(1,36)
f=ImageSource("06.png").trim(1,40)
video = a + b + c + d + e + f
return videoI’d like to add subtitles using the avs script but it is not working. Adding the subtitle argument immediately before the "return video" argument results in :
subtitle("day 111", align=2, first_frame=0, halo_color=$00FF00FF, text_color=$0000FF00, size=36, last_frame=100)
Result error : [avisynth @ 003cdf20] Script error : Invalid arguments to function "subtitle"
Using video.subtitle results in :
video.subtitle("day 111", align=2, first_frame=0, halo_color=$00FF00FF, text_color=$0000FF00, size=36, last_frame=100)
No error, script completes but no subtitle on output video.
Using subtitle(clip) results in :
subtitle(video, "day 111", align=2, first_frame=0, halo_color=$00FF00FF, text_color=$0000FF00, size=36, last_frame=100)
The script exits abnormally but there is no error message.
Any guidance would be greatly appreciated. Please let me know if I can clarify anything.
-
Extract (demux) subtitles using avcodec_decode_subtitle2 (FFmpeg)
30 janvier 2020, par user155I found some code, edited it a little bit to print text of subtitles, but I’m not sure how to save subtitles to file (extract from video file, e.g. mkv)
next code just prints a lot of lines, not all of them contains subtitle text
std::ofstream out ("/path/to/extracted/subtitles.srt");
while(av_read_frame(pFormatCtx, &pkt) == 0) {
int got_frame = 0;
int ret = avcodec_decode_subtitle2(aCodecCtx, subtitle, &got_frame, &pkt);
if (ret >= 0 && got_frame) {
AVSubtitleRect **rects = subtitle->rects;
for (i = 0; i < subtitle->num_rects; i++) {
AVSubtitleRect rect = *rects[i];
if (rect.type == SUBTITLE_ASS) {
printf("ASS %s", rect.ass);
} else if (rect.x == SUBTITLE_TEXT) {;
printf("TEXT %s", rect.text);
}
}
// it just writes some big file (similar to videofile size)
//out.write((char*)pkt.data, pkt.size);
}
}
out.close();
//...