Recherche avancée

Médias (91)

Autres articles (35)

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

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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (4224)

  • ffmpeg - when merging an image and audio, audio gets shortened

    25 août 2014, par Gary

    I am trying to merge a png image with 11 seconds of audio and create an mp4 file. When I execute ffmpeg I end up with a total duration of 10 seconds for the mp4 file. The command I’m using is...

    ffmpeg -r 6 -loop 1 -i "image1.png" -i "audio1.wav" out.mp4

    UPDATE : Here is the log that is produced...

    FFmpeg version SVN-r15986, Copyright (c) 2000-2008 Fabrice Bellard, et al.
     configuration: --extra-cflags=-fno-common --enable-memalign-hack --enable-pthr
     eads --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-libtheora
     --enable-libspeex --enable-libfaac --enable-libgsm --enable-libx264 --enable-lib
    schroedinger --enable-avisynth --enable-swscale --enable-gpl
         libavutil     49.12. 0 / 49.12. 0
         libavcodec    52. 6. 0 / 52. 6. 0
         libavformat   52.23. 1 / 52.23. 1
         libavdevice   52. 1. 0 / 52. 1. 0
         libswscale     0. 6. 1 /  0. 6. 1
         built on Dec  3 2008 01:59:37, gcc: 4.2.4
    Input #0, image2, from 'image1.png':
    Duration: 00:00:00.16, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: png, rgb32, 400x300,  6.00 tb(r)
    Input #1, wav, from 'audio1.wav':
     Duration: 00:00:11.07, bitrate: 88 kb/s
       Stream #1.0: Audio: pcm_u8, 11025 Hz, mono, s16, 88 kb/s
    File 'out.mp4' already exists. Overwrite ? [y/N] y
    Output #0, mp4, to 'out.mp4':
       Stream #0.0: Video: mpeg4, yuv420p, 400x300, q=2-31, 200 kb/s,  6.00 tb(c)
       Stream #0.1: Audio: libfaac, 11025 Hz, mono, s16, 64 kb/s
    Stream mapping:
     Stream #0.0 -> #0.0
     Stream #1.0 -> #0.1
    Press [q] to stop encoding
    frame=    1 fps=  0 q=4.1 Lsize=      42kB time=0.17 bitrate=2063.7kbits/s
    video:14kB audio:26kB global headers:0.kB muxing overhead 4.894235%

    I have also tried using

    ffmpeg -loop 1 -i "image1.png" -i "audio1.wav" -t 11 out.mp4

    This command does create an mp4 of 11 seconds but the audio is still cut off at 10 seconds.

    Why is the audio being cutoff at 10 seconds ?

    Thanks,
    Gary

  • why type casting on non-pointer struct give syntax error

    31 mars 2016, par Sany Liew

    I am using Visual C++ express 2008 try to compile code similar to below :

    no problem

    {
     ...
     AVRational test = {1, 1000};
     ...
    }

    but has problem when it is as below :

    {
     ...
     AVRational test = (AVRational){1, 1000};
     ...
    }

    gave errors :

    1>..\..\..\projects\test\xyz.cpp(1139) : error C2059: syntax error : '{'
    1>..\..\..\projects\test\xyz.cpp(1139) : error C2143: syntax error : missing   ';' before '{'
    1>..\..\..\projects\test\xyz.cpp(1139) : error C2143: syntax error : missing ';' before '}'

    where AVRational (ffmpeg.org library) is defined as :

    typedef struct AVRational{
       int num; ///< numerator
       int den; ///< denominator
    } AVRational;

    FFmpeg come with some pre-define value such as

    #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE}

    which is used as below

    av_rescale_q(seek_target, AV_TIME_BASE_Q, pFormatCtx->streams[stream_index]->time_base);

    will failed to compile on Visual C++ express 2008

    It seem like the same code will be compiled with no error/warning on gcc compiler. Why I get this error on VC++ ? Is it a C/C++ standard way to do casting on struct value ? Anyway I can avoid this error while still able to use the defined AV_TIME_BASE_Q ?

  • FFMPEG and Mencoder building screenshot returns 0 size images

    12 avril 2014, par Genus

    I have a script and it used to work fine but suddenly it stopped working and giving me zero size images as screenshot after video convert.

    here is the command for video screenshot.

    $cmd = $GLOBALS["paths"]["ffmpeg"]." -y -i ".$file." -f mjpeg -r 1 -ss ".$time." -vframes 1 -an ".$tmpdir."/00000001.jpg 2>&1";
       exec($cmd,$results);

    Debug :

    -----------------------------------------------------

    ------------mencoder_and_fmpeg.php SCREENSHOT -------

    -----------------------------------------------------

     COMMAND: ffmpeg -y -i /home/TESTING/public_html/vid/6d/ad/29/6dad2946a2ba102.flv -f mjpeg -r 1 -ss 14.48 -vframes 1 -an /home/TESTING/public_html/scr/42/3a/92/00000001.jpg 2>&1

     FFmpeg version SVN-r16244, Copyright (c) 2000-2008 Fabrice Bellard, et al.

     configuration: --disable-mmx --enable-shared --enable-libvorbis --enable-gpl --enable-swscale --enable-pthreads --disable-static --disable-demuxer=v4l --disable-demuxer=v4l2 --enable-libtheora --enable-gpl --enable-libspeex --enable-libmp3lame --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libamr-nb --enable-libamr-wb --enable-nonfree --enable-libxvid
     libavutil     49.12. 0 / 49.12. 0
     libavcodec    52. 7. 0 / 52.108. 0
     libavformat   52.23. 1 / 52.92. 0
     libavdevice   52. 1. 0 / 52. 2. 3
     libswscale     0. 6. 1 /  0.12. 0

     built on Apr  9 2011 22:48:41, gcc: 4.1.2 20080704 (Red Hat 4.1.2-50)
     built by Admin-Ahead Server Technologies FFmpeg installer v5.0.6b
     Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 10.92 (131/12)
     Stream mapping:
     Stream #0.0 -> #0.0

     Press [q] to stop encoding
     ffmpeg: symbol lookup error: ffmpeg: undefined symbol: frame_hook_process