Recherche avancée

Médias (91)

Autres articles (49)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (10119)

  • How to use ffmpeg to find commercial breaks and synchronize faster a subtitle ? [closed]

    2 juin 2021, par zick

    I found this command that help me to find faster the commercial breaks and syncronize faster a subtitle.
But I'm encountering some problems with this command and the first is that the result in the output.txt is in full and I want to be only what was detected (black_duration).

    


    ffmpeg -i "video.mp4" -vf "blackdetect=d=3:pix_th=0" -an -f null - 2>&1 | findstr black_duration > output.txt


    


    The second problem is that I want to be directly the exact timestamps with H:M:S , not in seconds.
For exemple : [blackdetect @ 0000006a59125100] black_start:276.125 black_end:279.125 black_duration:3 , to be [blackdetect @ 0000006a59125100] black_start:00:04:35.000 black_end:00:04:38.000 black_duration:3

    


    The third and last problem is I don't know how to make a batch from that command so I can use it for more than one file.

    


    Exemple of the output.txt

    


    frame=  184 fps=0.0 q=-0.0 size=N/A time=00:00:07.66 bitrate=N/A speed=15.3x    
frame=  388 fps=388 q=-0.0 size=N/A time=00:00:16.16 bitrate=N/A speed=16.1x    
frame=  581 fps=387 q=-0.0 size=N/A time=00:00:24.20 bitrate=N/A speed=16.1x    
frame=  788 fps=394 q=-0.0 size=N/A time=00:00:32.83 bitrate=N/A speed=16.4x    
frame=  988 fps=395 q=-0.0 size=N/A time=00:00:41.16 bitrate=N/A speed=16.4x    
frame= 1193 fps=397 q=-0.0 size=N/A time=00:00:49.70 bitrate=N/A speed=16.5x    
frame= 1382 fps=394 q=-0.0 size=N/A time=00:00:57.58 bitrate=N/A speed=16.4x    
frame= 1582 fps=395 q=-0.0 size=N/A time=00:01:05.91 bitrate=N/A speed=16.4x    
frame= 1776 fps=394 q=-0.0 size=N/A time=00:01:14.00 bitrate=N/A speed=16.4x    
frame= 1970 fps=393 q=-0.0 size=N/A time=00:01:22.08 bitrate=N/A speed=16.4x    
frame= 2174 fps=395 q=-0.0 size=N/A time=00:01:30.58 bitrate=N/A speed=16.4x    
frame= 2373 fps=395 q=-0.0 size=N/A time=00:01:38.87 bitrate=N/A speed=16.4x    
frame= 2562 fps=393 q=-0.0 size=N/A time=00:01:46.75 bitrate=N/A speed=16.4x    
frame= 2748 fps=392 q=-0.0 size=N/A time=00:01:54.50 bitrate=N/A speed=16.3x    
frame= 2943 fps=392 q=-0.0 size=N/A time=00:02:02.62 bitrate=N/A speed=16.3x    
frame= 3128 fps=390 q=-0.0 size=N/A time=00:02:10.33 bitrate=N/A speed=16.3x    
frame= 3310 fps=389 q=-0.0 size=N/A time=00:02:17.91 bitrate=N/A speed=16.2x    
frame= 3501 fps=388 q=-0.0 size=N/A time=00:02:25.87 bitrate=N/A speed=16.2x    
frame= 3681 fps=387 q=-0.0 size=N/A time=00:02:33.37 bitrate=N/A speed=16.1x    
frame= 3869 fps=386 q=-0.0 size=N/A time=00:02:41.20 bitrate=N/A speed=16.1x    
frame= 4074 fps=387 q=-0.0 size=N/A time=00:02:49.75 bitrate=N/A speed=16.1x    
frame= 4256 fps=386 q=-0.0 size=N/A time=00:02:57.33 bitrate=N/A speed=16.1x    
frame= 4443 fps=385 q=-0.0 size=N/A time=00:03:05.12 bitrate=N/A speed=16.1x    
frame= 4634 fps=385 q=-0.0 size=N/A time=00:03:13.08 bitrate=N/A speed=  16x    
frame= 4817 fps=384 q=-0.0 size=N/A time=00:03:20.70 bitrate=N/A speed=  16x    
frame= 5002 fps=384 q=-0.0 size=N/A time=00:03:28.41 bitrate=N/A speed=  16x    
frame= 5199 fps=384 q=-0.0 size=N/A time=00:03:36.62 bitrate=N/A speed=  16x    
frame= 5371 fps=383 q=-0.0 size=N/A time=00:03:43.79 bitrate=N/A speed=15.9x    
frame= 5555 fps=382 q=-0.0 size=N/A time=00:03:51.45 bitrate=N/A speed=15.9x    
frame= 5737 fps=381 q=-0.0 size=N/A time=00:03:59.04 bitrate=N/A speed=15.9x    
frame= 5924 fps=381 q=-0.0 size=N/A time=00:04:06.83 bitrate=N/A speed=15.9x    
frame= 6115 fps=381 q=-0.0 size=N/A time=00:04:14.79 bitrate=N/A speed=15.9x    
frame= 6322 fps=382 q=-0.0 size=N/A time=00:04:23.41 bitrate=N/A speed=15.9x    
frame= 6525 fps=383 q=-0.0 size=N/A time=00:04:31.87 bitrate=N/A speed=15.9x    
[blackdetect @ 0000006a59125100] black_start:276.125 black_end:279.125 black_duration:3
frame= 6727 fps=383 q=-0.0 size=N/A time=00:04:40.29 bitrate=N/A speed=  16x


    


    Thanks !

    


  • How to get progress percentage of flutter ffmpeg execution

    11 août 2021, par Sharik ansari

    I want to get percentage of ffmpeg execution in flutter

    


    I have some code example but I don't know to do this

    


    ANDROID EXAMPLE :

    


    int start = message.indexOf("time=");
    int end = message.indexOf(" bitrate");
    if (start != -1 && end != -1) {
        String duration = message.substring(start + 5, end);
        if (duration != "") {
            try {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
                sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
                dialog.setProgress((int)sdf.parse("1970-01-01 " + duration).getTime());                        
            }catch (ParseException e)
            {
                e.printStackTrace();
            }
        }
}


    


    FLUTTER CODE :

    


      void statisticsCallback(Statistics statistics) {
print("Statistics: executionId: ${statistics.executionId}, time: ${statistics.time}, size: ${statistics.size}, bitrate: ${statistics.bitrate}, speed: ${statistics.speed}, videoFrameNumber: ${statistics.videoFrameNumber}, videoQuality: ${statistics.videoQuality}, videoFps: ${statistics.videoFps}");
  }


    


    how can I generate progress of execution from statisticsCallback method ?

    


    Please help me out

    


  • ffmpeg missing blend filter

    17 juin 2020, par user2927954

    I am working on android project using ffmpeg library. I followed instruction from : https://github.com/guardianproject/android-ffmpeg to build ffmpeg library for android. All are OK.

    



    Now, i am testing filters that corresponding to video filter of this library such as : drawtext, scale, pad, ... Most of them worked fine, but i have problem with "blend" filter.

    



    I try with commands : ffmpeg -i input1.mp4 -i input2.mp4 -filter_complex blend=all_expr='if(eq(mod(X,2),mod(Y,2)),A,B)' -y out.mp4 and recieve error : no such blend filter.

    



    Do you know how i configure to enable this filter ?

    



    Here is the output result :

    



    ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
  built on Feb 27 2014 05:23:20 with gcc 4.6 20120106 (prerelease)
  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/admin/workspace/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi- --sysroot=/home/admin/workspace/android-ndk-r9c/platforms/android-3/arch-arm --extra-cflags='-I../x264 -mfloat-abi=softfp -mfpu=neon' --extra-ldflags=-L../x264 --enable-version3 --enable-gpl --disable-doc --enable-yasm --enable-decoders --enable-encoders --enable-muxers --enable-demuxers --enable-parsers --enable-protocols --enable-filters --enable-avresample --enable-libfreetype --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
  libavutil      51. 54.100 / 51. 54.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.100 / 54.  6.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/videokit/in.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 0
    compatible_brands: isom3gp4
    creation_time   : 2014-03-04 08:53:01
  Duration: 00:00:15.10, start: 0.000000, bitrate: 7055 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 6935 kb/s, SAR 65536:65536 DAR 16:9, 17.18 fps, 34.42 tbr, 90k tbn, 180k tbc
    Metadata:
      creation_time   : 2014-03-04 08:53:01
      handler_name    : VideoHandle
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, stereo, s16, 128 kb/s
    Metadata:
      creation_time   : 2014-03-04 08:53:01
      handler_name    : SoundHandle
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/videokit/7.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf53.12.0
    comment         : Courtesy of National Geographic.  Used by Permission.
  Duration: 00:00:04.20, start: 0.000000, bitrate: 1601 kb/s
    Stream #1:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 1472 kb/s, 10 fps, 10 tbr, 10 tbn, 10 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #1:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 128 kb/s
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : SoundHandler
No such filter: 'blend'
Error configuring filters.


    



    Thanks