Recherche avancée

Médias (91)

Autres articles (36)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Les thèmes de MediaSpip

    4 juin 2013

    3 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
    Thèmes MediaSPIP
    3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (5476)

  • why am i getting very low encoding bitrate using vaapi in ffmpeg

    19 janvier 2021, par ohroblot

    I am using this command :

    


    ffmpeg -y \
-vaapi_device /dev/dri/renderD128 \
-loop 1 -r 1 -i ./image.jpg -pix_fmt vaapi_vld \                                          
-b:v 18000k -minrate 18000k \
-vf 'format=nv12|vaapi,hwupload,scale_vaapi=w=1280:h=720' \ 
-rc_mode 3 \
-r 30 -g 60 \
-c:v h264_vaapi -f flv /dev/null


    


    I am getting very low bitrate with this, the bitrate is as low as 100Kbits/s. I get faster encoding using libx264 and my cpu. Is it an underpowered GPU ? am I missing some ffmpeg arguments ?

    


    I am not sure what's going on, could this be an issue with linux, mesa drivers, did i miss some options when I compiled ffmpeg ?

    


    vainfo

    


    error: can't connect to X server!
libva info: VA-API version 1.8.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_8
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.8 (libva 2.8.0)
vainfo: Driver version: Mesa Gallium driver 20.2.6 for AMD Radeon (TM) RX 480 Graphics (POLARIS10, DRM 3.38.0, 5.8.0-7630-generic, LLVM 11.0.0)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc


    


    ffmpeg -buildconf

    


    ffmpeg version N-100671-gc48110a4a4 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10 (Ubuntu 10.2.0-13ubuntu1)
  configuration: --prefix=/home/_user/Dev/ffmpeg_build/build --extra-cflags='-I/home/_user/Dev/ffmpeg_build/build/include -I/usr/include' --extra-ldflags='-L/home/_user/Dev/ffmpeg_build/build/lib -L/home/_user/Dev/ffmpeg_build/build/lib/x86_64-linux-gnu -Wl,-rpath=/home/_user/Dev/ffmpeg_build/build/lib/x86_64-linux-gnu -ldrm -L/usr/lib' --pkg-config-flags=--static --extra-libs='-lpthread -lm' --bindir=/home/_user/Dev/ffmpeg_build/bin --arch=amd64 --disable-shared --disable-ffprobe --disable-ffplay --disable-gnutls --enable-openssl --enable-zlib --enable-librtmp --enable-static --enable-chromaprint --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-vdpau --enable-ladspa --enable-libaom --enable-libbs2b --enable-libcaca --enable-libcodec2 --enable-libdav1d --enable-libfontconfig --enable-libfribidi --enable-libgme --enable-libopenjpeg --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libwebp --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-libass --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librabbitmq --enable-libvorbis --enable-libvpx --enable-libflite --enable-chromaprint --enable-frei0r
  libavutil      56. 63.101 / 56. 63.101
  libavcodec     58.117.101 / 58.117.101
  libavformat    58. 65.101 / 58. 65.101
  libavdevice    58. 11.103 / 58. 11.103
  libavfilter     7. 96.100 /  7. 96.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100

  configuration:
    --prefix=/home/_user/Dev/ffmpeg_build/build
    --extra-cflags='-I/home/_user/Dev/ffmpeg_build/build/include -I/usr/include'
    --extra-ldflags='-L/home/_user/Dev/ffmpeg_build/build/lib -L/home/_user/Dev/ffmpeg_build/build/lib/x86_64-linux-gnu -Wl,-rpath=/home/_user/Dev/ffmpeg_build/build/lib/x86_64-linux-gnu -ldrm -L/usr/lib'
    --pkg-config-flags=--static
    --extra-libs='-lpthread -lm'
    --bindir=/home/_user/Dev/ffmpeg_build/bin
    --arch=amd64
    --disable-shared
    --disable-ffprobe
    --disable-ffplay
    --disable-gnutls
    --enable-openssl
    --enable-zlib
    --enable-librtmp
    --enable-static
    --enable-chromaprint
    --enable-gpl
    --enable-libass
    --enable-libfdk-aac
    --enable-libfreetype
    --enable-libmp3lame
    --enable-libopus
    --enable-libvorbis
    --enable-libvpx
    --enable-libx264
    --enable-libx265
    --enable-nonfree
    --enable-vdpau
    --enable-ladspa
    --enable-libaom
    --enable-libbs2b
    --enable-libcaca
    --enable-libcodec2
    --enable-libdav1d
    --enable-libfontconfig
    --enable-libfribidi
    --enable-libgme
    --enable-libopenjpeg
    --enable-librsvg
    --enable-librubberband
    --enable-libshine
    --enable-libsnappy
    --enable-libsoxr
    --enable-libspeex
    --enable-libsrt
    --enable-libssh
    --enable-libtheora
    --enable-libtwolame
    --enable-libvidstab
    --enable-libwebp
    --enable-libxml2
    --enable-libxvid
    --enable-libzmq
    --enable-libzvbi
    --enable-lv2
    --enable-omx
    --enable-openal
    --enable-opencl
    --enable-opengl
    --enable-sdl2
    --enable-pocketsphinx
    --enable-libdc1394
    --enable-libdrm
    --enable-libiec61883
    --enable-libass
    --enable-libfreetype
    --enable-libgsm
    --enable-libmp3lame
    --enable-libmysofa
    --enable-libopenjpeg
    --enable-libopenmpt
    --enable-libopus
    --enable-librabbitmq
    --enable-libvorbis
    --enable-libvpx
    --enable-libflite
    --enable-chromaprint
    --enable-frei0r


    


    a link to full logs : http://0x0.st/-i2j.txt

    


  • Installing full multimedia stack on server (ffmpeg,mp4box,sox,mplayer)

    29 avril 2015, par hdezela

    I’ve had a trusty text file with all(?) the steps I need to set up a full multimedia stack on a RHEL compatible server (CentOS, AWS Linux, etc.) for a few years now. However, sometimes some things are missing and I need to revise it. I know it is not complete so I’m asking for suggestions/modifications in order to get a good - and public - list of how to install all this stuff easily.

    Ideally, I want to be able to run through the file and end up with a system that’ll take any media file and be able to convert/encode/decode/whatever with it.

    This is what I have :

    yum install mesa-libGL-devel mesa-libGLU-devel libXi-devel libXmu-devel freeglut-devel freeglut ncurses-devel
    cd /usr/local/src
    mkdir /usr/local/src/tmp
    chmod 777 /usr/local/src/tmp
    export TMPDIR=/usr/local/src/tmp

    wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
    wget http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz
    wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gz
    wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz
    wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/last_stable_x264.tar.bz2
    wget http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.3.tar.gz
    wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
    wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
    wget http://webm.googlecode.com/files/libvpx-v1.3.0.zip
    wget http://downloads.sourceforge.net/project/yamdi/yamdi/1.9/yamdi-1.9.tar.gz
    wget http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.3.tgz
    git clone https://github.com/FFmpeg/FFmpeg.git
    wget http://downloads.sourceforge.net/gpac/gpac-0.5.0.tar.gz
    wget http://downloads.sourceforge.net/gpac/gpac_extra_libs-0.5.0.tar.gz
    wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
    wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.tar.xz
    wget https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-fpcalc-1.1-linux-x86_64.tar.gz
    wget http://sourceforge.net/projects/mad/files/madplay/0.15.2b/madplay-0.15.2b.tar.gz
    wget http://sourceforge.net/projects/mad/files/libmad/0.15.1b/libmad-0.15.1b.tar.gz
    wget http://sourceforge.net/projects/mad/files/libid3tag/0.15.1b/libid3tag-0.15.1b.tar.gz
    wget http://sourceforge.net/projects/sox/files/sox/14.4.1/sox-14.4.1.tar.gz
    wget http://downloads.xiph.org/releases/ao/libao-1.2.0.tar.gz
    wget http://downloads.sourceforge.net/twolame/twolame-0.3.13.tar.gz
    wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
    wget http://www.wavpack.com/wavpack-4.70.0.tar.bz2
    wget http://www.linuxfromscratch.org/patches/blfs/svn/libmad-0.15.1b-fixes-1.patch

    tar zxf yasm-1.3.0.tar.gz
    tar zxf libogg-1.3.2.tar.gz
    tar zxf libvorbis-1.3.4.tar.gz
    tar zxf libtheora-1.1.1.tar.gz
    tar jxf last_stable_x264.tar.bz2
    tar zxf opencore-amr-0.1.3.tar.gz
    tar zxf faac-1.28.tar.gz
    tar zxf lame-3.99.5.tar.gz
    unzip libvpx-v1.3.0.zip
    tar xzf yamdi-1.9.tar.gz
    tar xzf rtmpdump-2.3.tgz
    tar zxvf gpac-0.5.0.tar.gz
    tar zxvf gpac_extra_libs-0.5.0.tar.gz
    tar jxf all-20110131.tar.bz2
    tar jxf MPlayer-1.1.tar.xz
    tar xf chromaprint-fpcalc-1.1-linux-x86_64.tar.gz
    tar xf madplay-0.15.2b.tar.gz
    tar xf libmad-0.15.1b.tar.gz
    tar xf libid3tag-0.15.1b.tar.gz
    tar xf sox-14.4.1.tar.gz
    tar xf libao-1.2.0.tar.gz
    tar xf twolame-0.3.13.tar.gz
    tar xf libsndfile-1.0.25.tar.gz
    tar jxf wavpack-4.70.0.tar.bz2

    [YASM]
       cd /usr/local/src/yasm-1.3.0
       ./configure && make && make install
       yasm --version
       ldconfig
    [LIBOGG]
       cd /usr/local/src/libogg-1.3.2
       ./configure && make clean && make && make install
       ls /usr/local/lib/libogg*
       ldconfig
    [LIBVORBIS]
       cd /usr/local/src/libvorbis-1.3.4
       ./configure && make clean && make && make install
       ls /usr/local/lib/libvorbis*
       ldconfig
    [LIBTHEORA]
       cd /usr/local/src/libtheora-1.1.1
       ./configure && make clean && make && make install
       ls /usr/local/lib/libtheora*
       ldconfig
    [x264]
       cd /usr/local/src/x264-snapshot-[***]
       ./configure --enable-shared && make clean && make && make install
       ls /usr/local/lib/libx264*
       ldconfig
    [AMR]
       cd /usr/local/src/opencore-amr-0.1.3
       ./configure && make clean && make && make install
       ls /usr/local/lib/libopencore*
       ldconfig
    [FAAC]
       cd /usr/local/src/faac-1.28
       vi /usr/local/src/faac-1.28/common/mp4v2/mpeg4ip.h [ELIMINAR]:char *strcasestr(const char *haystack, const char *needle);
       ./configure && make && make install
       ls /usr/local/lib/libfaac*
       ldconfig
    [LAME]
       cd /usr/local/src/lame-3.99.5
       ./configure && make clean && make && make install
       ls /usr/local/lib/libmp3lame*
       ldconfig
    [GPAC+MP4BOX]
       cd  /sr/local/src/gpac
       cp -r ../gpac_extra_libs/* extra_lib/
       chmod +x configure
       ./configure
       make lib
       make apps
       make install-lib
       make install
       cp bin/gcc/libgpac.so /usr/lib
       ldconfig
    [LIBVPX]
       cd /usr/local/src/libvpx-v1.3.0
       ./configure --enable-vp8  --enable-pic --enable-shared && make && make install
       ls /usr/local/lib/libvpx*
       ldconfig
    [LIBRTMP]
       cd /usr/local/src/rtmpdump-2.3
       make SYS=posix
       make install
       ls /usr/local/lib/librtm*
       ldconfig
    [FFMPEG]
       cd /usr/local/src/FFmpeg
       export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig"
       ./configure  --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-libmp3lame --enable-libx264 --enable-libfaac --enable-libvpx --enable-libvorbis --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopencore-amrnb  --enable-libtheora --enable-librtmp
       make clean && make && make install
       make tools/qt-faststart
       cp tools/qt-faststart /usr/local/bin/
       ldconfig
       ffmpeg
       qt-faststart
    [MPLAYER]
       mv /usr/local/src/all-20110131 /usr/local/lib/codecs/
       chmod -R 755 /usr/local/lib/codecs/
       cd MPlayer-1-1
       make clean
       ./configure && make && make install
       ldconfig
    [YAMDI]
       cd /usr/local/src/yamdi-1.9
       gcc yamdi.c -o yamdi -O2 -Wall
       strip yamdi
       cp yamdi /usr/bin/yamdi
       yamdi -h
    [MEDIAINFO]
       rpm -ivh http://downloads.sourceforge.net/zenlib/libzen0-0.4.31-1.x86_64.CentOS_6.rpm
       rpm -ivh http://sourceforge.net/projects/mediainfo/files/binary/libmediainfo0/0.7.73/libmediainfo0-0.7.73-1.x86_64.CentOS_6.rpm
       rpm -ivh http://sourceforge.net/projects/mediainfo/files/binary/mediainfo/0.7.73/mediainfo-0.7.73-1.x86_64.CentOS_6.rpm
    [CHROMAPRINT]
       cp /usr/local/src/chromaprint-fpcalc-1.1-linux-x86_64/fpcalc /usr/local/bin/fpcalc
    [LIBAO]
       cd /usr/local/src/libao-1.2.0
       ./configure
       make
       make install
       ldconfig
    [LIBSND]
       cd /usr/local/src/libsndfile-1.0.25
       ./configure
       make
       make install
       ldconfig
    [TWOLAME]
       cd /usr/local/src/twolame-0.3.13
       ./configure
       make
       make install
       ldconfig
    [WAVPACK]
       cd /usr/local/src/wavpack-4.70.0
       ./configure
       make
       make install
       ldconfig
    [LIBMAD]
       cd /usr/local/src/libmad-0.15.1b
       patch -Np1 -i ../libmad-0.15.1b-fixes-1.patch
       sed "s@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@g" -i configure.ac
       touch NEWS AUTHORS ChangeLog
       autoreconf -fi
       ./configure --enable-shared
       make
       make install
       ldconfig
    [ID3]
       cd /usr/local/src/libid3tag-0.15.1b
       ./configure --enable-shared
       make
       make install
       ldconfig
    [MADPLAY]
       cd /usr/local/src/madplay-0.15.2b
       ./configure --enable-shared
       make
       make install
       ldconfig
    [SOX]
       cd /usr/local/src/sox-14.4.1
       ./configure
       make -s
       make install
       ldconfig
  • Interact with ffmpeg from a .NET program - Write Input

    7 mai 2015, par Shimmy

    In reference to this question, as you can see I managed to run and receive data from the program.

    However I didn’t manage to submit data to it, for instance, while converting a file, pressing q immediately stop conversion and stops the program.
    I need my application to support stopping the process as well, and I think this should be done by passing this parameter to the ffmpeg app, since I want it to take care of all uncollected resource or whatever dust it would leave behind if I would just go and use process.Kill()

    Here is what I’ve tried :

    static int lineCount = 0;
    static bool flag;
    static void process_ErrorDataReceived(object sender, DataReceivedEventArgs e)
    {
     Console.WriteLine("Error ({1:m:s:fff}: {0})", lineCount++,
         DateTime.Now);

     if (e.Data != null && string.Equals(e.Data,"Press [q] to stop, [?] for help"))
       flag = true;

     if (flag)
     {
       flag = false;
       Console.WriteLine("Stopping ({0:m:s:fff})...", DateTime.Now);
       process.CancelErrorRead();
       process.CancelOutputRead();
       process.StandardInput.WriteLine("q");
     }  

     Console.WriteLine(e.Data);
     Console.WriteLine();
    }

    But it doesn’t do anything, seems that once the conversion has been requested, I have no control on it any more, I can only receive output from it. Running it as stand alone does allow me interaction of course.

    What am I missing here, is it a different trick in submitting the output or the code in previous answer is wrong, or I should have chosen a different approach ?

    For your attention, RedirectStandardInput is on.

    NOTE : as you can see in the answer of my previous question, ffmpeg interacts differently, I think the one who knows the answer will be (maybe I’m wrong) someone with experience in ffmpeg.