
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 (81)
-
Encodage et transformation en formats lisibles sur Internet
10 avril 2011MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...) -
Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)
31 mai 2013, parLorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
Description des scripts
Trois scripts Munin ont été développés :
1. mediaspip_medias
Un script de (...) -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...)
Sur d’autres sites (13615)
-
add watermark to video and image with input and output array bytes
7 octobre 2023, par JosivanI'm trying to add watermark to images and videos using ffmpeg. My files are stored on
AWS S3
, so they are byte arrays ([]byte
).

I need my input and output to be in a byte array and not saved to disk.


I tried something like the code and it didn't work :


buffFile := bytes.NewBuffer(file)
 out := &bytes.Buffer{}
 overlay := ffmpeg.Input("pipe:", ffmpeg.KwArgs{}).Filter("scale", ffmpeg.Args{"64:-1"}).WithInput(buffWatermark)
 err = ffmpeg.Filter(
 []*ffmpeg.Stream{
 ffmpeg.Input("pipe:", ffmpeg.KwArgs{}).WithInput(buffFile),
 overlay,
 }, "overlay", ffmpeg.Args{"10:10"}, ffmpeg.KwArgs{"enable": "gte(t,1)"}).
 Output("pipe:", ffmpeg.KwArgs{}).WithOutput(out).OverWriteOutput().ErrorToStdOut().Run()



-
Can we provide a raw stream of microphone data Unit8List as a Input to ffmpeg and save the output file as .wav or .mp3
21 juillet 2023, par UdayThe goal is to listen to a live microphone stream (don't want to store it locally)and try to pass it to the RTSP server or to a .mp3 or .wav file locally.


FFmpeg lib :ffmpeg_kit_flutter


Mic Stream lib : https://pub.dev/packages/mic_stream


stream = await MicStream.microphone(
 audioSource: AudioSource.DEFAULT,
 sampleRate: 44100,
 channelConfig: ChannelConfig.CHANNEL_IN_STEREO,
 audioFormat: AudioFormat.ENCODING_PCM_16BIT);

listener = stream!.listen((recordedData) async {
 await processData(recordedData);
});



And in Process data, I want to convert this raw Unit8List data to .mp3 or transmit it to rtsp server live.


any of the commands i want to execute


Future<void> processData(Uint8List data) async {
//var command = '-i "$data" -f rtsp -rtsp_transport tcp -y "$RtspUrl"';


//var command = '-i "$data" "/storage/emulated/0/Download/androidvideo.mp3"';

FFmpegKit.execute(command).then((session) async {
 final returnCode = await session.getReturnCode();
 final logs = await session.getLogs();
 for (var element in logs) {
 print('logs:${element.getMessage()}');
 }
 if (ReturnCode.isSuccess(returnCode)) {
 print('Command execution completed successfully.');
 } else if (ReturnCode.isCancel(returnCode)) {
 print('Command execution completed CANCEL.');
 listener.cancel();
 } else {
 print('Command execution completed ERROR.');
 listener.cancel();
 }
});
}
</void>


-
Python : FFmpeg Input/output error using discord.py
29 mai 2023, par PeeblYweebhere is my code :


async def direct(self, interaction: discord.Interaction, link: str):
 voice_client = get(self.bot.voice_clients, guild=interaction.guild)
 if voice_client is None:
 return await interaction.response.send_message("❌ Connect to a channel first.")

 await interaction.response.send_message("Using direct link.")
 voice_client.play(discord.FFmpegPCMAudio(link))
 return



here is my error :


[tls @ 0x557c73a19d00] Error in the pull function.
https://cdn.discordapp.com/attachments/1109998398150545410/1112473248505004142/portradio-_1_.ogg: Input/output error
2023-05-28 13:29:11 INFO discord.player ffmpeg process 1458408 successfully terminated with return code of 0.



this happens usually around half-way through whatever im playing consistently


i've tried setting arguments like :


ffmpeg_options = {'options': '-vn -dn -sn -ignore_unknown -fflags +discardcorrupt'}



from this other post
’corrupt input packet in stream 1’ error in FFMPEG
which fixed the error corrupt input packet but im still having trouble any ideas ?


goal is to get the audio playing to discord without having to store the file locally then playing it from there then discarding it after.