Recherche avancée

Médias (21)

Mot : - Tags -/Nine Inch Nails

Autres articles (78)

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

Sur d’autres sites (8285)

  • FFmpeg : Batch convert all audio (mp3) in folder to video (mp4) with album artwork (but it down scales my resolution)

    9 février 2021, par unknownman

    I followed this source (FFmpeg : Batch convert all audio (mp3) in folder to video (mp4) with album artwork) and it works, but it down scales my album cover from 1425 x 1406 dimension to 400 x 396.

    


    My Batch code is

    


    echo off
for %%a in ("*.mp3") do (
  ffmpeg -i "%%a" -an -vcodec copy "C:\mp4\%%~na.jpg"
  "C:\ffmpeg\bin\ffmpeg" -loop 1 -i  "C:\mp4\%%~na.jpg" -i "%%a" -c:v libx264 -vf pad="width=ceil(iw/2)*2:height=ceil(ih/2)*2" -preset veryslow -tune stillimage -crf 18 -pix_fmt yuv420p -c:a aac -shortest -strict experimental -b:a 192k -shortest "C:\mp4\%%~na.mp4" )
pause


    


    Problem is I don't know how to fix "down scaling" thing, and I am sorry for stupid questions but I need to know it. I watched other errors or tried to understand codes from others but I am not doing it well.

    


  • How to Merge Multiple video files with different resolution, make padding for the low resolution video in android FFMPEG

    12 février 2021, par Osama aman

    I want to merge multiple videos with different resolutions. if the resolution is low than any other video, it should make a black padding around the low resolution video.

    


    I tried this command

    


        var highestVideoWidth: Int = 0&#xA;    var highestVideoHeight: Int = 0&#xA;&#xA;    val mlisst: MutableList<string> = ArrayList()&#xA;    mlisst.clear()&#xA;    mlisst.add("-i")&#xA;    for (i in trimmedPaths.indices) {&#xA;        if (highestVideoWidth &lt; editedVideosList[i].videoWidth &amp;&amp; highestVideoHeight &lt; editedVideosList[i].videoHeight) {&#xA;            highestVideoWidth = editedVideosList[i].videoWidth&#xA;            highestVideoHeight = editedVideosList[i].videoHeight&#xA;        }&#xA;&#xA;        mlisst.add(trimmedPaths[i])&#xA;        if (i &lt; trimmedPaths.size - 1)&#xA;            mlisst.add("-i")&#xA;    }&#xA;    mlisst.add("-filter_complex")&#xA;    val fc = StringBuilder()&#xA;&#xA;    for (i in trimmedPaths.indices) {&#xA;&#xA;        if (editedVideosList[i].videoWidth == highestVideoWidth &amp;&amp; editedVideosList[i].videoHeight == highestVideoHeight){&#xA;            fc.append("[$i:v]scale=${editedVideosList[i].videoWidth}x${editedVideosList[i].videoHeight},setsar=1:1[v$i];")&#xA;        }else{&#xA;            fc.append("[$i:v]scale=iw*min($highestVideoWidth/iw,${highestVideoHeight}/ih):ih*min(${highestVideoWidth}/iw,${highestVideoHeight}/ih),")&#xA;            fc.append("pad=${highestVideoWidth}:${highestVideoHeight}")&#xA;            fc.append(":(${highestVideoWidth}-iw*min(${highestVideoWidth}/iw,${highestVideoHeight}/ih))/2")&#xA;            fc.append(":(${highestVideoHeight}-ih*min(${highestVideoWidth}/iw,${highestVideoHeight}/ih))/2,setsar1:1[v$i];")&#xA;        }&#xA;    }&#xA;&#xA;    for (i in trimmedPaths.indices) {&#xA;        fc.append("[v$i][$i:a]")&#xA;    }&#xA;    fc.append("concat=unsafe=1:n=${trimmedPaths.size}:v=1:a=1")&#xA;    mlisst.add(fc.toString())&#xA;    mlisst.add("-r")&#xA;    mlisst.add("50")&#xA;    mlisst.add("-preset")&#xA;    mlisst.add("ultrafast")&#xA;    mlisst.add(finalMergedVideoPath)&#xA;</string>

    &#xA;

    but this gives me this error

    &#xA;

    Invalid size 'iw*min(1074/iw'&#xA;I found the command some where i modified it to my use but now i am not sure. Here is the command : complexCommand = new String[]{"-y", "-i", file1.toString(), "-i", file2.toString(), "-strict", "experimental", "-filter_complex","[0:v]scale=1920x1080,setsar=1:1[v0];[1:v] scale=iw*min(1920/iw\\,1080/ih):ih*min(1920/iw\\,1080/ih), pad=1920:1080:(1920-iw*min(1920/iw\\,1080/ih))/2:(1080-ih*min(1920/iw\\,1080/ih))/2,setsar=1:1[v1];[v0][0:a][v1][1:a] concat=n=2:v=1:a=1","-ab", "48000", "-ac", "2", "-ar", "22050", "-s", "1920x1080", "-vcodec", "libx264","-crf","27","-q","4","-preset", "ultrafast", rootPath &#x2B; "/output.mp4"};

    &#xA;

    If anyone can help thanks in advance.&#xA;Here is the link to the question i followed

    &#xA;

  • ffmpeg : handle videos with changing resolution

    5 mars 2021, par mSourire

    I write a program, which concatenates input list of videos programmatically. The problem is that these videos are parts of a recorded stream, and their resolution may change few times within the same file.&#xA;Currently, if that happens, ffmpeg fails, saying that it's not possible to concat files with different resolutions. Is there a way to make ffmpeg handling this automatically ? A good solution would be selective scaling of frames with unexpected resolution.

    &#xA;

    Here is a listing :

    &#xA;

    ffmpeg -y -i 1.mkv -i 1.mka&#xA;-max_muxing_queue_size 10000&#xA;-preset veryfast -r 30 -crf 20 -b:a 96000 -vbr on&#xA;-strict experimental&#xA;-filter_complex &#x27;&#xA;color=black:s=320x240:d=7ms[black0];&#xA;aevalsrc=0:d=15ms[silence1];&#xA;[black0][0]concat=n=2:v=1:a=0[video];&#xA;[1][silence1]concat=n=2:v=0:a=1[audio]&#x27;&#xA;-map [video] -map [audio] -c:v libvpx -c:a libopus output.webm&#xA;&#xA;ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with Apple clang version 11.0.0 (clang-1100.0.33.17)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_9 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;Input #0, matroska,webm, from &#x27;1.mkv&#x27;:&#xA;  Metadata:&#xA;    encoder         : GStreamer matroskamux version 1.8.1.1&#xA;    creation_time   : 2021-03-02T13:44:03.000000Z&#xA;  Duration: 00:01:48.41, start: 0.710000, bitrate: 757 kb/s&#xA;    Stream #0:0(eng): Video: vp8, yuv420p(progressive), 320x240, SAR 1:1 DAR 4:3, 120 tbr, 1k tbn, 1k tbc (default)&#xA;    Metadata:&#xA;      title           : Video&#xA;Input #1, matroska,webm, from &#x27;1.mka&#x27;:&#xA;  Metadata:&#xA;    encoder         : GStreamer matroskamux version 1.8.1.1&#xA;    creation_time   : 2021-03-02T13:44:03.000000Z&#xA;  Duration: 00:01:48.40, start: 0.703000, bitrate: 38 kb/s&#xA;    Stream #1:0(eng): Audio: opus, 48000 Hz, stereo, fltp (default)&#xA;    Metadata:&#xA;      title           : Audio&#xA;Codec AVOption preset (Configuration preset) specified for output file #0 (output.webm) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.&#xA;Stream mapping:&#xA;  Stream #0:0 (vp8) -> concat:in1:v0&#xA;  Stream #1:0 (opus) -> concat:in0:a0&#xA;  concat -> Stream #0:0 (libvpx)&#xA;  concat -> Stream #0:1 (libopus)&#xA;Press [q] to stop, [?] for help&#xA;[libvpx @ 0x7fe08a80bc00] v1.9.0&#xA;[libvpx @ 0x7fe08a80bc00] Bitrate not specified for constrained quality mode, using default of 256kbit/sec&#xA;Output #0, webm, to &#x27;output.webm&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.45.100&#xA;    Stream #0:0: Video: vp8 (libvpx), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=-1--1, 256 kb/s, 30 fps, 1k tbn, 30 tbc (default)&#xA;    Metadata:&#xA;      encoder         : Lavc58.91.100 libvpx&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;    Stream #0:1: Audio: opus (libopus), 48000 Hz, stereo, flt, 96 kb/s (default)&#xA;    Metadata:&#xA;      encoder         : Lavc58.91.100 libopus&#xA;[Parsed_color_0 @ 0x7fe089815940] EOF timestamp not reliable&#xA;[Parsed_concat_2 @ 0x7fe088501980] Input link in0:v0 parameters (size 640x480, SAR 1:1) do not match the corresponding output link in0:v0 parameters (320x240, SAR 1:1)&#xA;[Parsed_concat_2 @ 0x7fe088501980] Failed to configure output pad on Parsed_concat_2&#xA;Error reinitializing filters!&#xA;Failed to inject frame into filter network: Invalid argument&#xA;Error while processing the decoded data for stream #0:0&#xA;[libopus @ 0x7fe08a810c00] 1 frames left in the queue on closing&#xA;Conversion failed!&#xA;

    &#xA;

    Here is the only such video with "floating" resolution, which cannot be concatenated with 320x240 color filter.

    &#xA;