Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (45)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

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

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (6036)

  • How do I add a text for the 1st 30 seconds inside a filter_complex expression for each video part ?

    30 décembre 2022, par PirateApp

    I am generating a video grid using the following filter_complex command

    


    ffmpeg
     -i v_nimble_guardian.mkv -i macko_nimble_guardian.mkv -i ghost_nimble_guardian_1.mp4 -i nano_nimble_guardian.mkv
     -filter_complex "
         nullsrc=size=3840x2160 [base];
         [0:v] trim=start=39.117000,setpts=PTS-STARTPTS, scale=1920x1080 [upperleft];
         [1:v] trim=start=40.483000,setpts=PTS-STARTPTS, scale=1920x1080 [upperright];
         [2:v] trim=start=32.416471,setpts=PTS-STARTPTS, scale=1920x1080 [lowerleft];
         [3:v] trim=start=28.100000,setpts=PTS-STARTPTS, scale=1920x1080 [lowerright];
         [3:a] atrim=start=28.100000,asetpts=PTS-STARTPTS[outa];
         [base][upperleft] overlay=shortest=1 [tmp1];
         [tmp1][upperright] overlay=shortest=1:x=1920 [tmp2];
         [tmp2][lowerleft] overlay=shortest=1:y=1080 [tmp3];
         [tmp3][lowerright] overlay=shortest=1:x=1920:y=1080[v]
     "
     -map "[v]" -map "[outa]" -c:v libx264 -crf 17 -shortest -t 880 output4k.mkv


    


    How do I text to this video grid that will appear with a fade in at 10 seconds, stay for 30 seconds and then fade out ?

    


    enter image description here

    


    What I tried ?

    


    ffmpeg
     -i v.mkv -i macko_nimble_guardian.mkv -i ghost_nimble_guardian_subtle_arrow_1.mp4 -i nano_nimble_guardian.mkv
     -filter_complex "
         nullsrc=size=1920x1080 [base];
         drawtext=text='Summer Video':enable='between(t,10,30)'[fg];
         [0:v] trim=start=39.117000,setpts=PTS-STARTPTS, scale=960x540 [upperleft];
         [1:v] trim=start=40.483000,setpts=PTS-STARTPTS, scale=960x540 [upperright];
         [2:v] trim=start=32.416471,setpts=PTS-STARTPTS, scale=960x540 [lowerleft];
         [3:v] trim=start=28.100000,setpts=PTS-STARTPTS, scale=960x540 [lowerright];
         [3:a] atrim=start=28.100000,asetpts=PTS-STARTPTS[outa];
         [base][upperleft] overlay=shortest=1 [tmp1];
         [tmp1][upperright] overlay=shortest=1:x=960 [tmp2];
         [tmp2][lowerleft] overlay=shortest=1:y=540 [tmp3];
         [tmp3][lowerright] overlay=shortest=1:x=960:y=540[v]
     "
     -map "[v]" -map "[outa]" -c:v libx264 -shortest -t '30' output2.mkv


    


    It gives me an error

    


    [Parsed_drawtext_1 @ 0x600002bdc420] Using "/System/Library/Fonts/Supplemental/Verdana.ttf"
Filter drawtext:default has an unconnected output


    


  • FFMPEG crop a portrait image square with respect to the zoomed dimensions and x/y pan

    3 octobre 2022, par hugger

    I am making a photo crop component for my mobile app.

    


    If an image is selected from the image picker and it is above 4:5 ratio, using FFMPEG I need to crop this image 1:1 using the dynamic X/Y values along with the scale value from pinching (1.00 - 10).

    


    I trying to use these values with the FFMPEG crop/scale filter, but no matter what I try I cant seem to get the crop to work as expected... It is not matching up from the UI pan / zoom.

    


    My FFMPEG command looks like this, along with some other relevant variable code :

    


    let zoom = this._scale.__getValue(); //set dynamically by the user; ranges from 0.1 to 10
let translateY = this._translateX.__getValue(); //amount from left side
let translateX = this._translateY.__getValue(); // amount from top

//trying to first crop the width and height / the zoom for the zoom scaling..?
//then I am using translate X/Y to get my coordinates (not matching up)
//I tried to use translateXY * zoom to get the scaling factor but it still did not work...
//the image needs to be square, chain scale filter to make this happen after the original crop?)
FFmpegKit.execute(
  `-y -i ${this.state.mediaSource} -vf "crop=iw/${zoom}:ih/${zoom}:${translateX}:${translateY}, scale=iw:iw:0:0" -qscale 0 -frames:v 1 ${filterPathPostCrop}`
).then(async (session) => {
  const returnCode = await session.getReturnCode();
  if (ReturnCode.isSuccess(returnCode)) {
    this.setState({
      mediaSource: filterPathPostCrop,
      videoSourcePreview: `${filterPathPostCrop}?${new Date().getTime()}`,
      ffMPEGinProgress: null,
      aspectRatio: 1080 / 1080,
      videoTime: 0,
      isPlayingVideo: false,
      isCropping: false,
      filterOutputIsAlt: !this.state.filterOutputIsAlt,
      wasCropped: true,
    });
  } else if (ReturnCode.isCancel(returnCode)) {
    // CANCEL
  } else {
    // ERROR
    alert('error');
  }
});


    


    I appreciate any guidance I can get with this, I feel like I am close I just cant seem to get this calculation working...

    


  • Revision 16738 : Patch by Chris Pearce to tweak indexing in ffmpeg2theora to make it more ...

    27 novembre 2009, par j — Log

    Patch by Chris Pearce to tweak indexing in ffmpeg2theora to make it more accurate. Fixes : 1. Use ogg_int64_t to calculate and store presentation times of frames, rather than transitioning through double just to cast back to ogg_int64_t. Prevents floating point rounding errors from making frames (...)