
Recherche avancée
Autres articles (58)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (7050)
-
Why Safari does not play mp4 though Chrome plays it ?
30 octobre 2022, par JánosThis mp4 is generated from a gif : https://t44-post-cover.s3.eu-central-1.amazonaws.com/gp2w.mp4


It is playable on Chrom, not on Safari. Why ? What is the problem ?


This is the conversion command :


await new Promise<void>((resolve, reject) => {
 ffmpeg
 .input(`/tmp/input_${imgId}.gif`)
 .outputOptions([
 '-c:v libx264',
 '-movflags +faststart',
 '-movflags frag_keyframe+empty_moov',
 ])
 .noAudio()
 .output(`/tmp/output_${imgId}.mp4`)
 .on('end', () => {
 console.log('MP4 video generated')
 resolve()
 })
 .on('error', (e) => {
 console.log(e)
 reject()
 })
 .run()
 })
</void>


Using
ffmpeg-static
:

const pathToFfmpeg = require('ffmpeg-static')
const ffmpeg = require('fluent-ffmpeg')().setFfmpegPath(pathToFfmpeg)



-
Merge/Blend/Composite transparent webm files with a jpg/png using ffmpeg
13 avril 2021, par LokanathI previously had generated color.webm and alpha.webm files withffmpeg using png images.
However, when I play the generated videos in my application it consumes quite some resources so I have decided to create a standard video(No alpha needed), I cannot re-record the videos as there are a lot of them at this point.


I am generating the alpha and color video using the following command
ffmpeg -framerate 30 -i img%d.png -filter_complex "alphaextract[a]" -map 0:v -c:v libvpx-vp9 -pix_fmt yuv420p -auto-alt-ref 0 -crf 15 -b:v 0 color.webm -map "[a]" -c:v libvpx-vp9 -pix_fmt yuv420p -auto-alt-ref 0 -crf 15 -b:v 0 alpha.webm


I am looking to get a final video output where in alpha values are replaced with the png/jpg image, it's more like replacing the green screen with a background however in my case greenscreen is the alpha channel.


Could any one let me know how to combine alpha.webm, color.webm with a jpg/png image without minimal or no quality loss ?
.


-
How to identify exact type or variation of a .mp4 file
5 octobre 2017, par Dave502619Can anyone tell me if there are different variations of mp4 file and if so, how to identify the exact type or variation of a mp4 file ?
The reason I need to know this is if I pass an .mp4 through FFMPEG to create an uncompressed grayscale rgb24 avi file, depending on
where the .mp4 file has been sourced from will produce a different internally structured avi file as output from FFMPEG. Ie, the file header
and interframe header sizes differ.The ffmpeg command i am using is :
ffmpeg.exe -i source.mp4 -b 1150 -r 20.97 -g 120 -an -vf format=gray -f rawvideo -pixfmt rgb24 -s 384x216 -vcode rawvideo -y fileX.aviSo far I have identified that .mp4 files generated by my Samsung S5 mobile phone differ from .mp4 files generated by Power Director 14. So I suspect there are different variations of .mp4 files.
I have written some software which steps into the FFMPEG output .avi file to extract video frames, but it requires fixed offset positions to work so I can only make it work for one variation of .mp4.