Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (91)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

Sur d’autres sites (2384)

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

  • HEVC with alpha [closed]

    3 mai 2024, par foxhable

    I trying create HEVC with alpha video from png images through ffmpeg.

    &#xA;

    When i try, it outputs a video that works, has a transparent background and opens in QuickTime, but does not open in Safari. Then i try creating in prores 4444 codec and convert from macOS Context Menu -> Encode Selected Video Files with HEVC 1080p and Preserve Transparency. It has work - video with transparent background, open in QuickTime and in Safari.

    &#xA;

    So i tried understand what a difference in meta data and only what i find its working video has HVEC encoder, but not working has Lavc61.5.103 hevc_videotoolbox. Can i somehow programmatically or from utilities like ffmpeg create video with HEVC With alpha, which working like from macOS context menu ? macOS context menu doesnt fit because i cant compress or create many videos

    &#xA;

    Detail info

    &#xA;

    I have example of working video. Info from ffprobe

    &#xA;

    ffprobe movie-hevc.mov&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;.\movie-hevc.mov&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt&#xA;    minor_version   : 0&#xA;    compatible_brands: qt&#xA;    creation_time   : 2021-01-02T10:33:38.000000Z&#xA;  Duration: 00:00:09.02, start: 0.000000, bitrate: 4053 kb/s&#xA;  Stream #0:0[0x1](und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, progressive), 1280x720 [SAR 1:1 DAR 16:9], 4046 kb/s, 60 fps, 60 tbr, 600 tbn (default)&#xA;      Metadata:&#xA;        creation_time   : 2021-01-02T10:33:38.000000Z&#xA;        handler_name    : Core Media Video&#xA;        vendor_id       : [0][0][0][0]&#xA;        encoder         : HEVC&#xA;

    &#xA;

    Info about video which i create in prores by ffmpeg command, then convert through macOS context menu

    &#xA;

    command :

    &#xA;

    ffmpeg -i a%d.png -r 30 -c:v prores_ks -profile:v 4  -allow_sw 1 -alpha_quality 1 -vtag hvc1 prores.mov&#xA;

    &#xA;

    info after converting

    &#xA;

    ffprobe .\native-hevc.mov&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;.\native-hevc.mov&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt&#xA;    minor_version   : 0&#xA;    compatible_brands: qt&#xA;    creation_time   : 2024-05-03T07:04:26.000000Z&#xA;  Duration: 00:00:12.77, start: 0.000000, bitrate: 8796 kb/s&#xA;  Stream #0:0[0x1](und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 1920x1920, 8792 kb/s, 30 fps, 30 tbr, 15360 tbn (default)&#xA;      Metadata:&#xA;        creation_time   : 2024-05-03T07:04:27.000000Z&#xA;        handler_name    : Core Media Video&#xA;        vendor_id       : [0][0][0][0]&#xA;        encoder         : HEVC&#xA;

    &#xA;

    Info about video which i`m create direct in hevc by ffmpeg command

    &#xA;

    ffmpeg -i a%d.png -r 30 -c:v hevc_videotoolbox -allow_sw 1 -alpha_quality 1 -vtag hvc1 ffmpeg-hevc.mov&#xA;

    &#xA;

    Info :

    &#xA;

    ffprobe .\ffmpeg-hevc.mov&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;.\ffmpeg-hevc.mov&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt&#xA;    minor_version   : 512&#xA;    compatible_brands: qt&#xA;    encoder         : Lavf61.3.103&#xA;  Duration: 00:00:12.77, start: 0.000000, bitrate: 3437 kb/s&#xA;  Stream #0:0[0x1]: Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bottom coded first (swapped)), 1920x1920, 3435 kb/s, 30 fps, 30 tbr, 15360 tbn (default)&#xA;      Metadata:&#xA;        handler_name    : VideoHandler&#xA;        vendor_id       : FFMP&#xA;        encoder         : Lavc61.5.103 hevc_videotoolbox&#xA;

    &#xA;

    also i tried :

    &#xA;

      &#xA;
    • props -allow_sw 0 - get error
    • &#xA;

    • -alpha-quality 0.75, -pix_fmt bgra - safari not open, QT yes, transparent bg
    • &#xA;

    • without -vtag hvc1 - QuickTime cannot open
    • &#xA;

    • Tried convert from webm to hevc_videotoolbox - safari not open, QT yes, transparent bg
    • &#xA;

    • tried convert webm into pngs and in hevc_videotoolbox - safari not open, QT yes, transparent bg
    • &#xA;

    &#xA;

    Tried answers :

    &#xA;

    &#xA;

    mac info :

    &#xA;

      &#xA;
    • macOS Monterey 12.7.2
    • &#xA;

    • Mac mini (Late 2012)
    • &#xA;

    • Core i5 3210M
    • &#xA;

    • Graphics Intel HD 4000
    • &#xA;

    &#xA;

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

    &#xA;

    app.get(&#x27;/api/voice/:gender/:voice/:pitch&#x27;, function(req, res){&#xA;        if(req.params.pitch == "1" || req.params.pitch == "1.0") {&#xA;            const file = "./voices/" &#x2B; req.params.gender.toLowerCase() &#x2B; "/" &#x2B; req.params.voice &#x2B; ".mp3"&#xA;            res.download(file);&#xA;            return&#xA;        }&#xA;&#xA;        const inputFile = "./voices/" &#x2B; req.params.gender.toLowerCase() &#x2B; "/" &#x2B; req.params.voice &#x2B; ".mp3"&#xA;        const output_file = "./Audio/Temp/" &#x2B; req.params.voice &#x2B; ".mp3"&#xA;        ffmpeg()&#xA;                .input(inputFile)&#xA;                .audioCodec(&#x27;pcm_s16le&#x27;) // Set the audio codec to PCM with 16-bit depth&#xA;                .audioFrequency(44100) // Set the sample rate&#xA;                .on(&#x27;error&#x27;, function(err) {&#xA;                    console.error(&#x27;Error while converting:&#x27;, err);&#xA;                })&#xA;                .on(&#x27;end&#x27;, function() {&#xA;                    // res.download(output_file)&#xA;                })&#xA;                .save(output_file);&#xA;&#xA;    });&#xA;

    &#xA;

    It gives Conversion Failed error :

    &#xA;

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