Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (57)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (3288)

  • When I run `ffmpeg` in the background, how do I prevent `suspended (tty output)` ?

    4 novembre 2017, par Jim DeLaHunt

    I have a sh script which calls ffmpeg on several files. When I try to run this script in the background, redirecting output to a file, the job starts but then immediately suspends :

    % bin/mp3convert.sh path/a/b &> ~/tmp/log.txt &
    [1] 93352
    %
    [1]  + suspended (tty output)  bin/mp3convert.sh path/a/b &>

    If I try making the script continue in the background, it immediately suspends again :

    % jobs
    [1]  + suspended (tty output)  bin/mp3convert.sh path/a/b &>
    % bg %1
    [1]  + continued  bin/mp3convert.sh path/a/b &>
    % jobs
    [1]  + suspended (tty output)  bin/mp3convert.sh path/a/b &>
    %

    I can make the script continue, by making it the foreground, but then my terminal is occupied until the script finishes. That means I don’t get the benefit of running the script in the background.

    %
    [1]  + suspended (tty output)  bin/mp3convert.sh path/a/b &>
    % fg %1
    [1]  + continued  bin/mp3convert.sh path/a/b &>
    % # much time passes with no activity on terminal, then script finishes
    %

    How can I make the script run cleanly in the background ?

    A simplified version of my script is :

    #!/bin/sh
    # mp3convert.sh
    for f in "$1"/*.flac; do
       ffmpeg -i "$f" -c:v copy path/to/dest/"$(basename -s .flac "$f")".mp3
    done

    I am running on Mac OS X 10.11.6, with ffmpeg version 3.4 supplied by MacPorts.

    An apparently related question is why do I get “Suspended (tty output)” in one terminal but not in others ?. The answer there is to set the terminal state with stty -tostop. That didn’t help me ; I already had that state set.

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

    


  • FFMPEG crop a portrait image square with pan and zoom scale in mind

    30 septembre 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...