Recherche avancée

Médias (91)

Autres articles (97)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (11372)

  • FFmpeg - Merge two images (.png) to video (.mp4) doesn't work

    12 juin 2019, par Jokoe

    I want to merge two images (names are not numbered in a sequence) to a video, but the result includes only a video of the first image.

    I would appreciate any kind of help !

    ffmpeg.exe -r 1/5 -i image_x.png -r 1/5 -i image_y.png -codec:v libx264 -vf fps=50 video.mp4

    Output :

    Input #0, png_pipe, from
    ’C :\Users\khj\Desktop\SpeakerLayoutTool\Images_video\iamge_x.png’ :
    Duration : N/A, bitrate : N/A
    Stream #0:0 : Video : png, rgba(pc), 3840x2160, 25 tbr, 25 tbn, 25 tbc Input #1, png_pipe, from
    ’C :\Users\khj\Desktop\SpeakerLayoutTool\Images_video\image_y.png’ :
    Duration : N/A, bitrate : N/A
    Stream #1:0 : Video : png, rgba(pc), 3840x2160, 25 tbr, 25 tbn, 25 tbc File ’C :\Users\khj\Desktop\SpeakerLayoutTool\video.mp4’ already
    exists. Overwrite ? [y/N] y Stream mapping : Stream #0:0 -> #0:0 (png
    (native) -> h264 (libx264)) Press [q] to stop, [?] for help [libx264 @
    0000016c2a46e000] using cpu capabilities : MMX2 SSE2Fast SSSE3 SSE4.2
    AVX FMA3 BMI2 AVX2 [libx264 @ 0000016c2a46e000] profile High 4:4:4
    Predictive, level 5.2, 4:4:4, 8-bit [libx264 @ 0000016c2a46e000] 264 -
    core 157 r2970 5493be8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 -
    http://www.videolan.org/x264.html - options : cabac=1 ref=3
    deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
    mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0
    deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=12
    lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0
    bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
    b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
    keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf
    mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
    aq=1:1.00 Output #0, mp4, to
    ’C :\Users\khj\Desktop\SpeakerLayoutTool\video.mp4’ : Metadata :
    encoder : Lavf58.27.103
    Stream #0:0 : Video : h264 (libx264) (avc1 / 0x31637661), yuv444p, 3840x2160, q=-1—1, 50 fps, 12800 tbn, 50 tbc
    Metadata :
    encoder : Lavc58.52.100 libx264
    Side data :
    cpb : bitrate max/min/avg : 0/0/0 buffer size : 0 vbv_delay : -1 frame= 250 fps= 22 q=-1.0 Lsize= 162kB time=00:00:04.94 bitrate=
    268.1kbits/s speed=0.444x

  • array_merge() : Argument #2 is not an array after adding class into providers

    19 juin 2019, par Daman Mokha

    I am using pbmedia/laravel-ffmpeg as soon as I installed and added the providers and alias, it shows me the following error. This code was simply working on another machine

    array_merge(): Argument #2 is not an array

    I have tried the following things

    1. Composer update/ and Fresh install
    2. Cleaning the bootstrap/cache/
    3. Checked the config file for laravel-ffmpeg it’s there and fine
    4. Publish the config file using the artisan CLI tool : php artisan vendor:publish —provider="Pbmedia\LaravelFFMpeg\FFMpegServiceProvider"

    Here is the portion from laravel.log when I tried to run.

    [2019-06-19 00:34:40] local.ERROR: ErrorException: array_merge(): Argument #2 is not an array in /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:59
    Stack trace:
    #0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'array_merge(): ...', '/Users/damanmok...', 59, Array)
    #1 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php(59): array_merge(Array, 1)
    #2 /Users/damanmokha/edetyv2/vendor/pbmedia/laravel-ffmpeg/src/FFMpegServiceProvider.php(25): Illuminate\Support\ServiceProvider->mergeConfigFrom('/Users/damanmok...', 'laravel-ffmpeg')
    #3 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(565): Pbmedia\LaravelFFMpeg\FFMpegServiceProvider->register()
    #4 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(74): Illuminate\Foundation\Application->register(Object(Pbmedia\LaravelFFMpeg\FFMpegServiceProvider))
    #5 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(540): Illuminate\Foundation\ProviderRepository->load(Array)
    #6 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(17): Illuminate\Foundation\Application->registerConfiguredProviders()
    #7 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(203): Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(Object(Illuminate\Foundation\Application))
    #8 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(267): Illuminate\Foundation\Application->bootstrapWith(Array)
    #9 /Users/damanmokha/edetyv2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(113): Illuminate\Foundation\Console\Kernel->bootstrap()
    #10 /Users/damanmokha/edetyv2/artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #11 {main}

    if I don’t add these providers it works fine, but then I am not able to use ffmpeg without that.

    • Laravel Version 5.3
    • pbmedia/laravel-ffmpeg 1.3
    • php version : 7.1
  • Fontconfig error : Cannot load default config file

    28 juin 2019, par sachin

    I am trying to add text in the video, but I am getting -

    Fontconfig error : Cannot load default config file
    [Parsed_drawtext_0 @ 0xea1aeaa0] impossible to init fontconfig

    below cmd to add text using FFmpeg lib-

    String[] cmd = new String[]
    "-i", savedVideoFilePath, "-vf", "drawtext=text="+"’"+timeStamp+"’"+" :
    fontfile=/android_asset/fonts/Poppins-Medium.ttf : fontcolor=white :
    fontsize=24 : x=(w-tw)/2 : y=(h/PHI)+th box=0 :","-codec:a" ,"copy" ,
    output_path
     ;

    log details -

    Error opening filters ! 2019-06-10 18:04:58.027
    18678-18678/com.rs.vir.debug E/FFMPEG FAilure : FAILED 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
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’/data/user/0/com.rs.vir.debug/files/VIR_Customer/EVINV12207201906100303240000/Videos/sample.mp4’ :
    Metadata :
    major_brand : mp42
    minor_version : 0
    compatible_brands : isommp42
    creation_time : 2019-06-10 12:34:55
    com.android.version : 8.1.0
    Duration : 00:00:06.66, start : 0.000000, bitrate : 3724 kb/s
    Stream #0:0(eng) : Video : h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 720x480, 3464 kb/s, SAR 1:1
    DAR 3:2, 30.04 fps, 30 tbr, 90k tbn, 180k tbc (default)
    Metadata :
    rotate : 90
    creation_time : 2019-06-10 12:34:55
    handler_name : VideoHandle
    Side data :
    displaymatrix : rotation of -90.00 degrees
    Stream #0:1(eng) : Audio : aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 255 kb/s (default)
    Metadata :
    creation_time : 2019-06-10 12:34:55
    handler_name : SoundHandle
    Fontconfig error : Cannot load default config file
    [Parsed_drawtext_0 @ 0xea1aeaa0] impossible to init fontconfig
    [AVFilterGraph @ 0xea1cb040] Error initializing filter ’drawtext’ with args
    ’text=java.util.GregorianCalendar[time=1560170097814,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=libcore.util.ZoneInfo[id="Asia/Kolkata",mRawOffset=19800000,mEarliestRawOffset=19800000,mUseDst=false,mDstSavings=0,transitions=5],firstDayOfWeek=2,minimalDaysInFirstWeek=4,ERA=1,YEAR=2019,MONTH=5,WEEK_OF_YEAR=24,WEEK_OF_MONTH=2,DAY_OF_MONTH=10,DAY_OF_YEAR=161,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=2,AM_PM=1,HOUR=6,HOUR_OF_DAY=18,MINUTE=4,SECOND=57,MILLISECOND=814,ZONE_OFFSET=19800000,DST_OFFSET=0] :
    fontfile=/android_asset/fonts/Poppins-Medium.ttf : fontcolor=white :
    fontsize=24 : x=(w-tw)/2 : y=(h/PHI)+th box=0 :’
    Error opening filters !

    please give me the solution for this.