Recherche avancée

Médias (91)

Autres articles (10)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

Sur d’autres sites (2769)

  • Ffmpeg Symfony5 PHP8 [duplicate]

    11 septembre 2021, par Kévin Ducrocq

    I'm a french student learning web development, and how to create websites on Symfony 5.

    


    I've got this project to create a kind of Youtube website using Ffmpeg to convert and treat videos.

    


    However, when I try to use the "composer require php-ffmpeg/php-ffmpeg" command, it doesn't work and I really don't know what to do.

    


    here's the error I've got :

    


    PS C :\Users\Dev\Documents\Dev\Symfony\Youride> composer require php-ffmpeg/php-ffmpeg
Using version ^0.18.0 for php-ffmpeg/php-ffmpeg
./composer.json has been updated
Running composer update php-ffmpeg/php-ffmpeg
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

    


    Problem 1
- Root composer.json requires php-ffmpeg/php-ffmpeg ^0.18.0 -> satisfiable by php-ffmpeg/php-ffmpeg[v0.18.0].
- php-ffmpeg/php-ffmpeg v0.18.0 requires doctrine/cache ^1.0 -> found doctrine/cache[v1.0, ..., 1.12.1] but it conflicts with your root composer.json require (^2.1).

    


    Use the option —with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

    


    Installation failed, reverting ./composer.json and ./composer.lock to their original content.
PS C :\Users\Dev\Documents\Dev\Symfony\Youride>

    


    thank you for your help, I'm a beginner... :)

    


  • When merging video and audio, converting audio to AAC, sound is missed at the end 3 seconds

    10 octobre 2013, par profuel

    I have to build video from images and some audio clip.
    Audio is much longer, so I have to mute last 5 seconds of audio track, cutting to video length.
    My issue is that adding AAC encoding to audio removes last 2-5 seconds of audio in resulted video.

    Here are my command lines :

    ffmpeg -i sound.mp3 -i video.mp4 -shortest out.mp4 -> results in correct audio in result video with played audio over 100% of movie

    ffmpeg -i sound.mp3 -i video.mp4 -acodec aac -ab 160000 -strict experimental -shortest out.mp4 -> not correct audio, gets crop at end of video for 2-5 seconds


    The problem appears for me both on Windows and on CentOS 6.4, no matter which version of ffmpeg is used.

    FFMPEG details (downloaded from http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.2013-06-01.tar.gz )
    ffmpeg version N-53724-g716dbc7 Copyright (c) 2000-2013 the FFmpeg developers
    built on Jun 1 2013 05:26:08 with gcc 4.6 (Debian 4.6.3-1)
    configuration : —prefix=/root/ffmpeg-static/64bit —extra-cflags='-I/root/ffmpeg-static/64bit/include -static' —extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' —extra-libs='-lxml2 -lexpat -lfreetype' —enable-static —disable-shared —disable-ffserver —disable-doc —enable-bzlib —enable-zlib —enable-postproc —enable-runtime-cpudetect —enable-libx264 —enable-gpl —enable-libtheora —enable-libvorbis —enable-libmp3lame —enable-gray —enable-libass —enable-libfreetype —enable-libopenjpeg —enable-libspeex —enable-libvo-aacenc —enable-libvo-amrwbenc —enable-version3 —enable-libvpx
    libavutil 52. 34.100 / 52. 34.100
    libavcodec 55. 12.102 / 55. 12.102
    libavformat 55. 8.102 / 55. 8.102
    libavdevice 55. 2.100 / 55. 2.100
    libavfilter 3. 73.100 / 3. 73.100
    libswscale 2. 3.100 / 2. 3.100
    libswresample 0. 17.102 / 0. 17.102
    libpostproc 52. 3.100 / 52. 3.100

  • Capture xvfb stream from docker container using webRTC [closed]

    5 septembre 2023, par HIMANSHU SAHU

    I have a windows game .exe file and running the game inside a docker container (In EC2 linux VM) using xvfb version of X server. Now I want to Capture X server stream from docker container to my local system using webRTC. What should I do for the same ?

    


    Here's my Dockerfile :

    


    FROM ubuntu:22.04

    


    #Specify a workdir, to better organize your files inside the container.

    


    WORKDIR /app

    


    #Update package lists and install required packages

    


    RUN apt-get update
RUN apt-get install -y wget software-properties-common gnupg2 winbind xvfb
RUN apt-get -qq update -y && apt-get -qq install -y —no-install-recommends \
build-essential cpp cpp-9 g++-9 gcc-9 gcc-10 g++-10 gcc-multilib gcc-mingw-w64
    
git-core
    
dkms
    
ffmpeg

    


    #Add Wine repository and install

    


    RUN dpkg —add-architecture i386
RUN mkdir -pm755 /etc/apt/keyrings
RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
RUN apt-get update

    


    RUN apt-get -qq update -y && apt-get -qq install -y —no-install-recommends
    
alsa-utils
    
libasound2-dev libdbus-1-dev libfontconfig-dev libfreetype-dev libgnutls28-dev libldap-common
    
libodbc1 libv4l-0 libjpeg-dev libldap2-dev libpng-dev libtiff-dev libgl-dev libunwind-dev libxml2-dev
    
libxslt1-dev
    
libfaudio-dev
    
libmpg123-dev
    
libosmesa6-dev
    
libsdl2-dev
    
libudev-dev
    
libvkd3d-dev \
libvulkan-dev

    


    RUN apt-get -qq update -y && apt-get -qq install -y —no-install-recommends
    
ocl-icd-opencl-dev
    
bison
    
schroot
    
debootstrap
    
flex

    


    RUN apt-get -qq update -y && apt-get -qq install -y —no-install-recommends
    
libmpg123-dev:i386
    
libosmesa6-dev:i386
    
libvulkan-dev:i386
    
ocl-icd-opencl-dev:i386
    
bison:i386
    
flex:i386

    


    RUN apt-get install -y linux-firmware

    


    #Install additional packages and configure Wine

    


    RUN apt-get install —no-install-recommends -y winehq-stable winetricks cabextract

    


    RUN winetricks msxml6

    


    #Cleanup unnecessary files

    


    RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

    


    ENV WINEDEBUG=-d3d

    


    COPY app /root/catalyst
COPY overcooked_drm-free_20_566540 /root/overcooked_drm-free_20_566540
COPY startup.sh /root/startup.sh
RUN chmod 755 /root/startup.sh

    


    EXPOSE 9000

    


    CMD ["/root/startup.sh"]

    


    Startup.sh :

    


    # !/usr/bin/env bash

    


    sleep 1s
Xvfb :1 -screen 0 1024x768x24 &

    


    glxinfo -force-d3d9
ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :1 -t 120 outputofscreen1.mp4 &

    


    DISPLAY=:1 wine /root/overcooked_drm-free_20_566540/Overcooked.exe -force-d3d11

    



    


    As of now I'm capturing the xserver stream using ffmpeg and storing the same in .mp4 file. Now I want to play the game on my local machine by using webRTC for connection and streaming.

    


    I have run the .exe in linux using wine and xvfb server and captured the stream using ffmpeg and stored in a .mp4 file.