
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (20)
-
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 -
D’autres logiciels intéressants
12 avril 2011, parOn ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
Videopress
Site Internet : (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (5005)
-
Can't convert video with cuda after updating ffmpeg
8 avril 2024, par Peppei've used this command sometimes to convert 4k video into 1080p without problem with tool "ffmpeg batch" and ffmpeg 5.1 ? "2022-08-10-git-8fc7f0fdec-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers built with gcc 12.1.0 (Rev2, Built by MSYS2 project)" :



-map 0 -map -0:t -filter_complex "scale_cuda=1920:1080:format=yuv420p:interp_algo=lanczos,hwdownload" -fps_mode:v passthrough -c:v h264_nvenc -preset 18 -profile:v high -level 4.1 -b:v 13000K -rc cbr -c:a copy -c:s copy



this with pre-input "-hwaccell cuvid"


Now if i try to to the same with latest version of ffmpeg (6.1.1) it don't work. I've tried to change the pre-input with "-hwaccel cuda" but still nothing, it give me error "Cannot find a matching stream for unlabeled input pad scale_cuda:default".


If i try to add [v:0] before 'scale_cuda', i get this error (pgs subs error was present also before editing command) :


[matroska,webm @ 0000025b18315680] Invalid Block Addition value 0x0 for unknown Block Addition Mapping type 68766345, name ""
[matroska,webm @ 0000025b18315680] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 0000025b18315680] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Multiple -hwaccel options specified for stream 0, only the last option '-hwaccel cuda' will be used.
Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scale_0'
[fc#0 @ 0000025b18311c80] Error reinitializing filters!
[fc#0 @ 0000025b18311c80] Task finished with error code: -40 (Function not implemented)
[fc#0 @ 0000025b18311c80] Terminating thread with return code -40 (Function not implemented)
[vost#0:0/h264_nvenc @ 0000025b183319c0] Could not open encoder before EOF
[vost#0:0/h264_nvenc @ 0000025b183319c0] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_nvenc @ 0000025b183319c0] Terminating thread with return code -22 (Invalid argument)
[h264_nvenc @ 0000025b183692c0] 10 bit encode not supported
[h264_nvenc @ 0000025b183692c0] Provided device doesn't support required NVENC features
[vost#0:1/h264_nvenc @ 0000025b18330d80] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:1 @ 0000025b18340900] Error sending frames to consumers: Function not implemented
[vf#0:1 @ 0000025b18340900] Task finished with error code: -40 (Function not implemented)
[vf#0:1 @ 0000025b18340900] Terminating thread with return code -40 (Function not implemented)
[vost#0:1/h264_nvenc @ 0000025b18330d80] Could not open encoder before EOF
[vost#0:1/h264_nvenc @ 0000025b18330d80] Task finished with error code: -22 (Invalid argument)
[vost#0:1/h264_nvenc @ 0000025b18330d80] Terminating thread with return code -22 (Invalid argument)
[out#0/matroska @ 0000025b18569c40] Nothing was written into output file, because at least one of its streams received no packets.
frame= 0 fps=0.0 q=0.0 Lq=0.0 size= 0KiB time=N/A bitrate=N/A speed=N/A



of this if I try to use -vf instead of the "filter_complex" :


[matroska,webm @ 000001814b872040] Invalid Block Addition value 0x0 for unknown Block Addition Mapping type 68766345, name ""
[matroska,webm @ 000001814b872040] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 000001814b872040] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Multiple -hwaccel options specified for stream 0, only the last option '-hwaccel cuda' will be used.
Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scale_0'
[vf#0:0 @ 000001814b895fc0] Error reinitializing filters!
[vf#0:0 @ 000001814b895fc0] Task finished with error code: -40 (Function not implemented)
[vf#0:0 @ 000001814b895fc0] Terminating thread with return code -40 (Function not implemented)
[vost#0:0/h264_nvenc @ 000001814b892780] Could not open encoder before EOF
[vost#0:0/h264_nvenc @ 000001814b892780] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_nvenc @ 000001814b892780] Terminating thread with return code -22 (Invalid argument)
[out#0/matroska @ 000001814b88e240] Nothing was written into output file, because at least one of its streams received no packets.
frame= 0 fps=0.0 q=0.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A 



Can someone tell me the correct way to do it now with an rtx 4090 ?


-
File conversion to mp3 returning failure everytime using flutter package ffmpeg_kit_flutter
6 novembre 2024, par Sanath baltharI am trying to convert a .wav audio file generated from a flutter's text to speech package - "flutter_tts" to mp3 file but it is failing everytime.
I have written the below code for file conversion. I have imported the package ffmpeg_kit_flutter. It doesnt even show why the conversion is failing.
I have looked up in stackoverflow and other sites but could not find any relevant solutions. I am using vscode as editor. I have attached flutter doctor output below as well. Could anyone please guide me ? Let me know if you need more information.


List<string> command = [
 '-i', '$filePath/998tts.wav',
 '-c:a', 'mp3',
 '$filePath/998.mp3'
 ];

 await FFmpegKitConfig.enableLogs();
 FFmpegKitConfig.enableLogCallback((log) =>print('FFmpeg log: $log')); 
 FFmpegSession result = await FFmpegKit.executeWithArguments(command);
 dynamic resultcode = await result.getReturnCode();
 dynamic resultlogs = await result.getLogsAsString();
 // FFmpegKitConfig.setLogLevel(logLevel)
 if(ReturnCode.isSuccess(resultcode)){
 print("file saved after conversion at $filePath/998.mp3 and result : Success and logs : $resultlogs");
 }
 else{
 print("Result : failure and logs : $resultlogs");
 }

Flutter doctor output:
[√] Flutter (Channel stable, 3.19.6, on Microsoft Windows [Version 10.0.22631.3296], locale en-IN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[!] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.5)
X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++"
workload, and include these components:
MSVC v142 - VS 2019 C++ x64/x86 build tools
- If there are multiple build tool versions available, install the latest
C++ CMake tools for Windows
Windows 10 SDK
[√] Android Studio (version 2023.2)
[√] VS Code (version 1.89.0)
[√] Connected device (3 available)
[√] Network resources

! Doctor found issues in 1 category.

</string>


Edit : Attaching error logs :


I/flutter (25865): Loading ffmpeg-kit-flutter.
D/ffmpeg-kit-flutter(25865): FFmpegKitFlutterPlugin com.arthenica.ffmpegkit.flutter.FFmpegKitFlutterPlugin@a5d9788 started listening to events on io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler$EventSinkImplementation@4cfb5f2.
I/flutter (25865): Loaded ffmpeg-kit-flutter-android-audio-arm64-v8a-6.0.3.
I/flutter (25865): Result : failure and logs : ffmpeg version n6.0 Copyright (c) 2000-2023 the FFmpeg developers
I/flutter (25865): built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)

I/flutter (25865): configuration: --cross-prefix=aarch64-linux-android- --sysroot=/Users/sue/Library/Android/sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/darwin-x86_64/sysroot --prefix=/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --target-os=android --enable-neon --enable-asm --enable-inline-asm --ar=aarch64-linux-android-ar --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang++ --ranlib=aarch64-linux-android-ranlib --strip=aarch64-linux-android-strip --nm=aarch64-linux-android-nm --extra-libs='-L/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm64/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile 



-
ffmpeg trouble with NetMaui and Android [closed]
15 juin 2024, par Billy VanegasI find myself in a following predicament. While I work with Visual Studio 2022, ffmpeg performs flawlessly on Windows platform. However, I'm encountering difficulties when attempting to replicate this functionality on Android. Despite exploring NuGet packages like FFMpegCore, which seem to be ffmpeg wrappers but lack ffmpeg itself, I'm still struggling to find a clear path forward. I've even tried integrating ffmpeg-kit for Android as per the instructions, only to face repeated failures and a sense of confusion. I must admit my puzzlement : why isn't there a straightforward method to seamlessly add ffmpeg to a .NET MAUI project that functions consistently across both iOS and Android platforms ?


I want to convert MP3 files to WAV format using FFmpeg on the Android platform within a .NET MAUI project.


I am using the FFmpegCore library and have downloaded the FFmpeg binaries from the official FFmpeg website. However, I encountered issues when attempting to pass the binary folder on the emulator, when I try to pass it, I get
permission denied
in working folder :
/data/user/0/com.companyname.projectname/files/ffmpeg
on this part of code :

await FFMpegArguments
 .FromFileInput(mp3Path)
 .OutputToFile(wavPath, true, options => options
 .WithAudioCodec("pcm_s16le")
 .WithAudioSamplingRate(44100)
 .WithAudioBitrate(320000)
 )
 .ProcessAsynchronously();



This is the
AndroidManifest.xml


<?xml version="1.0" encoding="utf-8"?>
<manifest>
 <application></application>
 
 
 
 
</manifest>



private async Task ConvertMp3ToWav(string mp3Path, string wavPath)
 {
 try
 {
 var directory = Path.GetDirectoryName(wavPath);
 if (!Directory.Exists(directory))
 Directory.CreateDirectory(directory!);
 if (!File.Exists(wavPath))
 Console.WriteLine($"File not found {wavPath}, creating empty file.");
 using var fs = new FileStream(wavPath, FileMode.CreateNew);
 if (!File.Exists(mp3Path))
 Console.WriteLine($"File not found {mp3Path}");

 string? ffmpegBinaryPath = await ExtractFFmpegBinaries(Platform.AppContext);
 FFMpegCore.GlobalFFOptions.Configure(new FFOptions { BinaryFolder = Path.GetDirectoryName(ffmpegBinaryPath!)! });

 await FFMpegArguments
 .FromFileInput(mp3Path)
 .OutputToFile(wavPath, true, options => options
 .WithAudioCodec("pcm_s16le")
 .WithAudioSamplingRate(44100)
 .WithAudioBitrate(320000)
 )
 .ProcessAsynchronously();
 }
 catch (Exception ex)
 {
 Console.WriteLine($"An error occurred during the conversion process: {ex.Message}");
 throw;
 }
 }



private async Task<string> ExtractFFmpegBinaries(Context context)
 {
 var architectureFolder = "x86"; // "armeabi-v7a";
 var ffmpegBinaryName = "ffmpeg"; 
 var ffmpegBinaryPath = Path.Combine(context.FilesDir!.AbsolutePath, ffmpegBinaryName);
 var tempFFMpegFileName = Path.Combine(FileSystem.AppDataDirectory, ffmpegBinaryName);

 if (!File.Exists(ffmpegBinaryPath))
 {
 try
 {
 var assetPath = $"Libs/{architectureFolder}/{ffmpegBinaryName}";
 using var assetStream = context.Assets!.Open(assetPath);
 
 await using var tempFFMpegFile = File.OpenWrite(tempFFMpegFileName);
 await assetStream.CopyToAsync(tempFFMpegFile);

 //new MainActivity().RequestStoragePermission();
 Java.Lang.Runtime.GetRuntime()!.Exec($"chmod 755 {tempFFMpegFileName}");
 }
 catch (Exception ex)
 {
 Console.WriteLine($"An error occurred while extracting FFmpeg binaries: {ex.Message}");
 throw;
 }
 }
 else
 {
 Console.WriteLine($"FFmpeg binaries already extracted to: {ffmpegBinaryPath}");
 }

 return tempFFMpegFileName!;
 }
</string>