Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (97)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

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

  • FFMpeg : ffmpeg failed to execute command error

    28 mars 2017, par Richard McFriend Oluwamuyiwa

    I am trying to transcode a video file of 1.2mb file uploaded to my website server via php/html upload, but I keep getting the error :

    PHP Fatal error : Uncaught exception ’Alchemy\BinaryDriver\Exception\ExecutionFailureException’ with message ’ffmpeg failed to execute command ’/usr/local/bin/ffmpeg’ ’-y’ ’-i’ ’/home/user/public_html/contents/videos/1490719990_MP4_360p_Short_video_clip_nature_mp4.mp4’ ’-async’ ’1’ ’-metadata:s:v:0’ ’start_time=0’ ’-r’ ’16’ ’-b_strategy’ ’1’ ’-bf’ ’3’ ’-g’ ’9’ ’-vcodec’ ’libx264’ ’-acodec’ ’libmp3lame’ ’-b:v’ ’128k’ ’-refs’ ’6’ ’-coder’ ’1’ ’-sc_threshold’ ’40’ ’-flags’ ’+loop’ ’-me_range’ ’16’ ’-subq’ ’7’ ’-i_qfactor’ ’0.71’ ’-qcomp’ ’0.6’ ’-qdiff’ ’4’ ’-trellis’ ’1’ ’-b:a’ ’8k’ ’-ac’ ’1’ ’-pass’ ’1’ ’-passlogfile’ ’/tmp/ffmpeg-passes58dab05a323b6eknk4/pass-58dab05a32465’ ’/home/user/public_html/contents/videos/1490719990_MP4_360p_Short_video_clip_nature_mp4_22995.mp4’’ in /home/user/public_html/app/ffmpeg/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/ProcessRunner.php:100
    Stack trace :

    0 /home/user/public_html/app/ffmpeg/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/ProcessRunner.php(72) : Alch in /home/user/public_html/app/ffmpeg/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Media/Video.php on line 168

    Funny thing is that the same server is extracting frames and getting duration of the same file using ffprobe and ffmpeg.

    Here is the code I am using to transcode :

    $ffmpeg = $ffmpeg = FFMpeg\FFMpeg::create(['timeout'=>3600, 'ffmpeg.thread'=>12, 'ffmpeg.binaries'  => '/usr/local/bin/ffmpeg',
       'ffprobe.binaries' => '/usr/local/bin/ffprobe']);

               $ffprobe_prep = FFMpeg\FFProbe::create(['ffmpeg.binaries'  => '/usr/local/bin/ffmpeg',
       'ffprobe.binaries' => '/usr/local/bin/ffprobe']);
               $ffprobe = $ffprobe_prep->format($video_file);

               $video = $ffmpeg->open($video_file);

               // Get video duration to ensure our videos are never longer than our video limit.
               $duration = $ffprobe->get('duration');

               // Use mp4 format and set the audio bitrate to 56Kbit and Mono channel.
               // TODO: Try stereo later...
               $format = new FFMpeg\Format\Video\X264('libmp3lame', 'libx264');
               $format
                   -> setKiloBitrate(128)
                   -> setAudioChannels(1)
                   -> setAudioKiloBitrate(8);

               $first = $ffprobe_prep
                           ->streams($video_file)
                           ->videos()
                           ->first();

               $width = $first->get('width');

               if($width > VIDEO_WIDTH){
                   // Resize to 558 x 314 and resize to fit width.
                   $video
                       ->filters()
                       ->resize(new FFMpeg\Coordinate\Dimension(VIDEO_WIDTH, ceil(VIDEO_WIDTH / 16 * 9)));
               }

               // Trim to videos longer than three minutes to 3 minutes.
               if($duration > MAX_VIDEO_PLAYTIME){

                   $video
                       ->filters()
                       ->clip(FFMpeg\Coordinate\TimeCode::fromSeconds(0), FFMpeg\Coordinate\TimeCode::fromSeconds(MAX_VIDEO_PLAYTIME));
               }

               // Change the framerate to 16fps and GOP as 9.
               $video
                   ->filters()
                   ->framerate(new FFMpeg\Coordinate\FrameRate(16), 9);

               // Synchronize audio and video
               $video->filters()->synchronize();

               $video->save($format, $video_file_new_2);

    I have contacted my host to no vital assistance. The only useful information they can provide me is that ffmpeg was compiled on the server with libmp3lame support.

    This code works perfect on localhost

    Any help as to why I may be getting the error and how to correct it is appreciated.

  • vf_deinterlace_vaapi : Add support for field rate output

    27 février 2017, par Mark Thompson
    vf_deinterlace_vaapi : Add support for field rate output
    

    In order to work correctly with the i965 driver, this also fixes the
    direction of forward/backward references - forward references are
    intended to be those from the past to the current frame, not from the
    current frame to the future.

    • [DBH] libavfilter/vf_deinterlace_vaapi.c
  • AVFormatContext with alsa,v4l2 to output AVFormatContext

    8 mars 2017, par GeneralN00bs

    Read first : I’m a new guy with Stack Overflow, and poor English, so please excuse my English, which is really bad.

    I’m trying to do web streaming with open input device ; audio, video devices to HTML5 video.

    for example, this project using ffmpeg command to like this :

    ffmpeg -f v4l2 -i <video devices="devices"> -f alsa -i <audio devices="devices"> -f mpegts -codec:v mpeg1video -b:v 800k -framerate 24 -codec:a mp2 -b:a 128k http://localhost:8082/secret
    </audio></video>

    Here’s the main question : I can open 2 avformatcontext with C language like this :

    AVFormatContext* get_ctx(const char* dev,const char* driver,AVDictionary *options)
    {
         AVFormatContext *ictx = avformat_alloc_context();
         AVInputFormat *fmt = NULL;

         //get input format.
         fmt = av_find_input_format(driver);
         //if have options
         if(options){
             //open device with options
             if(avformat_open_input(&amp;ictx,dev,fmt,&amp;options)&lt;0){
                 printf("get device with options failed.\n");
                 return NULL;
             }
             //find stream info.
             if(avformat_find_stream_info(ictx,&amp;options)&lt;0){
                 printf("get stream info with options failed.\n");
                 return NULL;
             }
         //not have options.
         }else{
             if(avformat_open_input(&amp;ictx,dev,fmt,NULL)&lt;0){
                 printf("get device failed.\n");
                 return NULL;
             }
             if(avformat_find_stream_info(ictx,NULL)&lt;0){
                 printf("get stream info failed.\n");
                 return NULL;
             }
         }
         av_dump_format(ictx,0,adev,0);
         return ictx;
     }

    Well, get v4l2 and alsa devices successfully using function above. but
    I can’t figure it out (2 input avformatcontext) to output avformatcontext.
    Any idea how can I am muxing 2 avformatcontext to output avformatcontext ?