Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (74)

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

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (5915)

  • Batch-file script to automatically add an mp3 track to the same mp4 video in ffmpeg [closed]

    15 janvier, par Poro

    I have several video and audio files :

    


      

    • file 01.mp3
    • 


    • file 01.mkv
    • 


    • file 02.mp3
    • 


    • file 02.mkv
    • 


    • file 03.mp3
    • 


    • file 03.mkv
    • 


    


    what should be the script for ffmpeg to take each video file and add an additional second audio track with the same name (file 01.mkv + file 01.mp3) ?

    


    it's a main question

    


    But ultimately I need to get each video (let's say it's mp4) with 3 audio streams :

    


      

    1. mixed stream from mp3 (100%) + mkv (10% volume) - by default
    2. 


    3. stream from mp3 file (100%)
    4. 


    5. and last stream from mkv (100% volume)
    6. 


    


    I would like to write all these commands in one batch-file

    


    I already use .bat files to automatically convert to another format (for example) :

    


    for %%i in (*.mkv) do (
ffmpeg -y -i "%%i" -c copy "%%~ni.mp4"
)


    


    As far as I understand, for the audio track task I need to set a variable for .mp3 (besides %%i ) and make it compare to the .mkv name, but I don't understand how to do it correctly.

    


    to manually add a track, I use (for example) :

    


    ffmpeg -i video.mkv -i audio.mp3 -map 0 -map 1:a -c:v copy -shortest output.mkv


    


    to change the track order and set the default track, I use (for example) :

    


    ffmpeg -i input.mkv -map 0:v:0
-map 0:a:2 -map 0:a:0 -map 0:a:1 -map 0:a:3
-map 0:s -c copy
-disposition:a:0 default
reordered.mp4


    


    It takes a lot of time to do all this work with a lot of files. it would be great to delegate it to a machine.

    


  • Unexpectedly bad quality metrics of VVC encoded video [closed]

    14 décembre 2024, par Wieprzek

    I'm working on a project where I'm comparing a number of codecs via SSIM, PSNR and VMAF.
Im getting really bad results for VVC (libvvenc) (0.23 ssim, 9.46 VMAF), even though the output doesn't look that bad. My scores for other codecs with default settings are around 0.88-0.96 SSIM and around 90 VMAF.

    


    As my input I use raw videos from xiph.org

    


    I first encode it :

    


    ffmpeg -i city_cif.y4m -c:v libvvenc city_cif_libvvenc.mp4

    


    then I decode it back to raw, although I have to set output format to .yuv since y4m doesnt support the only pixel format libvvenc has (yuv420p10le) :

    


    ffmpeg -i city_cif_libvvenc.mp4 city_cif_libvvenc.yuv

    


    then i use the libvmaf filter to compare the input raw to decoded vvc content :

    


    ffmpeg -s 352x288 -r 30/1 -pixel_format yuv420p10le -i city_cif_libvvenc.yuv -r 30/1 -i city_cif.y4m  -lavfi "libvmaf=log_path=./mylog.xml:feature=name=float_ssim|name=float_ms_ssim|name=psnr" -f null -

    


    Since yuv doesnt have a header like y4m does, I supply ffmpeg with the input resolution and framerate. Could there be some kind of frame mismatch where vvc drops/multiplies some frames ?

    


    EDIT :

    


    If someone were to find this, I think i figured it out - both reference and encoded footage have to be decoded and in yuv format, not in y4m. Of course this means that resolution, framerate and pixel format have to be supplied.

    


    Also when encoding 8-bit footage via libvvenc and not wanting to have it converted to 10-bit, you need to supply argument of —internal-bitdepth 8 (at least thats the syntax for vvencapp)

    


  • FFMPEG AMF Hardware Acceleration on AMD Ryzen™ 7 7700 Server in Ubuntu 22.04 [closed]

    4 décembre 2024, par LoNormaly

    I was trying to make ffmpeg available with AMF and have access to the AMF hardware acceleration (in ffmpeg -hwaccels) but failed.

    


    At first, the kernel that the server as Ubuntu 22.04 came with was 5.15 and after contacting support I was explained that I need to upgrade the kernel to have access to /dev/dri.

    


    So I upgraded to 6.8 and then I had access to /dev/dri and was able to use ffmpeg 7.1 with vaapi working.

    


    In AMD, they have their own hardware acceleration named AMF, that allows much better speed and quality of transcoding.

    


    I installed the AMD GPU drivers like it's explained here : https://www.amd.com/en/support/download/linux-drivers.html

    


    I installed AMF as well, and compiled my own ffmpeg build with --enable-amf flag.

    


    Still in ffmpeg -hwaccels I get access to vaapi and drm only.

    


    Can you share if you know any solution to this enigma ?

    


    These are the instructions with which I installed the drivers, AMF and ffmpeg with :

    


    Install AMD GPU Pro Drivers:
