Recherche avancée

Médias (91)

Autres articles (10)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (3023)

  • ffmpeg error=13 permission denied android 10 [closed]

    30 mars 2021, par MrParaskumar
    2021-03-26 12:10:36.988 12431-12727/? E/e: Exception while trying to run: [Ljava.lang.String;@c68db54
    java.io.IOException: Cannot run program "/data/user/0/package name/files/ffmpeg": error=13, Permission denied
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)
        at java.lang.Runtime.exec(Runtime.java:698)
        at java.lang.Runtime.exec(Runtime.java:563)
        at c.d.a.a.n.a(:10)
        at c.d.a.a.f.b(:38)
        at c.d.a.a.f.doInBackground(:10)
        at android.os.AsyncTask$3.call(AsyncTask.java:378)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:919)
     Caused by: java.io.IOException: error=13, Permission denied


    


  • ffmpeg in AWS EBS Php Environment

    3 janvier 2018, par Shihas

    I did a project in Codeigniter framework and uploaded to AWS EBS Php environment.

    In the below function I’m trying to create a thumbnail for the uploading video using ffmpeg.

    function test()
    {
       if($_FILES['video']['name'])
       {
           $extension = pathinfo($_FILES['video']['name'], PATHINFO_EXTENSION);

           $video_file = 'vid_'.time().rand(0,10000000);
           $video_file_name = $video_file.'.'.$extension;
           $video_thumb = $video_file.'.png';

           $path = base_url('/assets/portfolio_video/').$video_file_name;
           move_uploaded_file($_FILES["video"]["tmp_name"],$path);
           echo shell_exec("/usr/bin/ffmpeg -i /home/ubuntu/project/assets/portfolio_video/$video_file_name -ss 00:00:02.000 -vframes 1 /home/ubuntu/project/assets/thumbnail/$video_thumb");

           echo "File Name: ".$video_file_name."";
           echo "<img src="http://stackoverflow.com/feeds/tag/&#034;.base_url(&#034;assets/thumbnail/&#034;).$video_thumb.&#034;" style='max-width: 300px; max-height: 300px' />";
       }else{
           $this->load->view('test');
       }
    }  

    Here the problem was the video file itself not uploading. I just want to know why its not uploading files in AWS. But it works fine in my local server.

    Now I try to create a thumbnail for the already existing video in the server.

    Path of video file : /home/ubuntu/123.mp4

    Code executed :

    function test()
    {
       echo shell_exec("/usr/bin/ffmpeg -i /home/ubuntu/123.mp4 -ss 00:00:02.000 -vframes 1 /home/ubuntu/thumbnail.png");
    }

    But still the thumbnail is not creating.

    NOTE : When I execute the terminal command ffmpeg -i /home/ubuntu/123.mp4 -ss 00:00:02.000 -vframes 1 /home/ubuntu/thumbnail.png directly in the AWS server terminal its create the thumbnail successfully.

  • Why my ffmpeg libs are so large ? [on hold]

    9 avril 2014, par user3504221

    I compiled ffmpeg libs on my Ubuntu 64-bits using the following script :

      mkdir ~/ffmpeg_sources

    #x264

    cd ~/ffmpeg_sources
      wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
      tar xjvf last_x264.tar.bz2
      cd x264-snapshot*
      ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static --disable-asm
      make
      make install
      make distclean

    #FFmpeg

    cd ~/ffmpeg_sources
      wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
      tar xjvf ffmpeg-snapshot.tar.bz2
      cd ffmpeg
      PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"
      export PKG_CONFIG_PATH
      ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" \
      --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --extra-libs="-ldl" --   enable-gpl \
     --enable-libx264 --enable-x11grab --disable-yasm                                                                                                                              
      make
      make install
      make distclean
      hash -r

    But the final libs are really large (For example, libavcodec.a > 140 Mb). Anybody know why my libs are so large ?

    EDIT

    My Solutions :

    • add the option "—disable-debug" to the ./configure. The size of my libavcodec fell from 150Mb to 12Mb !
    • Remove all unnecessary codecs : Add the options -disable-encoders, —disable-decoders and then add only codecs you want with —enable-encoder=NAME and —enable-decoder=NAME. Print the list using ./configure —list-encoders —list-decoders. see ./configure —help for more information. (My final libavcodec has a size of 4Mo)