
Recherche avancée
Médias (1)
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
Autres articles (63)
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (9506)
-
FFMPEG Extract subtitles at webvtt format while keep position on the screen
30 septembre 2020, par Maxoui'm working on a project where I need to extract subtitles from video files and convert it to WEBVTT format. But when I extract and convert it with FFMPEG my webvtt files doesn't keep the position.


What I want


00:00:11.000 --> 00:00:13.000 align:start



What I get


00:00:11.000 --> 00:00:13.000



While when I test to extract at .ass files the position of the subtitles is keep.


To extract I use this command


ffmpeg -i {filename} -map 0:s:0 -muxdelay 0 -f webvtt subtitles.vtt



Thanks in advance


-
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();
//... -
Convert .avi to .gif with ffmpeg with good quality AND subtitles
1er décembre 2015, par Stergios MariasI want to use ffmpeg to convert .avi to .gif with good quality and subtitles.
Now, I use this script to convert from .avi to .gif with good quality :
ffmpeg -v warning -ss 10:00 -t 5 -i input.avi -vf "fps=15,scale=420:-1:flags=lanczos,palettegen" -y palette.png
ffmpeg -v warning -ss 10:00 -t 5 -i input.avi -i palette.png -lavfi "fps=15,scale=420:-1:flags=lanczos [x]; [x][1:v] paletteuse" -y output.gifI generate a palette and then using it to output the gif.
Then I am using this script to add subtitles to gif :
ffmpeg -v warning -i output.gif -vf "ass=subtitles.ass" -y outputWithSubs.gif
All that works just fine. The problem is that the first script gives me good quality without subtitles and the second gives me subtitles without good quality.
When I am trying to combine them with this script :
ffmpeg -v warning -ss 10:00 -t 5 -i input.avi -vf "fps=15,scale=420:-1:flags=lanczos,palettegen" -y palette.png
ffmpeg -v warning -ss 10:00 -t 5 -i input.avi -i palette.png -vf "ass=subtitles.ass" -lavfi "fps=15,scale=420:-1:flags=lanczos [x]; [x][1:v] paletteuse" -y output.gifI am getting this error :
Filtergraph 'ass=subtitles.ass' was specified through the -vf/-af/-filter option for output stream 0:0, which is fed from a complex filtergraph.
-vf/-af/-filter and -filter_complex cannot be used together for the same stream.Is there any way that I could combine good quality and subtitles at the same time ?