Recherche avancée

Médias (91)

Autres articles (82)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • 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

Sur d’autres sites (10737)

  • Pass camera input to ffmpeg

    30 mai 2017, par Sachin Sonone

    I am trying to develop an delphi app which will show a preview of the camera in the delphi form and then send the frames of video as images to the ffmpeg in the stdin of ffmpeg. ffmpeg then broadcast the video to wowza server over rtmp. but fmpeg gives an error ’pipe:0 Bad file descriptor’

       FFMPEG command:
       ffmpeg -f image2pipe -i pipe:0  -c:v libx264 -y -report -f flv wowza_url

    I followed this https://msdn.microsoft.com/en-us/library/ms682499(VS.85).aspx article to build the parent app which will open ffmpeg as a child and use FFmpeg’s stdin to pass input

      // Create a pipe for the child process's STDOUT.
    Createpipe(STDOut_ReadPipe, STDOut_WritePipe, @Security,0);

     // Ensure the read handle to the pipe for STDOUT is not inherited.
    SetHandleInformation(STDOut_ReadPipe,HANDLE_FLAG_INHERIT,0);

    // Create a pipe for the child process's STDIN.

    if (  CreatePipe(STDIn_ReadPipe , STDIn_WritePipe, @Security, 0) = true) then


    // Ensure the write handle to the pipe for STDIN is not inherited.

    SetHandleInformation(STDIn_WritePipe, HANDLE_FLAG_INHERIT, 0)  ;

    This the code to start ffmpeg process

    FillChar(StartupInfo,Sizeof(StartupInfo),0);
    StartupInfo.cb := Sizeof(StartupInfo);
    StartupInfo.dwFlags := STARTF_USESTDHANDLES;


    StartupInfo.wShowWindow := 1;
    S := args;
    UniqueString(S);

    StartupInfo.hStdError := STDOut_WritePipe;
    StartupInfo.hStdOutput := STDOut_WritePipe;
    StartupInfo.hStdInput := STDIn_ReadPipe;

    but as soon as program start ffmpeg exits with the error.

    This is the full console log of the ffmpeg

    ffmpeg started on 2017-05-30 at 18:45:36
    Report written to "ffmpeg-20170530-184536.log"
    Command line:
    "ffmpeg.exe" -f image2pipe -i pipe:0 -report -movflags +faststart -tune
    zerolatency -an -pix_fmt yuv420p -preset ultrafast -vcodec libx264 -b:v 250k
    -y -f flv test.flv
    ffmpeg version N-85750-ga75ef15 Copyright (c) 2000-2017 the FFmpeg
    developers
    built with gcc 6.3.0 (GCC)
    configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid
    --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-
    avisynth --enable-bzlib --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-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-zlib
     libavutil      55. 61.100 / 55. 61.100
     libavcodec     57. 93.100 / 57. 93.100
     libavformat    57. 72.101 / 57. 72.101
     libavdevice    57.  7.100 / 57.  7.100
     libavfilter     6. 88.100 /  6. 88.100
     libswscale      4.  7.101 /  4.  7.101
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
     Splitting the commandline.
      Reading option '-f' ... matched as option 'f' (force format) with
       argument 'image2pipe'.
      Reading option '-i' ... matched as input url with argument 'pipe:0'.
     Reading option '-report' ... matched as option 'report' (generate a
     report) with argument '1'.
     Reading option '-movflags' ... matched as AVOption 'movflags' with
     argument '+faststart'.
     Reading option '-tune' ... matched as AVOption 'tune' with argument
     'zerolatency'.
      Reading option '-an' ... matched as option 'an' (disable audio) with
      argument '1'.
      Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel
      format)
     with argument 'yuv420p'.
    Reading option '-preset' ... matched as AVOption 'preset' with argument
    'ultrafast'.
    Reading option '-vcodec' ... matched as option 'vcodec' (force video codec
    ('copy' to copy stream)) with argument 'libx264'.
     Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -
    b:v)) with argument '250k'.
     Reading option '-y' ... matched as option 'y' (overwrite output files)
    with
    argument '1'.
    Reading option '-f' ... matched as option 'f' (force format) with argument
    'flv'.
    Reading option 'test.flv' ... matched as output url.
    Finished splitting the commandline.
    Parsing a group of options: global .
     Applying option report (generate a report) with argument 1.
    Applying option y (overwrite output files) with argument 1.
    Successfully parsed a group of options.
    Parsing a group of options: input url pipe:0.
    Applying option f (force format) with argument image2pipe.
     Successfully parsed a group of options.
    Opening an input file: pipe:0.
    [pipe @ 003bdea0] Setting default whitelist 'crypto'
    [AVIOContext @ 03115e60] Statistics: 0 bytes read, 0 seeks
    pipe:0: Bad file descriptor'
  • Error : ffprobe exited with code 1

    30 janvier 2021, par Rishabh Chandel

    I'm trying to use fluent-ffmpeg in firebase functions to take screenshot of uploaded video but keep on getting this error :

    



    Error :

    



    Error: ffprobe exited with code 1&#xA;ffprobe version N-83692-gb8a7dcbde2-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2007-2017 the FFmpeg developers&#xA;  built with gcc 5.4.1 (Debian 5.4.1-5) 20170205&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg&#xA;  libavutil      55. 47.100 / 55. 47.100&#xA;  libavcodec     57. 81.100 / 57. 81.100&#xA;  libavformat    57. 66.102 / 57. 66.102&#xA;  libavdevice    57.  3.100 / 57.  3.100&#xA;  libavfilter     6. 74.100 /  6. 74.100&#xA;  libswscale      4.  3.101 /  4.  3.101&#xA;  libswresample   2.  4.100 /  2.  4.100&#xA;  libpostproc    54.  2.100 / 54.  2.100&#xA;test/testvideo.mp4: No such file or directory&#xA;&#xA;    at ChildProcess.<anonymous> (/user_code/node_modules/fluent-ffmpeg/lib/ffprobe.js:233:22)&#xA;    at emitTwo (events.js:106:13)&#xA;    at ChildProcess.emit (events.js:191:7)&#xA;    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)&#xA;</anonymous>

    &#xA;&#xA;

    Here is my code :

    &#xA;&#xA;

    exports.blurOffensiveImages = functions.storage.object().onChange(event => {&#xA;  const object = event.data;&#xA;  const file = gcs.bucket(object.bucket).file(object.name);&#xA;&#xA;  // Exit if this is a move or deletion event.&#xA;  if (object.resourceState === &#x27;not_exists&#x27;) {&#xA;    return console.log(&#x27;This is a deletion event.&#x27;);&#xA;  }&#xA;&#xA;  var proc = new ffmpeg({ source:  object.name })&#xA;  .withSize(&#x27;150x100&#x27;)&#xA;  .takeScreenshots({&#xA;      count: 2,&#xA;      timemarks: [ &#x27;50%&#x27;, &#x27;75%&#x27; ],&#xA;      filename: &#x27;%b_screenshot_%w_%i&#x27;&#xA;    }, &#x27;test_screenshot/&#x27;, function(err, filenames) {&#xA;      console.log(filenames);&#xA;      console.log(&#x27;screenshots were saved&#x27;);&#xA;  });&#xA;&#xA;});&#xA;

    &#xA;&#xA;

    Can anyone help what i'm doing wrong ?

    &#xA;

  • How to extract 16-bit PNG frame from lossless x264 video

    29 mai 2017, par whiskeyspider

    I encoded a series of 16-bit grayscale PNGs to a lossless video with the following command :

    ffmpeg -i image%04d.png -crf 0 -c:v libx264 -preset veryslow output.mp4

    I am now trying to verify that the conversion to video was truly lossless by pulling out the PNGs at the same quality. The command I’m using :

    ffmpeg -i output.mp4 image%04d.png

    However, this is outputting 8-bit PNGs. I’ve tried various options I’ve read about such as -vcodec png and -qscale 0 but so far nothing appears to make it output 16-bit PNGs.

    How do I extract all frames from the video at the same quality as they were going in ? Or did I make a mistake in creating the lossless video in the first place ?

    Edit : I get this error message when trying to use -pix_fmt gray16be.

    [swscaler @ 0x7fef1a8f0800] deprecated pixel format used, make sure
    you did set range correctly

    Full output :

    ffmpeg -i output.mp4 -pix_fmt gray16be  image%04d.png
    ffmpeg version 3.3.1 Copyright (c) 2000-2017 the FFmpeg developers
     built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libavresample   3.  5.  0 /  3.  5.  0
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.71.100
     Duration: 00:00:09.76, start: 0.000000, bitrate: 1337 kb/s
       Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuvj444p(pc), 512x512, 1336 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> png (native))
    Press [q] to stop, [?] for help
    [swscaler @ 0x7fef1a8f0800] deprecated pixel format used, make sure you did set range correctly
    Output #0, image2, to 'image%04d.png':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.71.100
       Stream #0:0(und): Video: png, gray16be, 512x512, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
       Metadata:
         handler_name    : VideoHandler
         encoder         : Lavc57.89.100 png
    frame=  244 fps=0.0 q=-0.0 Lsize=N/A time=00:00:09.76 bitrate=N/A speed=  21x    
    video:4038kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

    I’m happy to use a non-ffmpeg solution if there is one.