Recherche avancée

Médias (1)

Mot : - Tags -/biographie

Autres articles (39)

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

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (7693)

  • ffmpeg video&audio streaming from webcam

    23 février 2016, par johncarrie

    I am new to ffmpeg and I want to stream webcam video&audio by using ffmpeg and ffserver.

    ffserver config is the following :

    <stream>
    Feed feed1.ffm
    Format avi
    VideoSize 176x128
    VideoFrameRate 15
    VideoBufferSize 40
    VideoBitRate 64
    AudioBitRate 32
    AudioChannels 1
    AudioSampleRate 11025
    VideoQMin 1
    VideoQMax 20
    NoDefaults
    </stream>

    ffmpeg process is the following :

    ffmpeg -vcodec mjpeg -v verbose -r 15 -s 176x128 -f video4linux2 -i /dev/video0 -f
    alsa -ac 1 -i hw:0 http://localhost:8090/feed1.ffm
    ffmpeg version N-77547-g2893dbf Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
     configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
     libavutil      55. 11.100 / 55. 11.100
     libavcodec     57. 20.100 / 57. 20.100
     libavformat    57. 21.100 / 57. 21.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6. 22.100 /  6. 22.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    [video4linux2,v4l2 @ 0xa6133a0] fd:3 capabilities:84000001
    [video4linux2,v4l2 @ 0xa6133a0] The V4L2 driver changed the video from 176x128 to 1280x720
    [mjpeg @ 0xa613ec0] Changing bps to 8
    Input #0, video4linux2,v4l2, from '/dev/video0':
     Duration: N/A, start: 77139.395765, bitrate: N/A
    Stream #0:0: Video: mjpeg, 1 reference frame, yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, -2 kb/s, 15 fps, 15 tbr, 1000k tbn, 1000k tbc
    Guessed Channel Layout for  Input Stream #1.0 : mono
    Input #1, alsa, from 'hw:0':
     Duration: N/A, start: 1456086923.213492, bitrate: 768 kb/s
    Stream #1:0: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
    [tcp @ 0xa622000] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
    [tcp @ 0xa61e140] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
    [graph 0 input from stream 1:0 @ 0xa613220] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x4
    [audio format for output stream 0:0 @ 0xa62a620] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
    [auto-inserted resampler 0 @ 0xa6229c0] ch:1 chl:mono fmt:s16 r:48000Hz -> ch:1 chl:mono fmt:s32p r:11025Hz
    [graph 1 input from stream 0:0 @ 0xa6244c0] w:1280 h:720 pixfmt:yuvj422p tb:1/15 fr:15/1 sar:0/1 sws_param:flags=2
    [scaler for output stream 0:1 @ 0xa623fc0] w:176 h:128 flags:'bicubic' interl:0
    [graph 1 input from stream 0:0 @ 0xa6244c0] TB:0.066667 FRAME_RATE:15.000000 SAMPLE_RATE:nan
    [swscaler @ 0xa63fe40] deprecated pixel format used, make sure you did set range correctly
    [scaler for output stream 0:1 @ 0xa623fc0] w:1280 h:720 fmt:yuvj422p sar:0/1 -> w:176 h:128 fmt:yuv420p sar:0/1 flags:0x4
    [mpeg4 @ 0xa626260] Either both buffer size and max rate or neither must be specified
    Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
     Metadata:
       creation_time   : 2016-02-22 03:35:23
       Stream #0:0: Audio: mp3 (libmp3lame), 11025 Hz, mono, s32p, 32 kb/s
       Metadata:
         encoder         : Lavc57.20.100 libmp3lame
       Stream #0:1: Video: mpeg4, 1 reference frame, none, 176x128 (0x0), q=1-20, 64 kb/s, 15 fps, 15 tbc
       Metadata:
         encoder         : Lavc57.20.100 mpeg4
    Stream mapping:
     Stream #1:0 -> #0:0 (pcm_s16le (native) -> mp3 (libmp3lame))
     Stream #0:0 -> #0:1 (mjpeg (native) -> mpeg4 (native))
    Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height

    I am using a FEBON168 UVC HDMI GRABBER CARD as Webcam.
    USB UVC output is the following :
    1. MJPEG 1280x720 up to 30fps (full screen)
    2. YUV 1280x720 up to 10fps (full screen)

    How can I fix it ? What am I doing wrong ?

  • Putting two videos next to each other, improving performance

    17 mai 2018, par Zurechtweiser

    I am using this command I put together with quite some effort to put two videos next to each other.

    ffmpeg -y -i i1.mov -i i2.mp4 -filter_complex

    [0:v]scale=1824:1026,pad=width=1920:height=1080:x=0:y=27:color=black,crop=1641:923:170:79,scale=1920:1080[vl] ;

    [1:v]scale=2016:1134,crop=1759:1080:48:27,pad=width=1920:height=1080:x=161:y=0:color=black,crop=1641:923:170:79,scale=1920:1080[vr] ;

    [vl][vr]hstack=shortest=1 -c:v libx264 -crf 23 -preset veryfast output

    It works, but it is not elegant.

    How to shorten it and make it more performant ?

  • ffmpeg Error configuring complex filters

    16 mai 2018, par Armand

    having some issues with an ffmpeg command, maybe someone can point me in the right direction, i used this link to build my command :
    SO Question

    The output I am getting :

    ffmpeg version N-81646-gc19da0c Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.4.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
     libavutil      55. 29.100 / 55. 29.100
     libavcodec     57. 55.101 / 57. 55.101
     libavformat    57. 48.103 / 57. 48.103
     libavdevice    57.  0.102 / 57.  0.102
     libavfilter     6. 62.100 /  6. 62.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Documents\Content Bar\Photo Booth\PhotosDrop\20180416215218.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.11.101
     Duration: 00:00:25.32, start: 0.000000, bitrate: 838 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 800x600 [SAR 1:1 DAR 4:3], 702 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Desktop\Videos\Processing\2018-05-15 14-01-16.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.84.100
     Duration: 00:00:04.20, start: 0.000000, bitrate: 4476 kb/s
       Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 4339 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #2, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Documents\Content Bar\Photo Booth\PhotosDrop\20180416215218.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.11.101
     Duration: 00:00:25.32, start: 0.000000, bitrate: 838 kb/s
       Stream #2:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 800x600 [SAR 1:1 DAR 4:3], 702 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #2:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #3, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Desktop\Videos\Processing\2018-05-15 14-01-27.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.84.100
     Duration: 00:00:04.20, start: 0.000000, bitrate: 4877 kb/s
       Stream #3:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 4739 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #3:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #4, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Documents\Content Bar\Photo Booth\PhotosDrop\20180416215218.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.11.101
     Duration: 00:00:25.32, start: 0.000000, bitrate: 838 kb/s
       Stream #4:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 800x600 [SAR 1:1 DAR 4:3], 702 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #4:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #5, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Documents\Content Bar\Photo Booth\PhotosDrop\20180416215218.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.11.101
     Duration: 00:00:25.32, start: 0.000000, bitrate: 838 kb/s
       Stream #5:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 800x600 [SAR 1:1 DAR 4:3], 702 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #5:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #6, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Desktop\Videos\Processing\2018-05-15 14-01-33.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.84.100
     Duration: 00:00:04.20, start: 0.000000, bitrate: 4446 kb/s
       Stream #6:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 4309 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #6:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Input #7, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Documents\Content Bar\Photo Booth\PhotosDrop\20180416215218.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.11.101
     Duration: 00:00:25.32, start: 0.000000, bitrate: 838 kb/s
       Stream #7:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 800x600 [SAR 1:1 DAR 4:3], 702 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #7:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    [Parsed_concat_0 @ 07212280] Input link in1:v0 parameters (size 1280x720, SAR 0:1) do not match the corresponding output link in0:v0 parameters (800x600, SAR 1:1)
    [Parsed_concat_0 @ 07212280] Failed to configure output pad on Parsed_concat_0
    Error configuring complex filters.
    Invalid argument

    The arguments I am using :

    -i "E:\Documents\Content Bar\Photo Booth\PhotosDrop\20180416215218.mp4" -i "E:\Desktop\Videos\Processing\2018-05-15 14-01-16.mp4" -i "E:\Documents\Content Bar\Photo Booth\PhotosDrop\20180416215218.mp4" -i "E:\Desktop\Videos\Processing\2018-05-15 14-01-27.mp4" -i "E:\Documents\Content Bar\Photo Booth\PhotosDrop\20180416215218.mp4" -i "E:\Documents\Content Bar\Photo Booth\PhotosDrop\20180416215218.mp4" -i "E:\Desktop\Videos\Processing\2018-05-15 14-01-33.mp4" -i "E:\Documents\Content Bar\Photo Booth\PhotosDrop\20180416215218.mp4" -filter_complex "[0:v] [0:a] [1:v] [1:a] [2:v] [2:a] [3:v] [3:a] [4:v] [4:a] [5:v] [5:a] [6:v] [6:a] concat=n=7:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" "E:\Desktop\Videos\Processing\2018-05-15 14-01-16OUT.mp4"

    From what I understood is it isn’t supposed to care about the video sizes when doing it this way ?