
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 (45)
-
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...) -
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)
Sur d’autres sites (9565)
-
FFmpeg : Concatenated clips extracted using -ss and -t, hang or go out of sync while playing
20 juillet 2013, par YogiI have a set of movies in different formats, and I am trying to extract small clips from these source movies, and concatenate them into one movie.
My workflow has been the following :
-
Convert all the source movies to the same format (width, height, fps, codec)T the scale and pad options are so that all movies oare of the same size, even if their aspect ratio is different.
fmpeg -i $infile -vcodec libx264 -strict -2 -vf scale=iw*sar*min(${MAX_WIDTH}/(iw*sar)\,${MAX_HEIGHT}/ih):ih*min(${MAX_WIDTH}/(iw*sar)\,${MAX_HEIGHT}/ih),pad=${MAX_WIDTH}:${MAX_HEIGHT}:(ow-iw)/2:(oh-ih)/2 -b:v 500k -b:a 64k -movflags +faststart -g 10 -r 25 ${outbasename}.mp4
-
extract clips :
ffmpeg -ss $starttime -t $duration -i $in_file -vcodec copy -acodec copy $out_file
-
Then finally combine clips by first making a concat_list.txt file which contains the list of clips to be concatenated, and their duration, and then using ffmpegs's concat demux :
ffmpeg -f concat -i concat_list.txt -c copy -movflags +faststart $oname
The problem I am facing is that many of the final videos hang or go out of sync, somewhere in the middle of playing. I have tried using mjpeg as the codec, but I still get the same behavior. I can play the individual extracted clips, and then all seem to play fine in most players. Does anybody know what I am doing wrong ? I am using ffmpeg version 1.2.1.
-
-
Fastest way to extract moving dynamic crop from video using ffmpeg
5 avril 2024, par NateWI'm working on an AI project that involves object detection and action recognition on roughly 30 minute videos.


My pipeline is the following :


- 

- determine crops using object detection model
- extract crops using Python and write them to disk as individual images for each frame.
- use action recognition model by inputting a series of the crops.








The models are fast but actual writing of the crops to disk is slow. Sure, using an SSD would speed it up but I'm sure ffmpeg would greatly speed it up.


Some of the challenges with the crops :


- 

- the output size is always 128x128
- the input size is variable
- the crop moves on every frame








My process for extracting crops is simple using
cv2.imwrite(output_crop_path, crop)
in a for loop.

I've done experiments trying to use
sndcommand
andfilter_complex
. I tried this https://stackoverflow.com/a/67508233/4447761 but it outputs an image with black below the crop and the image gets wrapped around on the x axis.



-
FFmpeg corrupted output from concatenation
25 juillet 2021, par ManumitEDIT/UPDATE : current solution is to run this code on all files
ffmpeg -i up.mp4 -vf scale=1920:1080 -crf 22 reUP.mp4
so resolution, but also frames per second match.



I used to be able to open CMD, type
CD C:\Users\...
and thenffmpeg -f concat -safe 0 -i xmylist.txt -crf 22 -c copy x1.mp4




The recording are from same phone, some from front cam, some from back cam. I understand this could cause non-identical problems ? but it worked fine until recently.


Now the output is corrupted with this log :

The individual video files play just fine, so does most of the concatted output, but some sections become like this and freeze :