
Recherche avancée
Médias (2)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (51)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.
Sur d’autres sites (8972)
-
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.