
Recherche avancée
Autres articles (59)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)
Sur d’autres sites (10709)
-
How do I make my discord.py bot play a sound effect ?
15 mai 2024, par Kronik71My bot is supposed to be some sort of jeopardy quiz show type of bot. /joinvc makes the bot connect to the call, however, I cant seem to make the bot make noise when its in a vc. Here's some of the code :


@interactions.slash_command(
 name="press",
 description="Press the button"
)

async def press(ctx: interactions.ComponentContext):
 await ctx.send(f"{ctx.author.mention} has pressed the button")
 vc = ctx.author.voice.channel
 player = vc.create_ffmpeg_player('audiopath', after=lambda: print('done'))
 player.start()



But whenever I use the /press command, I get this error
AttributeError: 'GuildVoice' object has no attribute 'create_ffmpeg_player'


Is it something I did wrong with ffmpeg ?


I tried using a different way to write the code, basically grabbing the ffmpeg.exe path and the audio path, didn't work either. I just want the bot to play a small noise whenever someone uses /press command.


-
Transcode Video to play on a raspberry pi (3/4) with ffmpeg
20 octobre 2022, par exa.byteFor a while now I transcode videos to play on a raspberry pi 3 (or 4) but the performance was always really bad.
After a long process of trial and error I found a command which works good most of the time for the various inputs I get from the colleagues :


ffmpeg -i video_input.mp4 -c:v libvpx-vp9 -vf "scale=1280:720" -r 30 -b:v 1.0M -maxrate 1.2M -bufsize 1M video_output.mp4


Today I got a 4k Video, 1.7gb and about 3 minutes with 50fps.


The resulting video has 31MegaBytes. That alone was really concerning but the main problem is, the Video is not playing not even close to smoothly. It's a diashow.


I use a debian bullseye (headless) on an old Z440 machine. So only a CLI is available.
Can some please help me to find a codec which is suitable for playback on a rpi3 or rpi4 ?


I also tried h264_omx as the c:v command but it throws this error :


libOMX_Core.so not found
libOmxCore.so not found



I found posts around that this is already deprecated anyway. So I hope to
find a hero which knows how to transcode this kind of video.


FFMPEG is version 4.3


-
ffmpeg - 2nd audio stream added to video won't play
21 octobre 2022, par RafeI have a video that already contains an audio stream. I'm trying to add a second audio stream to that same video.


ffmpeg -i input1.mkv -i input2.mp3 -map 0 -map 1:a -c:v copy output.mp4


This seems very straightforward. But when I try to play the video, I can only hear one of the audio streams. This happens even if I reverse the order of the inputs, and regardless of whether I output to an mp4 or mkv file. It also happens if I map all of the streams from all of the input using
-map 0
and-map 1
, and it still persists if I use awav
file for the second input instead of anmp3


When I use
ffprobe
to examine the output video, it's clear that there are three streams :

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf59.27.100
 Duration: 00:05:05.09, start: 0.000000, bitrate: 9973 kb/s
 Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 3840x2160 [SAR 3:4 DAR 4:3], 11272 kb/s, 27.28 fps, 24 tbr, 16k tbn (default)
 Metadata:
 handler_name : VideoHandler
 vendor_id : [0][0][0][0]
 Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 131 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 vendor_id : [0][0][0][0]
 Stream #0:2[0x3](und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s
 Metadata:
 handler_name : SoundHandler
 vendor_id : [0][0][0][0]



How do I get this video to play both of the audio streams ? This seems so simple, and it's driving me crazy that I can't figure it out.