Recherche avancée

Médias (91)

Autres articles (94)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (6330)

  • ffmpeg : improving MP4 to webm ogg conversions

    14 juillet 2017, par Randy

    (Edited to include some of the things I’ve tried)

    I’m a musician, and occasional web coder. I’ve been using video editing software (old version of Roxio Videowave from 2011) to build promotional videos from clips of some of my performances, and I’d like to put some of them on my own web pages in HTML5 video format. So that currently means I need MP4, WEBM, and OGG conversions. Fortunately the editing software churns out some very nice MP4 (H264) files, and has plenty of options for doing so. I purposely output the output size about 2X the likely display size, in hopes of offering more detail for better conversions. Specifically, the video output was AVC/H.264, 800 x 450, 30fps, variable bit rate, but with 600000 as a base line (that was the default for this setting anyway).

    Now I’m nowhere near expert at this stuff, and I probably left out some important data. But bottom line, the resulting MP4 looked very good. Unfortunately, to put it on my own web page means at least converting to WEBM and OGG formats. It would be nice if all browsers just supported MP4, but then there would be licensing fees, so conversions are needed. Sadly, I’ve been wasting days now trying to do this with ffmpeg. Its easy to do, its doing it WELL that is a mystery to me. Just letting ffmpeg work using its defaults (meaning I just specify an input and output file) results in pretty terrible video. But I’ve also tried most of the settings for better quality available, and the resulting conversions are nowhere near as good as youtube’s conversions.

    Based on the info about my original MP4 file, can someone suggest some better settings for ffmpeg conversions to WEBM and OGG ? Am I going about this all wrong ? The best I’ve done so far was with a string like this, which specified a high quality and a fairly robust bit rate...

    ffmpeg -i input-file.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output-file.webm

    That was much better than the default settings, but still nowhere near the quality of YOUTUBE conversions. In my resulting WEBM video, you can pretty plainly see how the picture degrades, and will snap into focus every few seconds when a "key frame" comes up. These artifacts should not be so obvious. Thanks for any help.

  • Add watermark to video using ffmpeg in php not working

    13 juillet 2017, par Remya

    I need to watermark a mp4 video , Currently i am using this code, but it is not working , please solve this

    <?php $msg = exec('/usr/local/bin/ffmpeg -i uploads/videos/profile/movie.mp4 -vf "movie=logo.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:10 [out]" uploads/videos/profile/output.mp4 2>&1', $output); var_dump($output);?>

    The error shows

    array (size=27)  0 => string 'FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers' (length=72)  1 => string '  built on Jan 14 2016 22:33:21 with gcc 4.4.7 20120313 (Red Hat 4.4.7-16)' (length=74)  2 => string '  configuration: --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared --enable-libx264 --enable-libtheora --enable-libfaac --enable-avfilter --enable-gpl --enable-nonfree --enable-x11grab --enable-libxvid' (length=220)  3 => string '  libavutil     50.36. 0 / 50.36. 0' (length=35)  4 => string ' libavcore      0.16. 1 /  0.16. 1' (length=35)  5 => string '  libavcodec    52.108. 0 / 52.108. 0' (length=37)  6 => string '  libavformat   52.93. 0 / 52.93. 0' (length=35)  7 => string '  libavdevice   52. 2. 3 / 52. 2. 3' (length=35)  8 => string '  libavfilter    1.74. 0 /  1.74. 0' (length=35)  9 => string '  libswscale     0.12. 0 /  0.12. 0' (length=35)  10 => string 'Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'uploads/videos/profile/movie.mp4':' (length=75)  11 => string '  Metadata:' (length=11)  12 => string '   major_brand     : isom' (length=26)  13 => string '    minor_version   : 512' (length=25)  14 => string '    compatible_brands: isomiso2avc1mp41' (length=39)  15 => string '    creation_time   : 1970-01-01 00:00:00' (length=41)  16 => tring '    encoder         : Lavf53.24.2' (length=33)  17 => string '  Duration: 00:00:05.31, start: 0.000000, bitrate: 1589 kb/s' (length=60)  18 => string '    Stream #0.0(und): Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 1205 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc' (length=117)  19 => string '    Metadata:' (length=13)  20 => string '      creation_time   : 1970-01-01 00:00:00' (length=43)  21 => string '    Stream #0.1(und): Audio: aac, 48000 Hz, 5.1, s16, 384 kb/s' (length=62)  22 => string '    Metadata:' (length=13)  23 => string '      creation_time   : 1970-01-01 00:00:00' (length=43)  24 => string '[buffer @ 0x1e95f70] w:1280 h:720 pixfmt:yuv420p' (length=48)  25 => string 'No such filter: 'movie'' (length=23)  26 => string 'Error opening filters!' (length=22)
  • ffmpeg HLS transcoding and chunks upload to remote server

    25 mai 2020, par Georgе Stoyanov

    I am trying to create a so called origin server for storing the hls chunks and the manifest file on a remote server. The sending machine running ffmpeg is with IP : 192.168.178.50 and the web server which has to store both the HLS chunks and the manifest file is with IP : 192.168.178.100. My ffmpeg transcoding command line is :

    



    $ ffmpeg -i 01_llama_drama_1080p.mp4 -profile:v high -level 5.2 -s 1920x1080 -strict -2 -start_number 0 -hls_time 6 -hls_list_size 0 -f hls http://192.168.178.100/hls/test.m3u8

ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01_llama_drama_1080p.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2013-02-08 18:56:45
  Duration: 00:01:30.00, start: 0.000000, bitrate: 3120 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 2925 kb/s, 24 fps, 24 tbr, 48 tbn, 48 tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default)
    Metadata:
      creation_time   : 2013-02-08 18:56:46
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
[libx264 @ 0x249b880] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x249b880] profile High, level 5.2
Output #0, hls, to 'http://185.71.86.48/hls/test.m3u8':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    encoder         : Lavf56.40.101
    Stream #0:0(und): Video: h264 (libx264), yuv420p, 1920x1080, q=-1--1, 24 fps, 90k tbn, 24 tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
      encoder         : Lavc56.60.100 libx264
    Stream #0:1(und): Audio: aac, 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2013-02-08 18:56:46
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
      encoder         : Lavc56.60.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[hls @ 0x24997e0] Cannot use rename on non file protocol, this may lead to races and temporarly partial files


    



    But no matter what method I am using I got in the access log of my apache web server the following errors :

    



    $ tail -f /var/log/apache2/access.log

