
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (63)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (5757)
-
How to Kill ffmpeg process in node.js
8 février 2017, par SanjayI am using node.js code that convert Axis Ipcamera live stream into mp4 using FFMPEG
var childProcess=require('child_process');
var childArguments = [];
var child=[];
var cmd='ffmpeg -i rtsp://172.24.22.117:554/axis-media/media.amp -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -preset slower -crf 18 -vf "scale=trunc(in_w/2)*2:trunc(in_h/2)*2"'+' '+__dirname+'/uploads/ouput.mp4';
child=childProcess.exec(
cmd,
childArguments,
{
env: process.env,
silent:true
}, function (err, stdout, stderr) {
if (err) {
throw err;
}
console.log(stdout);
});
// here generate events for listen child process (works properly)
// Listen for incoming(stdout) data
child.stdout.on('data', function (data) {
console.log("Got data from child: " + data);
});
// Listen for any errors:
child.stderr.on('data', function (data) {
console.log('There was an error: ' + data);
});
// Listen for exit event
child.on('exit', function(code) {
console.log('Child process exited with exit code ' + code);
child.stdout.pause();
child.kill();
});my above code works perfectly. It gives the output as I want, but I am not able to kill(stop) the ffmpeg command. I am using the code below for stopping the process, but in background it still continues.
child.kill("SIGTERM");
I also used following commands : child.kill(’SIGUSR1’) ; child.kill("SIGHUP") ; child.kill("SIGINT") ;child.kill(’SIGUSR2’) ; for killing this process but it not works.
Currently I forcefully kill the node application to stop ffmpeg command and generate mp4 file. I do not want this.
But I want commands that stop ffmpeg process and generate mp4 file, without killing the node application. -
Need A Besh / Shall Script For Run FFmpeg and Check Error Of Live Streaming
27 janvier 2019, par RakibulkstAnyone have a Bash/Shall script for run FFmpeg Live Stream Command and checking live streaming error and fix by itself. I try to make it but I become fail because I don’t have enough knowledge about shall script. Can you help me to make this ? I also want to reduce my streaming buffering.
#!/bin/bash
while :; do
ffmpeg -re -i input.ts or m3u8 or just input -r 30 -g 60 -c:v copy -c:a copy -c:s copy -x264-params keyint=60 -bufsize 500k -c:a aac -strict -2 -ar 44100 -b:a 128k -f flv rtmp://xxx-xx-xxx/application/Stream Key null > /dev/null 2>&1
done & -
AAC Bash script pass through slower than transcoding ?
13 février 2015, par ThresterI made a script for my Subsonic server which recognizes ALAC (lossless) from AAC (lossy) files. Because iTunes gives them both m4a extensions. ALAC gets transcoded, AAC is passed through. Only the pass through for AAC is 2-3x slower than the transcoding of ALAC ?
I checked the aac files with the qt-faststart utility of ffmpeg for the moov atoms. qt-faststart gives output like this :
ftyp 0 32
moov 32 39003
free 39035 38781
mdat 77816 6479293
last atom in file was not a moov atomSo I think the moov atoms are in the beginning, which would be ok.
Code of the actual bash script :
#!/bin/sh
# Author: poctum + Threster
DEBUG=TRUE
# Locations of various programs required
FFMPEG=/usr/bin/ffmpeg
CAT=/bin/cat
FFPROBE=/usr/bin/ffprobe
GREP=/bin/grep
# Defaults and other variables
INFILE=$1
MAXBITRATE=256
# Send data to StdOut for echo's to show up in subsonic.log
debugout()
{
if [ $DEBUG = TRUE ]; then
echo "$@" 1>&2
fi
}
# Capture the INFILE codec type, and then trim it.
TUSSENCODEC=`$FFPROBE -v error -show_streams "$INFILE" | $GREP codec_name`
INCODEC=${TUSSENCODEC#*=}
debugout "tussencodec is $TUSSENCODEC and incodec is $INCODEC"
if [ -z "${INCODEC}" ] ; then
debugout "no codec detected in $INFILE inputfile"
elif [ $INCODEC = aac ] ; then
debugout "print $INCODEC is aac so pass trough"
$CAT "$INFILE" < /dev/null
else
debugout " print $INCODEC is not aac so encoding to aac"
$FFMPEG -i "$INFILE" -nostdin -c:a libfdk_aac -movflags +faststart -b:a "$MAXBITRATE"k -vn -f adts - < /dev/null
fi