
Recherche avancée
Autres articles (56)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (9439)
-
How to combine multiple Audio Files into single using ffmpeg_kit_flutter
17 septembre 2023, par sunil kalwaniI want to play multiple Audio files in a sequence to form a question for the users.

For that, I tried theAudioPlay
package in the loop but they took some pause to play it in between which did not look good.

So as the alternative I want to combine audio files into a single file to play.

For that I have usedffmpeg_kit_flutter
package, but this returns 1 which means error in merging the files.

List<string> assetAudioFiles = [
 'audio/S1B_1.mp3', // Replace with the URLs or local paths of your audio files
 'audio/L2_31.mp3',
 'audio/S1B_2.mp3',
 'audio/L1s20.mp3',
];

Future> copyAssetFilesToStorage() async {
 List<string> localFilePaths = [];

 for (String assetFile in assetAudioFiles) {
 String localFilePath = await copyAssetToFile(assetFile);
 localFilePaths.add(localFilePath);
 }

 return localFilePaths;
}
 
Future<string> copyAssetToFile(String assetFilePath) async {
 final ByteData data = await rootBundle.load(assetFilePath);
 final Directory tempDir = await getTemporaryDirectory();
 final File tempFile =
 File('${tempDir.path}/${assetFilePath.split('/').last}');
 await tempFile.writeAsBytes(data.buffer.asUint8List(), flush: true);
 return tempFile.path;
}
 
Future<void> combineAudio(List<string> audioFiles) async {
 Directory tempDir = await getTemporaryDirectory();
 String tempPath = tempDir.path;

 // Create a temporary output file path
 String combinedAudioPath = '$tempPath/output.mp3';

 // Prepare the FFmpeg command to concatenate audio files
 String inputFiles = audioFiles.join('|');

 String command =
 'ffmpeg -i "concat:$inputFiles" -acodec copy $combinedAudioPath';

 var cmd2 =
 "-i ${audioFiles[0]} -i ${audioFiles[1]} -i ${audioFiles[2]} -filter_complex [0:0][1:0][2:0]concat=n=3:v=0:a=1[out] -map [out] $combinedAudioPath";
 
 FFmpegKit.execute(cmd2).then((session) async {
 print('session $session');
 final returnCode = await session.getReturnCode();
 print('returnCode $returnCode');

 if (ReturnCode.isSuccess(returnCode)) {
 print('Audio files merged successfully $returnCode');
 // SUCCESS
 } else if (ReturnCode.isCancel(returnCode)) {
 print('isCancel $returnCode');
 // CANCEL
 } else {`enter code here`
 print('Error merging audio files: $returnCode');
 // audioPlayer.play(DeviceFileSource(outputFilePath));
 }
 });
}
 
void combineAndPlayAudio() async {
 List<string> localFilePaths = await copyAssetFilesToStorage();
 await combineAudio(localFilePaths); //localFilePaths

 // Now you can play the combined audio using an audio player or other methods.
}
</string></string></void></string></string></string>


So can you please let me know how to combine multiple audio files into single or a way to play multiple audio in sequence ?


-
Anomalie #4087 : Division par 0 dans couleurèsaturation avec couleur FFFFFF en majuscule
3 février 2018, par jluc -Mais il y a aussi le cas où la couleur commence par #
_couleur_hex_to_dec enlève le # avant de faire son boulot
et donc pour ce test il faudrait AUSSI enlever le # s’il est làAu final, il serait plus simple de tester APRES la conversion et le calcul de max :
if (max==0) max=1 ; -
ffmpeg adelay audio out of sync
30 juillet 2022, par benyaminim using ffmpeg to merge/mix some audio files and put each audio stream at a specific time using adelay and im using amix to get a single stream at the end.


here is exactly what im doing :




ffmpeg -i ./recFiles/1659162768910.webm -i ./recFiles/1659162867370.webm -i ./recFiles/1659162981321.webm -i ./recFiles/1659163143645.webm -i ./recFiles/1659163404833.webm -i ./recFiles/1659162778530.webm -i ./recFiles/1659162827630.webm -i ./recFiles/1659162879510.webm -i ./recFiles/1659162895790.webm -i ./recFiles/1659162985833.webm -i ./recFiles/1659163160042.webm -i ./recFiles/1659163247185.webm -i ./recFiles/1659162821149.webm -i ./recFiles/1659162875630.webm -i ./recFiles/1659162995533.webm -i ./recFiles/1659163150526.webm -i ./recFiles/1659163159313.webm -i ./recFiles/1659163258913.webm -i ./recFiles/1659163279414.webm -i ./recFiles/1659163328226.webm -i ./recFiles/1659163381885.webm -i ./recFiles/1659163412389.webm -i ./recFiles/1659163454570.webm -filter_complex "[0]adelay=150:all=1[a0] ;[1]adelay=98642:all=1[a1] ;[2]adelay=212549:all=1[a2] ;[3]adelay=374873[a3] ;[4]adelay=636061:all=1[a4] ;[5]adelay=9801:all=1[a5] ;[6]adelay=58862:all=1[a6] ;[7]adelay=110738:all=1[a7] ;[8]adelay=127022:all=1[a8] ;[9]adelay=217061:all=1[a9] ;[10]adelay=391269:all=1[a10] ;[11]adelay=478413:all=1[a11] ;[12]adelay=52423:all=1[a12] ;[13]adelay=106861:all=1[a13] ;[14]adelay=226765[a14] ;[15]adelay=381758:all=1[a15] ;[16]adelay=390542:all=1[a16] ;[17]adelay=490141:all=1[a17] ;[18]adelay=510642:all=1[a18] ;[19]adelay=559458:all=1[a19] ;[20]adelay=613118:all=1[a20] ;[21]adelay=643621[a21] ;[22]adelay=685797[a22] ;[a0][a1][a2][a3][a4][a5][a6][a7][a8][a9][a10][a11][a12][a13][a14][a15][a16][a17][a18][a19][a20][a21][a22]amix=23,loudnorm[final]" -map "[final]" -metadata title="example.com - a title" ./recFiles/rec28314068fe97c6_1659163923005.webm




all the numbers are calculated and correct but it doesn't seems so in the output file.
some streams are out of sync ( sometimes all of them )


my ffmpeg version is :

ffmpeg version n4.4.1-2-gcc33e73618


can anyone please help me with this ? i can't see what's wrong.. it should work