Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (66)

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

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

  • How to automaitcally install ffmepg in c#

    25 janvier 2021, par user14527374

    so I am writing a c# application which uses ffmpeg to upscale videos. Currently, it checks if ffmpeg is installed, and if not, prompts the user to install it.

    


    {
        if (File.Exists(@"C:\ffmpeg-2020-12-27-git-bff6fbead8-full_build\bin\ffmpeg.exe"))
        {
            
        MessageBox.Show("Please note that this will only upsalce a video, it will not remaster it. Program C 2020 Keifmeister Technologies. Aka this will clear up the image but not upgrade character models or anything. Cheers.");
    }
    else
    {
        MessageBox.Show("You need to have ffmpeg installed, and you do not. Opening download link, please extract the downloaded zip file to root of yout c:\\ drive. Thanks.");
        Process.Start("https://github.com/GyanD/codexffmpeg/releases/download/2020-12-27-git-bff6fbead8/ffmpeg-2020-12-27-git-bff6fbead8-full_build.zip");
    }
}


    


    I am wondering, is there instead a way to install ffmpeg automatically and print its install location as a string ? Thanks very much.

    


  • How to merge multiple videos and audios in python ffpmeg [closed]

    18 décembre 2020, par Alireza Farzaneh

    I'm making a program for downloading Adobe connect based meetings' recordings using python.
I have managed to download Adobe connect sessions' recording.
    
Now I have multiple separate audios and videos.
    
I'm trying to merge them into one video using python and ffmpeg library.
    
The problem is that I want them to be in sync.
    

    
Here is an example :
    
I have four files :

    "cameraVoip_0_4.flv" : audio, started at "Sat Nov 07 13:36:11 2020" and lasted for 2888.128000 seconds.

    "cameraVoip_0_6.flv" : audio, started at "Sat Nov 07 14:26:42 2020" and lasted for 366.455 seconds.

    "screenshare_1_2.flv" : video, started at "Sat Nov 07 13:36:01 2020" and lasted for 2844.602000 seconds.

    "screenshare_3_7.flv" : video, started at "Sat Nov 07 14:26:51 2020" and lasted for 352.635000 seconds.


    
I want to merge them somehow that their timing would be correct.

    


  • FFMpeg : ffmpeg failed to execute command error

    4 mars 2020, 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.