Recherche avancée

Médias (0)

Mot : - Tags -/content

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (66)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP 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 (...)

Sur d’autres sites (6538)

  • FFMPEG in Node.js : Conversion Failed

    11 juillet 2024, par cuneyttyler

    I have a small node.js web app. I use like this in a get request :

    


    app.get('/api/voice/:gender/:voice/:pitch', function(req, res){
        if(req.params.pitch == "1" || req.params.pitch == "1.0") {
            const file = "./voices/" + req.params.gender.toLowerCase() + "/" + req.params.voice + ".mp3"
            res.download(file);
            return
        }

        const inputFile = "./voices/" + req.params.gender.toLowerCase() + "/" + req.params.voice + ".mp3"
        const output_file = "./Audio/Temp/" + req.params.voice + ".mp3"
        ffmpeg()
                .input(inputFile)
                .audioCodec('pcm_s16le') // Set the audio codec to PCM with 16-bit depth
                .audioFrequency(44100) // Set the sample rate
                .on('error', function(err) {
                    console.error('Error while converting:', err);
                })
                .on('end', function() {
                    // res.download(output_file)
                })
                .save(output_file);

    });


    


    It gives Conversion Failed error :

    


    [2024-07-11T18:11:22.880Z] Error while converting: Error: ffmpeg exited with code 1: Conversion failed!&#xA;&#xA;    at ChildProcess.<anonymous> (d:\Dev\Anima\Client\node_modules\fluent-ffmpeg\lib\processor.js:180:22)&#xA;    at ChildProcess.emit (d:\Dev\Anima\Client\lib\events.js:519:28)&#xA;    at ChildProcess._handle.onexit (d:\Dev\Anima\Client\lib\internal\child_process.js:294:12)&#xA;    at Process.callbackTrampoline (node:internal/async_hooks:130:17) {stack: &#x27;Error: ffmpeg exited with code 1: Conversion …Trampoline (node:internal/async_hooks:130:17)&#x27;, message: &#x27;ffmpeg exited with code 1: Conversion failed!&#xA;&#x27;}&#xA;</anonymous>

    &#xA;

    When I use same code in a node.js desktop(.exe) app, it successfully runs. When I use it in an express.js app, it fails. Error message is not clear. What is the issue ?

    &#xA;

  • How to set min, max and avg bitrate or vbv delay using FFMPEG for livestream in Python ? [closed]

    10 mai 2024, par Tebyy

    I'm trying to set the minimum, maximum, and average bitrate or vbv delay for a WebM livestream in Python using FFMPEG, but it still shows "0" or "N/A". I've checked the documentation, and everything seems correct. I've also searched for solutions online, but none of them have solved my problem. Does anyone know what I might be doing wrong and how it should be done correctly ?

    &#xA;

    FFMPEG Command :

    &#xA;

    ffmpeg_command = [&#xA;        &#x27;ffmpeg&#x27;, &#x27;-f&#x27;, &#x27;rawvideo&#x27;, &#x27;-pix_fmt&#x27;, &#x27;bgr24&#x27;,&#xA;        &#x27;-s:v&#x27;, &#x27;1920x1080&#x27;, &#x27;-r&#x27;, &#x27;60&#x27;,&#xA;        &#x27;-i&#x27;, &#x27;-&#x27;,&#xA;        # &#x27;-an&#x27;,  # Turn off the audio track&#xA;        &#x27;-c:v&#x27;, &#x27;libvpx-vp9&#x27;, &#x27;-g&#x27;, &#x27;60&#x27;, &#x27;-keyint_min&#x27;, &#x27;60&#x27;,&#xA;        &#x27;-b:v&#x27;, &#x27;6M&#x27;, &#x27;-minrate&#x27;, &#x27;4M&#x27;, &#x27;-maxrate&#x27;, &#x27;12M&#x27;, &#x27;-bufsize&#x27;, &#x27;8M&#x27;,&#xA;        &#x27;-crf&#x27;, &#x27;0&#x27;, &#x27;-deadline&#x27;, &#x27;realtime&#x27;, &#x27;-tune&#x27;, &#x27;psnr&#x27;, &#x27;-quality&#x27;, &#x27;good&#x27;,&#xA;        &#x27;-tile-columns&#x27;, &#x27;6&#x27;, &#x27;-threads&#x27;, &#x27;16&#x27;, &#x27;-lag-in-frames&#x27;, &#x27;16&#x27;,&#xA;        &#x27;-f&#x27;, &#x27;webm&#x27;, &#x27;-&#x27;&#xA;    ]&#xA;

    &#xA;

    PyCharm Console Logs :

    &#xA;

    ffmpeg version N-115112-g39ce8a9695-20240507 Copyright (c) 2000-2024 the FFmpeg developers&#xA;  built with gcc 13.2.0 (crosstool-NG 1.26.0.65_ecc5e41)&#xA;  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --enable-libdvdread --enable-libdvdnav --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-libs=-lgomp --extra-ldflags=-pthread --extra-ldexeflags= --cc=x86_64-w64-mingw32-gcc --cxx=x86_64-w64-mingw32-g&#x2B;&#x2B; --ar=x86_64-w64-mingw32-gcc-ar --ranlib=x86_64-w64-mingw32-gcc-ranlib --nm=x86_64-w64-mingw32-gcc-nm --extra-version=20240507&#xA;  libavutil      59. 17.100 / 59. 17.100&#xA;  libavcodec     61.  5.103 / 61.  5.103&#xA;  libavformat    61.  3.103 / 61.  3.103&#xA;  libavdevice    61.  2.100 / 61.  2.100&#xA;  libavfilter    10.  2.101 / 10.  2.101&#xA;  libswscale      8.  2.100 /  8.  2.100&#xA;  libswresample   5.  2.100 /  5.  2.100&#xA;  libpostproc    58.  2.100 / 58.  2.100&#xA;Input #0, rawvideo, from &#x27;fd:&#x27;:&#xA;  Duration: N/A, start: 0.000000, bitrate: 2985984 kb/s&#xA;  Stream #0:0: Video: rawvideo (BGR[24] / 0x18524742), bgr24, 1920x1080, 2985984 kb/s, 60 tbr, 60 tbn&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (rawvideo (native) -> vp9 (libvpx-vp9))&#xA;[libvpx-vp9 @ 000002972f387100] v1.14.0&#xA;Output #0, webm, to &#x27;pipe:&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf61.3.103&#xA;  Stream #0:0: Video: vp9, gbrp(pc, gbr/unknown/unknown, progressive), 1920x1080, q=2-31, 6000 kb/s, 60 fps, 1k tbn&#xA;      Metadata:&#xA;        encoder         : Lavc61.5.103 libvpx-vp9&#xA;      Side data:&#xA;        cpb: bitrate max/min/avg: 0/0/0 buffer size: 8000000 vbv_delay: N/A&#xA;

    &#xA;

  • Unable find an ffmpeg binary for your Android system

    22 juillet 2024, par Ayush Thakur

    Working on a project where I need to use FFmpeg library in Kotlin to work on some audio files. However I'm unable to initialize the ffmpeg library itself.

    &#xA;

    this is the error I'm getting

    &#xA;

    Could not find an ffmpeg binary for your Android system. Did you forget calling: &#x27;new AndroidFFMPEGLocator(this);&#x27; ?&#xA;2024-07-22 18:48:33.910 11800-11800 PipeDecoder             com.example.sangeet                  E  Tried to unpack a statically compiled ffmpeg binary for your architecture to: /data/user/0/com.example.sangeet/cache/ffmpeg&#xA;2024-07-22 18:48:33.923 11800-11800 AndroidRuntime          com.example.sangeet                  E  FATAL EXCEPTION: main (Ask Gemini)&#xA;                                                                                                    Process: com.example.sangeet, PID: 11800&#xA;                                                                                                    java.lang.Error: Decoding via a pipe will not work: Could not find an ffmpeg binary for your system&#xA;

    &#xA;

    @HiltAndroidApp&#xA;class Sangeet: Application(){&#xA;    override fun onCreate() {&#xA;        super.onCreate()&#xA;        provideFirebaseApp(this)&#xA;        FFmpegKitConfig.setLogLevel(Level.AV_LOG_INFO)&#xA;        FFmpegKitConfig.enableLogCallback { Log.d("ffmpeg",it.message) }&#xA;        initializeFFmpegKit()&#xA;    }&#xA;    private fun initializeFFmpegKit() {&#xA;        // This method should be sufficient to ensure FFmpegKit is ready to use&#xA;        val ffmpegSession = FFmpegKit.execute("ffmpeg -version")&#xA;        if (ReturnCode.isSuccess(ffmpegSession.returnCode)) {&#xA;            Log.d("FFmpeg", "FFmpeg is ready to use.")&#xA;        } else {&#xA;            Log.e("FFmpeg", "Failed to initialize FFmpeg: ${ffmpegSession.failStackTrace}")&#xA;            initializeFFmpegBinary()&#xA;        }&#xA;    }&#xA;    private fun initializeFFmpegBinary() {&#xA;        val ffmpegBinaryPath = filesDir.absolutePath &#x2B; "/ffmpeg"&#xA;        val binaryFile = File(ffmpegBinaryPath)&#xA;        if (!binaryFile.exists()) {&#xA;            Log.e("FFmpeg", "FFmpeg binary not found at $ffmpegBinaryPath")&#xA;            // Copy or download the FFmpeg binary to this path&#xA;        } else {&#xA;            Log.d("FFmpeg", "FFmpeg binary found at $ffmpegBinaryPath")&#xA;        }&#xA;    }&#xA;}&#xA;

    &#xA;

    Tried using AndroidFFMPEGLocator(this) ; as suggested by the compiler in my code but unknown reference error is coming for the above line of code.

    &#xA;

    Also tried using FFmpegKit.init(this) function but init is also not being recognised by the compiler

    &#xA;