Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (71)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (12066)

  • ffmpeg :how to apply animation in multiple images

    2 mars 2023, par Pavan Ghanate

    I am trying to merge number of selected images from gallery to a video template in order to make video status or short video in a android app, I am able to merge the selected images in the video using below cammand now i want to add animation

    


     ArrayList<string> cmd2 = new ArrayList&lt;>();&#xA;    cmd2.add("-y");&#xA;    cmd2.add("-i");&#xA;    if (video_temp_path!= null){&#xA;        cmd2.add(video_temp_path);&#xA;    }else {&#xA;        cmd2.add(Environment.getExternalStorageDirectory().getPath()&#xA;                &#x2B; "/Download/happy.mp4");&#xA;    }&#xA;&#xA;&#xA;    for (int no = 0; no &lt; paths.length; no&#x2B;&#x2B;) {&#xA;        cmd2.add("-i");&#xA;&#xA;        cmd2.add(paths[no]);&#xA;&#xA;    }&#xA;&#xA;    cmd2.add("-filter_complex");&#xA;&#xA;&#xA;&#xA;    cmd2.add("[0][1]overlay=x=100:y=200:enable=&#x27;between(t,3,8)&#x27;[v1];" &#x2B;&#xA;            "[v1][2]overlay=x=100:y=200:enable=&#x27;between(t,10,15)&#x27;[v2];" &#x2B;&#xA;            "[v2][3]overlay=x=100:y=200:enable=&#x27;gt(t,17)&#x27;[v3]");&#xA;    cmd2.add("-map");&#xA;    cmd2.add("[v3]");&#xA;    cmd2.add("-map");&#xA;    cmd2.add( "0:a");&#xA;    cmd2.add(Environment.getExternalStorageDirectory().getPath()&#xA;            &#x2B; "/Download/output.mp4");&#xA;</string>

    &#xA;

    but now i want to add fade in out animation to images so I am using this cammand generated by chatgpt but its giving me error

    &#xA;

      ArrayList<string> cmd2 = new ArrayList&lt;>();&#xA;   cmd2.add("-y");&#xA;   cmd2.add("-i");&#xA;&#xA;   if (video_temp_path != null) {&#xA;    cmd2.add(video_temp_path);&#xA;  } else {&#xA;    cmd2.add(Environment.getExternalStorageDirectory().getPath() &#x2B;&#xA;            "/Download/happy.mp4");&#xA;}&#xA;&#xA;for (int no = 0; no &lt; paths.length; no&#x2B;&#x2B;) {&#xA;    cmd2.add("-loop");&#xA;    cmd2.add("1"); // loop the image&#xA;&#xA;    cmd2.add("-t");&#xA;    cmd2.add("5"); // duration of the image&#xA;&#xA;    cmd2.add("-i");&#xA;    cmd2.add(paths[no]);&#xA;&#xA;    cmd2.add("-filter_complex");&#xA;    cmd2.add("[1:v]fade=in:st=0:d=1[tin];" &#x2B;&#xA;            "[1:v]fade=out:st=4:d=1[tout];" &#x2B;&#xA;            "[0:v][tin]overlay=x=100:y=200" &#x2B;&#xA;            "[v1];" &#x2B;&#xA;            "[v1][tout]overlay=x=100:y=200:enable=&#x27;between(t,10,15)&#x27;[v2];" &#x2B;&#xA;            "[v2][2:v]overlay=x=100:y=200:enable=&#x27;gt(t,17)&#x27;[v3]");&#xA;&#xA;    cmd2.add("-map");&#xA;    cmd2.add("[v3]");&#xA;    cmd2.add("-map");&#xA;    cmd2.add("0:a");&#xA;}&#xA;&#xA;cmd2.add(Environment.getExternalStorageDirectory().getPath() &#x2B;&#xA;        "/Download/output.mp4");&#xA;</string>

    &#xA;

    error is

    &#xA;

     Option map (set input stream mapping) cannot be applied to input url /storage/emulated/0/Pictures/temp/1677570327312.jpg -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.&#xA;

    &#xA;

    2023-03-01 12:50:50.707 5950-6326/com.android.mergevideo E/mobile-ffmpeg : Error parsing options for input file /storage/emulated/0/Pictures/temp/1677570327312.jpg.&#xA;2023-03-01 12:50:50.707 5950-6326/com.android.mergevideo E/mobile-ffmpeg : Error opening input files :&#xA;2023-03-01 12:50:50.707 5950-6326/com.android.mergevideo E/mobile-ffmpeg : Invalid argument

    &#xA;

  • Trying to concat 2 videos using FFMPEG in Android command line

    23 mars 2016, par Hero Roma

    I am trying to add a cross fade transitions between 2 videos in my Android application. I have used the Guardian Project to build the ffmpeg library locally. Guardian Project. I was able to do that.
    Now I am trying to implement the cross fade using the StackOverflow answer
    The code is basically something like
    ArrayList cmd = new ArrayList() ;

       cmd.add(mFfmpegBin);
       cmd.add("-i");
       cmd.add(firstFile);
       cmd.add("-i");
       cmd.add(secondFile);
       cmd.add("-f");
       cmd.add("lavfi");
       cmd.add("-i");
       cmd.add("color=black");
       cmd.add("-filter_complex");
       cmd.add("[0:v]format=pix_fmts=yuva420p,fade=t=out:st=4:d=1:alpha=1,setpts=PTS-STARTPTS[va0];[1:v]format=pix_fmts=yuva420p,fade=t=in:st=0:d=1:alpha=1,setpts=PTS-STARTPTS+4/TB[va1];[2:v]scale=960x720,trim=duration=9[over];[over][va0]overlay[over1];[over1][va1]overlay=format=yuv420[outv]");
       cmd.add("-vcodec");
       cmd.add("libx264");
       cmd.add("-map");
       cmd.add("[outv]");
       cmd.add(outputFile);
       execFFMPEG(cmd, sc);

    The error I keep getting is

    Invalid pixel format ’pix_fmts=yuva420p’

    I feel I either the command is incorrect for command line usage or I am not providing the correct filters.

    fc>/data/data/com.User.testapplication/app_bin/ffmpeg -i /storage/emulated/0/Pictures/DayVideos/FIRST_VIDEO.mp4 -i /storage/emulated/0/Pictures/DayVideos/SECOND_VIDEO.mp4 -f lavfi -i color=black -filter_complex [0:v]format=pix_fmts=yuva420p,fade=t=out:st=4:d=1:alpha=1,setpts=PTS-STARTPTS[va0];[1:v]format=pix_fmts=yuva420p,fade=t=in:st=0:d=1:alpha=1,setpts=PTS-STARTPTS+4/TB[va1];[2:v]scale=960x720,trim=duration=9[over];[over][va0]overlay[over1];[over1][va1]overlay=format=yuv420[outv] -vcodec libx264 -map [outv] /storage/emulated/0/Pictures/DayVideos/output.mp4
    fc>WARNING: linker: /data/data/com.User.testapplication/app_bin/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
    fc>ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
    fc>  built on Mar 23 2016 12:12:02 with gcc 4.6 20120106 (prerelease)
    fc>  configuration: --arch=arm --cpu=cortex-a8 --target-os=linux --enable-runtime-cpudetect --prefix=/data/data/info.guardianproject.ffmpeg/app_opt --enable-pic --disable-shared --enable-static --cross-prefix=/home/test/Downloads/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi- --sysroot=/home/test/Downloads/android-ndk-r8e/platforms/android-14/arch-arm --extra-cflags='-I../x264 -mfloat-abi=softfp -mfpu=neon -fPIE -pie' --extra-ldflags='-L../x264 -fPIE -pie' --enable-version3 --enable-gpl --disable-doc --enable-yasm --enable-decoders --enable-encoders --enable-muxers --enable-demuxers --enable-parsers --enable-protocols --enable-filters --enable-avresample --disable-indevs --enable-indev=lavfi --disable-outdevs --enable-hwaccels --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-network --enable-libx264 --enable-zlib --enable-muxer=md5
    fc>  libavutil      51. 54.100 / 51. 54.100
    fc>  libavcodec     54. 23.100 / 54. 23.100
    fc>  libavformat    54.  6.100 / 54.  6.100
    fc>  libavdevice    54.  0.100 / 54.  0.100
    fc>  libavfilter     2. 77.100 /  2. 77.100
    fc>  libswscale      2.  1.100 /  2.  1.100
    fc>  libswresample   0. 15.100 /  0. 15.100
    fc>  libpostproc    52.  0.100 / 52.  0.100
    fc>Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Pictures/DayVideos/FIRST_VIDEO.mp4':
    fc>  Metadata:
    fc>    major_brand     : isom
    fc>    minor_version   : 0
    fc>    compatible_brands: isomiso2avc1
    fc>    creation_time   : 2016-03-22 19:07:16
    fc>  Duration: 00:00:19.35, start: 0.000000, bitrate: 5253 kb/s
    fc>    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 5252 kb/s, SAR 65536:65536 DAR 16:9, 30.02 fps, 30 tbr, 90k tbn, 180k tbc
    fc>    Metadata:
    fc>      creation_time   : 2016-03-22 19:07:02
    fc>Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Pictures/DayVideos/SECOND_VIDEO.mp4':
    fc>  Metadata:
    fc>    major_brand     : mp42
    fc>    minor_version   : 0
    fc>    compatible_brands: isommp42
    fc>    creation_time   : 2016-03-22 19:07:55
    fc>  Duration: 00:00:17.32, start: 0.000000, bitrate: 5414 kb/s
    fc>    Stream #1:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 5227 kb/s, SAR 65536:65536 DAR 16:9, 30.02 fps, 30.02 tbr, 90k tbn, 180k tbc
    fc>    Metadata:
    fc>      creation_time   : 2016-03-22 19:07:55
    fc>      handler_name    : VideoHandle
    fc>[color @ 0xb8901360] w:320 h:240 r:25/1 color:0x000000ff
    fc>[lavfi @ 0xb88fbb60] Estimating duration from bitrate, this may be inaccurate
    fc>Input #2, lavfi, from 'color=black':
    fc>  Duration: N/A, start: 0.000000, bitrate: N/A
    fc>    Stream #2:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
    fc>[format @ 0xb8901190] Invalid pixel format 'pix_fmts=yuva420p'
    fc>Error initializing filter 'format' with args 'pix_fmts=yuva420p'
    fc>Error configuring filters.

    Thanks !

  • Merge commit '1329c08ad6d2ddb304858f2972c67b508e8b0f0e'

    11 novembre 2017, par James Almer
    Merge commit '1329c08ad6d2ddb304858f2972c67b508e8b0f0e'
    

    * commit '1329c08ad6d2ddb304858f2972c67b508e8b0f0e' :
    hevc : Validate the number of long term reference pictures

    See ea38e5a6b75706477898eb1e6582d667dbb9946c

    Merged-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/hevc_ps.c