Recherche avancée

Médias (91)

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (9582)

  • File conversion to mp3 returning failure everytime using flutter package ffmpeg_kit_flutter

    6 novembre 2024, par Sanath balthar

    I 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 = [&#xA;              &#x27;-i&#x27;, &#x27;$filePath/998tts.wav&#x27;,&#xA;              &#x27;-c:a&#x27;, &#x27;mp3&#x27;,&#xA;              &#x27;$filePath/998.mp3&#x27;&#xA;            ];&#xA;&#xA; await FFmpegKitConfig.enableLogs();&#xA;            FFmpegKitConfig.enableLogCallback((log) =>print(&#x27;FFmpeg log: $log&#x27;));        &#xA;          FFmpegSession result = await FFmpegKit.executeWithArguments(command);&#xA;          dynamic resultcode = await result.getReturnCode();&#xA;          dynamic resultlogs = await result.getLogsAsString();&#xA;          // FFmpegKitConfig.setLogLevel(logLevel)&#xA;          if(ReturnCode.isSuccess(resultcode)){&#xA;          print("file saved after conversion at $filePath/998.mp3 and result : Success and logs : $resultlogs");&#xA;          }&#xA;          else{&#xA;            print("Result : failure and logs : $resultlogs");&#xA;          }&#xA;&#xA;Flutter doctor output:&#xA;[√] Flutter (Channel stable, 3.19.6, on Microsoft Windows [Version 10.0.22631.3296], locale en-IN)&#xA;[√] Windows Version (Installed version of Windows is version 10 or higher)&#xA;[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)&#xA;[√] Chrome - develop for the web&#xA;[!] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.5)&#xA;X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C&#x2B;&#x2B;"&#xA;workload, and include these components:&#xA;MSVC v142 - VS 2019 C&#x2B;&#x2B; x64/x86 build tools&#xA;- If there are multiple build tool versions available, install the latest&#xA;C&#x2B;&#x2B; CMake tools for Windows&#xA;Windows 10 SDK&#xA;[√] Android Studio (version 2023.2)&#xA;[√] VS Code (version 1.89.0)&#xA;[√] Connected device (3 available)&#xA;[√] Network resources&#xA;&#xA;! Doctor found issues in 1 category.&#xA;&#xA;</string>

    &#xA;

    Edit : Attaching error logs :

    &#xA;

    I/flutter (25865): Loading ffmpeg-kit-flutter.&#xA;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.&#xA;I/flutter (25865): Loaded ffmpeg-kit-flutter-android-audio-arm64-v8a-6.0.3.&#xA;I/flutter (25865): Result : failure and logs : ffmpeg version n6.0 Copyright (c) 2000-2023 the FFmpeg developers&#xA;I/flutter (25865):   built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)&#xA;&#xA;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&#x2B;&#x2B; --ranlib=aarch64-linux-android-ranlib --strip=aarch64-linux-android-strip --nm=aarch64-linux-android-nm --extra-libs=&#x27;-L/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm64/cpu-features/lib -lndk_compat&#x27; --disable-autodetect --enable-cross-compile &#xA;

    &#xA;

  • "C compiler not found" compiling NDK code Mac

    4 mai 2019, par Zia ur Rehman

    I am trying to compile ffmpeg wrapper GitHub link but getting issues in configuring it. In build_ffmpeg_for_android.sh file I have following lines at start and these are not working so far.

    PREFIX_DIR=$PWD/ffmpeg-android-sdk
    SYSROOT=$NDK_HOME/platforms/android-19/arch-arm/
    CROSS_COMPILE=$NDK_HOME/toolchains/arm-linux-androideabi-
    4.9/prebuilt/windows/bin/arm-linux-androideabi-
    EXTRA_CFLAGS="-I$PREFIX_DIR/include -DANDROID -DNDEBUG -Os -ffast-math -mfpu=neon-vfpv4 -mfloat-abi=softfp"
    EXTRA_LDFLAGS="-L$PREFIX_DIR/lib"

    #++ build x264 ++#
    if true; then
    if [ ! -d x264 ]; then
      git clone -b stable git://git.videolan.org/x264.git
    fi
    cd x264
    ./configure --prefix=$PREFIX_DIR \
    --enable-strip \
    --enable-static \
    --enable-pic \
    --disable-cli \
    --disable-opencl \
    --disable-avs \
    --host=arm-linux-androideabi \
    --cross-prefix=$CROSS_COMPILE \
    --sysroot=$SYSROOT

    Error that I am unable to get rid of is "C compiler not found". I have verified all paths mentioned at top of file and added missing paths to env too but still same issue. I have tried it in ubuntu too and facing same issue there. Many users faced similar issues but those fixes are not seems to be working for me. Any pointers will be helpful.

    FYI : I have not worked on NDK much therefore there might be something silly that i have missed.

  • "C compiler not found" compiling NDK code Mac

    4 mai 2019, par Zia ur Rehman

    I am trying to compile ffmpeg wrapper GitHub link but getting issues in configuring it. In build_ffmpeg_for_android.sh file I have following lines at start and these are not working so far.

    PREFIX_DIR=$PWD/ffmpeg-android-sdk
    SYSROOT=$NDK_HOME/platforms/android-19/arch-arm/
    CROSS_COMPILE=$NDK_HOME/toolchains/arm-linux-androideabi-
    4.9/prebuilt/windows/bin/arm-linux-androideabi-
    EXTRA_CFLAGS="-I$PREFIX_DIR/include -DANDROID -DNDEBUG -Os -ffast-math -mfpu=neon-vfpv4 -mfloat-abi=softfp"
    EXTRA_LDFLAGS="-L$PREFIX_DIR/lib"

    #++ build x264 ++#
    if true; then
    if [ ! -d x264 ]; then
      git clone -b stable git://git.videolan.org/x264.git
    fi
    cd x264
    ./configure --prefix=$PREFIX_DIR \
    --enable-strip \
    --enable-static \
    --enable-pic \
    --disable-cli \
    --disable-opencl \
    --disable-avs \
    --host=arm-linux-androideabi \
    --cross-prefix=$CROSS_COMPILE \
    --sysroot=$SYSROOT

    Error that I am unable to get rid of is "C compiler not found". I have verified all paths mentioned at top of file and added missing paths to env too but still same issue. I have tried it in ubuntu too and facing same issue there. Many users faced similar issues but those fixes are not seems to be working for me. Any pointers will be helpful.

    FYI : I have not worked on NDK much therefore there might be something silly that i have missed.