
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (63)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...) -
Activation de l’inscription des visiteurs
12 avril 2011, parIl est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)
Sur d’autres sites (10592)
-
How to get video size of compressed video by ffmpeg ?
14 juillet 2016, par Mani KandanHi we are using ffmpeg for compressing the video through php script, now what i need is i want to get the video size of compressed image, but am getting an video path so kindly guide me how i need to over come this ?
Below is the code what i used for compressing the video
original path
$path = "sample.mp4";
Command to compress
exec("ffmpeg -i sample.mp4 -vcodec h264 -acodec aac -strict -2 compressed_video.mp4);
The command what i used for getting video size
$compressed_video_information = exec("ls -h1 compressed_video.mp4);
echo $compressed_video_information;I get just file path instaed of getting video file size, so someone help me how to overcome this issue ?
-
FFMPEG Audio/Video out of sync after transcoding video in segments
25 mai 2017, par IdanMy system transcodes videos in a very specific way.
- separating the video and the audio
- transcoding the audio stream
- segmenting the video
- transcoding each of the segments of the video
- concat all segments back to 1 video
- merging the new transcoded video and audio back together
While at 99% of the times the process works as it should and the result is a valid video+audio file. in 1% of the times, I get the video and audio out of sync.
When investigated the issue I noticed that the sync issue appears in a specific segment/s. Meaning, if the video was sliced into 100 segments, the sync can be ok for the first 50 segments, then something happens and the audio or video gets an offset and goes out of sync. It can occur in any number of segments in one video.
I guess it’s something to do with timestamps getting lost in the process and segments changing their length in the process but I have no idea how I can overcome it. Open for suggestions.
The commands I use for each step (paths were shorten and may not match, not real issue there) :
Segmenting the video :
ffmpeg -fflags +genpts -i $INPUT_FILE -c copy -map 0:0 -flags -global_header -segment_time 10 -break_non_keyframes 0 -reset_timestamps 1 -segment_list segments.list -segment_list_type ffconcat -write_empty_segments 0 -segment_format mp4 -f segment seg-%d.mp4
Transcoding audio :
ffmpeg -i $INPUT_FILE -vn -c:a aac -threads 1 -ac 2 -b:a 125588 audio.mp4
Transcoding each of the segments :
ffmpeg -y -i $f -an -vcodec libx264 -threads 4 -r 30 -pix_fmt yuv420p -crf 20 -preset:v fast -profile:v main -level:v 4.1 transcoded/$f
Concat segments :
ffmpeg -y -f concat -i segments.list -c copy -movflags +faststart file_video.mp4
Combine video and audio :
ffmpeg -y -i file_video.mp4 -i file_audio.mp4 -c copy -shortest file_out.mp4
-
FFmpeg - video frame cropped after rotating video ?
20 juin 2021, par Md YeaminI am using following command to rotate video :


ffmpeg -i input.mp4 -c:v h264 -vf rotate=PI/2 -c:a copy output.mp4



After processing the video, the frame get cropped. Please see the attached screenshot of the video for reference.


Screenshot of original video



Screenshot of rotated video