Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (89)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (9640)

  • swscale/output : Add rgba64/rgb48/bgra64/bgr48 output functions with full chroma inter...

    17 juin 2015, par Michael Niedermayer
    swscale/output : Add rgba64/rgb48/bgra64/bgr48 output functions with full chroma interpolation
    

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libswscale/output.c
    • [DH] libswscale/utils.c
    • [DH] tests/ref/fate/filter-pixfmts-scale
  • Android : How to make camera capture video only of preview size and not full screen ?

    13 décembre 2017, par Ashutosh Tiwari

    I am working on an app that needs to capture square videos just like Instagram. I used many libraries for the purpose but none helped to capture the video itself in square size. I can make the preview look like square but not the recorded video. For that I have to use FFMPEG library for cropping the video after it has been captured. But this process takes too long for 1 minute videos even with 480p video capture quality. Someone please guide me to achieve this task.

    Libraries that I have used are :
    https://github.com/natario1/CameraView for cameraView and http://writingminds.github.io/ffmpeg-android-java/ for using ffmpeg.

    Commands that I have tried for ffmpeg cropping operation are :

    command = new String[]{"-y",
                   "-f",
                   "concat",
                   "-safe",
                   "0",
                   "-i",
                   "" + sdCardPathFile,
                   "-c:v",
                   "libx264",
                   "-vf",
                   "crop=" + getVideoResolution(),
                   "-preset",
                   "ultrafast",
                   "-qscale",
                   "0",
                   "-crf",
                   "28",
                   "-c:a",
                   "copy",
                   "-flags",
                   "+global_header",
                   "" + joinedVideoFile.getAbsolutePath()
           };




    String[] joinCommand = new String[]{
                   "-y",
                   "-f",
                   "concat",
                   "-safe",
                   "0",
                   "-i",
                   "" + sdCardPathFile,
                   "-filter:v",
                   "crop=480:480",
                   "-preset",
                   "superfast",
                   "-c:a",
                   "copy",
                   "" + joinedVideoFile.getAbsolutePath()
           };
  • Feed output of one filter to the input of one filter multiple times with ffmpeg

    27 août 2021, par kentcdodds

    I have the following ffmpeg commands to create a podcast episode :

    &#xA;

    # remove all silence at start and end of the audio files&#xA;ffmpeg -i call.mp3 -af silenceremove=1:0:-50dB call1.mp3&#xA;ffmpeg -i response.mp3 -af silenceremove=1:0:-50dB response1.mp3&#xA;&#xA;# remove silence longer than 1 second anywhere within the audio files&#xA;ffmpeg -i call1.mp3 -af silenceremove=stop_periods=-1:stop_duration=1:stop_threshold=-50dB call2.mp3&#xA;ffmpeg -i response1.mp3 -af silenceremove=stop_periods=-1:stop_duration=1:stop_threshold=-50dB response2.mp3&#xA;&#xA;# normalize audio files&#xA;ffmpeg -i call2.mp3 -af loudnorm=I=-16:LRA=11:TP=0.0 call3.mp3&#xA;ffmpeg -i response2.mp3 -af loudnorm=I=-16:LRA=11:TP=0.0 response3.mp3&#xA;&#xA;# cross fade audio files with intro/interstitial/outro&#xA;ffmpeg -i intro.mp3 -i call3.mp3 -i interstitial.mp3 -i response3.mp3 -i outro.mp3&#xA;  -filter_complex "[0][1]acrossfade=d=1:c2=nofade[a01];&#xA;                   [a01][2]acrossfade=d=1:c1=nofade[a02];&#xA;                   [a02][3]acrossfade=d=1:c2=nofade[a03];&#xA;                   [a03][4]acrossfade=d=1:c1=nofade"&#xA;  output.mp3&#xA;

    &#xA;

    While this "works" fine, I can't help but feel like it would be more efficient to do this all in one ffmpeg command. Based on what I found online this should be possible, but I don't understand the syntax well enough to know how to make it work. Here's what I tried :

    &#xA;

    ffmpeg -i intro.mp3 -i call.mp3 -i interstitial.mp3 -i response.mp3 -i outro.mp3&#xA;       -af [1]silenceremove=1:0:-50dB[trimmedCall]&#xA;       -af [3]silenceremove=1:0:-50dB[trimmedResponse]&#xA;       -af [trimmedCall]silenceremove=stop_periods=-1:stop_duration=1:stop_threshold=-50dB[noSilenceCall]&#xA;       -af [trimmedResponse]silenceremove=stop_periods=-1:stop_duration=1:stop_threshold=-50dB[noSilenceResponse]&#xA;       -af [noSilenceCall]loudnorm=I=-16:LRA=11:TP=0.0[call]&#xA;       -af [noSilenceResponse]loudnorm=I=-16:LRA=11:TP=0.0[response]&#xA;      -filter_complex "[0][call]acrossfade=d=1:c2=nofade[a01];&#xA;                       [a01][2]acrossfade=d=1:c1=nofade[a02];&#xA;                       [a02][response]acrossfade=d=1:c2=nofade[a03];&#xA;                       [a03][4]acrossfade=d=1:c1=nofade"&#xA;  output.mp3&#xA;

    &#xA;

    But I have a feeling I have a fundamental misunderstanding of this because I got this error which I don't understand :

    &#xA;

    Stream specifier &#x27;call&#x27; in filtergraph description &#xA;[0][call]acrossfade=d=1:c2=nofade[a01];&#xA;[a01][2]acrossfade=d=1:c1=nofade[a02];&#xA;[a02][response]acrossfade=d=1:c2=nofade[a03];&#xA;[a03][4]acrossfade=d=1:c1=nofade&#xA;       matches no streams.&#xA;

    &#xA;

    For added context, I'm running all these commands through @ffmpeg/ffmpeg so that last command actually looks like this (in JavaScript) :

    &#xA;

    await ffmpeg.run(&#xA;  &#x27;-i&#x27;, &#x27;intro.mp3&#x27;,&#xA;  &#x27;-i&#x27;, &#x27;call.mp3&#x27;,&#xA;  &#x27;-i&#x27;, &#x27;interstitial.mp3&#x27;,&#xA;  &#x27;-i&#x27;, &#x27;response.mp3&#x27;,&#xA;  &#x27;-i&#x27;, &#x27;outro.mp3&#x27;,&#xA;  &#x27;-af&#x27;, &#x27;[1]silenceremove=1:0:-50dB[trimmedCall]&#x27;,&#xA;  &#x27;-af&#x27;, &#x27;[3]silenceremove=1:0:-50dB[trimmedResponse]&#x27;,&#xA;  &#x27;-af&#x27;, &#x27;[trimmedCall]silenceremove=stop_periods=-1:stop_duration=1:stop_threshold=-50dB[noSilenceCall]&#x27;,&#xA;  &#x27;-af&#x27;, &#x27;[trimmedResponse]silenceremove=stop_periods=-1:stop_duration=1:stop_threshold=-50dB[noSilenceResponse]&#x27;,&#xA;  &#x27;-af&#x27;, &#x27;[noSilenceCall]loudnorm=I=-16:LRA=11:TP=0.0[call]&#x27;,&#xA;  &#x27;-af&#x27;, &#x27;[noSilenceResponse]loudnorm=I=-16:LRA=11:TP=0.0[response]&#x27;,&#xA;  &#x27;-filter_complex&#x27;, `&#xA;[0][call]acrossfade=d=1:c2=nofade[a01];&#xA;[a01][2]acrossfade=d=1:c1=nofade[a02];&#xA;[a02][response]acrossfade=d=1:c2=nofade[a03];&#xA;[a03][4]acrossfade=d=1:c1=nofade&#xA;  `,&#xA;  &#x27;output.mp3&#x27;,&#xA;)&#xA;

    &#xA;