Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (78)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

Sur d’autres sites (12958)

  • How to compress videos on AMD RX 7900 XTX with ffmpeg ? [closed]

    19 novembre 2024, par cprn

    On Nvidia's GTX 1070 I used to do the below command, and it'd produce a way smaller file (often less than half of the original) without any visible degradation (at least for my eyes) :

    


    ffmpeg -hwaccel cuda -i file.mp4 -c:v hevc_nvenc -crf 20 file.small.mp4


    


    Now I switched to AMD's RX 7900 XTX and this command obviously doesn't work.

    


    What's the "equivalent" of that command ? As in : getting way smaller file with seemingly no quality loss.

    


    What I tried :

    


      

    1. av1_nvenc ends up in errors :
    2. 


    


    ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i file.mp4 -c:v av1_nvenc file.small.mp4


    


    Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scale_0'
[vf#0:0 @ 0x60f7c1aa7d80] Error reinitializing filters!
[vf#0:0 @ 0x60f7c1aa7d80] Task finished with error code: -38 (Function not implemented)
[vf#0:0 @ 0x60f7c1aa7d80] Terminating thread with return code -38 (Function not implemented)
[vost#0:0/av1_nvenc @ 0x60f7c1b10040] Could not open encoder before EOF
[vost#0:0/av1_nvenc @ 0x60f7c1b10040] Task finished with error code: -22 (Invalid argument)
[vost#0:0/av1_nvenc @ 0x60f7c1b10040] Terminating thread with return code -22 (Invalid argument)
[out#0/mp4 @ 0x60f7c1b0d680] Nothing was written into output file, because at least one of its streams received no packets.


    


      

    1. hevc_vaapi goes through the encoding, but produces 20% bigger files instead of smaller :
    2. 


    


    ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i file.mp4 -c:v hevc_vaapi file.small.mp4


    


    No idea what I'm doing. I know next to nothing about video encoding, just what I read in the documentation, and I'm stuck. Also, I'm on Linux, but this shouldn't matter, I think.

    


    FFmpeg info :

    


    ❯ ffmpeg -version
ffmpeg version n7.1 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 14.2.1 (GCC) 20240910
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-frei0r --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libdvdnav --enable-libdvdread --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgsm --enable-libharfbuzz --enable-libiec61883 --enable-libjack --enable-libjxl --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librsvg --enable-librubberband --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpl --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-vapoursynth --enable-version3 --enable-vulkan
libavutil      59. 39.100 / 59. 39.100
libavcodec     61. 19.100 / 61. 19.100
libavformat    61.  7.100 / 61.  7.100
libavdevice    61.  3.100 / 61.  3.100
libavfilter    10.  4.100 / 10.  4.100
libswscale      8.  3.100 /  8.  3.100
libswresample   5.  3.100 /  5.  3.100
libpostproc    58.  3.100 / 58.  3.100


    


  • FFmpeg wrong codecstring for DASH manifest [closed]

    21 novembre 2024, par Suxsem

    I'm trying to create a DASH stream with ffmpeg with the following command :

    


    ffmpeg -i rtsp://admin:***@camera-retro.lan/ch0_0 ^
       -map 0 ^
       -codec:v copy ^
       -codec:a copy ^
       -f dash ^
       -use_template 1 ^
       -use_timeline 1 ^
       -window_size 50 ^
       -extra_window_size 5 ^
       -seg_duration 5 ^
       tmp/output.mpd


    


    The problem is the generated manifest doesn't contain a valid codecstring for the video part (note the codecs="hev1" part) and thus is not playable by the browser :

    


    &lt;?xml version="1.0" encoding="utf-8"?>&#xA;<mpd xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="dynamic" minimumupdateperiod="PT6S" suggestedpresentationdelay="PT6S" availabilitystarttime="2024-11-21T12:05:52.604Z" publishtime="2024-11-21T12:05:57.559Z" timeshiftbufferdepth="PT5M1.9S" maxsegmentduration="PT5.0S" minbuffertime="PT12.0S">&#xA;    <programinformation>&#xA;        &#xA;    </programinformation>&#xA;    <servicedescription>&#xA;    </servicedescription>&#xA;    <period start="PT0.0S">&#xA;        <adaptationset contenttype="video" startwithsap="1" segmentalignment="true" bitstreamswitching="true" maxwidth="2304" maxheight="1296" par="16:9">&#xA;            <representation mimetype="video/mp4" codecs="hev1" bandwidth="822093" width="2304" height="1296" scantype="unknown" sar="1:1">&#xA;                <segmenttemplate timescale="90000" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="1">&#xA;                    <segmenttimeline>&#xA;                        <s t="0" d="542990"></s>&#xA;                    </segmenttimeline>&#xA;                </segmenttemplate>&#xA;            </representation>&#xA;        </adaptationset>&#xA;        <adaptationset contenttype="audio" startwithsap="1" segmentalignment="true" bitstreamswitching="true">&#xA;            <representation mimetype="audio/mp4" codecs="mp4a.40.2" bandwidth="34143" audiosamplingrate="16000">&#xA;                <audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="1"></audiochannelconfiguration>&#xA;                <segmenttemplate timescale="16000" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="1">&#xA;                    <segmenttimeline>&#xA;                        <s t="0" d="81001"></s>&#xA;                    </segmenttimeline>&#xA;                </segmenttemplate>&#xA;            </representation>&#xA;        </adaptationset>&#xA;    </period>&#xA;</mpd>&#xA;

    &#xA;

    This is the output of ffprobe :

    &#xA;

    SDP:&#xA;v=0&#xA;o=- 1732188474342789 1 IN IP4 192.168.12.162&#xA;s=Session streamed by "rRTSPServer"&#xA;i=ch0_0.h264&#xA;t=0 0&#xA;a=tool:LIVE555 Streaming Media v2023.01.19&#xA;a=type:broadcast&#xA;a=control:*&#xA;a=range:npt=now-&#xA;a=x-qt-text-nam:Session streamed by "rRTSPServer"&#xA;a=x-qt-text-inf:ch0_0.h264&#xA;m=video 0 RTP/AVP 96&#xA;c=IN IP4 0.0.0.0&#xA;b=AS:700&#xA;a=rtpmap:96 H265/90000&#xA;a=fmtp:96 profile-space=0;profile-id=1;tier-flag=0;level-id=186;interop-constraints=000000000000;sprop-vps=QAEMAf//AWAAAAMAAAMAAAMAAAMAuqwJ;sprop-sps=QgEBAWAAAAMAAAMAAAMAAAMAuqABICAFEf5a7kSIi/Lc1AQEBAI=;sprop-pps=RAHA8oSJAzJA&#xA;a=control:track1&#xA;m=audio 0 RTP/AVP 97&#xA;c=IN IP4 0.0.0.0&#xA;b=AS:32&#xA;a=rtpmap:97 MPEG4-GENERIC/16000&#xA;a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1408&#xA;a=control:track2&#xA;

    &#xA;

    it seems to me that all codec informations are present :

    &#xA;

    a=fmtp:96 profile-space=0;profile-id=1;tier-flag=0;level-id=186;interop-constraints=000000000000;&#xA;

    &#xA;

    why ffmpeg is putting only codecs="hev1" instead of the full codecstring (containing the profile, the level and the constraints) ?

    &#xA;

    Thank you

    &#xA;

  • How do I get drawtext filter in ffmpeg to work on ubuntu 22.04 ?

    3 décembre 2024, par chovy

    Here's my script, but no matter what I try the drawtext filter is not enabled :

    &#xA;

    #!/bin/bash&#xA;&#xA;set -e  # Exit on any error&#xA;&#xA;# Define installation directories&#xA;INSTALL_DIR="$HOME/ffmpeg_build"&#xA;BIN_DIR="$HOME/bin"&#xA;SOURCE_DIR="$HOME/ffmpeg_sources"&#xA;NUM_CORES=$(nproc)&#xA;&#xA;echo "Creating necessary directories..."&#xA;mkdir -p "$INSTALL_DIR" "$BIN_DIR" "$SOURCE_DIR"&#xA;&#xA;# Install required tools and dependencies&#xA;echo "Installing build tools and essential libraries..."&#xA;sudo apt-get update&#xA;sudo apt-get install -y \&#xA;  autoconf automake build-essential cmake git-core libass-dev \&#xA;  libfreetype6-dev libsdl2-dev libtool libva-dev libvdpau-dev \&#xA;  libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev \&#xA;  meson ninja-build pkg-config texinfo wget yasm zlib1g-dev \&#xA;  nasm libnuma-dev libfdk-aac-dev libmp3lame-dev libopus-dev \&#xA;  libfreetype6 libdrm-dev mercurial&#xA;&#xA;# Remove system-installed x264 and x265 to prevent conflicts&#xA;sudo apt-get remove -y libx264-dev libx265-dev x264 x265&#xA;&#xA;# Build dependencies&#xA;cd "$SOURCE_DIR"&#xA;&#xA;# Install libx264 (static)&#xA;if [ ! -d "$SOURCE_DIR/x264" ]; then&#xA;  echo "Building and installing libx264..."&#xA;  git clone --branch stable --depth 1 https://code.videolan.org/videolan/x264.git&#xA;  cd x264&#xA;  make distclean || true&#xA;  ./configure --prefix="$INSTALL_DIR" --enable-static --disable-opencl&#xA;  make -j$NUM_CORES&#xA;  make install&#xA;  cd "$SOURCE_DIR"&#xA;fi&#xA;&#xA;# Install libx265 (static)&#xA;if [ ! -d "$SOURCE_DIR/x265" ]; then&#xA;  echo "Building and installing libx265..."&#xA;  git clone --depth 1 https://github.com/videolan/x265.git&#xA;  cd x265/build/linux&#xA;  cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" \&#xA;    -DENABLE_SHARED=OFF -DENABLE_PIC=ON -DENABLE_PKGCONFIG=ON ../../source&#xA;  make -j$NUM_CORES&#xA;  make install&#xA;  cd "$SOURCE_DIR"&#xA;fi&#xA;&#xA;# Install libvpx (static)&#xA;if [ ! -d "$SOURCE_DIR/libvpx" ]; then&#xA;  echo "Building and installing libvpx..."&#xA;  git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git&#xA;  cd libvpx&#xA;  ./configure --prefix="$INSTALL_DIR" --disable-examples --disable-unit-tests \&#xA;    --enable-vp9-highbitdepth --as=yasm --enable-static --enable-pic&#xA;  make -j$NUM_CORES&#xA;  make install&#xA;  cd "$SOURCE_DIR"&#xA;fi&#xA;&#xA;# Install libopus (static)&#xA;if [ ! -d "$SOURCE_DIR/opus" ]; then&#xA;  echo "Building and installing libopus..."&#xA;  git clone --depth 1 https://github.com/xiph/opus.git&#xA;  cd opus&#xA;  ./autogen.sh&#xA;  ./configure --prefix="$INSTALL_DIR" --disable-shared&#xA;  make -j$NUM_CORES&#xA;  make install&#xA;  cd "$SOURCE_DIR"&#xA;fi&#xA;&#xA;# Install libaom (static)&#xA;if [ ! -d "$SOURCE_DIR/aom" ]; then&#xA;  echo "Building and installing libaom..."&#xA;  git clone --depth 1 https://aomedia.googlesource.com/aom&#xA;  mkdir -p aom_build&#xA;  cd aom_build&#xA;  cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" \&#xA;    -DBUILD_SHARED_LIBS=0 -DENABLE_NASM=1 -DCMAKE_C_FLAGS="-fPIC" ../aom&#xA;  make -j$NUM_CORES&#xA;  make install&#xA;  cd "$SOURCE_DIR"&#xA;fi&#xA;&#xA;# Build and install FFmpeg&#xA;echo "Building and installing FFmpeg..."&#xA;cd "$SOURCE_DIR"&#xA;if [ ! -d "$SOURCE_DIR/ffmpeg" ]; then&#xA;  git clone --depth 1 https://git.ffmpeg.org/ffmpeg.git ffmpeg&#xA;  cd ffmpeg&#xA;else&#xA;  cd ffmpeg&#xA;  git pull&#xA;fi&#xA;&#xA;export PKG_CONFIG_PATH="$INSTALL_DIR/lib/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/lib/$(uname -m)-linux-gnu/pkgconfig:$PKG_CONFIG_PATH"&#xA;&#xA;make distclean&#xA;&#xA;./configure \&#xA;  --prefix="$INSTALL_DIR" \&#xA;  --pkg-config-flags="--static" \&#xA;  --extra-cflags="-I$INSTALL_DIR/include" \&#xA;  --extra-ldflags="-L$INSTALL_DIR/lib" \&#xA;  --extra-libs="-lpthread -lm" \&#xA;  --bindir="$BIN_DIR" \&#xA;  --enable-gpl \&#xA;  --enable-nonfree \&#xA;  --enable-libfreetype \&#xA;  --enable-libx264 \&#xA;  --enable-libvpx \&#xA;  --enable-libmp3lame \&#xA;  --enable-libopus \&#xA;  --enable-libass \&#xA;  --enable-libvorbis \&#xA;  --enable-libaom \&#xA;  --enable-libdrm \&#xA;  --enable-version3 \&#xA;  --enable-static \&#xA;  --disable-shared \&#xA;  --enable-small&#xA;  &#xA;make -j$NUM_CORES&#xA;make install&#xA;&#xA;# Add ffmpeg to PATH&#xA;echo "export PATH=\"$BIN_DIR:\$PATH\"" >> "$HOME/.bashrc"&#xA;source "$HOME/.bashrc"&#xA;&#xA;# Final checks&#xA;echo "FFmpeg installation complete. Verifying installation..."&#xA;ffmpeg -version&#xA;&#xA;

    &#xA;

    Here is my buildconf which appears correct :

    &#xA;

    $ ffmpeg -buildconf  &#xA;&#xA;ffmpeg version N-117989-gcb27e478f7 Copyright (c) 2000-2024 the FFmpeg developers&#xA;  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)&#xA;  configuration: --prefix=/usr/local --extra-cflags=-I/home/ubuntu/src/ffmpeg_build/include --extra-ldflags=-L/home/ubuntu/src/ffmpeg_build/lib --bindir=/usr/local/bin --enable-gpl --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libass --enable-libvorbis --enable-libaom --enable-libdrm --enable-version3 --enable-shared --enable-filter=drawtext  libavutil      59. 47.101 / 59. 47.101  libavcodec     61. 26.100 / 61. 26.100  libavformat    61.  9.100 / 61.  9.100  libavdevice    61.  4.100 / 61.  4.100  libavfilter    10.  6.101 / 10.  6.101  libswscale      8. 12.100 /  8. 12.100  libswresample   5.  4.100 /  5.  4.100&#xA;  libpostproc    58.  4.100 / 58.  4.100&#xA;&#xA;  configuration:    --prefix=/usr/local&#xA;    --extra-cflags=-I/home/ubuntu/src/ffmpeg_build/include&#xA;    --extra-ldflags=-L/home/ubuntu/src/ffmpeg_build/lib&#xA;    --bindir=/usr/local/bin&#xA;    --enable-gpl    --enable-nonfree    --enable-libfreetype    --enable-libx264    --enable-libvpx    --enable-libmp3lame    --enable-libopus    --enable-libass    --enable-libvorbis    --enable-libaom    --enable-libdrm    --enable-version3    --enable-shared    --enable-filter=drawtext&#xA;

    &#xA;

    However the filter drawtext is not enabled :

    &#xA;

    $ ffmpeg -filters | grep drawtext&#xA;ffmpeg version N-117989-gcb27e478f7 Copyright (c) 2000-2024 the FFmpeg developers  built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)  configuration: --prefix=/usr/local --extra-cflags=-I/home/ubuntu/src/ffmpeg_build/include --extra-ldflags=-L/home/ubuntu/src/ffmpeg_build/lib --bindir=/usr/local/bin --enable-gpl --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libass --enable-libvorbis --enable-libaom --enable-libdrm --enable-version3 --enable-shared --enable-filter=drawtext  libavutil      59. 47.101 / 59. 47.101  libavcodec     61. 26.100 / 61. 26.100  libavformat    61.  9.100 / 61.  9.100  libavdevice    61.  4.100 / 61.  4.100  libavfilter    10.  6.101 / 10.  6.101  libswscale      8. 12.100 /  8. 12.100  libswresample   5.  4.100 /  5.  4.100  libpostproc    58.  4.100 / 58.  4.100&#xA;

    &#xA;