wget https://repo.radeon.com/amdgpu-install…60203-1_all.deb
sudo apt install ./amdgpu-install_6.2.60203-1_all.deb

amdgpu-install --usecase=amf,multimedia -y
sudo amdgpu-install -y --usecase=amf,graphics --accept-eula --opencl=rocr,legacy --vulkan=amdvlk,pro



CompilationGuide/Ubuntu – FFmpeg
Compiling ffmpeg:

sudo apt-get update -qq && sudo apt-get -y install \
autoconf \
automake \
build-essential \
cmake \
git-core \
libass-dev \
libfreetype6-dev \
libgnutls28-dev \
libmp3lame-dev \
libtool \
libvorbis-dev \
meson \
ninja-build \
pkg-config \
texinfo \
wget \
yasm \
zlib1g-dev

sudo apt install libunistring-dev libaom-dev libdav1d-dev -y

mkdir -p ~/ffmpeg_sources ~/bin

// Install prerequisites
apt-get update && apt-get install -y \
build-essential \
pkg-config \
yasm \
nasm \
libtool \
automake \
cmake \
libx264-dev \
libx265-dev \
libvpx-dev \
libfdk-aac-dev \
libopus-dev \
libaom-dev \
libdrm-dev \
libva-dev \
vainfo
    
    
cd ~/ffmpeg_sources && \
wget https://ffmpeg.org/releases/ffmpeg-7.1.tar.bz2 && \
tar -xjf ffmpeg-7.1.tar.bz2 && \
mkdir ffmpeg_build && \
cd ffmpeg_build && \
mkdir include && \
cd include && \


// Install AMF
git clone https://github.com/GPUOpen-LibrariesAndSDKs/AMF.git && \
mv ~/ffmpeg_build/include/AMF/amf ~/ffmpeg_build/include/ && \
rm -rf AMF && \

// From here: https://askubuntu.com/questions/1440…-ubuntu-20-04-5
// Correct install:
cd ~/
git clone https://github.com/GPUOpen-LibrariesAndSDKs/AMF.git
mkdir /usr/local/include/AMF
cd /usr/local/include/AMF
ln -sf ~/AMF/amf/public/include/core
ln -sf ~/AMF/amf/public/include/components

// Install libvmaf
cd ~/ffmpeg_sources && \
wget https://github.com/Netflix/vmaf/archive/v3.0.0.tar.gz && \
tar xvf v3.0.0.tar.gz && \
mkdir -p vmaf-3.0.0/libvmaf/build && \

cd vmaf-3.0.0/libvmaf && \
meson setup build --buildtype=release --default-library=static --prefix="$HOME/ffmpeg_build" && \
ninja -C build && \
ninja -C build install

cd ~/ffmpeg_sources/ffmpeg-7.1
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
--prefix="$HOME/ffmpeg_build" \
--pkg-config-flags="--static" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--extra-libs="-lpthread -lm" \
--ld="g++" \
--bindir="$HOME/bin" \
--enable-gpl \
--enable-gnutls \
--enable-libaom \
--enable-libass \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libdav1d \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--enable-libx265 \
--enable-libdrm \
--enable-vaapi \
--enable-libvmaf \
--enable-amf \
--enable-nonfree && \
PATH="$HOME/bin:$PATH" make && \
make -j$(nproc) install && \
hash -r


./ffmpeg -buildconf



Test VMAF to compare quality:
./ffmpeg -i input.mp4 -i reference.mp4 -lavfi libvmaf -f null -
// example output: [Parsed_libvmaf_0 @ 0x74a0f8004940] VMAF score: 98.930249ate=N/A speed=9.06x