
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (99)
-
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...) -
List of compatible distributions
26 avril 2011, parThe 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 (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (9211)
-
FFMPEG crop a portrait image square with respect to the zoomed dimensions and x/y pan
3 octobre 2022, par huggerI 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 huggerI 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...


-
Issue with executing ffprobe command in exec()
8 juin 2024, par Tauseed ZamanI'm encountering an issue while trying to execute
ffprobe
commands within a Laravel command. Here's a brief overview of the problem and the relevant code snippets :

I'm developing a Laravel application where I need to process video files using
ffprobe
. The application has a console command namedapp:process-videos
that should extract the duration of video files usingffprobe
, and update the database. However, I'm facing difficulties in executing these commands within the Laravel command.

Here's the relevant portion of the code from the handle() method of the ProcessVideos command class :



$videoFilePath = "C:\path-to-app\storage\app/public/posts/videos/file.mp4";

$ffprobeCommand = "ffprobe.exe -i " . escapeshellarg($videoFilePath) . " -show_entries format=duration -v quiet -of csv='p=0'";
exec($ffprobeCommand, $ffprobeOutput, $ffprobeStatus);

dump($ffprobeCommand); // => ffprobe.exe -i "C:\path\to\your\video/file.mp4" -show_entries format=duration -v quiet -of csv='p=0'
dump($ffprobeOutput); // []
dump($ffprobeStatus); // 1



When executing the
ffprobe
command,$ffprobeOutput
is empty and$ffprobeStatus
is not 0, indicating that the command failed.

What I've Tried :


- 

- Ensured that the paths to
ffprobe
andffmpeg
executables are correct. - Checked file permissions and ensured the video files existed at the specified paths.






Request for Assistance :
I'm seeking guidance on how to troubleshoot and resolve this issue. Any insights or suggestions would be greatly appreciated.


- Ensured that the paths to