Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (20)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (4228)

  • ffmpeg filters image processing

    15 décembre 2017, par Ja_cpp

    ffmpeg is applying some filters to the images before constructing the video. Is there any way to know those filters ?

    I’m using this command (so every parameters are kept by default) :

    ffmpeg -framerate 12 -i frame%02d.jpg out.mp4

    Example of one frame :

    Image file :

    enter image description here

    From the video :
    enter image description here

    I’m working on image processing with c++ and I’m interested in the way ffmpeg filtering the images

    EDIT

    When I launch the command line, that what I get in the terminal :

    ffmpeg -framerate 5 -i frame%02d.jpg output.mp4


    ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
     configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
     libavutil      54. 31.100 / 54. 31.100
     libavcodec     56. 60.100 / 56. 60.100
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 40.101 /  5. 40.101
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101
     libpostproc    53.  3.100 / 53.  3.100
    [mjpeg @ 0x23e8600] Changeing bps to 8
    Input #0, image2, from 'frame%02d.jpg':
     Duration: 00:01:40.20, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 2576x1456 [SAR 1:1 DAR 23:13], 5 fps, 5 tbr, 5 tbn, 5 tbc
    No pixel format specified, yuvj420p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    [libx264 @ 0x23ec680] using SAR=1/1
    [libx264 @ 0x23ec680] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x23ec680] profile High, level 5.0
    [libx264 @ 0x23ec680] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'output.mp4':
     Metadata:
       encoder         : Lavf56.40.101
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc), 2576x1456 [SAR 1:1 DAR 23:13], q=-1--1, 5 fps, 10240 tbn, 5 tbc
       Metadata:
         encoder         : Lavc56.60.100 libx264
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame=  501 fps=3.8 q=-1.0 Lsize=  154288kB time=00:01:39.80 bitrate=12664.6kbits/s    
    video:154284kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.002771%
    [libx264 @ 0x23ec680] frame I:3     Avg QP:17.31  size:564506
    [libx264 @ 0x23ec680] frame P:498   Avg QP:19.27  size:313841
    [libx264 @ 0x23ec680] mb I  I16..4:  0.2% 97.1%  2.7%
    [libx264 @ 0x23ec680] mb P  I16..4:  0.0% 46.3%  0.5%  P16..4: 12.5% 13.0%  7.7%  0.0%  0.0%    skip:20.1%
    [libx264 @ 0x23ec680] 8x8 transform intra:98.9% inter:73.3%
    [libx264 @ 0x23ec680] coded y,uvDC,uvAC intra: 99.0% 99.7% 96.0% inter: 52.0% 57.7% 37.0%
    [libx264 @ 0x23ec680] i16 v,h,dc,p: 17% 16% 13% 54%
    [libx264 @ 0x23ec680] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 12% 33%  6%  7%  6%  8%  7% 10%
    [libx264 @ 0x23ec680] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 13% 14% 10% 13%  9% 11%  8% 10%
    [libx264 @ 0x23ec680] i8c dc,h,v,p: 66% 14% 14%  5%
    [libx264 @ 0x23ec680] Weighted P-Frames: Y:2.0% UV:1.2%
    [libx264 @ 0x23ec680] ref P L0: 45.6% 16.0% 20.4% 17.6%  0.5%
    [libx264 @ 0x23ec680] kb/s:12613.66
  • Error when trying to launch ffplay on Ubuntu server 16

    18 décembre 2019, par Nicolas

    For work I need to get a video+audio link working between a machine running Ubuntu server 16 and a client machine running Ubuntu 18.04.
    On the server side we have a webcam (with a microphone) and a speaker. The idea is that the client can see and hear what happens in front of the webcam, and can talk to whoever is next to the server.

    For this purpose, I run ffserver+ffmpeg on the server side to stream video and audio (that works, the client can see and hear what happens around the server), and the client also runs ffserver+ffmpeg on a different port, so that the server can use ffplay to hear what the client says.
    Unfortunately for some reason at the moment the server cannot run ffplay. I get the following error :

    # ffplay -probesize 32 -sync ext http://localhost:8090/camera.rm
      ffplay version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2003-2018 the FFmpeg developers
      built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
      configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enableopengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
      libavutil      54. 31.100 / 54. 31.100
      libavcodec     56. 60.100 / 56. 60.100
      libavformat    56. 40.101 / 56. 40.101
      libavdevice    56.  4.100 / 56.  4.100
      libavfilter     5. 40.101 /  5. 40.101
      libavresample   2.  1.  0 /  2.  1.  0
      libswscale      3.  1.101 /  3.  1.101
      libswresample   1.  2.101 /  1.  2.101
      libpostproc    53.  3.100 / 53.  3.100
    ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
    Input #0, rm, from 'http://localhost:8090/camera.rm':    0B f=0/0  
      Metadata:
        title           :
        author          :
        copyright       :
        comment         :
      Duration: 01:00:00.00, start: 0.000000, bitrate: N/A
        Stream #0:0: Audio: ac3 (dnet / 0x74656E64), 22050 Hz, mono, fltp, 32 kb/s
        Stream #0:1: Video: rv10 (RV10 / 0x30315652), yuv420p, 640x480, 2048 kb/s, 24464 fps, 24464 tbr, 1k tbn, 1k tbc
    SDL_OpenAudio (1 channels, 22050 Hz):
    No more combinations to try, audio open failed

    To be noted : ffplay has worked in the past on this server. The only modifications that were made are that I added some feeds and streams in the ffserver.conf, but they are not even used. I tried marking my additions as comments and repeating the test, but ffplay still doesn’t work.

    My ffserver.conf file is as below :

    HTTPPort            8090
    HTTPBindAddress     0.0.0.0
    MaxHTTPConnections 200
    MaxClients      100
    MaxBandWidth    500000
    CustomLog       -
    #NoDaemon

    <feed>
    File            /tmp/camera.ffm
    FileMaxSize     200M
    </feed>

    #<feed>
    #File            /tmp/test.ffm
    #FileMaxSize     200k
    #</feed>

    #<feed>
    #File /tmp/audio.ffm>
    #FileMaxSize 200M
    #</feed>

    <stream>
    Feed camera.ffm
    Format rm
    AudioBitRate 32
    VideoFrameRate 15
    VideoIntraOnly
    VideoBitRate 2048
    VideoBufferSize 2048
    VideoSize 640x480
    VideoQMin 5
    VideoQMax 51
    Strict -1
    </stream>

    #<stream>
    #Feed test.ffm
    #AudioBitRate 32
    #AudioChannels 1
    #AudioSampleRate 44100
    #VideoBitRate 512
    #VideoBufferSize 40
    #VideoFrameRate 24
    #VideoSize 640x640
    #VideoGopSize 12
    #VideoQMin 1
    #VideoQMax 15
    #</stream>

    #<stream>
    #Feed audio.ffm
    #Format rm
    #AudioBitRate 128
    #NoVideo
    #</stream>

    And I use the following commands :

    On the server side : ffserver -f /etc/ffserver.conf

    and : ffmpeg -f v4l2 -i /dev/video0 -f alsa -ac 2 -i hw:0 http://localhost:8090/camera.ffm

    and to receive audio : ffplay -probesize 32 -sync ext http://10.1.0.244:8080/audio.ra

    And on the client side : ffserver -f /etc/ffserver.conf

    and : ffmpeg -f alsa -ac 2 -i hw:0 http://localhost:8080/audio.ffm

    The two ffserver.conf files (on server and client) are identical, apart for the port which is different (8090 on the server and 8080 on the client).

    Does anyone have any idea why ffplay won’t start on my server ?
    Thanks,
    Nicolas.

  • FFMpeg Combine wav and avi to mp4

    15 avril 2016, par krisph

    I am trying to combine a wav file and a avi in to a single mp4.

    I can do this with the following via php :

                       $command = 'start /B convertvid\bin\ffmpeg -nostdin -i Temp\\temp.avi -i Temp\\temp.wav -y -filter:v scale=1920:-1 -c:v libx264 -preset ultrafast -movflags faststart -crf 31 -c:a libvo_aacenc -b:a 64k Temp\\output.mp4';

    However it takes an age to complete and i need to speed it up, i was just wondering is there anything that could be done to optimize the commands to make it faster ?

    I have tried the command using just the command line and it still takes ages...

    C:\inetpub\wwwroot\Update\>convertvid\bin\ffmpeg -i Temp\temp.
    avi -i Temp\temp.wav -y  -c:v libx264 -preset ultrafast -movflags faststart -crf
    31 -c:a libvo_aacenc -b:a 64k Temp\testhis.mp4
    ffmpeg version N-74645-g4c39892 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.3 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
    enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
    ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
    le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
    able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
    ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
    --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
    e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
    ble-decklink --enable-zlib
     libavutil      54. 31.100 / 54. 31.100
     libavcodec     56. 58.100 / 56. 58.100
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 37.100 /  5. 37.100
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, avi, from 'Temp\temp.avi':
     Duration: 00:01:27.00, start: 0.000000, bitrate: 97 kb/s
       Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 256
    0x1024 [SAR 1:1 DAR 5:2], 98 kb/s, 0.99 fps, 0.99 tbr, 0.99 tbn, 25 tbc
       Metadata:
         title           : Esa-XVID
    Input #1, wav, from 'Temp\temp.wav':
     Duration: 00:01:25.00, bitrate: 13 kb/s
       Stream #1:0: Audio: gsm_ms (1[0][0][0] / 0x0031), 8000 Hz, mono, s16, 13 kb/
    s
    [libx264 @ 03b9d3e0] using SAR=1/1
    [libx264 @ 03b9d3e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShu
    ffle
    [libx264 @ 03b9d3e0] profile Constrained Baseline, level 5.0
    [libx264 @ 03b9d3e0] 264 - core 148 r2597 e86f3a1 - H.264/MPEG-4 AVC codec - Cop
    yleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deb
    lock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_rang
    e=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_
    offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlac
    ed=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_m
    in=1 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=31.0 qcomp=0.60 qpmin=0 qpma
    x=69 qpstep=4 ip_ratio=1.40 aq=0
    Output #0, mp4, to 'Temp\testhis.mp4':
     Metadata:
       encoder         : Lavf56.40.101
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 2560x1
    024 [SAR 1:1 DAR 5:2], q=-1--1, 0.99 fps, 1000k tbn, 0.99 tbc
       Metadata:
         title           : Esa-XVID
         encoder         : Lavc56.58.100 libx264
       Stream #0:1: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 8000 Hz, mo
    no, s16, 64 kb/s
       Metadata:
         encoder         : Lavc56.58.100 libvo_aacenc
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
     Stream #1:0 -> #0:1 (gsm_ms (native) -> aac (libvo_aacenc))
    Press [q] to stop, [?] for help
    frame=    9 fps=0.0 q=11.0 size=     528kB time=00:00:05.05 bitrate= 855.4kbits/
    frame=   17 fps= 16 q=9.0 size=     791kB time=00:00:13.15 bitrate= 492.9kbits/s
    frame=   25 fps= 16 q=10.0 size=     844kB time=00:00:21.24 bitrate= 325.6kbits/
    frame=   35 fps= 17 q=9.0 size=     870kB time=00:00:31.36 bitrate= 227.2kbits/s
    frame=   45 fps= 17 q=10.0 size=     890kB time=00:00:41.47 bitrate= 175.8kbits/
    frame=   56 fps= 18 q=9.0 size=     924kB time=00:00:52.60 bitrate= 143.9kbits/s
    frame=   67 fps= 18 q=10.0 size=     948kB time=00:01:03.73 bitrate= 121.8kbits/
    frame=   78 fps= 19 q=10.0 size=     989kB time=00:01:14.86 bitrate= 108.2kbits/
    [mp4 @ 03b9c8e0] Starting second pass: moving the moov atom to the beginning of
    the file
    frame=   85 fps= 18 q=-1.0 Lsize=    1028kB time=00:01:25.98 bitrate=  97.9kbits
    /s dup=9 drop=0
    video:912kB audio:111kB subtitle:0kB other streams:0kB global headers:0kB muxing
    overhead: 0.497861%
    [libx264 @ 03b9d3e0] frame I:1     Avg QP:28.00  size:245528
    [libx264 @ 03b9d3e0] frame P:84    Avg QP: 9.98  size:  8182
    [libx264 @ 03b9d3e0] mb I  I16..4: 100.0%  0.0%  0.0%
    [libx264 @ 03b9d3e0] mb P  I16..4:  4.1%  0.0%  0.0%  P16..4:  4.9%  0.0%  0.0%
    0.0%  0.0%    skip:90.9%
    [libx264 @ 03b9d3e0] coded y,uvDC,uvAC intra: 10.3% 8.6% 6.3% inter: 2.4% 1.8% 0
    .9%
    [libx264 @ 03b9d3e0] i16 v,h,dc,p: 80% 18%  1%  1%
    [libx264 @ 03b9d3e0] i8c dc,h,v,p: 64% 26% 10%  1%
    [libx264 @ 03b9d3e0] kb/s:86.79