
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (40)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo 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 (5858)
-
Flutter ffmpeg kit : Invalid size error when trying to scale video
27 juillet 2023, par veryepicdudeI'm trying to resize a video to match instagram's video format requirements. I'm using the
ffmpeg_kit_flutter_full_gpl: ^5.1.0
package to do so and this is the function I'm calling :

Future<void> resizeVideo(String input, String output) async {

 final command = '-i $input -c:v libx264 -aspect 16:9 -crf 18 -vf "scale=iw*min(1280/iw\,720/ih):ih*min(1280/iw\,720/ih),pad=1280:720:(1280-iw)/2:(720-ih)/2" -fpsmax 60 -preset ultrafast -c:a aac -b:a 128k -ac 1 -use_editlist false -ar 48000 -pix_fmt yuv420p -movflags +faststart -t 59 -y $output';
 final session = await FFmpegKit.execute(command);
 print("resize done with ${await session.getReturnCode()}");
}
</void>


However I get this error every time :


Stream #0:0[0x1](und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 60 kb/s (default)
 Metadata:
 creation_time : 2023-07-27T15:30:28.000000Z
 handler_name : Core Media Audio
 vendor_id : [0][0][0][0]
 Stream #0:1[0x2](und): Video: hevc (hvc1 / 0x31637668), yuv420p(tv, smpte170m/bt709/bt709), 720x1280, 2085 kb/s, 30 fps, 30 tbr, 600 tbn (default)
 Metadata:
 creation_time : 2023-07-27T15:30:28.000000Z
 handler_name : Core Media Video
 vendor_id : [0][0][0][0]
Stream mapping:
 Stream #0:1 -> #0:0 (hevc (native) -> h264 (libx264))
 Stream #0:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[Parsed_scale_0 @ 0x2834a53f0] Invalid size 'iw*min(1280/iw'
[AVFilterGraph @ 0x28278e3a0] Error initializing filter 'scale'[AVFilterGraph @ 0x28278e3a0] with args 'iw*min(1280/iw'[AVFilterGraph @ 0x28278e3a0] 
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:1
[aac @ 0x105334290] Qavg: 461.613
[aac @ 0x105334290] 2 frames left in the queue on closing



Removing the scale filter makes the function work fine, but it fails the instagram video requirements listed here.
Any help will be greatly appreciated.


-
Matomo NAMED 2023 Hi-Tech Awards finalist
1er août 2023, par Lance — Press Releases -
How to fix ffmpeg,js length error in react-js project | fix error in react project
19 février 2024, par X3R0I've tried to import the ffmpeg js library into my react-typescript project, I can't really update my project's
react
version orreact-scripts
due to the current code base.

Error


./node_modules/@ffmpeg/ffmpeg/dist/umd/ffmpeg.js
TypeError: REDACTED_PROJECT_ROOT\node_modules\@ffmpeg\ffmpeg\dist\umd\ffmpeg.js: Cannot read properties of undefined (reading 'length')



Code


import React, { useEffect, useRef, useState } from 'react';
import { FFmpeg } from '@ffmpeg/ffmpeg';

/* MORE CODE HERE */

const ffmpeg = new FFmpeg();
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.6/dist/umd';
const coreURL = `${baseURL}/ffmpeg-core.js`;
const wasmURL = `${baseURL}/ffmpeg-core.wasm`;
const coreData = await fromURLToBlob(coreURL);
const wasmData = await fromURLToBlob(wasmURL);
const coreBlob = new Blob([coreData], { type: "text/javascript"});
const wasmBlob = new Blob([wasmData], { type: "application/wasm"});
await ffmpeg.load({
 coreURL: fromBlobToURL(coreBlob),
 wasmURL: fromBlobToURL(wasmBlob),
}); 

/* MORE CODE HERE */



Versions


npm v8.19.4
node v16.20.2



tsconfig.json


