
Recherche avancée
Autres articles (60)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
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
Sur d’autres sites (6538)
-
Acurate cut mp4 avconv or ffmpeg
3 septembre 2014, par diogopmsavconv -y -i "/files/33.mp4" -ss 0.000000 -t 11.8 -async 1 -bsf h264_mp4toannexb -c copy "/encoder/live/bla-0.000000.ts"
avconv -y -i "/files/33.mp4" -ss 11.800000 -t 11.768254 -async 1 -bsf h264_mp4toannexb -c copy "/encoder/live/bla-11.800000.ts"
avconv -y -i "/files/33.mp4" -ss 23.568254 -t 11.888617 -async 1 -bsf h264_mp4toannexb -c copy "/encoder/live/bla-23.568254.ts"
avconv -y -i "/files/33.mp4" -ss 35.456871 -t 11.423129 -async 1 -bsf h264_mp4toannexb -c copy "/encoder/live/bla-35.456871.ts"
avconv -y -i "/files/33.mp4" -ss 46.880000 -t 12.075465 -async 1 -bsf h264_mp4toannexb -c copy "/encoder/live/bla-46.880000.ts"
avconv -y -i "/files/33.mp4" -ss 58.955465 -t 11.404535 -async 1 -bsf h264_mp4toannexb -c copy "/encoder/live/bla-58.955465.ts"
avconv -y -i "/files/33.mp4" -ss 70.360000 -t 12.094059 -async 1 -bsf h264_mp4toannexb -c copy "/encoder/live/bla-70.360000.ts"
avconv -y -i "/files/33.mp4" -ss 82.454059 -t 11.385941 -async 1 -bsf h264_mp4toannexb -c copy "/encoder/live/bla-82.454059.ts"
avconv -y -i "/files/33.mp4" -ss 93.840000 -t 12.112653 -async 1 -bsf h264_mp4toannexb -c copy "/encoder/live/bla-93.840000.ts"
avconv -y -i "/files/33.mp4" -ss 105.952653 -t 11.367347 -async 1 -bsf h264_mp4toannexb -c copy "/encoder/live/bla-105.952653.ts"
avconv -y -i "/files/33.mp4" -ss 117.320000 -t 12.131247 -async 1 -bsf h264_mp4toannexb -c copy "/encoder/live/bla-117.320000.ts"
avconv -y -i "/files/33.mp4" -ss 129.451247 -t 11.348753 -async 1 -bsf h264_mp4toannexb -c copy "/encoder/live/bla-129.451247.ts"
avconv -y -i "/files/33.mp4" -ss 140.800000 -t 12.149841 -async 1 -bsf h264_mp4toannexb -c copy "/encoder/live/bla-140.800000.ts"cat bla-*.ts > final.ts ---> this final movie is not fluid....What i need to do do fix it
Anyone can help with the final solution ?
-
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.


-
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