
Recherche avancée
Médias (91)
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Paul Westerberg - Looking Up in Heaven
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Le Tigre - Fake French
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Thievery Corporation - DC 3000
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Dan the Automator - Relaxation Spa Treatment
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Gilberto Gil - Oslodum
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (89)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Contribute to documentation
13 avril 2011Documentation 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 2011Unfortunately 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 (...)
Sur d’autres sites (4638)
-
Error : ffmpeg exited with code 2 - Docker Container
15 avril 2020, par Vincenzo AstaI created a Docker Container that when I run I get this error (Why do I get this error ? It works locally) :



{
 "message": "Error: ffmpeg exited with code 2
 at ChildProcess.<anonymous> (/app/lib/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
 at emitTwo (events.js:126:13)
 at ChildProcess.emit (events.js:214:7)
 at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)"
}
</anonymous>



Below, the part of code where I get the error (in particular the execution goes into reject) :



var ffmpeg = require('fluent-ffmpeg');

module.exports = (sourcePath, outputPath, af, outputFormat="mp3") => {
 return new Promise((resolve, reject) => {
 let proc = new ffmpeg({ source: sourcePath, nolog: true });
 proc.audioQuality(0);
 proc.audioFilters(af);
 proc.setFfmpegPath(__dirname + "/ffmpeg-20180325-5b31dd1-win64-static/bin/ffmpeg.exe");
 proc.toFormat(outputFormat).on('end', function () {
 resolve();
 })
 .on('error', function (err) {
 reject(err);
 })
 .saveToFile(outputPath);
 })
}




My Dockerfile :



FROM node:8.11.1

WORKDIR /app

COPY package*.json /app/

RUN npm install

COPY . /app/

EXPOSE 8000

CMD [ "node", "app.js" ]




My package.json :



{
 "name": "",
 "version": "1.0.0",
 "description": "",
 "main": "app.js",
 "author": "",
 "license": "ISC",
 "dependencies": {
 "express": "^4.16.4",
 "azure-storage": "^2.1.0",
 "crypto": "^0.0.3",
 "ffmpeg": "^0.0.4",
 "ffmpeg-normalize": "^1.3.0",
 "fluent-ffmpeg": "^2.1.2",
 "fs": "^0.0.1-security",
 "jmespath": "0.15.0",
 "mp3-duration": "^1.1.0",
 "striptags": "^3.1.1"
 }
}



-
prevent ffmpeg from opening console window
10 février 2020, par YesubI have a node/express server which is used to give streams from IP camera to a website. Everything is working well. I run that webserver with PM2 on a windows server.
The problem : for each stream I have a windows console opening with just nothing logged in. The console reopen when I try to close it.
Is there a way to prevent those console to open ?
Here is the related node.js code :
const { NodeMediaServer } = require('node-media-server');
private _initiate_streams(): void{
DatabaseProvider.instance.camerasDao.getCamerasList().pipe(
take(1)
).subscribe(
(databaseReadOperationResult: DatabaseReadOperationResult) => {
if (databaseReadOperationResult.successful === true){
const cameras = databaseReadOperationResult.result;
const tasks = [];
cameras.forEach( camera => {
tasks.push(
{
app : config.get('media_server.app_name'),
mode: 'static',
edge: camera.rtsp_url,
name: camera.stream_name,
rtsp_transport: 'tcp'
}
)
});
const configMediaServer = {
logType: 3, // 3 - Log everything (debug)
rtmp: {
port: 1935,
chunk_size: 60000,
gop_cache: true,
ping: 60,
ping_timeout: 30
},
http: {
port: config.get('media_server.port'),
allow_origin: '*'
},
auth: {
play: true,
api: true,
publish: true,
secret: config.get('salt'),
api_user: 'user',
api_pass: 'password',
},
relay: {
ffmpeg: 'C:\\FFmpeg\\bin\\ffmpeg.exe',
tasks: tasks
}
};
var nms = new NodeMediaServer(configMediaServer)
nms.run();
} else {
// catch exception
}
}
);
} -
Subtract two timecodes in bash, for use in ffmpeg
3 septembre 2019, par friendlygiraffeI am running ffmpeg in terminal on a mac, to trim a movie file losslessly using the following in bash :
startPosition=00:00:14.9
endPosition=00:00:52.1
ffmpeg -i mymovie.mov -ss $startPosition -to $endPosition -c copy mymovie_trimmed.movBut that doesn’t seek the nearest keyframe and causes sync issues. See here : https://github.com/mifi/lossless-cut/pull/13
So I need to rearrange my code like this :
ffmpeg -ss $startPosition -i mymovie.mov -t $endPosition -c copy mymovie_trimmed.mov
(the -to property seems to get ignored, so I am using -t (duration) instead). My question is how can I reliably subtract the $startPosition variable from the $endPosition to get the duration ?
EDIT : I used oguz-ismail’s suggestion with using gdate instead of date (and brew install coreutils) :
startPosition=00:00:10.1
endPosition=00:00:50.1
x=$(gdate -d"$endPosition" +'%s%N')
y=$(gdate -d"$startPosition" +'%s%N')
duration=$(bc -lq <<<"scale=1; ($x - $y) / 1000000000")This gives me output of 40.1, how would I output it as 00:00:40.0 ?