Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (55)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (7022)

  • avfilter/interlace : add complex vertical low-pass filter

    20 avril 2017, par Thomas Mundt
    avfilter/interlace : add complex vertical low-pass filter
    

    This complex (-1 2 6 2 -1) filter slightly less reduces interlace 'twitter' but better retain detail and subjective sharpness impression compared to the linear (1 2 1) filter.

    Signed-off-by : Thomas Mundt <tmundt75@gmail.com>
    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] doc/filters.texi
    • [DH] libavfilter/interlace.h
    • [DH] libavfilter/tinterlace.h
    • [DH] libavfilter/vf_interlace.c
    • [DH] libavfilter/vf_tinterlace.c
    • [DH] libavfilter/x86/vf_interlace.asm
    • [DH] libavfilter/x86/vf_interlace_init.c
    • [DH] libavfilter/x86/vf_tinterlace_init.c
    • [DH] tests/fate/filter-video.mak
    • [DH] tests/ref/fate/filter-interlace-complex
  • FFMPEG being killed when processing H264 video

    4 mai 2017, par Stuart Clarke

    I have a program that when given a video (video.mp4), extracts the audio, a thumbnail image and the video into separate files, adds some background music to the audio file to create a new file (combined.mp3), increases the resolution of the video to 1080p and saves to a new file (videoHD.mp4), adds intro and credits to the start and end (already in 1080p) and saves that to a new file (merged.mp4) and finally combines the processed video and audio into an output file (videoExt.mp4). I’m using ffmpeg through python and subprocess.call to do all this but the raw ffmpeg commands are as follows.

    ffmpeg -y -i video.mp4 -acodec mp3 audioTrack.mp3

    ffmpeg -y -ss 00:00:00 -i video.mp4 -vframes 1 -q:v 2 thumb.jpg

    ffmpeg -y -i video.mp4 -an videoTrack.mp4

    ffmpeg -y -i audioTrack.mp3 -i musicTrack.mp3 -filter_complex amerge -c:a libmp3lame -q:a 4 combined.mp3

    ffmpeg -y -i videoTrack.mp4 -vf 'scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:x=(1920-iw)/2:y=(1080-ih)/2:color=black' videoHD.mp4

    ffmpeg -y -f concat -i vids.ini -an merged.mp4

    ffmpeg -y -i merged.mp4 -i combined.mp3 -strict -2 -shortest videoExt.mp4

    Between extracting the audio and combining with the music I add a silent period matching the intro length to the beginning for the audio and lower the volume of the music for the duration of the video section and crop the music to the length of the combined intro, video and credits. This is all done with AudioSegment and works well.

    My problem is that the ffmpeg process keeps being killed. It happens in various places at various times, but always when processing the video at 1080p. I’m sure it has something to do with the H264 codec but when I use mpeg4 the quality is terrible. The videos are always less than a minute (Instagram videos) and at most 25Mb, I’m using a VPS with Ubuntu Server 15.04 installed, it should be able to handle this surely. If not is there a way around it, processing the video in parts ?

    Here is an example of the error but as I said, it can happen in various places and sometimes will complete for one command but I have never had it complete for all.

    # ffmpeg -y -f concat -i vids.ini -an merged.mp4

    ffmpeg version 2.5.10-0ubuntu0.15.04.1 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
     configuration: --prefix=/usr --extra-version=0ubuntu0.15.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --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-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libwavpack --enable-libwebp --enable-libxvid --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libvpx --enable-libx264 --enable-libsoxr --enable-gnutls --enable-openal --enable-libopencv --enable-librtmp --enable-libx265
     libavutil      54. 15.100 / 54. 15.100
     libavcodec     56. 13.100 / 56. 13.100
     libavformat    56. 15.102 / 56. 15.102
     libavdevice    56.  3.100 / 56.  3.100
     libavfilter     5.  2.103 /  5.  2.103
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, concat, from 'vids.ini':
     Duration: N/A, start: 0.000000, bitrate: 2999 kb/s
       Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 2996 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc
       Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s
    [libx264 @ 0x134fd00] using SAR=1/1
    [libx264 @ 0x134fd00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x134fd00] profile High, level 4.0
    [libx264 @ 0x134fd00] 264 - core 142 r2495 6a301b6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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=6 lookahead_threads=1 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=25 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 'merged.mp4':
     Metadata:
       encoder         : Lavf56.15.102
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 29.97 fps, 11988 tbn, 29.97 tbc
       Metadata:
         encoder         : Lavc56.13.100 libx264
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame=   13 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=1 dro
    frame=   28 fps= 27 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=1 dro
    frame=   46 fps= 21 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=1 dro
    frame=   51 fps= 16 q=29.0 size=     120kB time=00:00:00.-3 bitrate=N/A dup=1 dr
    frame=   55 fps= 15 q=29.0 size=     154kB time=00:00:00.10 bitrate=12574.5kbits
    frame=   60 fps= 14 q=29.0 size=     195kB time=00:00:00.26 bitrate=5981.0kbits/
    frame=   65 fps= 13 q=29.0 size=     254kB time=00:00:00.43 bitrate=4797.0kbits/
    frame=   69 fps= 12 q=29.0 size=     287kB time=00:00:00.56 bitrate=4142.1kbits/
    frame=   73 fps= 12 q=29.0 size=     375kB time=00:00:00.70 bitrate=4384.2kbits/
    frame=   76 fps= 11 q=29.0 size=     418kB time=00:00:00.80 bitrate=4278.4kbits/
    frame=   81 fps= 11 q=29.0 size=     441kB time=00:00:00.96 bitrate=3732.4kbits/
    frame=   85 fps= 10 q=29.0 size=     472kB time=00:00:01.10 bitrate=3511.0kbits/
    Killed1 drop=0

    Any ideas or if anyone knows a better way to this please let me know.

    Cheers,

    Stu

  • ffmpeg fails to capture desktop when UAC prompt appears

    10 mai 2017, par kristin

    I am trying to stream desktop to .avi file using ffmpeg static version 3.2.4 from https://ffmpeg.zeranoe.com/builds/, but streaming fails when UAC prompt appears.

    Command line that I am trying to use :

    ffmpeg.exe -f gdigrab -analyzeduration 100M -probesize 100M -i desktop -framerate 10 -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -x264opts crf=23 -r 10 ".avi"

    Output that I got :

     ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 6.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-d3d11va --enable-dxva2
    --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontcon
    fig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libb
    luray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --e
    nable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-l
    ibopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libope
    njpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --en
    able-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enabl
    e-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable
    -libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --e
    nable-libzimg --enable-lzma --enable-zlib
     libavutil      55. 34.101 / 55. 34.101
     libavcodec     57. 64.101 / 57. 64.101
     libavformat    57. 56.101 / 57. 56.101
     libavdevice    57.  1.100 / 57.  1.100
     libavfilter     6. 65.100 /  6. 65.100
     libswscale      4.  2.100 /  4.  2.100
     libswresample   2.  3.100 /  2.  3.100
     libpostproc    54.  1.100 / 54.  1.100
    [gdigrab @ 00000000003684a0] Capturing whole desktop as 1654x927x32 at (0,0)
    Input #0, gdigrab, from 'desktop':
     Duration: N/A, start: 1494400135.425894, bitrate: 1470470 kb/s
       Stream #0:0: Video: bmp, bgra, 1654x927, 1470470 kb/s, 29.97 fps, 1000k tbr,
    1000k tbn, 1000k tbc
    [libx264 @ 000000000036b3e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
    AVX
    [libx264 @ 000000000036b3e0] profile Constrained Baseline, level 4.0
    Output #0, avi, to 'C:\New folder\test.avi':
     Metadata:
       ISFT            : Lavf57.56.101
       Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 1654x926, q
    =-1--1, 10 fps, 10 tbn, 10 tbc
       Metadata:
         encoder         : Lavc57.64.101 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream mapping:
     Stream #0:0 -> #0:0 (bmp (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame=   12 fps=0.0 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 dro
    frame=   18 fps= 17 q=12.0 size=     309kB time=00:00:00.50 bitrate=5067.3kbits/
    frame=   23 fps= 15 q=14.0 size=     624kB time=00:00:01.00 bitrate=5113.2kbits/
    frame=   29 fps= 12 q=13.0 size=     757kB time=00:00:01.60 bitrate=3877.8kbits/
    frame=   35 fps= 12 q=12.0 size=     849kB time=00:00:02.20 bitrate=3161.9kbits/
    frame=   40 fps= 12 q=15.0 size=     914kB time=00:00:02.70 bitrate=2771.9kbits/
    frame=   44 fps= 11 q=17.0 size=     992kB time=00:00:03.20 bitrate=2538.6kbits/
    frame=   49 fps= 11 q=11.0 size=    1069kB time=00:00:03.70 bitrate=2366.7kbits/
    frame=   55 fps= 11 q=11.0 size=    1186kB time=00:00:04.40 bitrate=2207.5kbits/
    [gdigrab @ 00000000003684a0] Failed to capture image (error 5)
    desktop: I/O error
    frame=   59 fps= 10 q=10.0 size=    1197kB time=00:00:04.80 bitrate=2043.4kbits/
    frame=   59 fps= 10 q=-1.0 Lsize=    1220kB time=00:00:06.10 bitrate=1638.6kbits
    /s dup=0 drop=99 speed=1.04x
    video:1213kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
    overhead: 0.577492%
    [libx264 @ 000000000036b3e0] frame I:1     Avg QP:20.00  size:249076
    [libx264 @ 000000000036b3e0] frame P:58    Avg QP:13.95  size: 17124
    [libx264 @ 000000000036b3e0] mb I  I16..4: 100.0%  0.0%  0.0%
    [libx264 @ 000000000036b3e0] mb P  I16..4:  1.8%  0.0%  0.0%  P16..4: 14.1%  0.0
    %  0.0%  0.0%  0.0%    skip:84.2%
    [libx264 @ 000000000036b3e0] coded y,uvDC,uvAC intra: 31.5% 13.5% 12.4% inter: 7
    .7% 2.1% 1.5%
    [libx264 @ 000000000036b3e0] i16 v,h,dc,p: 72% 25%  2%  1%
    [libx264 @ 000000000036b3e0] i8c dc,h,v,p: 71% 16% 12%  0%
    [libx264 @ 000000000036b3e0] kb/s:1629.20

    In output can see message :

    [gdigrab @ 00000000003684a0] Failed to capture image (error 5)
    desktop: I/O error

    this is written to output when UAC prompt appears.

    Am I doing something wrong or missing in command line ?
    Have to stream desktop using ffmpeg and don`t fail when UAC prompt appears ?