Recherche avancée

Médias (0)

Mot : - Tags -/serveur

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (68)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

Sur d’autres sites (11225)

  • Changing/Replace 1st dot in every generated jpg filename from video to remain single dot

    23 mars 2019, par Mr.AX

    my site is using ffmpeg to generate a thumbnail jpg for every video being uploaded. The code as below :

    // get the videos uploaded
    foreach ($videos as $video) {
       if ($profile_author_id == $userid || current_user_can('level_10')) {
           $imagebuttons = '<span class="edit-buttons"><span class="icon button-delete icon-cancel rad3"></span></span>';
       }

       echo '<div class="profile-video-thumb-wrapper"><div class="profile-img-thumb profile-video-thumb rad3" style="background: url('.$video->guid.'.jpg) center no-repeat; background-size: cover;">';
       echo    $imagebuttons;

       if(get_post_meta($video->ID, 'processing', true) &amp;&amp; !is_video_processing_running(get_post_meta($video->ID, 'processing', true))) {
           delete_post_meta($video->ID, 'processing');
           unlink(get_post_meta($video->ID, "original_file", true));
           delete_post_meta($video->ID, 'original_file');

       }
       $file_path = get_attached_file($video->ID);
       $file_path_thumb = $file_path.".jpg";
       if(!file_exists($file_path_thumb)) {
           $output = shell_exec("/usr/local/bin/ffmpeg -i $file_path");
           $videoresizeheight = get_option("videoresizeheight") ? get_option("videoresizeheight") : '400';
           $comd = "/usr/local/bin/ffmpeg -y -i \"$file_path\" -f mjpeg -vframes 1 -ss 00:00:03.000 -vf scale=".$videoresizeheight.":-1 \"$file_path_thumb\" 2>&amp;1";
           shell_exec($comd);
       }

       if(get_post_meta($video->ID, 'processing', true)) {
           if ($profile_author_id == $userid || current_user_can('level_10')) {
               echo '<span class="video-processing rad3">'._d('this video is still processing',1269).'</span>';
               echo '<img data-original-url="'.get_template_directory_uri().'/i/video-placeholder.svg" class="mobile-ready-img rad3" alt="'.get_the_title().'" data-responsive-img-url="'.get_template_directory_uri().'/i/video-placeholder-mobile.svg" style='max-width: 300px; max-height: 300px' />';
           }
       } else {
           echo '<div></div>([^a-zA-Z0-9])/", "", $video->post_title).'" class="video-player-lightbox text-center hide" itemprop="video" itemscope itemtype="http://schema.org/VideoObject">';
           echo    '';
           echo    '';
           echo    '<video height="100%" width="100%" controls="controls">';
           echo        '<source src="'.$video->guid.'" type="video/mp4">';
           echo        _d("Your browser does not support the video tag.",1270);
           echo    '</source></video> ';
           echo '</div>';

           echo '<a href="#'.preg_replace("></a>([^a-zA-Z0-9])/", "", $video->post_title).'" rel="profile-video">';
           echo    '<img src="http://stackoverflow.com/feeds/tag/src" style='max-width: 300px; max-height: 300px' />"'.$video->guid.'.jpg" class="hide" />';
           echo    '<img src="http://stackoverflow.com/feeds/tag/&#039;.get_template_directory_uri().&#039;/i/video-placeholder.svg" class="video-image-play" style='max-width: 300px; max-height: 300px' />';
           echo '';
       }

       echo '<div class="clear"></div></div>'."\n";
    }
    if(count($videos) > 0) {
       echo '<div class="clear10"></div>';
    }

    This as a result generates a thumbnail jpg file for every video uploaded ; but the problem occurs when the filename of jpg includes a dot brought forward from the original video file, example I upload a video with filename video.mp4, this will generate a jpg file call video.mp4.jpg. And this, my website will treat this file as none existence.

    Now I need to find a solution that can generate the correct thumbnail filename while still sticking to use wordpress tags, which is changing the .mp4 to -mp4 when adding an additional .jpg extention.

  • Evolution #4768 : Sus aux préfixes navigateurs

    5 mai 2021, par RastaPopoulos ♥

    Vous avez peut-être déjà vu car ça ressort dans les premiers, mais celui là intègre bien grid, flex, etc + accepte régulièrement les PR, ya des ajouts là en 2021 :
    https://github.com/padaliyajay/php-autoprefixer

  • How to include audio in an overlay ffmpeg command ?

    27 avril 2021, par gilad s

    Using ffmpeg I add a video overlay successfully over an origin video (origin has audio, overlay doesn't). However the audio of the origin video doesn't appear in the result video.

    &#xA;

      ffmpeg  -i source.mp4 -i overlay.mp4 -filter_complex "[0:v]setpts=PTS-STARTPTS, scale=1280x720[top]; &#xA;  [1:v]setpts=PTS-STARTPTS, scale=1280x720, format=yuva420p, &#xA;  colorchannelmixer=aa=0.2[bottom]; [top][bottom]overlay=shortest=1" &#xA;  -shortest -acodec copy -vcodec libx264 result1.mp4&#xA;

    &#xA;

    Even if I execute the following separate command on the result of the previous command - still no audio appears in the new result video.

    &#xA;

      ffmpeg -i result1.mp4 -i audio.mp3 -c:v copy -c:a aac result2.mp4&#xA;

    &#xA;

    Here is the log :

    &#xA;

    ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with Apple clang version 11.0.0 (clang-1100.0.33.17)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.4 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox&#xA;  libavutil      56. 70.100 / 56. 70.100&#xA;  libavcodec     58.134.100 / 58.134.100&#xA;  libavformat    58. 76.100 / 58. 76.100&#xA;  libavdevice    58. 13.100 / 58. 13.100&#xA;  libavfilter     7.110.100 /  7.110.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  9.100 /  5.  9.100&#xA;  libswresample   3.  9.100 /  3.  9.100&#xA;  libpostproc    55.  9.100 / 55.  9.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;course/final_video/3008_01_01_01_audio.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.76.100&#xA;  Duration: 00:06:01.48, start: 0.000000, bitrate: 215 kb/s&#xA;  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 141 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, mono, fltp, 70 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;Input #1, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;images/overlay.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.76.100&#xA;  Duration: 00:24:00.38, start: 0.000000, bitrate: 575 kb/s&#xA;  Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 442 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : ISO Media file produced by Google Inc. Created on: 11/22/2020.&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : ISO Media file produced by Google Inc. Created on: 11/22/2020.&#xA;      vendor_id       : [0][0][0][0]&#xA;Stream mapping:&#xA;  Stream #0:0 (h264) -> setpts&#xA;  Stream #1:0 (h264) -> setpts&#xA;  overlay -> Stream #0:0 (libx264)&#xA;  Stream #1:1 -> #0:1 (copy)&#xA;Press [q] to stop, [?] for help&#xA;[swscaler @ 0x10c590000] No accelerated colorspace conversion found from yuva420p to argb.&#xA;[libx264 @ 0x7fc532813200] using SAR=1/1&#xA;[libx264 @ 0x7fc532813200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0x7fc532813200] profile High, level 3.1, 4:2:0, 8-bit&#xA;[libx264 @ 0x7fc532813200] 264 - core 161 r3049 55d517b - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - 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=25 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&#xA;Output #0, mp4, to &#x27;course/final_video/3008_01_01_01_overlay.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.76.100&#xA;  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 12800 tbn (default)&#xA;    Metadata:&#xA;      encoder         : Lavc58.134.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : ISO Media file produced by Google Inc. Created on: 11/22/2020.&#xA;      vendor_id       : [0][0][0][0]&#xA;&#xA;Stream mapping:&#xA;  Stream #0:0 (h264) -> setpts&#xA;  Stream #1:0 (h264) -> setpts&#xA;  overlay -> Stream #0:0 (libx264)&#xA;  Stream #1:1 -> #0:1 (copy)&#xA;Press [q] to stop, [?] for help&#xA;[swscaler @ 0x10c590000] No accelerated colorspace conversion found from yuva420p to argb.&#xA;[libx264 @ 0x7fc532813200] using SAR=1/1&#xA;[libx264 @ 0x7fc532813200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0x7fc532813200] profile High, level 3.1, 4:2:0, 8-bit&#xA;[libx264 @ 0x7fc532813200] 264 - core 161 r3049 55d517b - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - 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=25 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&#xA;Output #0, mp4, to &#x27;course/final_video/3008_01_01_01_overlay.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.76.100&#xA;  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 12800 tbn (default)&#xA;    Metadata:&#xA;      encoder         : Lavc58.134.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : ISO Media file produced by Google Inc. Created on: 11/22/2020.&#xA;      vendor_id       : [0][0][0][0]&#xA;frame= 9037 fps= 32 q=-1.0 Lsize=   20954kB time=00:06:01.62 bitrate= 474.7kbits/s speed=1.26x    &#xA;video:15006kB audio:5651kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.439596%&#xA;[libx264 @ 0x7fc532813200] frame I:37    Avg QP:14.51  size:123799&#xA;[libx264 @ 0x7fc532813200] frame P:2277  Avg QP:16.97  size:  3221&#xA;[libx264 @ 0x7fc532813200] frame B:6723  Avg QP:24.31  size:   513&#xA;[libx264 @ 0x7fc532813200] consecutive B-frames:  0.8%  0.0%  0.0% 99.2%&#xA;[libx264 @ 0x7fc532813200] mb I  I16..4:  8.3% 64.9% 26.9%&#xA;[libx264 @ 0x7fc532813200] mb P  I16..4:  0.5%  1.1%  0.2%  P16..4: 16.1%  3.1%  2.3%  0.0%  0.0%    skip:76.7%&#xA;[libx264 @ 0x7fc532813200] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 10.5%  0.1%  0.0%  direct: 0.2%  skip:89.2%  L0:45.2% L1:54.7% BI: 0.1%&#xA;[libx264 @ 0x7fc532813200] 8x8 transform intra:63.6% inter:83.0%&#xA;[libx264 @ 0x7fc532813200] coded y,uvDC,uvAC intra: 56.4% 61.0% 42.7% inter: 1.9% 1.9% 0.0%&#xA;[libx264 @ 0x7fc532813200] i16 v,h,dc,p: 29% 18% 18% 35%&#xA;[libx264 @ 0x7fc532813200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 19% 31%  4%  4%  4%  4%  5%  5%&#xA;[libx264 @ 0x7fc532813200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 22% 15%  4%  5%  6%  5%  5%  5%&#xA;[libx264 @ 0x7fc532813200] i8c dc,h,v,p: 51% 29% 14%  6%&#xA;[libx264 @ 0x7fc532813200] Weighted P-Frames: Y:0.0% UV:0.0%&#xA;[libx264 @ 0x7fc532813200] ref P L0: 66.0%  6.9% 17.0% 10.1%&#xA;[libx264 @ 0x7fc532813200] ref B L0: 77.2% 20.6%  2.2%&#xA;[libx264 @ 0x7fc532813200] ref B L1: 90.2%  9.8%&#xA;[libx264 @ 0x7fc532813200] kb/s:340.06&#xA;

    &#xA;