
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (37)
-
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 (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (3561)
-
Getting h264 stream of DJI Action 2 with ffmpeg (Raspberry Pi)
8 juin 2022, par ErAzOrI have a DJI Action 2 cam which is connected to my Raspberry Pi in webcam mode.
My goal is to save the h264 stream to a local file.


H264 should be a valid format :


root@raspberrypi:/home/pi# v4l2-ctl -d /dev/video0 --list-formats-ext
 ioctl: VIDIOC_ENUM_FMT
 Type: Video Capture

 [0]: 'MJPG' (Motion-JPEG, compressed)
 Size: Discrete 1280x720
 Interval: Discrete 0.033s (30.000 fps)
 Size: Discrete 1920x1080
 Interval: Discrete 0.033s (30.000 fps)
 [1]: 'H264' (H.264, compressed)
 Size: Discrete 1280x720
 Interval: Discrete 0.033s (30.000 fps)
 Size: Discrete 1920x1080
 Interval: Discrete 0.033s (30.000 fps)


ffmpeg -f video4linux2 -list_formats all -i /dev/video0
.
.
.
[video4linux2,v4l2 @ 0x7021c0] Compressed: mjpeg : Motion-JPEG : 1280x720 1920x1080
[video4linux2,v4l2 @ 0x7021c0] Compressed: h264 : H.264 : 1280x720 1920x1080



When I now try to save a file in h264, I get an error :


.
.
.
ffmpeg -f v4l2 -input_format h264 -i /dev/video0 -c:v copy output.mkv
[video4linux2,v4l2 @ 0x1b7a1e0] ioctl(MJPG): Invalid argument
/dev/video0: Invalid argument



With mjpg as -input_format it works.


Any ideas, why h264 is not possible ?


-
How to insert commands for randomization and action after a given time
26 avril 2021, par Señor EggRight now in my code, I have it written out to play audio files after a !join command. I would like to change it to a command like after every 40 minutes, and I would like to be able to choose a random file to play out of a list. Help on how to ajust my code would be great !


My code :


from discord.ext import commands
from discord import FFmpegPCMAudio
 
client = commands.Bot(command_prefix = '!')
@client.command(pass_context=True)
async def join(ctx):
 if (ctx.author.voice):
 channel = ctx.message.author.voice.channel
 voice = await channel.connect()
 source = FFmpegPCMAudio('AUDIO FILE')
 player = voice.play(source)
 else:
 await ctx.send("User not in a voice channel, unable to connect.")
 
@client.command(pass_context=True)
async def leave(ctx):
 if (ctx.voice_client):
 await ctx.guild.voice_client.disconnect()
 await ctx.send("I have left the voice channel.")
 else:
 await ctx.send("I am not in a voice channel.")
 
 
 
client.run('BOT TOKEN')```



-
Evolution #3247 : API objet : objet_supprimer() + action unitaire associée "supprimer_objet"
12 mars 2021, par RastaPopoulos ♥qu’est-ce que ça fait sur les objets qui ont un statut ? ça delegue à instituer sauf si on a un flag $force ? ca supprime au premier coup ?
Je dirais que ça supprime, sinon on tourne en boucle. Cette API dans ce que je conçois pour l’instant, servirait à être appelée quand on veut explicitement réellement supprimer un contenu précis. Donc pour un objet qui n’a pas de statut, c’est depuis l’interface. Mais pour un objet avec statut, c’est quand la poubelle se vide par ex. Mais c’est bien quand quand on veut réellement le supprimer.
quid des liens etc.
Et du coup justement cette API sert à faire du nettoyage en cascade lié à la suppression : donc vider les liens morts quand on est capable de les connaitre. Pareil pour les logos. Et appeler un pipeline "pre_suppression" et "post_suppression" si d’autres fonctionnalités ont besoin de compléter ce nettoyage.