
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (60)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
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 (...)
Sur d’autres sites (9080)
-
ffmpeg hardware encoding and/or decoding when using v360 and crop filters ? [closed]
25 août 2024, par EricI'm using ffmpeg to dewarp a fisheye camera. It works great but is doing 100% of the work on the CPU.


ffmpeg \
 -hide_banner \
 -v error \
 -allowed_media_types video \
 -fflags nobuffer \
 -flags low_delay \
 -timeout 5000000 \
 -user_agent go2rtc/ffmpeg \
 -rtsp_flags prefer_tcp \
 -i my_camera_stream \
 -vf v360=fisheye:output=dfisheye:ih_fov=180:iv_fov=180:pitch=90,crop=in_w:in_h/2:0:in_h/2 \
 -c:v libx264 \
 -g 50 \
 -profile:v high \
 -level:v 4.1 \
 -preset:v superfast \
 -tune:v zerolatency \
 -pix_fmt:v yuv420p \
 -an \
 -user_agent ffmpeg/go2rtc \
 -rtsp_transport tcp \
 -f rtsp rtsp://127.0.0.1:8554/my_hash



I'm trying to see if any of the decode / encode work can be offloaded to hardware via vaapi but not having much luck.


My attempt at enabling hwaccel is failing


ffmpeg \
 -hide_banner \
 -v error \
 -allowed_media_types video \
 -fflags nobuffer \
 -flags low_delay \
 -timeout 5000000 \
 -threads 2 \
 -hwaccel vaapi \
 -hwaccel_flags allow_profile_mismatch \
 -hwaccel_device /dev/dri/renderD128 \
 -hwaccel_output_format vaapi \
 -rtsp_flags prefer_tcp \
 -i rtsps://my_camera_stream \
 -vf v360=fisheye:output=dfisheye:ih_fov=180:iv_fov=180:pitch=90,crop=in_w:in_h/2:0:in_h/2:,scale_vaapi=in_w:in_h \
 -c:v h264_vaapi \
 -g 50 \
 -profile:v high \
 -level:v 4.1 \
 -preset:v superfast \
 -tune:v zerolatency \
 -pix_fmt:v yuv420p \
 -an \
 -user_agent ffmpeg/go2rtc \
 -rtsp_transport tcp \
 -f rtsp rtsp://127.0.0.1:8554/my_hash



With an error stating :


Impossible to convert between the formats supported by the filter 'Parsed_crop_1' and the filter 'auto_scale_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0



- 

- Is it even possible to make use of vaapi hardware support anywhere in the ffmpeg pipeline when using v360 and crop filters ?
- If so what am I doing wrong.






-
avcodec/liblc3 : add encoding/decoding support of LC3 audio codec
1er avril 2024, par Antoine Soulier via ffmpeg-develavcodec/liblc3 : add encoding/decoding support of LC3 audio codec
The LC3 audio codec is the default codec of Bluetooth LE audio.
This is a wrapper over the liblc3 library (https://github.com/google/liblc3).Signed-off-by : Antoine Soulier <asoulier@google.com>
-
Video encoding and decoding by the player during online playback [closed]
10 janvier 2024, par rahkarenovinI made a player to stream the video.


I want to do 32-bit encoding on the video with the help of ffmpeg.
so that the video will only play in my player.


The problems I have :


- 

-
I want to put my 32-bit password in the player, the player will check this password while playing the video, if the password is the same, the video will be played.


-
I don't know how to decode the video with the below player.








What code is needed ? What command can I use to decode the video ?


My player code :


<div class="grid">
 <main>
 <div>
 
 
 </div>
 </main>
</div>

<code class="echappe-js"><script&#xA; type="text/javascript"&#xA; src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,Array.prototype.includes,CustomEvent,Object.entries,Object.values,Math.trunc"&#xA; crossorigin="anonymous"&#xA;></script>


<script type="text/javascript" src="https://cdn.plyr.io/3.5.2/plyr.js"></script>


<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>


<script>&#xA; const source = &#x27;https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8&#x27;;&#xA; const player = new Plyr(&#x27;#player&#x27;);&#xA; var video = document.getElementById(&#x27;player&#x27;);&#xA; if(Hls.isSupported()) {&#xA; var hls = new Hls();&#xA; hls.loadSource(source);&#xA; hls.attachMedia(video);&#xA; hls.on(Hls.Events.MANIFEST_PARSED,function() {&#xA; video.play();&#xA; });&#xA; }else if (video.canPlayType(&#x27;application/vnd.apple.mpegurl&#x27;)) {&#xA; video.src = source;&#xA; video.addEventListener(&#x27;loadedmetadata&#x27;,function() {&#xA; video.play();&#xA; });&#xA; }&#xA;</script>



-