
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (80)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (7057)
-
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.