Recherche avancée

Médias (91)

Autres articles (16)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (4776)

  • on2avc : check number of channels

    4 octobre 2014, par Michael Niedermayer
    on2avc : check number of channels
    

    Fixes invalid memory access.

    CC : libav-stable@libav.org
    Bug-ID : CVE-2014-8549
    Found-by : Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    Signed-off-by : Anton Khirnov <anton@khirnov.net>

    • [DH] libavcodec/on2avc.c
  • Convert video to animated GIF with FFmpeg [migrated]

    5 janvier 2014, par flexage

    I have FFmpeg installed and working on my Ubuntu 12.04 LTS Server.

    I have managed to successfully automate the process of uploading a video and converting it to both H264/MP4 and OGV for display on the web.

    I also wanted to generate an animated GIF thumbnail for the video.

    I have got as far as the following, which I'm pretty sure is generating 2 frames a second for the first 10 seconds of the video :

    /usr/local/bin/ffmpeg -i "$3/uploads/video-queue/$1.$2" -vf scale=320:-1 -t 10 -r 2 "$3/uploads/video-queue/processing/$1.gif"

    What I would prefer to do is generate 1 frame every 25 seconds for the duration of the entire video, but also with a maximum number of frames set as something like 50 frames.

    I would prefer not to have dependencies on other components such as Image Magik, and I would like to keep this purely shell based.

    Thanks in advance ! You guys are way smarter than me for sure !

    Here is the complete console output from an ffmpeg run of the command above :

    root@ubuntu:/home/fckster/etc/php5# /home/fckster/public_html/cronscripts/process-video-gif.sh 1-1388841621 wmv /home/fckster/public_html
    ffmpeg version N-59480-g8feaa83-syslint Copyright (c) 2000-2014 the FFmpeg developers
     built on Jan  2 2014 00:32:20 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
     configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint
     libavutil      52. 59.100 / 52. 59.100
     libavcodec     55. 47.100 / 55. 47.100
     libavformat    55. 22.102 / 55. 22.102
     libavdevice    55.  5.102 / 55.  5.102
     libavfilter     4.  0.103 /  4.  0.103
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 17.104 /  0. 17.104
     libpostproc    52.  3.100 / 52.  3.100
    [wmv3 @ 0x24dd680] Extra data: 8 bits left, value: 0
    Guessed Channel Layout for  Input Stream #0.1 : stereo
    Input #0, asf, from &#39;/home/fckster/public_html/uploads/video-queue/1-1388841621.wmv&#39;:
     Metadata:
       WM/ToolName     : Flip4Mac WMV Export Component for QuickTime (Mac)
       WM/ToolVersion  : 2204
       encoder         : Lavf54.29.104
     Duration: 00:01:11.30, start: 0.140000, bitrate: 2096 kb/s
       Stream #0:0: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 1280x720, 29.97 tbr, 1k tbn, 1k tbc
       Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 48 kb/s
    [wmv3 @ 0x24dd680] Extra data: 8 bits left, value: 0
    Output #0, gif, to &#39;/home/fckster/public_html/uploads/video-queue/processing/1-1388841621.gif&#39;:
     Metadata:
       WM/ToolName     : Flip4Mac WMV Export Component for QuickTime (Mac)
       WM/ToolVersion  : 2204
       encoder         : Lavf55.22.102
       Stream #0:0: Video: gif, pal8, 320x180, q=2-31, 200 kb/s, 100 tbn, 10 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (wmv3 -> gif)
    Press [q] to stop, [?] for help
    frame=   87 fps= 52 q=0.0 Lsize=    2131kB time=00:00:10.00 bitrate=1745.9kbits/s dup=0 drop=170    
    video:2219kB audio:0kB subtitle:0 global headers:0kB muxing overhead -3.939009%
  • Pipe series of images from java application to ffmpeg subprocess

    20 juin 2014, par Marco

    I am looking for a way to stream series of images (jpegs) from java application into FFMpeg STDIN pipe.
    FFMpeg should process these images and create a video file as an output.

    FFMpeg is executed as sub process of java application with the following command "ffmpeg.exe -i pipe:0 out.avi"

    When i run "ffmpeg -i input.jpg out.avi" command in the console, i get the "out.avi" file as expected

    But when i use the following tester code in my java application, i got an error.

    Code in Java application :

    File ffmpeg_output_msg = new File("ffmpeg_output_msg.txt");
    ProcessBuilder pb = new ProcessBuilder(
           "ffmpeg.exe","-i","pipe:0","out.avi");
    pb.redirectErrorStream(true);
    pb.redirectOutput(ffmpeg_output_msg);
    pb.redirectInput(ProcessBuilder.Redirect.PIPE);
    Process p = pb.start();
    OutputStream ffmpegInput = p.getOutputStream();

    byte[] image;
    File file = new File("input.jpg");
    image = new byte[(int)file.length()];

    FileInputStream fileInputStream = new FileInputStream(file);
    fileInputStream.read(image);

    ImageInputStream iis = ImageIO.createImageInputStream(
           new ByteArrayInputStream(image));
    BufferedImage img = ImageIO.read(iis);

    ImageIO.write(img, "JPEG", ffmpegInput);

    FFMpeg output :

    ffmpeg version N-59664-g94cf4f8 Copyright (c) 2000-2014 the FFmpeg developers built on Jan 7 2014 22:07:02 with gcc 4.8.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-libcaca —enable-libfreetype —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-libx264 —enable-libxavs —enable-libxvid —enable-zlib

    libavutil      52. 62.100 / 52. 62.100
    libavcodec     55. 47.100 / 55. 47.100
    libavformat    55. 22.102 / 55. 22.102
    libavdevice    55.  5.102 / 55.  5.102
    libavfilter     4.  0.103 /  4.  0.103
    libswscale      2.  5.101 /  2.  5.101
    libswresample   0. 17.104 /  0. 17.104
    libpostproc    52.  3.100 / 52.  3.100

    pipe: : Invalid data found when processing input

    Any ideas how to make it work ?

    Thank you very much for your time.