Recherche avancée

Médias (0)

Mot : - Tags -/configuration

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

Autres articles (92)

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

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

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

Sur d’autres sites (7826)

  • ffmpeg "filtergraph join" to use copy of channels and preserve input channel configuration (format - s32_le)

    29 avril 2020, par vishwanath patil

    Command that I am using is below, with that command I am getting 8 channel output.wav.

    



    ffmpeg.exe    -i one.wav -i two.wav -i three.wav -i four.wav \
-i five.wav -i six.wav -i seven.wav -i eight.wav \
-filter_complex '[0:0][1:0][2:0][3:0][4:0][5:0][6:0] \
[7:0]join=8:channel_layout=octagonal'  output.wav


    



    All input files one.wav, two.wav so on eight.wav are 32khz,s32le and one channel. but, output generated is output.wav which is s16le, 32khz.

    



    I can make output s32le with below command,

    



    ffmpeg.exe -i one.wav -i two.wav -i three.wav -i four.wav \
-i five.wav -i six.wav -i seven.wav -i eight.wav \
-filter_complex '[0:0][1:0][2:0][3:0][4:0][5:0][6:0] \
[7:0]join=8:channel_layout=octagonal'  -acodec pcm_s32le output.wav


    



    But, above command seems todo conversion from s16_le to s32_le (i.e one.wav doesn't match with output.wav first channel completely). However what I want is to directly copy data from input channels since audio format of all input files is same as expected audio format of output file channels (output.wav)

    



    is there way to instruct filter_graph todo processing at pcm_s32le ?

    



    Here is link to log with loglevel set to debug,
https://pastebin.com/ms4x1fLz

    



    MediaInfo.exe one.wav
General
Complete name                            : one.wav
Format                                   : Wave
File size                                : 6.50 MiB
Duration                                 : 53 s 280 ms
Overall bit rate mode                    : Constant
Overall bit rate                         : 1 024 kb/s

Audio
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : 1
Duration                                 : 53 s 280 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 024 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 32.0 kHz
Bit depth                                : 32 bits
Stream size                              : 6.50 MiB (100%)


    


  • FFmpeg Android concat. "–safe 0" is an invalid argument

    18 avril 2020, par AK. Bab

    I am trying to append two .mp4 videos on Android. Following an unsafe file name error with command :

    



    String[] complexCommand = {"ffmpeg", "-f", "concat", "-i", list, "-c", "copy", outputFilePath};


    



    I added the string "–safe 0" as recommended on FFmpeg documentation :

    



    String[] complexCommand = {"ffmpeg", "-f", "concat","–safe 0", "-i", list, "-c", "copy", outputFilePath};


    



    However, FFmpeg does not recognise the command, giving this error message :

    



    Failure with output
 ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
   built with gcc 4.8 (GCC)
   configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
   libavutil      55. 17.103 / 55. 17.103
   libavcodec     57. 24.102 / 57. 24.102
   libavformat    57. 25.100 / 57. 25.100
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 31.100 /  6. 31.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 Unrecognized option ‘–safe 0'.
Error splitting the argument list: Option not found


    



    I have tried various permutations with the type of dash (–) and (-), used, but still get an error. Sometimes, using a certain dash or no dash at all returns a slightly different error message :

    



    Failure with output
I/System.out: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
I/System.out:   built with gcc 4.8 (GCC)
I/System.out:   configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
I/System.out:   libavutil      55. 17.103 / 55. 17.103
   libavcodec     57. 24.102 / 57. 24.102
   libavformat    57. 25.100 / 57. 25.100
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 31.100 /  6. 31.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, tty, from '/data/user/0/com.example.cameraapp2/cache/ffmpeg-list1251307830.txt':

Duration: 00:00:00.04, bitrate: 28 kb/s
     Stream #0:0: Video: ansi, pal8, 640x400, 25 fps, 25 tbr, 25 tbn, 25 tbc
 [NULL @ 0xed834600] Unable to find a suitable output format for 'ffmpeg'
 ffmpeg: Invalid argument


    



    However, amendments I make there (such as removing "ffmpeg") haven't resolved the issue.

    



    String list is the absolute path of a textfile, generated with code I have copied written by user Marc Plano-Lesay :

    



    private static String generateList(String[] inputs) {
    File list;
    Writer writer = null;
    try {
        list = File.createTempFile("ffmpeg-list", ".txt");
        writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(list)));
        for (String input: inputs) {
            writer.write("file '" + input + "'\n");
        }
    } catch (IOException e) {
        e.printStackTrace();
        return "/";
    } finally {
        try {
            if (writer != null)
                writer.close();
        } catch (IOException ex) {
            ex.printStackTrace();
        }
    }


    



    and here are relevant code snippets that refers to it :

    



    inputFilePath1 = "/storage/emulated/0/Pictures/MyCameraApp/VID_20200416_162058.mp4";
inputFilePath2 = "/storage/emulated/0/Pictures/MyCameraApp/VID_20200418_104909.mp4";


    



    String list = generateList(new String[] {inputFilePath1, inputFilePath2});

    



    Android can usually find the input files just fine, so I'm not sure what's left to try. The error messages above confirm my assumption that I'm running FFmpeg 0.3.1 which should be recent enough.

    



    Thank you for any help.

    


  • Can not use the jsmpeg in react "Unexpected use of 'self'"

    5 mai 2020, par Muhammad Anas Khan

    code that i want to convert in React

    



     &#xA;    &#xA;    <code class="echappe-js">&lt;script type=&quot;text/javascript&quot; src='http://stackoverflow.com/feeds/tag/jsmpeg.min.js'&gt;&lt;/script&gt;&#xA;&#xA;    &lt;script type=&quot;text/javascript&quot;&gt;&amp;#xA;      var canvas = document.getElementById(&quot;videoCanvas&quot;);&amp;#xA;      console.log(document.location.hostname);&amp;#xA;     var url = &quot;ws://localhost:9999/&quot;;&amp;#xA;    &lt;/script&gt;&#xA;    &#xA;&#xA;

    &#xA;&#xA;

    Can not change it to react format.When i try to convert it is giving jsmpeg error &#xA;i.e

    &#xA;&#xA;

    code that i tried but get an error

    &#xA;&#xA;

    import React from &#x27;react&#x27;;&#xA;import ReactDOM from &#x27;react-dom&#x27;;&#xA;import "./jsmpeg.min.js"&#xA;const App =()=>{&#xA;    return(&#xA;        <h1>Hello</h1>&#xA;    )&#xA;}&#xA;&#xA;&#xA;ReactDOM.render(<app></app>,document.getElementById(&#x27;root&#x27;));&#xA;

    &#xA;&#xA;

    Error

    &#xA;&#xA;

    /src/jsmpeg.min.js&#xA;Line 606:9 : Unexpected use of 'self' no-restricted-globals&#xA; Line 2771:13 : Expected an assignment or function call and instead saw an expression no-unused-expressions

    &#xA;&#xA;

    Search for the keywords to learn more about each error.

    &#xA;