
Advanced search
Other articles (19)
-
Pas question de marché, de cloud etc...
10 April 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...) -
Keeping control of your media in your hands
13 April 2011, byThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 March 2010, byLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3); le plugin champs extras v2 nécessité par (...)
On other websites (3381)
-
The problem of code that generated typescript (node-fluent-ffmpeg module)
10 December 2022, by Steve RockThis is my typescript code:



import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { FfmpegCommand } from 'fluent-ffmpeg'

async function bootstrap() {
 const app = await NestFactory.create(AppModule);
 let test

 try {
 test = new FfmpegCommand('./adventure.mkv');
 } catch (error) {
 console.log(error);

 }

 await app.listen(3000);
}

bootstrap();




Generated Javascript code:



"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
 return new (P || (P = Promise))(function (resolve, reject) {
 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
 step((generator = generator.apply(thisArg, _arguments || [])).next());
 });
};
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@nestjs/core");
const app_module_1 = require("./app.module");
const fluent_ffmpeg_1 = require("fluent-ffmpeg");
function bootstrap() {
 return __awaiter(this, void 0, void 0, function* () {
 const app = yield core_1.NestFactory.create(app_module_1.AppModule);
 let test;
 try {
 test = new fluent_ffmpeg_1.FfmpegCommand('./adventure.mkv');
 }
 catch (error) {
 console.log(error);
 }
 yield app.listen(3000);
 });
}
bootstrap();
//# sourceMappingURL=main.js.map




When I run this application I've next error:



main.ts:12
message:"fluent_ffmpeg_1.FfmpegCommand is not a constructor"
stack:"TypeError: fluent_ffmpeg_1.FfmpegCommand is not a constructor\n at c:\nest\dist\src\main.js:20:20\n at Generator.next ()\n at fulfilled (c:\nest\dist\src\main.js:5:58)\n at process._tickCallback (internal/process/next_tick.js:68:7)\n at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)\n at startup (internal/bootstrap/node.js:283:19)\n at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)"



That's beacause this raw test = new fluent_ffmpeg_1.FfmpegCommand('./adventure.mkv'). When I change this on just test = new fluent_ffmpeg_1('./adventure.mkv') I haven't the error. Do you know how to fix it. If you know where are ffmpeg exapmles on typescript please share with me:)


-
Connecting ffmpeg java module to named pipe
27 November 2019, by Ehsan5I want to extract the output of folowing ffmpeg Module with the help of Named pipe. I am currently having problems with communication of ffmpeg and named pipe, but thank you for explaining how to extract stream bytes from output named pipe and convert it to images.
My code gives socket connection error when using named pipe. I have used method that suggested in ffmpeg main page (pipe:0 for input and pipe:1 for output) but because it is not named pipe I cannot use it in the client side. It should be noted that named pipe is opened successfully with jna win32 module.
This is server side code(but i tested it with
\\.\pipe\PIPE
also):FFmpegBuilder builder = new FFmpegBuilder()
.setInput(input.getPath())
.addOutput(" -f avi pipe:1 ")
.addExtraArgs(videoFilterStr)
.done();
UUID caller = UUID.randomUUID();
try {FFmpegHelper.builder().progressListener().build().run(builder, caller)... -
react-native-ffmpeg: Native module cannot be null (ios) and null is not an object (evaluating 'RNFFmpegModule.enableLogEvents') (android)
4 March 2020, by foxtrotuniform6969I have a basic expo project that I’ve eject as
expokit
, and proceeded to runexpo install react-native-ffmpeg
. When then runningexpo start
I was greeted withNative module cannot be null
on my iOS device andnull is not an object (evaluating 'RNFFmpegModule.enableLogEvents')
.After that, I re-read the
react-native-ffmpeg
documentation and addedpod 'react-native-ffmpeg', :podspec => '../node_modules/react-native-ffmpeg/ios/react-native-ffmpeg.podspec'
to myios/Podfile
and ranpod install
. Still no luck.After that, I deleted the
node_modules
folder andyarn.lock
file, re-ranyarn
, went into theios
directory, deleted thePods
folder andPodfile.lock
file and re-ranpod install
and still had no luck!The error is less than helpful. Any ideas where to look?