192.168.178.50 - - [27/Jun/2017:10:40:45 +0000] "POST /hls/test.m3u8 HTTP/1.1" 404 469 "-" "Lavf/56.40.101"
192.168.178.50 - - [27/Jun/2017:10:40:45 +0000] "POST /hls/test12.ts HTTP/1.1" 404 469 "-" "Lavf/56.40.101"
192.168.178.50 - - [27/Jun/2017:10:40:46 +0000] "POST /hls/test.m3u8 HTTP/1.1" 404 469 "-" "Lavf/56.40.101"
192.168.178.50 - - [27/Jun/2017:10:40:46 +0000] "POST /hls/test13.ts HTTP/1.1" 404 469 "-" "Lavf/56.40.101"
192.168.178.50 - - [27/Jun/2017:10:40:47 +0000] "POST /hls/test.m3u8 HTTP/1.1" 404 469 "-" "Lavf/56.40.101"
192.168.178.50 - - [27/Jun/2017:10:46:44 +0000] "POST /hls/test0.ts HTTP/1.1" 404 468 "-" "Lavf/56.40.101"
192.168.178.50 - - [27/Jun/2017:10:46:51 +0000] "POST /hls/test.m3u8 HTTP/1.1" 404 469 "-" "Lavf/56.40.101"


    



    These are the supported methods on my web server :

    



    $ nmap -Pn -p 80 --script http-methods 192.168.178.100

Starting Nmap 7.01 ( https://nmap.org ) at 2017-06-27 10:47 UTC
Nmap scan report for 192.168.178.100
Host is up (0.0015s latency).
PORT   STATE SERVICE
80/tcp open  http
| http-methods:
|_  Supported Methods: GET HEAD POST OPTIONS

Nmap done: 1 IP address (1 host up) scanned in 0.34 seconds


    



    My web server is running apache2 on Ubuntu 16.04 :

    



    $ apache2 -v

Server version: Apache/2.4.18 (Ubuntu)
Server built:   2017-06-26T11:58:04


    



    So according to the access.log file no matter what method I define in the ffmpeg command line it is always trying to upload the chunks using HTTP POST, but the latter is already supported and the directory I am directing the chunks has even 777 rights. Am I missing something here ?