Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (96)

  • 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 ;

  • 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 (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (8917)

  • Could not load or assembly or one of its dependencies

    29 juin 2017, par Prathibha Chiranthana

    I am using Aforge.net frame work for doing image processing work.
    I have add ’AForge.Video.FFMPEG.dll’ as a referance to my project.
    I am using VS2012 and 32 bit build target.
    When Buiding i get

    System.IO.FileNotFoundException was unhandled
     HResult=-2147024770
     Message=Could not load file or assembly 'AForge.Video.FFMPEG.dll' or one of its dependencies. The specified module could not be found.
     Source=VideoReadere
     FileName=AForge.Video.FFMPEG.dll
     FusionLog=""
     StackTrace:
          at VideoReadere.Form1..ctor()
          at VideoReadere.Program.Main() in c:\Users\Prabad\Documents\Visual Studio 2012\Projects\VideoReadere\VideoReadere\Program.cs:line 19
          at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
          at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
          at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
          at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
          at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
          at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
          at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
          at System.Threading.ThreadHelper.ThreadStart()
     InnerException:

    my code for that is occur exception

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using System.Windows.Forms;

    namespace VideoReadere
    {
       static class Program
       {
           /// <summary>
           /// The main entry point for the application.
           /// </summary>
           [STAThread]
           static void Main()
           {
               Application.EnableVisualStyles();
               Application.SetCompatibleTextRenderingDefault(false);
    //here below line give exception
               Application.Run(new Form1());
           }
       }
    }
  • Ffmpeg error in Docker Container : ffmpeg exited with code 1 :

    2 octobre 2017, par Uğur Kaya

    I am currently working on a project and almost ready to deploy, but there is one problem : the code which is working perfectly on my Ubuntu 16.04 (Elementary OS Loki) machine does not work in Docker container. What might be the problem in my code ?

    Here is my Dockerfile :

    FROM beevelop/nodejs-python:latest

    RUN apt-get -y update &amp;&amp; apt-get install -y libav-tools
    RUN ffmpeg --help

    # Global install yarn package manager
    RUN apt-get update &amp;&amp; apt-get install -y curl apt-transport-https &amp;&amp; \
       curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - &amp;&amp; \
       echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list &amp;&amp; \
       apt-get update &amp;&amp; apt-get install -y yarn

    WORKDIR /app
    COPY package.json .
    RUN yarn
    COPY . .
    RUN yarn prod:build
    EXPOSE 8080
    CMD [ "yarn", "start" ]

    I run sudo docker exec -it  ffmpeg --help and it outputs the expected help print. In my code, I download a Youtube video in mp4 format with this code :

    const download = idParam => (
     new Promise((fulfill, reject) => {
       const id = `http://www.youtube.com/watch?v=${idParam}`
       let videoMeta
       youtubedl(id, ['--format=36'], { cwd: __dirname })
         .on('info', (info) => {
           const customDimensions = calculateCustomDimensions(info.format)
           videoMeta = { ...info, ...customDimensions }
         })
         .pipe(fs.createWriteStream(`temp/${idParam}.mp4`))
         .on('finish', () => {
           console.log('Dirname: ', __dirname)
           fulfill(videoMeta)
         })
         .on('error', (err) => {
           console.log('There is an error:', err)
           console.log('Dirname: ', __dirname)
           reject(err)
         })
     })
    )

    And then try to process the video with fluent-ffmpeg :

    const processVideo = (videoName, cropStart, cropEnd) => (
     new Promise((resolve, reject) => {
       try {
         console.log('Trying to run ffmpeg binary.')
         ffmpeg()
           .addInput(`temp/${videoName}.mp4`)
           .seekInput(cropStart)
           .duration(cropEnd)
           .outputOption('-movflags frag_keyframe+faststart')
           .on('end', () => {
             console.log('Processing has finished with ffmpeg. ')
             console.log('Resolved for upload: ', [`temp/cropped_${videoName}.mp4`, `temp/${videoName}.mp4`])
             console.log('Going out of processVideo script.')
             resolve([`temp/cropped_${videoName}.mp4`, `temp/${videoName}.mp4`])
           })
           .on('error', (err, stdout, stderr) => {
             console.log('Error. Output option olmasına rağmen: ', err.message)
             console.log('ffmpeg output:\n', stdout)
             console.log('ffmpeg stderr:\n', stderr)
           })
           .save(`temp/cropped_${videoName}.mp4`)
       } catch (e) {
         console.log('There has been an error while converting ffmpeg binary!')
         console.log(e.msg)
         console.log(e.code)
         reject(e)
       }
     })
    )

    It gives the following error :

    Entering download script.
    WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this.

    `info.resolution` is deprecated, use `info.format`
    Dirname:  /app/lib/server/scripts
    Download script is done.
    Custom dimensions of the downloaded video:  320 180
    Crop start and end of the downloaded video:  00:00:00.517 00:00:00.998
    Entering processVideo script.
    Trying to run ffmpeg binary.
    Error:  ffmpeg exited with code 1:
    ffmpeg output:

    ffmpeg stderr:
    ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
     configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
     libavutil      54. 31.100 / 54. 31.100
     libavcodec     56. 60.100 / 56. 60.100
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 40.101 /  5. 40.101
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'temp/kfchvCyHmsc.mp4':
     Metadata:
       major_brand     : 3gp6
       minor_version   : 256
       compatible_brands: isom3gp6
       creation_time   : 2015-03-26 09:22:44
     Duration: 00:00:08.27, start: 0.000000, bitrate: 218 kb/s
       Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 320x180 [SAR 1:1 DAR 16:9], 187 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default)
       Metadata:
         creation_time   : 2015-03-26 09:22:44
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, mono, fltp, 31 kb/s (default)
       Metadata:
         creation_time   : 2015-03-26 09:22:44
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
    [libx264 @ 0x2641fc0] using SAR=1/1
    [libx264 @ 0x2641fc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x2641fc0] profile High, level 1.2
    [libx264 @ 0x2641fc0] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=-2 threads=6 lookahead_threads=1 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=23 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
    [aac @ 0x2642f00] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.
  • Unable to load FFProbe driver for FFmpeg

    12 septembre 2021, par Kapil Ropalekar

    Hi i am trying to install php-ffmpeg.
    Can someone guide me or correct me in my steps.

    &#xA;&#xA;

      &#xA;
    1. I installed the composer on windows and then traversed to my folder i had created to run install ffmpeg cmd

    2. &#xA;

    3. After running this command a composer.json, composer.lock file were created along with a vendor folder.

    4. &#xA;

    5. Later installed the Shared FFMpeg build for 64bit from here

      &#xA;&#xA;

      &#xA;

      http://ffmpeg.zeranoe.com/builds/

      &#xA;

    6. &#xA;

    &#xA;&#xA;

    and form this folder copied the bin folder to my directory to set the ffmpeg and ffprobe path during create() like this

    &#xA;&#xA;

    $ffmpeg = \FFMpeg\FFMpeg::create([&#xA;    &#x27;ffmpeg.binaries&#x27;  => &#x27;/vendor/bin/ffmpeg.exe&#x27;,&#xA;    &#x27;ffprobe.binaries&#x27; => &#x27;/vendor/bin/ffprobe.exe&#x27; &#xA;]);&#xA;

    &#xA;&#xA;

    Currently i am getting this error which says :

    &#xA;&#xA;

    "Fatal error: Uncaught exception &#x27;Alchemy\BinaryDriver\Exception\ExecutableNotFoundException&#x27; with message &#x27;Executable not found, proposed : /vendor/bin/&#x27; in D:\xampp\htdocs\health\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\AbstractBinary.php:160 Stack trace: #0 D:\xampp\htdocs\health\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Driver\FFProbeDriver.php(48): Alchemy\BinaryDriver\AbstractBinary::load(&#x27;/vendor/bin/&#x27;, NULL, Object(Alchemy\BinaryDriver\Configuration)) #1 D:\xampp\htdocs\health\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe.php(207): FFMpeg\Driver\FFProbeDriver::create(Array, NULL) #2 D:\xampp\htdocs\health\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFMpeg.php(117): FFMpeg\FFProbe::create(Array, NULL, NULL) #3 D:\xampp\htdocs\health\ff.php(6): FFMpeg\FFMpeg::create(Array) #4 {main} Next exception &#x27;FFMpeg\Exception\ExecutableNotFoundException&#x27; with message &#x27;Unable to load FFProbe&#x27; in D:\xampp\htdocs\health\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Driver\FFProbeDriver.php:50 Stack trace: #0 D:\xampp\htdocs\he in D:\xampp\htdocs\health\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Driver\FFProbeDriver.php on line 50".&#xA;

    &#xA;&#xA;

    So what could i have done wrong or am i missing any steps. Can someone point me to the right direction.

    &#xA;