Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (70)

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

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

Sur d’autres sites (6320)

  • FFMpeg PHP Package getting Error when loading in Laravel Queue

    18 mars 2020, par Steve Rogers

    I have created a code on Laravel to add watermark to my video with ffmpeg package. This function is working perfectly in when working with controller.

    Due to time consuming task I move the code to Laravel queue system and it successfully dispatch to queues table. but when I run php artisan queue:work the code getting error like

    Alchemy\BinaryDriver\Exception\ExecutionFailureException: ffmpeg failed to execute command '/usr/bin/ffmpeg' '-y' '-i' '/home/forge/demosite/public/frontend/video/1276841041584344642.mp4' '-threads' '12' '-vcodec' 'libx264' '-acodec' 'libmp3lame' '-b:v' '1000k' '-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' '256k' '-ac' '2' '-pass' '1' '-passlogfile' '/tmp/ffmpeg-passes5e6f2f04cec372bg0z/pass-5e6f2f04cecc2' '/home/forge/demosite/frontend/posts/video/org-post/n-w-post-video-org/17957037231584344836.mp4' in /home/forge/demosite/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/ProcessRunner.php:10

    In many references I can see that this issue related to permission issue of public folder. so I give 777 permission to public folder and it will not working...

    Working Code..

      $ffmpeg = FFMpeg\FFMpeg::create([
           'ffmpeg.binaries'  => '/usr/bin/ffmpeg',
           'ffprobe.binaries' => '/usr/bin/ffprobe' ,
           'timeout' => 3600, // The timeout for the underlying process
           'ffmpeg.threads' => 12, // The number of threads that FFMpeg should use
       ]);
       $video = $ffmpeg->open($this->file);
       $random = rand().''.time();
       $randomFileName = $random . ".$this->extension";

       /*-------------------------------original video----------------------------------------------*/
       $format = new FFMpeg\Format\Video\X264('libmp3lame', 'libx264');      
       $format->setKiloBitrate(1000)->setAudioChannels(2)->setAudioKiloBitrate(256);        
       // $saveLocation = getcwd() . '/frontend/video/uploads/n_w_org_vd/' . $randomFileName;
       $saveLocation = getcwd() . '/frontend/posts/video/org-post/n-w-post-video-org/' . $randomFileName;
       $video->save($format, $saveLocation);
       $filepath = 'frontend/posts/video/org-post/n-w-post-video-org/' . $randomFileName;
       Storage::put($filepath, file_get_contents($saveLocation),'public');    
  • How to optimize the decoder performance in ffmpeg ?

    16 mars 2018, par air

    Hi I am trying to get the non-decoded h264 format to use in another client application using ffmpeg command. The consumer application simply reads the h264. Now How do I optimize the below command ? My machine has GPU, I see only CPU is used, is there something I can add ?

    ffmpeg -pix_fmt yuv420p -hide_banner  -y -f v4l2 -vcodec h264 -video_size 1280x1020 -i /dev/video0 out.h264

    The verbose printed for reference is pasted below -

    user@ubuntu$  ffmpeg -pix_fmt yuv420p -hide_banner  -y -f v4l2 -vcodec h264 -video_size 1280x1020 -i /dev/video0 out.h264
       [video4linux2,v4l2 @ 0x17e0a20] The V4L2 driver changed the video from 1280x1020 to 1280x720
       Input #0, video4linux2,v4l2, from '/dev/video0':
         Duration: N/A, start: 871.695509, bitrate: N/A
           Stream #0:0: Video: h264 (Constrained Baseline), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 60 tbc
       No pixel format specified, yuvj420p for H.264 encoding chosen.
       Use -pix_fmt yuv420p for compatibility with outdated media players.
       [libx264 @ 0x1b80ac0] using SAR=1/1
       [libx264 @ 0x1b80ac0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
       [libx264 @ 0x1b80ac0] profile High, level 3.1
       Output #0, h264, to 'out.h264':
         Metadata:
           encoder         : Lavf56.40.101
           Stream #0:0: Video: h264 (libx264), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 30 fps, 30 tbn, 30 tbc
           Metadata:
             encoder         : Lavc56.60.100 libx264
       Stream mapping:
         Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
       Press [q] to stop, [?] for help
       frame= 1242 fps= 30 q=-1.0 Lsize=    4092kB time=00:00:41.33 bitrate= 811.1kbits/s dup=0 drop=4    
       video:4092kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
       [libx264 @ 0x1b80ac0] frame I:5     Avg QP:17.23  size: 59416
       [libx264 @ 0x1b80ac0] frame P:341   Avg QP:20.29  size:  8344
       [libx264 @ 0x1b80ac0] frame B:896   Avg QP:24.94  size:  1170
       [libx264 @ 0x1b80ac0] consecutive B-frames:  3.4%  1.1%  0.5% 95.0%
       [libx264 @ 0x1b80ac0] mb I  I16..4: 21.7% 46.7% 31.6%
       [libx264 @ 0x1b80ac0] mb P  I16..4:  1.8%  1.9%  0.4%  P16..4: 33.2%  5.0%  3.9%  0.0%  0.0%    skip:53.8%
       [libx264 @ 0x1b80ac0] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 18.8%  0.6%  0.1%  direct: 0.5%  skip:79.8%  L0:41.7% L1:55.6% BI: 2.7%
       [libx264 @ 0x1b80ac0] 8x8 transform intra:46.9% inter:56.0%
       [libx264 @ 0x1b80ac0] coded y,uvDC,uvAC intra: 33.9% 42.8% 12.2% inter: 3.0% 5.9% 0.1%
       [libx264 @ 0x1b80ac0] i16 v,h,dc,p: 14% 44% 12% 30%
       [libx264 @ 0x1b80ac0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 32% 29%  2%  4%  3%  5%  2%  5%
       [libx264 @ 0x1b80ac0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 30% 13%  4%  8%  6%  7%  3%  5%
       [libx264 @ 0x1b80ac0] i8c dc,h,v,p: 57% 23% 17%  2%
       [libx264 @ 0x1b80ac0] Weighted P-Frames: Y:1.8% UV:0.0%
       [libx264 @ 0x1b80ac0] ref P L0: 65.9%  4.5% 21.6%  8.0%  0.1%
       [libx264 @ 0x1b80ac0] ref B L0: 88.2% 10.0%  1.9%
       [libx264 @ 0x1b80ac0] ref B L1: 95.6%  4.4%
       [libx264 @ 0x1b80ac0] kb/s:809.79
  • vaapi_encode : Clean up the packed header configuration

    19 septembre 2018, par Mark Thompson
    vaapi_encode : Clean up the packed header configuration
    

    Add a larger warning more clearly explaining the consequences of missing
    packed header support in the driver. Also only write the extradata if the
    user actually requests it via the GLOBAL_HEADER flag.

    • [DH] libavcodec/vaapi_encode.c
    • [DH] libavcodec/vaapi_encode.h
    • [DH] libavcodec/vaapi_encode_h264.c
    • [DH] libavcodec/vaapi_encode_h265.c
    • [DH] libavcodec/vaapi_encode_mjpeg.c
    • [DH] libavcodec/vaapi_encode_mpeg2.c
    • [DH] libavcodec/vaapi_encode_vp8.c
    • [DH] libavcodec/vaapi_encode_vp9.c