
Recherche avancée
Autres articles (57)
-
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 (...) -
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 -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (8003)
-
How to set specific minimal bitrate of video with light_compressor package in Flutter ?
21 juin 2023, par Giant BrainI tried using flutter's light_compressor package to compress a video I shot with my phone or downloaded from YouTube.


I refer to the article below.
https://morioh.com/p/ac6f0d2c176b
In this article, the minimum bit rate can be set and the default value is 2mbps.


However, in the sample code, only the flag isMinBitrateCheckEnabled exists, and there is no parameter to set a specific bit rate.


How do I compress the video to my desired bitrate ?


Below is a part of the sample code.


import 'package:light_compressor/light_compressor.dart';


final LightCompressor _lightCompressor = LightCompressor();
final dynamic response = await _lightCompressor.compressVideo(
 path: _sourcePath,
 destinationPath: _destinationPath,
 videoQuality: VideoQuality.medium,
 isMinBitrateCheckEnabled: false,
 frameRate: 24 /* or ignore it */);



-
What is the easiest way to merge GIF and Audio files into one Video file using FFMPEG
7 avril 2021, par Mouaad Abdelghafour AITALII have an audio file and GIF, I would like to merge both of them into one video file, I've done the following :


Converting GIF into Video


Looping the output video X time
X = (int) (audioDuration / 1000.0) / gifDuration;


Merge the final video with the audio


FFmpeg commands :


Converting GIF into Video


-f gif -y -i input.gif -c:a copy -c:v libx265 -crf 26 -preset ultrafast -s 1080*1920 -pix_fmt yuv420p -map 0 gif2video.mp4



Looping the output video X time


-y -stream_loop " + X + " -i gif2video.mp4 -c copy looped_output.mp4



Merge the final video with the audio :


-y -i looped_output.mp4 -i audio.mp3 -c:v copy -c:a aac final_output.mp4



The above command works, but sometimes the output video export with one GIF frame (no animation) and audio


-
FFmpegKitFlutter, Error : MissingPluginException(No implementation found for method ffmpegSession on channel flutter.arthenica.com/ffmpeg_kit)
12 février, par 7SolomonI Have this simple Flutter function, to compress Audio Files


import 'package:ffmpeg_kit_flutter/ffmpeg_kit.dart';
import 'package:ffmpeg_kit_flutter/return_code.dart';


Future<string> compressAudio(String inputPath) async {
 try {
 // ...
 final command = '-y -i "$inputPath" ' // Input file
 '-af "loudnorm=I=-16:TP=-1.5:LRA=11,' // Loudness normalization
 'acompressor=threshold=${_config['threshold_db']}:'
 'ratio=${_config['ratio']}:'
 'attack=${_config['attack']}:'
 'release=${_config['release']},'
 'highpass=f=20,lowpass=f=20000" ' // Audio filters
 '-ar 44100 ' // Sample rate
 '-b:a 128k ' // Bitrate
 '-codec:a libmp3lame ' // MP3 encoder
 '-q:a 2 ' // Quality setting for LAME (0-9, lower is better)
 '-map_metadata 0 ' // Copy metadata
 '"$outputPath"'; // Output file

 // Execute FFmpeg command
 final session = await FFmpegKit.execute(command);
 final returnCode = await session.getReturnCode();
 final logs = await session.getLogs();
 print('FFmpeg logs: $logs');

 if (ReturnCode.isSuccess(returnCode)) {
 return outputFileName;
 } else {
 final logs = await session.getLogs();
 throw Exception(
 'FFmpeg process failed with code $returnCode\nLogs: $logs');
 }
 } catch (e, stackTrace) {
 print('Error: $e');
 print('Stack trace: $stackTrace');
 throw Exception('Failed to compress audio: $e\nStack trace: $stackTrace');
 }
 }
</string>


And I get this error

Error: MissingPluginException(No implementation found for method ffmpegSession on channel flutter.arthenica.com/ffmpeg_kit)


This is the Stacktrace


flutter: Error: MissingPluginException(No implementation found for method ffmpegSession on channel flutter.arthenica.com/ffmpeg_kit)
flutter: Stack trace: #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
<asynchronous suspension="suspension">
#1 AbstractSession.createFFmpegSession (package:ffmpeg_kit_flutter/abstract_session.dart:71:11)
<asynchronous suspension="suspension">
#2 FFmpegSession.create (package:ffmpeg_kit_flutter/ffmpeg_session.dart:40:21)
<asynchronous suspension="suspension">
#3 FFmpegKit.executeWithArguments (package:ffmpeg_kit_flutter/ffmpeg_kit.dart:44:9)
<asynchronous suspension="suspension">
#4 FileProcessor.compressAudio (package:predigt_upload_fl/file.dart:182:23)
<asynchronous suspension="suspension">
#5 _DetailPageState._handleSubmit (package:predigt_upload_fl/GUIs/LiveStreamDetailPage.dart:334:30)
<asynchronous suspension="suspension">


══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
flutter.arthenica.com/ffmpeg_kit_event)

When the exception was thrown, this was the stack:
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
<asynchronous suspension="suspension">
#1 EventChannel.receiveBroadcastStream.<anonymous closure="closure"> (package:flutter/src/services/platform_channel.dart:676:9) 
<asynchronous suspension="suspension">
</asynchronous></anonymous></asynchronous></asynchronous></asynchronous></asynchronous></asynchronous></asynchronous></asynchronous>


And i think this comes from abstract class FFmpegKitPlatform extends PlatformInterface inside ffmpeg_kit_flutter_platform_interface.dart, because in there are a lot of functions that are not Implemented.


This happens not just because of one functions :


// ...
 final logLevel = await _getLogLevel();
 print('logLevel: $logLevel');
 if (logLevel != null) {
 FFmpegKitConfig.setLogLevel(logLevel);
 }
 final version = FFmpegKitFactory.getVersion();
 final platform = await FFmpegKitConfig.getPlatform();
 final arch = await ArchDetect.getArch();
 final packageName = await Packages.getPackageName();
 await FFmpegKitConfig.enableRedirection();
 final isLTSPostfix = (await FFmpegKitConfig.isLTSBuild()) ? "-lts" : "";
 // ...




All of these Functions and more in FFmpegKitInitializer are not Implemented. So im pretty sure im missing something else here than just some outdated Version.


These are my Dependencies :


dependencies:
 flutter:
 sdk: flutter
 path_provider: ^2.0.15
 just_audio: ^0.9.34
 file_picker: ^5.3.1
 path: ^1.8.3
 id3_codec: ^1.0.3
 ftpconnect: ^2.0.5
 http: ^1.1.0
 shared_preferences: ^2.2.0
 html: ^0.15.5
 youtube_explode_dart: ^2.3.9
 intl: ^0.19.0
 ffmpeg_kit_flutter: ^6.0.3



Im pretty new to Flutter Development so Im not quiete sure how to go about this Problem because every other FFmpeg Wrapper also has some problems that i couldnt fix.


If you need any other Information feel free to ask me, because I also dont know what someone would need to go fix the problem.