
Recherche avancée
Autres articles (36)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Configuration spécifique d’Apache
4 février 2011, parModules spécifiques
Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
Création d’un (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (4925)
-
Revision 16863 : when subtitles input comes from a srt file, always setup millisecond ...
1er février 2010, par oggk — Logwhen subtitles input comes from a srt file, always setup millisecond
timing resolution, as that’s what SRT timings may have. -
Revision 17294 : SPU style subtitles (eg, those found on DVDs) are now supported as ...
17 juin 2010, par oggk — LogSPU style subtitles (eg, those found on DVDs) are now supported as well, though not
enabled by default ; OKed by j. -
delay between subtitles and video/audio hls ffmpeg videojs
16 juillet 2020, par MaxouI use ffmpeg to convert video to hls format (m3u8) and I use videojs to read this video. But I have a problem, subtitles appeared 1.4 seconds before the real timestamp.


I execute this command to extract video, audio and subtitles :


ffmpeg -i [file] -map 0:1 -c:a aac -ar 48000 -b:a 320k -hls_time 2 -hls_segment_filename audio/1/seq-%d.ts audio/1/320kbit.m3u8 -map 0:2 -c:a aac -ar 48000 -b:a 320k -hls_time 2 -hls_segment_filename audio/2/seq-%d.ts audio/2/320kbit.m3u8 -map 0:s:0 -f webvtt sub.vtt -map 0:v:0 -vf scale=1920:-2 -c:v h264 -profile:v main -g 48 -keyint_min 48 -crf 20 -sc_threshold 0 -b:v 5000k -maxrate 5350k -bufsize 7500k -hls_time 2 -hls_segment_filename video/1080p/seq-%d.ts video/1080p/5000k.m3u8



And this command to convert substile to hls format


ffmpeg -i sub.vtt -f segment -segment_time 2 -segment_list_size 0 -segment_list my-hero/subtitles/sub.m3u8 -segment_format webvtt -scodec copy my-hero/subtitles/seq-%d.vtt



And then I create a playlist file to gather all of that


#EXTM3U
#EXT-X-VERSION:3

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-group",LANGUAGE="fre",NAME="Français",DEFAULT=YES,AUTOSELECT=YES,URI="audio/1/128k.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-group",LANGUAGE="jpn",NAME="Japonais",DEFAULT=NO,AUTOSELECT=YES,URI="audio/2/128k.m3u8"

#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Français",DEFAULT=yes,AUTOSELECT=YES,FORCED=NO,LANGUAGE="fr",URI="subtitles_fr.m3u8"

#EXT-X-STREAM-INF:BANDWIDTH=5000000,RESOLUTION=1920x1080,SUBTITLES="subs",AUDIO="audio-group"
video/1080p/5000k.m3u8



I don't see the problem so if anyone have an idea :/