Recherche avancée

Médias (0)

Mot : - Tags -/albums

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

Autres articles (94)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • 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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (7957)

  • ffmpeg crop and watermark in a single step

    11 juin 2018, par rbarab

    We are processing short videos. Most of them are 640x480, recorded by mobile. Many of them have a black frame on left and right.
    I would like to watermark the videos and currently using this command.

    ffmpeg -i IN.mp4 -i WATERMARK.png -filter_complex "overlay=main_w-overlay_w-10:main_h-overlay_h-10" OUT.mp4

    The problem is that if there is a frame, part of the watermark goes on the frame and only a part is on the actual content. Would like to place the watermark on the bottom right of the actual content.

    Are any of these possible, or any other ideas ?

    a, Dynamically detect the black frames and adjust the watermark position accordingly.

    b, Crop the black frame and watermark the content correctly in the same step.

    Thanks a lot for your help !

    EDIT :

    I have found that it won’t be possible in one step.

    1, I can get the crop size

    ffmpeg -i INPUT.mp4 -t 2 -vf cropdetect -f null - 2>&1 | awk '/crop/ { print $NF }' | tail -1

    2, Then crop the video

    ffmpeg -i INPUT.mp4 -filter:v "crop=352:480:144:0" -c:a copy OUTPUT.mp4

    3, Then watermark it

    ffmpeg -i INPUT VIDEO.mp4 -i INPUT IMAGE.png -filter_complex "overlay=main_w-overlay_w-10:main_h-overlay_h-10" OUTPUT VIDEO.mp4

    Is there a way to merge 2, and 3, into a single step ?

  • Command for putting watermark on video

    28 juin 2018, par Yupi

    I tried to put watermark on one video but FFmpeg command won’t execute and error code is 3037. I run the same code for trimming video and video is trimmed successfully so there is no issues with inputpath or outputpath also I have ic_watermark.png in assets folder. I tried with image from Drawable but same error code.

    So here is the command which I tried to run and put watermark in right corner :

    String[] cmd = new String[]{"-i", videoInputPath, "-i", imagePath, "-filter_complex", "overlay=main_w-overlay_w-5:main_h-overlay_h-5", videoOutPath };

    and this is the whole method :

    private void executeFFmepg(String inputPath, String outputPath, String customCommand){
    final Command command = videoKit.createCommand()
           .overwriteOutput()
           .inputPath(inputPath)
           .outputPath(outputPath)
           .customCommand(customCommand)
           .experimentalFlag()
           .build();
    new AsyncCommandExecutor(command, this).execute();
    }

    I used one library based on FFmpeg : https://github.com/inFullMobile/videokit-ffmpeg-android
    and description says that this is basically invoking FFmpeg main() with CLI arguments.

    This is what I get from Log :

    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
    05-29 15:35:08.591 24037-24037/com.cleatchaser D/FFmpeg: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/DCIM/Camera/20180406_140202.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 0
    05-29 15:35:08.596 24037-24037/com.cleatchaser D/FFmpeg:     compatible_brands: isom3gp4
       creation_time   : 2018-04-06 12:02:25
     Duration: 00:00:15.06, start: 0.000000, bitrate: 17185 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 17029 kb/s, 29.95 fps, 30 tbr, 90k tbn, 180k tbc (default)
    05-29 15:35:08.601 24037-24037/com.cleatchaser D/FFmpeg:     Metadata:
         rotate          : 90
         creation_time   : 2018-04-06 12:02:25
         handler_name    : VideoHandle
       Side data:
    05-29 15:35:08.606 24037-24037/com.cleatchaser D/FFmpeg:       displaymatrix: rotation of -90.00 degrees
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 123 kb/s (default)
       Metadata:
         creation_time   : 2018-04-06 12:02:25
    05-29 15:35:08.611 24037-24037/com.cleatchaser D/FFmpeg:       handler_name    : SoundHandle
    05-29 15:35:08.756 24037-24037/com.cleatchaser D/FFmpeg: Input #1, png_pipe, from '/storage/emulated/0/watermark.png':
     Duration: N/A, bitrate: N/A
       Stream #1:0: Video: png, rgba(pc), 856x1324, 25 tbr, 25 tbn, 25 tbc

    I tried many answers from similar questions but none of them worked.

    Is possible that error is in quotes ?

    I don’t have experience with FFmpeg so any help would be very appreciated. Thanks

  • ffmpeg auto crop black frame and watermark

    4 juin 2018, par rbarab

    We are processing short videos. Most of them are 640x480, recorded by mobile. Many of them have a black frame on left and right.
    I would like to watermark the videos and currently using this command.

    ffmpeg -i IN.mp4 -i WATERMARK.png -filter_complex "overlay=main_w-overlay_w-10:main_h-overlay_h-10" OUT.mp4

    The problem is that if there is a frame, part of the watermark goes on the frame and only a part is on the actual content. Would like to place the watermark on the bottom right of the actual content.

    Are any of these possible, or any other ideas ?

    a, Dynamically detect the black frames and adjust the watermark position accordingly.

    b, Crop the black frame and watermark the content correctly in the same step.

    Thanks a lot for your help !