
Recherche avancée
Autres articles (61)
-
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 ;
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)
Sur d’autres sites (9353)
-
How to intergrate FFMPEG NDK library in android project to decode the audio files ?
19 août 2014, par saranyaHow to decode the audio files using FFMPEG NDK library ?
Below is the code i used to decode the mp3 file after merging two mp3 files.
tryString tempPath = Environment.getExternalStorageDirectory()+"/"+mvalue+".mp3";
File fileTemp = new File(tempPath);
ffmpeg = new FfmpegController(fileTemp,outFile);
Clip clipMixOut = new Clip(outFile.getCanonicalPath());
try {
ffmpeg.convertToMPEG(clipMixOut,mCodecPath, new ShellUtils.ShellCallback() {
@Override
public void shellOut(String shellLine) {
// TODO Auto-generated method stub
System.out.println("fc>" + shellLine);
}
@Override
public void processComplete(int exitValue) {
// TODO Auto-generated method stub
System.err.println("concat non-zero exit: " + exitValue);
}
});
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} catch (IOException e) {
Log.e(TAG+":::", "IOException running ffmpeg" + e.getMessage());
} -
FFmpeg file conversion exceeds maximum execution time
5 mai 2014, par Paul LedgerI have a file upload system the checks the file format, etc and converts to an mp4 if necessary. This works fine as long as the video file(s) total length is less than 30 seconds.
I have been testing this two short clips about 10 seconds each and it work fine but when I test this with a clip that this 33 seconds I get the error :Fatal error : Maximum execution time of 30 seconds exceeded in
C :\xampp\htdocs\own_it_all\global.func\file_upload.php on line
59I could just increase the maximum execution time in the php.ini file but as the max length of a video is 20 mins this wouldn’t seem very user friendly making the user wait 20 mins per video.
Is there a way of converting the video instantly or as near as ?This is the exec cmd i have :
$cmd = "ffmpeg -i $input -vcodec h264 -acodec aac -strict -2 $o";
As the up-loader allows multiple uploads this is inside a for loop.
foreach($_FILES['file']['name'] as $key => $name){
if($_FILES['file']['error'][$key] === 0){
$temp = $_FILES['file']['tmp_name'][$key];
$ext = explode('.',$name);
$ext = strtolower(end($ext));
$_file = md5($temp).time();
$file = $_file.'.'.$ext;
if(in_array($ext,$allowed) === true && move_uploaded_file($temp,"../uploads/{$file}") === true){
$file_type = explode('/',$_FILES['file']['type'][$key]);
if($file_type[0] === 'image'){
$succedeed[] = array('name' => $name,'file' => $file, 'type' => 'image');
}else{
$ffmpeg = 'ffmpeg';
$output = dirname(__DIR__).'/uploads/thumbs/'.$_file.'.jpg';
$input = dirname(__DIR__).'/uploads/'.$file;
$mov = new ffmpeg_movie($input);
$d = $mov->getDuration();
$iscopy = $mov->getCopyright();
$h = $mov->getFrameHeight();
$w = $mov->getFrameWidth();
$pos = ceil((int)$d /3);
$size = $w.'x'.$h;
$i = explode('.',$input);
$o = $i[0].'.mp4';
if(ceil($d) < 1200){
if($ext != 'mp4'){
$cmd = "ffmpeg -i $input -vcodec h264 -acodec aac -strict -2 $o";
//$cmd = "ffmpeg -i $input -vcodec h264 -acodec aac -s $size $o";
shell_exec($cmd);
$toclear[] = array('file' => $file);
}
$cmd = "ffmpeg -ss $pos -i $o -an -s $size $output";
shell_exec($cmd);
$total_time += $pos;
$succedeed[] = array('name' => $name,'file' => 'thumbs/'.$_file.'.jpg', 'type' => 'mp4');
}else{
$failed[] = array('name' => $name, 'file' => $file, 'error' => 'Video length cannot exceed 20mins.');
}
}
}else{
$failed[] = array('name' => $name, 'file' => $file, 'error' => 'File type not allowed');
}
}
} -
Trim video with reference to a start time and end time using FFMPEG
8 février 2015, par SatyI am trying to do an application in which I would like to give option to user to clip a video using double seekbar so that video can be cropped.
I had hassle importing FFmpeg into Eclipse. However, that pain is over, and I got two points of video and can instantiate FFmpeg’s instant.
My focus is to know to know the method and procedure to crop a video.
I got the command of cutting it, that is,
ffmpeg -ss [start] -i in.mp4 -t [duration] -c:v copy -c:a copy out.mp4
However, how do I use this in code ?