
Recherche avancée
Autres articles (39)
-
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Initialisation de MediaSPIP (préconfiguration)
20 février 2010, parLors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)
Sur d’autres sites (4860)
-
FFmpeg : use absolute path in "metadata=print:file="
27 octobre 2022, par Axel HerrmannI'm using FFmpeg to extract frames of a video and therefore I want to print the metadata of the video to a text file first (to get the
scene\
value of each frame).

This already works for me with something like :


ffmpeg -i input.mp4 -vf "select='gte(scene,0)',metadata=print:file=scenescores.txt" -an -f null -



Because I'm using all this inside of a Java application I want to pass an absolute path (of an temp directory) to
print:file=
instead of the currently relative one which will write it to the root directory of the project.

But when I try to specify an absolute path like
D:\scenescores.txt
I get the following error :

[metadata @ 00000203282ff0c0] Unable to parse option value "scenescores.txt" as boolean
[metadata @ 00000203282ff0c0] Error setting option direct to value scenescores.txt.
[Parsed_metadata_1 @ 00000203269bdf00] Error applying options to the filter.
[AVFilterGraph @ 0000020328020840] Error initializing filter 'metadata' with args 'print:file=D:\scenescores.txt'



Is there any way to achieve printing to an absolute path ? Am I missing some escape rules or something ?


-
Why does Bash eat the first letter from every second line of input when redirecting ffmpeg stderr to stdout ? [duplicate]
15 avril 2023, par TomaszWhen I run the following code, that is supposed to print out the filename and redirect ffmpeg's stderr information to stdout :


#!/bin/bash

while read -r filename; do
 echo $filename
 cmd_out=$(ffmpeg -i "$filename" -f null - 2>&1)
done < inputs.txt



With the following
inputs.txt
:

intro.mp3
silence.mp3
outro.mp3
intro2.mp3



I get


intro.mp3
ilence.mp3
outro.mp3
ntro2.mp3



Notice the first letter of the filename is missing in both the 2nd and 4th lines.


This happens only if the
inputs.txt
entries are existing audio files, and ffmpeg is used.

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