Recherche avancée

Médias (91)

Autres articles (54)

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

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

  • MediaSPIP : Modification des droits de création d’objets et de publication définitive

    11 novembre 2010, par

    Par défaut, MediaSPIP permet de créer 5 types d’objets.
    Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
    Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...)

Sur d’autres sites (11590)

  • Anomalie #4719 (Nouveau) : [d3js] Décorreler la durée (3 mois, 2 ans) du type d’affichage (jours /...

    9 avril 2021

    Sur les statistiques des visites, les boutons 3 mois, 2 ans, 5 ans, infini, sont associés à un affichage spécifique qui regroupe les données en tranches.

    - Jusqu’à 3 mois, on regroupe par jour,
    - 2 ans, on regroupe par semaine,
    - au delà de 5 ans, par an.

    Il y a 2 raisons :

    - la première est une question d’affichage : afficher 730 jours (2 ans) ferait des barres trop étroites pour être lisibles
    - la seconde concerne l’archivage des statistiques (actuellement optionnelles) qui, si on le fait, regroupe les visites de plus de 2 ans, sur le 1er jour du mois, et de plus de 5 ans sur le premier jour de l’année.

    Pour décorréler ces éléments, il faudrait 2 graphiques :

    - l’un petit avec l’ensemble des données qui sert de sélecteur de plage de date,
    - l’autre qui affiche le contenu de la plage sélectionnée. Tel que https://bl.ocks.org/robyngit/89327a78e22d138cff19c6de7288c1cf (ici un graphique "line", mais c’est la même idée avec l’histogramme)

    L’inconvénient est qu’il faut charger l’ensemble des données que l’on connaît obligatoirement pour avoir ce petit graphique, ce qui peut être copieux sur un affichage par jour (3600 lignes donc pour 10 ans de stats). A priori c’est pas non plus une quantité extravagante à traiter en JS. Enfin l’affichage "histogramme" est peut être pas le plus adapté dans ce cas car si on sélectionne une trop grande plage, les barres seraient trop étroites.

    Cependant le calcul actuel du json et le JS actuel des statistiques savent traiter les durées et types d’affichage que l’on désirerait. Ça rend juste le graphique potentiellement illisible si le fait tel quel.

  • Writing an MP4 file on the Mac with OpenCV ffmpeg

    31 décembre 2020, par Sameer Parekh

    I am using OpenCV with ffmpeg on a mac to write video. I've been able to successfully write .avi files using the codec/fourcc code, FMP4. I would like to write .mp4 files, however. When I try to write an .mp4 file using fourcc FMP4 I get this error :

    



    [mp4 @ 0x100b4ec00] Tag FMP4/0x34504d46 incompatible with output codec id '13' ( [0][0][0])


    



    When I use AVC1 I get the following error :

    



    [libx264 @ 0x104003000] broken ffmpeg default settings detected&#xA;[libx264 @ 0x104003000] use an encoding preset (e.g. -vpre medium)&#xA;[libx264 @ 0x104003000] preset usage: -vpre <speed> -vpre <profile>&#xA;[libx264 @ 0x104003000] speed presets are listed in x264 --help&#xA;[libx264 @ 0x104003000] profile is optional; x264 defaults to high&#xA;Could not open codec &#x27;libx264&#x27;: Unspecified error&#xA;</profile></speed>

    &#xA;&#xA;

    Does anyone here know the right codec to use with OpenCV and ffmpeg to write to an MP4 container on the Mac ?

    &#xA;&#xA;

    If AVC1 is the right codec, how do I install ffmpeg + OpenCV correctly ? I did

    &#xA;&#xA;

    brew install gpac&#xA;brew install ffmpeg&#xA;brew install opencv&#xA;

    &#xA;&#xA;

    The call I am using to open the videowriter :

    &#xA;&#xA;

    fourcc = cv2.cv.CV_FOURCC(&#x27;A&#x27;, &#x27;V&#x27;, &#x27;C&#x27;, &#x27;1&#x27;)   &#xA;video_out = cv2.VideoWriter(&#xA;    filename=output_filename,&#xA;    fourcc=fourcc,&#xA;    fps=video_fps,&#xA;    frameSize=(video_width,video_height),&#xA;    isColor=1)&#xA;

    &#xA;&#xA;

    When I run x264 --help I get

    &#xA;&#xA;

    % x264 --help&#xA;x264 core:125&#xA;Syntax: x264 [options] -o outfile infile&#xA;&#xA;Infile can be raw (in which case resolution is required),&#xA;  or YUV4MPEG (*.y4m),&#xA;  or Avisynth if compiled with support (no).&#xA;  or libav* formats if compiled with lavf support (no) or ffms support (no).&#xA;Outfile type is selected by filename:&#xA; .264 -> Raw bytestream&#xA; .mkv -> Matroska&#xA; .flv -> Flash Video&#xA; .mp4 -> MP4 if compiled with GPAC support (no)&#xA;Output bit depth: 8 (configured at compile time)&#xA;&#xA;Options:&#xA;&#xA;  -h, --help                  List basic options&#xA;      --longhelp              List more options&#xA;      --fullhelp              List all options&#xA;&#xA;Example usage:&#xA;&#xA;      Constant quality mode:&#xA;            x264 --crf 24 -o <output> <input />&#xA;&#xA;      Two-pass with a bitrate of 1000kbps:&#xA;            x264 --pass 1 --bitrate 1000 -o <output> <input />&#xA;            x264 --pass 2 --bitrate 1000 -o <output> <input />&#xA;&#xA;      Lossless:&#xA;            x264 --qp 0 -o <output> <input />&#xA;&#xA;      Maximum PSNR at the cost of speed and visual quality:&#xA;            x264 --preset placebo --tune psnr -o <output> <input />&#xA;&#xA;      Constant bitrate at 1000kbps with a 2 second-buffer:&#xA;            x264 --vbv-bufsize 2000 --bitrate 1000 -o <output> <input />&#xA;&#xA;Presets:&#xA;&#xA;      --profile <string>      Force the limits of an H.264 profile&#xA;                                  Overrides all settings.&#xA;                                  - baseline,main,high,high10,high422,high444&#xA;      --preset <string>       Use a preset to select encoding settings [medium]&#xA;                                  Overridden by user settings.&#xA;                                  - ultrafast,superfast,veryfast,faster,fast&#xA;                                  - medium,slow,slower,veryslow,placebo&#xA;      --tune <string>         Tune the settings for a particular type of source&#xA;                              or situation&#xA;                                  Overridden by user settings.&#xA;                                  Multiple tunings are separated by commas.&#xA;                                  Only one psy tuning can be used at a time.&#xA;                                  - psy tunings: film,animation,grain,&#xA;                                                 stillimage,psnr,ssim&#xA;                                  - other tunings: fastdecode,zerolatency&#xA;&#xA;Frame-type options:&#xA;&#xA;  -I, --keyint <integer or="or"> Maximum GOP size [250]&#xA;      --tff                   Enable interlaced mode (top field first)&#xA;      --bff                   Enable interlaced mode (bottom field first)&#xA;      --pulldown <string>     Use soft pulldown to change frame rate&#xA;                                  - none, 22, 32, 64, double, triple, euro (requires cfr input)&#xA;&#xA;Ratecontrol:&#xA;&#xA;  -B, --bitrate <integer>     Set bitrate (kbit/s)&#xA;      --crf <float>           Quality-based VBR (0-51) [23.0]&#xA;      --vbv-maxrate <integer> Max local bitrate (kbit/s) [0]&#xA;      --vbv-bufsize <integer> Set size of the VBV buffer (kbit) [0]&#xA;  -p, --pass <integer>        Enable multipass ratecontrol&#xA;                                  - 1: First pass, creates stats file&#xA;                                  - 2: Last pass, does not overwrite stats file&#xA;&#xA;Input/Output:&#xA;&#xA;  -o, --output <string>       Specify output file&#xA;      --sar width:height      Specify Sample Aspect Ratio&#xA;      --fps   Specify framerate&#xA;      --seek <integer>        First frame to encode&#xA;      --frames <integer>      Maximum number of frames to encode&#xA;      --level <string>        Specify level (as defined by Annex A)&#xA;      --quiet                 Quiet Mode&#xA;&#xA;Filtering:&#xA;&#xA;      --vf, --video-filter <filter0>/<filter1>/... Apply video filtering to the input file&#xA;&#xA;      Filter options may be specified in <filter>:<option>=<value> format.&#xA;&#xA;      Available filters:&#xA;      crop:left,top,right,bottom&#xA;      select_every:step,offset1[,...]&#xA;</value></option></filter></filter1></filter0></string></integer></integer></string></integer></integer></integer></float></integer></string></integer></string></string></string></output></output></output></output></output></output>

    &#xA;&#xA;

    Thanks,&#xA;-s

    &#xA;

  • Writing an MP4 file on the Mac with OpenCV ffmpeg

    13 janvier 2015, par Sameer Parekh

    I am using OpenCV with ffmpeg on a mac to write video. I’ve been able to successfully write .avi files using the codec/fourcc code, FMP4. I would like to write .mp4 files, however. When I try to write an .mp4 file using fourcc FMP4 I get this error :

    [mp4 @ 0x100b4ec00] Tag FMP4/0x34504d46 incompatible with output codec id '13' ( [0][0][0])

    When I use AVC1 I get the following error :

    [libx264 @ 0x104003000] broken ffmpeg default settings detected
    [libx264 @ 0x104003000] use an encoding preset (e.g. -vpre medium)
    [libx264 @ 0x104003000] preset usage: -vpre <speed> -vpre <profile>
    [libx264 @ 0x104003000] speed presets are listed in x264 --help
    [libx264 @ 0x104003000] profile is optional; x264 defaults to high
    Could not open codec 'libx264': Unspecified error
    </profile></speed>

    Does anyone here know the right codec to use with OpenCV and ffmpeg to write to an MP4 container on the Mac ?

    If AVC1 is the right codec, how do I install ffmpeg + OpenCV correctly ? I did

    brew install gpac
    brew install ffmpeg
    brew install opencv

    The call I am using to open the videowriter :

    fourcc = cv2.cv.CV_FOURCC('A', 'V', 'C', '1')  
    video_out = cv2.VideoWriter(
       filename=output_filename,
       fourcc=fourcc,
       fps=video_fps,
       frameSize=(video_width,video_height),
       isColor=1)

    When I run x264 --help I get

    % x264 --help
    x264 core:125
    Syntax: x264 [options] -o outfile infile

    Infile can be raw (in which case resolution is required),
     or YUV4MPEG (*.y4m),
     or Avisynth if compiled with support (no).
     or libav* formats if compiled with lavf support (no) or ffms support (no).
    Outfile type is selected by filename:
    .264 -> Raw bytestream
    .mkv -> Matroska
    .flv -> Flash Video
    .mp4 -> MP4 if compiled with GPAC support (no)
    Output bit depth: 8 (configured at compile time)

    Options:

     -h, --help                  List basic options
         --longhelp              List more options
         --fullhelp              List all options

    Example usage:

         Constant quality mode:
               x264 --crf 24 -o <output> <input />

         Two-pass with a bitrate of 1000kbps:
               x264 --pass 1 --bitrate 1000 -o <output> <input />
               x264 --pass 2 --bitrate 1000 -o <output> <input />

         Lossless:
               x264 --qp 0 -o <output> <input />

         Maximum PSNR at the cost of speed and visual quality:
               x264 --preset placebo --tune psnr -o <output> <input />

         Constant bitrate at 1000kbps with a 2 second-buffer:
               x264 --vbv-bufsize 2000 --bitrate 1000 -o <output> <input />

    Presets:

         --profile <string>      Force the limits of an H.264 profile
                                     Overrides all settings.
                                     - baseline,main,high,high10,high422,high444
         --preset <string>       Use a preset to select encoding settings [medium]
                                     Overridden by user settings.
                                     - ultrafast,superfast,veryfast,faster,fast
                                     - medium,slow,slower,veryslow,placebo
         --tune <string>         Tune the settings for a particular type of source
                                 or situation
                                     Overridden by user settings.
                                     Multiple tunings are separated by commas.
                                     Only one psy tuning can be used at a time.
                                     - psy tunings: film,animation,grain,
                                                    stillimage,psnr,ssim
                                     - other tunings: fastdecode,zerolatency

    Frame-type options:

     -I, --keyint <integer or="or"> Maximum GOP size [250]
         --tff                   Enable interlaced mode (top field first)
         --bff                   Enable interlaced mode (bottom field first)
         --pulldown <string>     Use soft pulldown to change frame rate
                                     - none, 22, 32, 64, double, triple, euro (requires cfr input)

    Ratecontrol:

     -B, --bitrate <integer>     Set bitrate (kbit/s)
         --crf <float>           Quality-based VBR (0-51) [23.0]
         --vbv-maxrate <integer> Max local bitrate (kbit/s) [0]
         --vbv-bufsize <integer> Set size of the VBV buffer (kbit) [0]
     -p, --pass <integer>        Enable multipass ratecontrol
                                     - 1: First pass, creates stats file
                                     - 2: Last pass, does not overwrite stats file

    Input/Output:

     -o, --output <string>       Specify output file
         --sar width:height      Specify Sample Aspect Ratio
         --fps   Specify framerate
         --seek <integer>        First frame to encode
         --frames <integer>      Maximum number of frames to encode
         --level <string>        Specify level (as defined by Annex A)
         --quiet                 Quiet Mode

    Filtering:

         --vf, --video-filter <filter0>/<filter1>/... Apply video filtering to the input file

         Filter options may be specified in <filter>:<option>=<value> format.

         Available filters:
         crop:left,top,right,bottom
         select_every:step,offset1[,...]
    </value></option></filter></filter1></filter0></string></integer></integer></string></integer></integer></integer></float></integer></string></integer></string></string></string></output></output></output></output></output></output>

    Thanks,
    - s