{
 "compilerOptions": {
 "target": "es5",
 "lib": [
 "dom",
 "dom.iterable",
 "esnext"
 ],
 "allowJs": true,
 "skipLibCheck": true,
 "esModuleInterop": true,
 "allowSyntheticDefaultImports": true,
 "strict": false,
 "forceConsistentCasingInFileNames": true,
 "noFallthroughCasesInSwitch": true,
 "module": "esnext",
 "moduleResolution": "node",
 "resolveJsonModule": true,
 "isolatedModules": true,
 "noEmit": true,
 "jsx": "react-jsx"
 },
 "include": [
 "src"
 ]
}




package.json


{
 "name": "frontend",
 "version": "0.1.0",
 "private": true,
 "dependencies": {
 "@emotion/react": "^11.10.4",
 "@emotion/styled": "^11.10.4",
 "@ffmpeg/ffmpeg": "^0.12.10",
 "@material-ui/core": "^4.12.3",
 "@mui/base": "^5.0.0-beta.36",
 "@mui/icons-material": "^5.10.3",
 "@mui/material": "^5.15.10",
 "@mui/x-data-grid": "^6.19.2",
 "@mui/x-data-grid-pro": "^6.19.2",
 "@reduxjs/toolkit": "^1.8.5",
 "@testing-library/jest-dom": "^5.14.1",
 "@testing-library/react": "^11.2.7",
 "@testing-library/user-event": "^12.8.3",
 "@toast-ui/editor": "^3.1.3",
 "@toast-ui/react-editor": "^3.1.3",
 "@types/jest": "^29.0.1",
 "@types/node": "^18.7.17",
 "@types/react": "^17.0.49",
 "@types/react-dom": "^18.0.6",
 "@zalando/oauth2-client-js": "^0.0.18",
 "ajv": "^8.12.0",
 "ajv-errors": "^3.0.0",
 "apexcharts": "^3.28.1",
 "arraybuffer-concat": "^0.0.1",
 "axios": "^1.4.0",
 "base64-blob": "^1.4.1",
 "bootstrap": "^5.1.1",
 "datetime-diff": "^0.2.1",
 "fuzzy-time": "^1.0.7",
 "jquery": "^3.6.0",
 "jso": "^4.1.1",
 "luxon": "^2.3.0",
 "pretty-bytes": "^5.6.0",
 "react": "^17.0.2",
 "react-apexcharts": "^1.3.9",
 "react-beautiful-dnd": "^13.1.0",
 "react-bootstrap": "^2.0.0-rc.0",
 "react-dom": "^17.0.2",
 "react-export-excel": "^0.5.3",
 "react-facebook": "^9.0.12",
 "react-helmet": "^6.1.0",
 "react-icons": "^4.3.1",
 "react-media-recorder": "^1.6.6",
 "react-notifications": "^1.7.2",
 "react-pages": "^0.4.4",
 "react-redux": "^7.2.8",
 "react-router": "^5.2.1",
 "react-router-dom": "^5.2.1",
 "react-scripts": "4.0.3",
 "react-toastify": "^8.0.2",
 "react-tooltip": "^4.2.21",
 "react-webcam": "^6.0.0",
 "recharts": "^2.1.8",
 "redux": "^4.2.0",
 "redux-thunk": "^2.4.1",
 "typescript": "^4.8.3",
 "web-vitals": "^1.1.2",
 "website-popup": "^3.0.0"
 },
 "scripts": {
 "start": "react-scripts start",
 "build": "set NODE_OPTIONS=--max-old-space-size=4096 && react-scripts build --GENERATE_SOURCEMAP=false",
 "test": "react-scripts test",
 "eject": "react-scripts eject"
 },
 "eslintConfig": {
 "extends": [
 "react-app"
 ]
 },
 "browserslist": {
 "production": [
 ">0.2%",
 "not dead",
 "not op_mini all"
 ],
 "development": [
 "last 1 chrome version",
 "last 1 firefox version",
 "last 1 safari version"
 ]
 },
 "devDependencies": {
 "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6"
 }
}