Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (43)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

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

  • Stremio::FFMPEG Error while opening encoder for output stream #0:1

    28 février 2015, par user2547496

    Getting this error using Stremio::FFMPEG wrapper for converting /MOV to .MP4

    Error while opening encoder for output stream #0:1 - maybe incorrect     parameters such as bit_rate, rate, width or height

    Here are my commands

    require 'streamio-ffmpeg'
    movie = FFMPEG::Movie.new("tmp/movie.ogg")
    movie.transcode("tmp/movie.mp4")

    Here’s the output =>

    Running transcoding...
    ffmpeg -y -i tmp/movie.ogg  tmp/movie.mp4

    E, [2015-02-28T03:06:00.797778 #6381] ERROR -- : Failed encoding...
    ffmpeg -y -i tmp/movie.ogg  tmp/movie.mp4

    Output #0, mp4, to 'tmp/movie.mp4':
       Stream #0:0: Video: h264, yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 90k tbn, 24 tbc

    Stream mapping:
     Stream #0:0 -> #0:0 (theora -> libx264)
     Stream #0:1 -> #0:1 (flac -> libaacplus)
    Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height

    Errors: encoded file is invalid.

    Stream mapping:
     Stream #0:0 -> #0:0 (theora -> libx264)
     Stream #0:1 -> #0:1 (flac -> libaacplus)
    Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
  • How to pipe output from ffmpeg

    27 février 2015, par Andrew Simpson

    I have a c# desktop app.

    I want to stream an RTSP feed from my camera to my app, and in my app save jpegs as they come through.

    I use mpdecimate to restrict frames that are changes to the previous frame.

    If I open a DOS windows and type in :

    ffmpeg -i rtsp://admin:admin@192.168.0.17:554/video_0 -vf mpdecimate -r 10 output.avi 2>log.txt

    it works.

    if I put this into a C# app the log file reports :

      ffmpeg version N-69779-g2a72b16 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --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-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
     libavutil      54. 18.100 / 54. 18.100
     libavcodec     56. 22.100 / 56. 22.100
     libavformat    56. 21.100 / 56. 21.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 11.100 /  5. 11.100
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, rtsp, from 'rtsp://admin:admin@192.168.0.17:554/video_0':
     Metadata:
       title           : YOKO Live Streaming
       comment         : video_0
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 352x288 [SAR 1:1 DAR 11:9], 90k tbr, 90k tbn, 90k tbc
    [NULL @ 04d6a1e0] Unable to find a suitable output format for 'mpdecimate'
    mpdecimate: Invalid argument

    So, I tweaked it with things I thought would make it work but still teh same error.

    This is my last attempt at this :

    Process process = new Process();
    {
       FileStream baseStream = null;  
       string arguments = "-i rtsp://admin:admin@192.168.0.17:554/video_0 -vf image2pipe mpdecimate -r 10 - 0";
       string file = @"C:\bin\ffmpeg.exe";
       process.StartInfo.FileName = file;
       process.StartInfo.Arguments = arguments;
       process.StartInfo.CreateNoWindow = true;
       process.StartInfo.RedirectStandardError = true;
       process.StartInfo.RedirectStandardOutput = true;
       process.StartInfo.UseShellExecute = false;
       Task.Run(() =>
       {
           try
           {
               process.Start();
               byte[] buffer = new byte[200000];
               var error = process.StandardError.ReadToEnd();
               baseStream = process.StandardOutput.BaseStream as FileStream;
               bool gotHeader = false;
               bool imgFound = false;
               int counter = 0;
               while (true)
               {
                   byte bit1 = (byte)baseStream.ReadByte();
                   buffer[counter] = bit1;
                   if (bit1 == 217 && gotHeader)
                   {
                       if (buffer[counter - 1] == 255)
                       {
                           byte[] jpeg = new byte[counter];
                           Buffer.BlockCopy(buffer, 0, jpeg, 0, counter);
                           using (MemoryStream ms = new MemoryStream(jpeg))
                           {
                               pictureBox1.Image = Image.FromStream(ms);
                               ms.Close();
                           }
                           imgFound = true;
                       }
                   }
                   else if (bit1 == 216)
                   {
                       if (buffer[counter - 1] == 255)
                       {
                           gotHeader = true;
                       }
                   }
                   if (imgFound)
                   {
                       counter = 0;
                       buffer = new byte[200000];
                       imgFound = false;
                       gotHeader = false;
                   }
                   else
                   {
                       counter++;
                   }
               }
           }
           catch (Exception ex2)
           {
               //log error here
           }
       });
    }
    catch (Exception ex)
    {
       //log error here
    }

    any suggestion I will glady try out...

  • Convert PNGs to webm video with transparency

    20 septembre 2016, par sebastian

    I would like to use avconv to convert a series of PNG images to a WebM video, preserving transparency.

    I understand that the pixel format used in the output video must support transparency. So I tried :

    $ avconv -framerate 25 -f image2 -i frames/%03d.png -pix_fmt yuva420p output.webm

    Unfortunately, avconv complains :

    Incompatible pixel format 'yuva420p' for codec 'libvpx-vp9', auto-selecting format 'yuv420p'

    I am using ffmpeg version 2.8.4-1+b1 Copyright (c) 2000-2015 the FFmpeg developers.