Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (111)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Les notifications de la ferme

    1er décembre 2010, par

    Afin d’assurer une gestion correcte de la ferme, il est nécessaire de notifier plusieurs choses lors d’actions spécifiques à la fois à l’utilisateur mais également à l’ensemble des administrateurs de la ferme.
    Les notifications de changement de statut
    Lors d’un changement de statut d’une instance, l’ensemble des administrateurs de la ferme doivent être notifiés de cette modification ainsi que l’utilisateur administrateur de l’instance.
    À la demande d’un canal
    Passage au statut "publie"
    Passage au (...)

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

Sur d’autres sites (5775)

  • avutil/channel_layout : add a 9.1.4 channel layout

    3 novembre 2023, par James Almer
    avutil/channel_layout : add a 9.1.4 channel layout
    

    Mapping to ITU-R BS.2051-3 "Sound System G" and ITU-R BS.1196-8 "Channel
    Configuration 20".

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] doc/utils.texi
    • [DH] libavutil/channel_layout.c
    • [DH] libavutil/channel_layout.h
    • [DH] tests/ref/fate/channel_layout
  • avutil/channel_layout : add a 7.2.3 channel layout

    3 novembre 2023, par James Almer
    avutil/channel_layout : add a 7.2.3 channel layout
    

    Mapping to ITU-R BS.2051-3 "Sound System F" and ITU-R BS.1196-8 "Channel
    Configuration 15".

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] doc/utils.texi
    • [DH] libavutil/channel_layout.c
    • [DH] libavutil/channel_layout.h
    • [DH] tests/ref/fate/channel_layout
  • How can I combine a screenshot and two video files with ffmpeg ?

    26 novembre 2023, par lukascbossert

    I have a folder with video files. Some are .mov, some are .mp4. As a first step I am converting the .mov-files into .mp4 with :

    &#xA;

    while read mov; do&#xA;   mp4=$(echo "$mov"|sed -e &#x27;s|\.mov$|.mp4|i&#x27;)&#xA;   if [ "$mov" == "$mp4" ]; then&#xA;     echo "Failed to generate unique MP4 filename for file $mov"&#xA;   fi&#xA;   ffmpeg -i "$mov" -c:v libx264 -f mp4 "$mp4"&#xA; done &lt; &lt;(find . -type f -iname &#x27;*.mov&#x27;)&#xA;

    &#xA;

    This works technically fine.

    &#xA;

    As a second step I need to merge two video files : the first one is always the same (intro.mp4 with audio), the second file is the either converted .mov or the .mp4 from the folder (also with audio).&#xA;Additionally I need a screenshot of the first frame from the second video, which shall be the very first frame and visible for e.g. half a second (for e.g. youtube-shorts to differentiate the videos).

    &#xA;

    I create the screenshot with

    &#xA;

    ffmpeg -i ${fzbVideo} -ss 1 -vframes 1 ${cover}"_%01d.jpg"&#xA;

    &#xA;

    which works perfectly fine.

    &#xA;

    As far as I could I followed the example shown here and the documentation of ffmpeg&#xA;and created a loop for all the videos and the steps of merge screenshot and videos :

    &#xA;

    for fzbVideo in *.mp4; do&#xA;    # intro should be at the beginning of each video&#xA;    intro="intro/fzb-intro.mp4"&#xA;    # getting a cover imge&#xA;    cover="$(basename ${fzbVideo} .mp4)_cover"&#xA;    # naming the output file&#xA;    fzbVideoOutput="$(basename ${fzbVideo} .mp4)_output.mp4"&#xA;    #   create a cover image from the first frame of the video&#xA;    ffmpeg -i ${fzbVideo} -ss 1 -vframes 1 ${cover}"_%01d.jpg"&#xA;    # combine the cover image with the intro and the actual video file&#xA;    ffmpeg \&#xA;-loop 1 -framerate 1 -t 1 -i ${cover}"_1.jpg" \&#xA;-i ${intro} \&#xA;-i ${fzbVideo} \&#xA;-f lavfi -t 0.1 -i anullsrc=channel_layout=stereo:sample_rate=44100 \&#xA;-filter_complex &#x27;[0:v:0][0:a:0][1:v:0][1:a:0][2:a:0][2:a:0]concat=n=3:v=1:a=1&#x27; ${fzbVideoOutput}&#xA;done&#xA;

    &#xA;

    But this creates the error :

    &#xA;

    Stream specifier &#x27;:a:0&#x27; in filtergraph description [0:v:0][0:a:0][1:v:0][1:a:0][2:a:0][2:a:0]concat=n=3:v=1:a=1 matches no streams.&#xA;

    &#xA;

    What do I need to change ?&#xA;Additionally, is there a way to combine the converstion from .mov to .mp4 also in the loop (if necessary) ?

    &#xA;


    &#xA;

    Edit : content from the CLI, in case this is important information :

    &#xA;

    ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers&#xA;  built with Apple clang version 14.0.3 (clang-1403.0.22.14.1)&#xA;  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.0_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --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 --enable-audiotoolbox --enable-neon&#xA;  libavutil      58.  2.100 / 58.  2.100&#xA;  libavcodec     60.  3.100 / 60.  3.100&#xA;  libavformat    60.  3.100 / 60.  3.100&#xA;  libavdevice    60.  1.100 / 60.  1.100&#xA;  libavfilter     9.  3.100 /  9.  3.100&#xA;  libswscale      7.  1.100 /  7.  1.100&#xA;  libswresample   4. 10.100 /  4. 10.100&#xA;  libpostproc    57.  1.100 / 57.  1.100&#xA;Input #0, image2, from &#x27;IMG_5546_cover_1.jpg&#x27;:&#xA;  Duration: 00:00:01.00, start: 0.000000, bitrate: 836 kb/s&#xA;  Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1080x1920, 1 fps, 1 tbr, 1 tbn&#xA;Input #1, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;intro/fzb-intro.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 1&#xA;    compatible_brands: isommp41mp42&#xA;    creation_time   : 2023-11-24T21:59:10.000000Z&#xA;  Duration: 00:00:00.83, start: 0.000000, bitrate: 1247 kb/s&#xA;  Stream #1:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 602x1070, 1191 kb/s, 30 fps, 30 tbr, 600 tbn (default)&#xA;    Metadata:&#xA;      creation_time   : 2023-11-24T21:59:10.000000Z&#xA;      handler_name    : Core Media Video&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #1:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 38 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2023-11-24T21:59:10.000000Z&#xA;      handler_name    : Core Media Audio&#xA;      vendor_id       : [0][0][0][0]&#xA;Input #2, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;IMG_5546.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf60.3.100&#xA;  Duration: 00:00:28.37, start: 0.000000, bitrate: 3126 kb/s&#xA;  Stream #2:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1080x1920, 2989 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default)&#xA;    Metadata:&#xA;      handler_name    : Core Media Video&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : Lavc60.3.100 libx264&#xA;  Stream #2:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : Core Media Audio&#xA;      vendor_id       : [0][0][0][0]&#xA;Stream specifier &#x27;:a&#x27; in filtergraph description [0:v] [0:a] [1:v] [1:a] [2:v] [2:a] concat=n=3:v=1:a=1 [v] [a] matches no streams.&#xA;

    &#xA;