Recherche avancée

Médias (91)

Autres articles (81)

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

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

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

Sur d’autres sites (11536)

  • sdp : Simplify parsing/conversion of H264 extradata

    3 octobre 2014, par Martin Storsjö
    sdp : Simplify parsing/conversion of H264 extradata
    

    By using ff_avc_write_annexb_extradata instead of the h264_mp4toannexb
    BSF, the code for doing the conversion itself is kept much shorter,
    there’s less state to restore at the end, we don’t risk leaving the
    AVCodecContext in an inconsistent state if returning early due to
    errors, etc.

    Also add a missing free if the base64 encoding fails.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavformat/sdp.c
  • ffmpeg codec error on audio file

    31 juillet 2013, par foosion

    I have some m4a files that will not play properly using the google music player app on my Android phone, although they play fine on most everything else. I thought the problem was the container and thought "ffmpeg -i bad.m4a -codec copy good.m4a" might help. However, when I run on the problem files, I get error messages. Running this command on non-problem files has not generated error messages.

    Please suggest ways to fix (other than re-encoding).

       [D:\temp\dl]ffmpeg -i "01 - The Day Begins.m4a" -codec copy day.m4a
    ffmpeg version N-55066-gc96b3ae Copyright (c) 2000-2013 the FFmpeg developers
     built on Jul 29 2013 18:05:45 with gcc 4.7.3 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
    e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
    ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
    ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
    eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
    amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
    enable-libxvid --enable-zlib
     libavutil      52. 40.100 / 52. 40.100
     libavcodec     55. 19.100 / 55. 19.100
     libavformat    55. 12.102 / 55. 12.102
     libavdevice    55.  3.100 / 55.  3.100
     libavfilter     3. 82.100 /  3. 82.100
     libswscale      2.  4.100 /  2.  4.100
     libswresample   0. 17.103 /  0. 17.103
     libpostproc    52.  3.100 / 52.  3.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002da300] stream 0, timescale not set
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#39;01 - The Day Begins.m4a&#39;:
     Metadata:
       major_brand     : m4a
       minor_version   : 0
       compatible_brands: M4A mp4isom
       creation_time   : 2003-07-06 20:27:46
       track           : 1
       genre           : Rock
       title           : The Day Begins
       artist          : Moody Blues
       album           : Days of Future Passed
       date            : 1967
     Duration: 00:05:50.83, start: 0.000000, bitrate: 166 kb/s
       Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 15
    9 kb/s
       Metadata:
         creation_time   : 2003-07-06 20:27:46
         handler_name    : Apple Sound Media Handler
       Stream #0:1(eng): Data: none (mp4s / 0x7334706D)
       Metadata:
         creation_time   : 2003-07-06 20:27:46
         handler_name    : Apple MPEG-4 Scene Media Handler
       Stream #0:2(eng): Data: none (mp4s / 0x7334706D)
       Metadata:
         creation_time   : 2003-07-06 20:27:46
         handler_name    : Apple MPEG-4 ODSM Media Handler
       Stream #0:3: Video: png, rgb24, 240x240 [SAR 2834:2834 DAR 1:1], 90k tbr, 90
    k tbn, 90k tbc
    [ipod @ 000000000031dd40] track 0: could not find tag, codec not currently suppo
    rted in container
    Output #0, ipod, to &#39;day.m4a&#39;:
     Metadata:
       major_brand     : m4a
       minor_version   : 0
       compatible_brands: M4A mp4isom
       date            : 1967
       track           : 1
       genre           : Rock
       title           : The Day Begins
       artist          : Moody Blues
       album           : Days of Future Passed
       encoder         : Lavf55.12.102
       Stream #0:0: Video: png, rgb24, 240x240 [SAR 2834:2834 DAR 1:1], q=2-31, 90k
    tbn, 90k tbc
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 159 kb/s

       Metadata:
         creation_time   : 2003-07-06 20:27:46
         handler_name    : Apple Sound Media Handler
    Stream mapping:
     Stream #0:3 -> #0:0 (copy)
     Stream #0:0 -> #0:1 (copy)
    Could not write header for output file #0 (incorrect codec parameters ?): Error
    number -1 occurred
  • Crop and pinch zoom image with FFMPEG

    27 septembre 2022, par hugger

    I am working on a simple photo editor component for a mobile app which requires the user to be able to pan and scale (zoom) an image to be cropped. S/O to @kesh for the help so far !

    &#xA;

    With the pinch zoom value which ranges from 1-5, I wish to use this in my FFMPEG execution along with the crop command :

    &#xA;

      cropSelected() {&#xA;    this.setState({ isCropping: true });&#xA;&#xA;    const diff =&#xA;      this.props.videoHeight / (this.state.aspectRatio * deviceWidth);&#xA;    const offsetDiff = this.state.offsetTopTranslate * diff;&#xA;&#xA;    var filterPathPostCrop =&#xA;      this.props.type === &#x27;photo&#x27;&#xA;        ? RNFS.DocumentDirectoryPath &#x2B; &#x27;/afterCrop.png&#x27;&#xA;        : this.props.type === &#x27;gif&#x27;&#xA;        ? RNFS.DocumentDirectoryPath &#x2B; &#x27;/afterCrop.gif&#x27;&#xA;        : RNFS.DocumentDirectoryPath &#x2B; &#x27;/afterCrop.mp4&#x27;;&#xA;    //hardcoded zoom at 1.2x for example!&#xA;    FFmpegKit.execute(&#xA;      `-y -i ${this.state.mediaSource} -vf "crop=iw/1.2:ih/1.2:0:${offsetDiff},scale=iw:-1" -qscale 0 -frames:v 1 ${filterPathPostCrop}`&#xA;    ).then(async (session) => {&#xA;      const returnCode = await session.getReturnCode();&#xA;      if (ReturnCode.isSuccess(returnCode)) {&#xA;        // SUCCESS&#xA;&#xA;        Animated.spring(this._pinchScale, {&#xA;          toValue: 1,&#xA;          useNativeDriver: true,&#xA;        }).start();&#xA;&#xA;        this.setState(&#xA;          {&#xA;            mediaSource: filterPathPostCrop,&#xA;            videoSourcePreview: `${filterPathPostCrop}?${new Date().getTime()}`,&#xA;            ffMPEGinProgress: null,&#xA;            aspectRatio: 1080 / 1080,&#xA;            videoTime: 0,&#xA;            isPlayingVideo: false,&#xA;            isCropping: false,&#xA;            filterOutputIsAlt: !this.state.filterOutputIsAlt,&#xA;            wasCropped: true,&#xA;          });&#xA;      } else if (ReturnCode.isCancel(returnCode)) {&#xA;        // CANCEL&#xA;      } else {&#xA;        // ERROR&#xA;        alert(&#x27;error&#x27;);&#xA;      }&#xA;    });&#xA;  }&#xA;

    &#xA;

    I drew this to illustrate what I am trying to achieve here.

    &#xA;

    example

    &#xA;

    I hope this helps !

    &#xA;