
Recherche avancée
Médias (10)
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Head down (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (76)
-
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Participer à sa documentation
10 avril 2011La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
Pour ce faire, vous pouvez vous inscrire sur (...)
Sur d’autres sites (11267)
-
Get waveform data from audio file using FFMPEG
28 janvier 2017, par LutandoI am writing an application that needs to get the raw waveform data of an audio file so I can render it in an application (C#/.NET). I am using ffmpeg to offload this task but it looks like ffmpeg can only output the waveform data as a png or as a stream to gnuplot.
I have looked at other libraries to do this (NAudio/CSCore) however they require windows/microsoft media foundation and since this app is going to be deployed to azure as a web app I can not use them.
My strategy was to just read the waveform data from the png itself but this seems hacky and over the top. The ideal output would be a fix sampled series of peaks in an array where each value in the array is the peak value (ranging from 1-100 or something, like this for example).
-
mp4 to webm and ogv conversion not working using ffmpeg on linux server
9 novembre 2016, par user75472I have a cron job to convert existing mp4 video file to ogv and webm using ffmpeg
I have wordpress site with a page where user are allowed to upload mov and mp4 files. After the file is uploaded image is created from the video file and mov file is converted to mp4 successfully.
However I need to concert uploaded mp4 file to webm and ogv to video work on all browsers. So I have set up cron job. Here is my code :
include_once "../wp-config.php";
ini_set('max_execution_time', 660); // 11 minutes
// Get the path to the upload directory.
$wp_upload_dir = wp_upload_dir();
$dir = $wp_upload_dir['path'].'/';
// Open a directory, and read its contents
if (is_dir($dir)){
if ($dh = opendir($dir)){
while (($file = readdir($dh)) !== false){
//echo "filename:" . $file . "<br />";
$files = explode(".", $file);
//echo end($fileinfo);
if(end($fileinfo) == 'mp4') {
$ffmpegPath = '/usr/local/bin/'; // linux
//$ffmpegPath = 'C:\\ffmpeg\\bin\\'; // win
if(!file_exists($dir.$files[0].'.webm')) {
$destFile = $dir.$files[0].'.webm';
$cmd = $ffmpegPath."ffmpeg -i ".$srcFile." -c:v libvpx -minrate 3900k -maxrate 3900k -b:v 3900k -c:a libvorbis ".$destFile;
exec($cmd, $output, $retval);
var_dump($output);
var_dump($retval);
//exec($cmd);
}
if(!file_exists($dir.$files[0].'.ogv')) {
//var_dump($fileinfo);
$destFile = $dir.$files[0].'.ogv';
$cmd1 = $ffmpegPath."ffmpeg -i ".$srcFile." -acodec libvorbis -ac 2 -ab 128k -ar 44100 -b:v 1200k ".$destFile;
exec($cmd1, $output1, $retval1);
var_dump($output1);
var_dump($retval1);
}
}
}
closedir($dh);
}
}This works perfectly alright on windows but not working on linux, production server.
I am missing something ?
-
How to upload a transcoded file to s3 and create a link to download it
29 septembre 2022, par Dotun LongeI want to download a video after my module "creates" it by combining a picture and audio file. The output goes to my tmp folder. This works, but I don't know how to access it.


My method is to create another Paperclip attachment called "converted" and the module responsible for transcoding should also be responsible for uploading the converted video to a bucket, where I can then access it via
@upload.converted.url
.

I have no idea how to go about this, and my eyes hurt from searching. If you have a better way for me to be able to download the transcoded video without this option, I will be open to it.


# videocreatingproccessor.rb

require 'streamio-ffmpeg'
require 'fileutils'

module VideoCreatingProcessor
 def self.convert_to_video (path_to_audio_file, path_to_image_file)
 movie = FFMPEG::Movie.new(path_to_audio_file)
 options = {
 video_codec: "libx264",
 frame_rate: 60,
 resolution: "960x720",
 x264_vprofile: "high",
 x264_preset: "slow",
 pixel_format: "720p",
 audio_codec: "libfaac",
 audio_bitrate: 32,
 audio_sample_rate: 44100,
 audio_channels: 2,
 threads: 2,
 }

 woptions = { watermark: path_to_image_file, resolution: "960x720", watermark_filter: { padding_x: 10, padding_y: 10 } }

 movie.transcode("tmp/output.mp4",woptions ,options )
 end
end



# uploads_controller.rb

class UploadsController < ApplicationController
 before_action :set_upload, only: [:show, :edit, :update, :destroy]

 def index
 @uploads = Upload.all
 end

 def paudioaddress
 "https:" + @upload.audio.url
 end

 def pimageaddress
 "https:" + @upload.image.url
 end

 def show
 require "video_creating_processor"
 newvideo = VideoCreatingProcessor.convert_to_video(paudioaddress, pimageaddress)
 end

 # ....
end