Recherche avancée

Médias (91)

Autres articles (54)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On 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 : (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

Sur d’autres sites (8375)

  • 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;

  • webm video - it can not be copy to cut a correct time part for ffmpeg command(without re-encode) [closed]

    15 mars 2024, par DanielHsu

    Command Goal :

    &#xA;

      &#xA;
    1. fast copy video's part
    2. &#xA;

    3. no re-encode with libvpx
    4. &#xA;

    &#xA;

    Linux command below :&#xA;ffmpeg -ss 00:01:00 -to 00:02:00 -i input.webm -c copy output.webm

    &#xA;

    command's process details :

    &#xA;

    ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers   built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)   configuration:&#xA;--enable-libvpx   libavutil      58. 29.100 / 58. 29.100   libavcodec     60. 31.102 / 60. 31.102   libavformat    60. 16.100 / 60. 16.100   libavdevice    60.  3.100 / 60.  3.100   libavfilter     9. 12.100 / &#xA;9. 12.100   libswscale      7.  5.100 /  7.  5.100   libswresample   4. 12.100 /  4. 12.100 Input #0, matroska,webm, from &#x27;input.webm&#x27;:   Metadata:&#xA;    title           : FFmpeg&#xA;    ENCODER         : Lavf58.29.100   Duration: 00:06:04.43, start: 0.000000, bitrate: 2487 kb/s   Stream #0:0: Video: vp8, yuv420p(tv, bt470bg/unknown/unknown, progressive), 1280x720, SAR 1:1 DAR 16:9, 1k tbr, 1k tbn (default)&#xA;    Metadata:&#xA;      DURATION        : 00:06:04.432000000 Output #0, webm, to &#x27;output.webm&#x27;:   Metadata:&#xA;    title           : FFmpeg&#xA;    encoder         : Lavf60.16.100   Stream #0:0: Video: vp8, yuv420p(tv, bt470bg/unknown/unknown, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 1k tbr, 1k tbn (default)&#xA;    Metadata:&#xA;      DURATION        : 00:06:04.432000000 Stream mapping:   Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [out#0/webm @ 0x5609ee9bb840] video:35912kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.069370% size=   35937kB time=00:00:59.96 bitrate=4909.2kbits/s speed= 211x&#xA;

    &#xA;

    command usage's result :&#xA;output.webm always start from input.webm's 00:00:00 to end input.webm's 00:01:00&#xA;(it should be start from input.webm's 00:01:00 to end input.webm's 00:02:00 )

    &#xA;

    input.webm format details from mediainfo tool :

    &#xA;

    &#xA;

    General Count : 331 Count of stream&#xA;of this kind : 1 Kind of stream
    &#xA; : General Kind of stream : General Stream&#xA;identifier : 0 Count of video streams
    &#xA; : 1 Video_Format_List : VP8&#xA;Video_Format_WithHint_List : VP8 Codecs Video
    &#xA; : VP8 Complete name :&#xA;pure_film/65ea641a4075c92236151349_video.webm Folder name
    &#xA; : pure_film File name extension :&#xA;65ea641a4075c92236151349_video.webm File name
    &#xA; : 65ea641a4075c92236151349_video File extension
    &#xA; : webm Format : WebM Format
    &#xA; : WebM Format/Url :&#xA;http://www.webmproject.org/ Format/Extensions usually used :&#xA;webm Commercial name : WebM Format version
    &#xA; : Version 2 Internet media type : video/webm File&#xA;size : 113301943 File size
    &#xA; : 108 MiB File size : 108 MiB File size&#xA; : 108 MiB File size : 108 MiB File size&#xA; : 108.1 MiB Duration : 364432 Duration&#xA; : 6 min 4 s Duration : 6 min 4 s 432&#xA;ms Duration : 6 min 4 s Duration
    &#xA; : 00:06:04.432 Duration : 00:06:04.432&#xA;Overall bit rate : 2487201 Overall bit rate
    &#xA; : 2 487 kb/s Stream size : 4801069 Stream&#xA;size : 4.58 MiB (4%) Stream size
    &#xA; : 5 MiB Stream size : 4.6 MiB Stream size&#xA; : 4.58 MiB Stream size : 4.579 MiB Stream&#xA;size : 4.58 MiB (4%) Proportion of this&#xA;stream : 0.04237 IsStreamable
    &#xA; : Yes Title : FFmpeg Movie name
    &#xA; : FFmpeg File last modification date : UTC 2024-03-08&#xA;01:41:47 File last modification date (local) : 2024-03-08&#xA;09:41:47 Writing application : Lavf58.29.100&#xA;Writing application : Lavf58.29.100 Writing&#xA;library : Lavf58.29.100 Writing library
    &#xA; : Lavf58.29.100

    &#xA;

    Video Count : 377 Count of stream&#xA;of this kind : 1 Kind of stream
    &#xA; : Video Kind of stream : Video Stream&#xA;identifier : 0 StreamOrder
    &#xA; : 0 ID : 1 ID
    &#xA; : 1 Unique ID : 1 Format
    &#xA; : VP8 Format : VP8 Format/Url
    &#xA; : http://www.webmproject.org/ Commercial name
    &#xA; : VP8 Codec ID : V_VP8 Codec ID/Url
    &#xA; : http://www.webmproject.org/ Duration
    &#xA; : 364432.000000 Duration : 6 min 4 s&#xA;Duration : 6 min 4 s 432 ms Duration
    &#xA; : 6 min 4 s Duration : 00:06:04.432&#xA;Duration : 00:06:04.432 Bit rate
    &#xA; : 2381808 Bit rate : 2 382 kb/s Width&#xA; : 1280 Width : 1 280 pixels Height&#xA; : 720 Height : 720 pixels Pixel&#xA;aspect ratio : 1.000 Display aspect ratio
    &#xA; : 1.778 Display aspect ratio : 16:9 Frame rate&#xA;mode : VFR Frame rate mode
    &#xA; : Variable Color space : YUV Compression&#xA;mode : Lossy Compression mode
    &#xA; : Lossy Delay : 0 Delay
    &#xA; : 00:00:00.000 Delay, origin : Container&#xA;Delay, origin : Container Stream size
    &#xA; : 108500874 Stream size : 103 MiB (96%)&#xA;Stream size : 103 MiB Stream size
    &#xA; : 103 MiB Stream size : 103 MiB Stream&#xA;size : 103.5 MiB Stream size
    &#xA; : 103 MiB (96%) Proportion of this stream : 0.95763&#xA;Default : Yes Default
    &#xA; : Yes Forced : No Forced
    &#xA; : No colour_description_present : Yes&#xA;colour_description_present_Source : Container Color range
    &#xA; : Limited colour_range_Source : Container Matrix&#xA;coefficients : BT.470 System B/G&#xA;matrix_coefficients_Source : Container

    &#xA;

    &#xA;

    How to make the output.webm be in correct time range(00:01:00 00:02:00) ????

    &#xA;

  • Empty audio backends for torchaudio list audio backends, with ffmpeg installed on system libraries [closed]

    28 mars, par Alberto Agudo Dominguez

    I installed torchaudio 2.5.1 and a system install of ffmpeg on Windows and get :

    &#xA;

    PS C:\Users\> ffmpeg -version&#xA;ffmpeg version 2025-01-05-git-19c95ecbff-essentials_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers&#xA;built with gcc 14.2.0 (Rev1, Built by MSYS2 project)&#xA;configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband&#xA;libavutil      59. 54.101 / 59. 54.101&#xA;libavcodec     61. 31.100 / 61. 31.100&#xA;libavfilter    10.  6.101 / 10.  6.101&#xA;libswresample   5.  4.100 /  5.  4.100&#xA;libpostproc    58.  4.100 / 58.  4.100&#xA;&#xA;PS C:\Users\> python&#xA;Python 3.12.5 (tags/v3.12.5:ff3bc82, Aug  6 2024, 20:45:27) [MSC v.1940 64 bit (AMD64)] on win32&#xA;Type "help", "copyright", "credits" or "license" for more information.&#xA;>>> import torchaudio&#xA;>>> torchaudio.list_audio_backends()&#xA;[]&#xA;

    &#xA;

    Hence ffmpeg is added to the path and recognized by the console, but not by torchaudio.

    &#xA;