
Recherche avancée
Autres articles (105)
-
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Création définitive du canal
12 mars 2010, parLorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
A la validation, vous recevez un email vous invitant donc à créer votre canal.
Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)
Sur d’autres sites (8991)
-
How do I add cross-fade when concatenating video with intermediate files using FFmpeg
10 juillet 2022, par Sandun TharakaI am working on concatenating each video with FFmpeg intermediate files, and want to add cross-fade when merging each of the videos.


const ffmpegArgs = [
 "-y",
 "-f",
 "mpegts",
 "-i",
 `concat:${intermediateFiles.join("|")}`,
 "-c",
 "copy",
 "-bsf:a",
 "aac_adtstoasc",
 resultPath,
];



Here is the function to take intermediate files for each video :


const ffmpegArgs = [
 "-y",
 "-i",
 file,
 "-c",
 "copy",
 "-bsf:v",
 "h264_mp4toannexb",
 "-shortest",
 "-avoid_negative_ts",
 "make_zero",
 "-fflags",
 "+genpts",
 "-f",
 "mpegts",
 intermediateFilePath,
];



-
How do I add cross-fade when concatenate video with intermediate files using ffmpeg
3 juillet 2022, par Sandun TharakaI am working on concatenate each video with ffmpeg intermediate files, I want to add cross-fade when merging each of the video.


const ffmpegArgs = [
 "-y",
 "-f",
 "mpegts",
 "-i",
 `concat:${intermediateFiles.join("|")}`,
 "-c",
 "copy",
 "-bsf:a",
 "aac_adtstoasc",
 resultPath,
];



Here is the function for take intermediate files for each video


const ffmpegArgs = [
 "-y",
 "-i",
 file,
 "-c",
 "copy",
 "-bsf:v",
 "h264_mp4toannexb",
 "-shortest",
 "-avoid_negative_ts",
 "make_zero",
 "-fflags",
 "+genpts",
 "-f",
 "mpegts",
 intermediateFilePath,
];

 



-
HTML5 transparent video with the greatest cross-browser/system support
22 juin 2022, par Will AshworthI'm encountering an issue getting videos with alpha transparency to reliably load and play on a web page. After some thorough research, this is where I ended up as a means of video encoding to accomplish transparent video which isn't over a solid background color.


Hoping the general community has insight into why we're noticing weirdness with MacOS Monterey in Safari 15 🤷♂️


Note : We tried Lottie as an option for the animations, but what we found was that the DOM was excessively bloated ; which would inevitably cause performance issues for the website. So we went back to video as an option.


Convert to HEVC with alpha


ffmpeg -i "source.mov" -c:v hevc_videotoolbox -allow_sw 1 -alpha_quality 1 -vtag hvc1 output.mov



Convert to VP9 with alpha


ffmpeg -i "source.mov" -c:v libvpx-vp9 output.webm



HTML5 method of serving these files to the browser


<video autoplay="autoplay" loop="loop" muted="muted" playsinline="playsinline" class="tmpl-front-page__transition-item tmpl-front-page__transition-item--0 tmpl-front-page__transition-item--banner-video">
 <source src="path/to/video.mov" type="'video/mp4;" codecs="hvc1">
 <source src="path/to/video.webm" type="video/webm">
</source></source></video>



How it works


Essentially, we've learned the following :


- 

- Safari supports HEVC with alpha, Chrome does not
- Chrome supports VP9 with alpha, Safari does not






Now we let the browser choose which version it wants to use.


There are issues


There's inconsistency in how reliably this works in reality. For example, I'm currently running MacOS Catalina with Safari 14.0.2, and the videos started loading for me when using the above method.


While testing MacOS Monterey with Safari 15.1 inside a Parallels VM, the video doesn't load at all when I test that way. That said, another developer on our team did take the plunge and upgraded to Monterey and has Safari 15.1 ; and he can see the videos loading just fine.


This is getting a little silly, and I'm not sure what else to try. Thanks for any help !