
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (77)
-
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (6560)
-
Video decoding by the online player [closed]
10 janvier 2024, par rahkarenovinI encoded my videos with 32-bit ffmpeg.


I want the video player to decode and then display the video when the user buys it.


My problem :
I don't know how to decode the video so that the player can display it


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>



-
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>



-
-
Online RTMP radio with Python + FFmpeg + Nginx : unable to have a continuous output stream
2 décembre 2023, par Igor LongoThinking about an application similar to an online radio, I'm trying to transmit a sequence of audio files chosen by the user, where he chooses which file will be played in the sequence, sufficiently in advance for the reproduction not to be muted. I'm using FFmpeg in a Python script and an RTMP server running Nginx.
The problem is that interrupting the transmission between one file and another appears to be breaking the transmission on output. Sometimes files are skipped and other times it simply crashes for the client.


I have already tried transmitting the sequence of files in real time, using '-re', and I have also tried not using '-re', creating a custom queue manager in Python with the intention of trying to keep only 'n' files in the server buffer .
Below is an excerpt of the code :


ffmpeg_command = [
'ffmpeg',
'-loglevel', 'warning',
# '-re', # read input at native frame rate
'-i', file_path,
'-c:a', 'aac',
'-ar', '44100',
'-bufsize', '1024k',
'-af', 'atempo=1.0',
'-b:a', '128k',
'-f', 'flv',
'-flvflags', 'no_duration_filesize',
rtmp_url # server url
]
subprocess.run(ffmpeg_command, check=True)


Any tips on how I can resolve this ?