Recherche avancée

Médias (91)

Autres articles (112)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

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

  • ffmpeg : Streamcopy requested for output stream 0:0, which is fed from a complex filtergraph. Filtering and streamcopy cannot be used together

    7 juin 2017, par DmitrySemenov

    I’m on Fedora25 running the following command expecting live streaming to youtube and at the same time saving of the final combined stream (screencast + webcam + logo + audio) into local mp4 file.

    ffmpeg \
    -f x11grab -video_size 3840x2160 -framerate 30 -i :1.0 \
    -f v4l2 -video_size 320x240 -framerate 30 -i /dev/video1 \
    -f alsa -ac 2 -i pulse -i logo.png -filter_complex \
    "[0:v]scale=1920:-1,setpts=PTS-STARTPTS[bg]; \
    [1:v]scale=160:-1,setpts=PTS-STARTPTS[fg]; \
    [bg][fg]overlay=W-w-10:10[bg2]; \
    [bg2][3:v]overlay=W-w-10:H-h-10,format=yuv420p[out]" \
    -map "[out]" -map 2:a -c:v libx264 -preset veryfast \
    -maxrate 9000k -bufsize 12000k -c:a aac -b:a 160k -ar 44100 -b:a 128k \
    -force_key_frames "expr:gte(t,n_forced*2)" \
    -c copy -f flv rtmp://a.rtmp.youtube.com/live2/TOKEN
    -c copy -f mp4 out.mp4

    getting the following output

    ffmpeg version 3.1.7 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 6.3.1 (GCC) 20161221 (Red Hat 6.3.1-1)
     configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --extra-cflags=-I/usr/include/nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
     libavutil      55. 28.100 / 55. 28.100
     libavcodec     57. 48.101 / 57. 48.101
     libavformat    57. 41.100 / 57. 41.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 47.100 /  6. 47.100
     libavresample   3.  0.  0 /  3.  0.  0
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    [x11grab @ 0x562f6e929c20] Stream #0: not enough frames to estimate rate; consider increasing probesize
    Input #0, x11grab, from ':1.0':
     Duration: N/A, start: 1496800335.695598, bitrate: N/A
       Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 3840x2160, 30 fps, 1000k tbr, 1000k tbn, 1000k tbc
    Input #1, video4linux2,v4l2, from '/dev/video1':
     Duration: N/A, start: 17665.258327, bitrate: 36864 kb/s
       Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 320x240, 36864 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
    Guessed Channel Layout for Input Stream #2.0 : stereo
    Input #2, alsa, from 'pulse':
     Duration: N/A, start: 1496800336.972575, bitrate: 1536 kb/s
       Stream #2:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
    Input #3, png_pipe, from 'logo.png':
     Duration: N/A, bitrate: N/A
       Stream #3:0: Video: png, rgba(pc), 190x105 [SAR 2835:2835 DAR 38:21], 25 tbr, 25 tbn, 25 tbc
    Streamcopy requested for output stream 0:0, which is fed from a complex filtergraph. Filtering and streamcopy cannot be used together.
    ➜  tmp
  • CDN do not allow me to convert mov video format to mp4

    16 avril 2021, par Azzo

    I have tried so many thinks on stackoverflow but didn't fix my issue. So I am using following code for converting mov video format to mp4 video format. The code is working fine if I disable CDN but when I enable CDN then ffmpeg didn't work. What is wrong with CDN with the code below ?

    


    $cmd = shell_exec("ffmpeg -i video.mov -vcodec copy -acodec copy video.mp4");


    


    Command :

    


    ffmpeg version 3.4.8 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --disable-encoder=libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect 
libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100 
libavdevice 57. 10.100 / 57. 10.100 
libavfilter 6.107.100 / 6.107.100 
libavresample 3. 7. 0 / 3. 7. 0 
libswscale 4. 8.100 / 4. 8.100 
libswresample 2. 9.100 / 2. 9.100 
libpostproc 54. 7.100 / 54. 7.100 
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1324920] stream 1, offset 0x24: partial file [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1324920] 
Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none(smpte170m/bt709/bt709), 480x360, 777 kb/s): unspecified pixel format Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mov,mp4,m4a,3gp,3g2,mj2, 
from 'https://dev.websiteaddress.com/uploads/files/2021-04-16/image_1618597539012465400_5.mov': Metadata: major_brand : qt minor_version : 0 
compatible_brands: qt creation_time : 2021-04-10T23:22:06.000000Z com.apple.quicktime.make: Apple com.apple.quicktime.model: iPhone 12 Pro com.apple.quicktime.software: 14.4.2 com.apple.quicktime.creationdate: 2021-04-11T07:22:06+0800 Duration: 00:00:02.73, bitrate: N/A Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none(smpte170m/bt709/bt709), 480x360, 777 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc (default) Metadata: creation_time : 2021-04-10T23:22:06.000000Z handler_name : Core Media Data Handler encoder : H.264 Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 84 kb/s (default) Metadata: creation_time : 2021-04-10T23:22:06.000000Z handler_name : Core Media Data Handler Stream #0:2(und): Data: none (mebx / 0x7862656D), 0 kb/s (default) Metadata: creation_time : 2021-04-10T23:22:06.000000Z handler_name : Core Media Data Handler Stream #0:3(und): Data: none (mebx / 0x7862656D), 0 kb/s (default) Metadata: creation_time : 2021-04-10T23:22:06.000000Z handler_name : Core Media Data Handler Stream #0:4(und): Data: none (mebx / 0x7862656D), 34 kb/s (default) Metadata: creation_time : 2021-04-10T23:22:06.000000Z handler_name : Core Media Data Handler [NULL @ 0x138e6e0] Unable to find a suitable output format for 'ff.log' ff.log: Invalid argument


    


  • How do I enable the v360 filter in FFMPEG 4.4.1 ?

    14 juin 2022, par fmw42

    I have FFMPEG 4.4.1 installed (via MacPorts on M1 Mac OSX Monterey) and am trying to use the v360 filter to convert a PNG image from fisheye format to equirectangular with the command :

    


    ffmpeg -i 03-fisheye_dsc2399.png -vf v360:fisheye:equirectangular:ih_fov=180:iv_fov=180:pitch=0 03-fisheye_dsc2399_to_equirectangular.png


    

    


    But it is complaining that the v360 filter does not exist. Here is the error message :

    


    No such filter: 'v360:fisheye:equirectangular:ih_fov'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0


    


    The long message from FFMPEG is :

    


    ffmpeg -i 03-fisheye_dsc2399.png -vf v360:fisheye:equirectangular:ih_fov=180:iv_fov=180:pitch=0 03-fisheye_dsc2399_to_equirectangular.png
ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with Apple clang version 13.0.0 (clang-1300.0.29.30)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-libzvbi --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --enable-zlib --disable-libjack --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-indev=jack --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --disable-securetransport --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --enable-libzimg --arch=arm64 --enable-libx265 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-libvidstab
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, png_pipe, from '03-fisheye_dsc2399.png':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: png, rgb24(pc), 2000x1344, 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> png (native))
Press [q] to stop, [?] for help
[AVFilterGraph @ 0x13ce0dbc0] No such filter: 'v360:fisheye:equirectangular:ih_fov'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!


    

    


    Can some one please explain why it is failing to find the v360 filter and how to remedy this ? Do I need some other configure arguments to install it ? Do I have a typo in my command ?

    


    Thanks

    


    ADDITION

    


    Per syntax correction in a comment from @Rotem, I changed my command to :

    


    ffmpeg -i 03-fisheye_dsc2399.png -vf v360=input=fisheye:ih_fov=180:iv_fov=180:output=equirectangular:v_fov=90:h_fov=180 03-fisheye_dsc2399_to_equirectangular.png


    


    But this is still erroring with a message about missing arguments for equirectangular :

    


    [v360 @ 0x15a004130] [Eval @ 0x16d53cb50] Undefined constant or missing '(' in 'equirectangular'
[v360 @ 0x15a004130] Unable to parse option value "equirectangular"
[v360 @ 0x15a004130] [Eval @ 0x16d53cb90] Undefined constant or missing '(' in 'equirectangular'
[v360 @ 0x15a004130] Unable to parse option value "equirectangular"
[v360 @ 0x15a004130] Error setting option output to value equirectangular.
[Parsed_v360_0 @ 0x15a004080] Error applying options to the filter.
[AVFilterGraph @ 0x158f0d2b0] Error initializing filter 'v360' with args 'input=fisheye:ih_fov=180:iv_fov=180:output=equirectangular:v_fov=90:h_fov=180'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!


    


    Can some one point me to some good examples or more specific documentation for the use of v360 ?

    


    Thanks

    


    SOLUTION

    


    The argument should be equirect, not equirectangular. So

    


    ffmpeg -i 03-fisheye_dsc2399.png -vf v360=input=fisheye:ih_fov=180:iv_fov=180:output=equirect 03-fisheye_dsc2399_to_equirectangular.png