
Recherche avancée
Médias (91)
-
DJ Z-trip - Victory Lap : The Obama Mix Pt. 2
15 septembre 2011
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Matmos - Action at a Distance
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Danger Mouse & Jemini - What U Sittin’ On ? (starring Cee Lo and Tha Alkaholiks)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Cornelius - Wataridori 2
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (62)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
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. -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (12220)
-
upload video with display and upon submit that video by post method to PHP file where FFMPEG command execute
30 avril 2019, par Asfand YarMain Task
Video -> Audio (Wav or mp3)
Procedure :
User select video and its display and upload in video player thats fine but when i try to upload via the form tag and post method to php file (Bash.php) where that video have to be converted into the audio (mp3 or wav) i am using FFMPEG library (THat command work perfectly into the Command line) I am trying to do it in php (exec) but didn’t find fruitful resultsI try FFMPEG command to convert uploaded mp4 video to audio because i need audio to transcription
HTML CODE<video width="500" controls="controls" preload="none">
</video>
<div class="container d-flex justify-content-center">
<input type="file" accept="video/*" />
</div>
<code class="echappe-js"><script type="text/javascript"><br />
video_file.onchange = function(){<br />
<br />
var files = this.files;<br />
<br />
var file = URL.createObjectURL(files[0]); <br />
<br />
video_player.src = file; <br />
<br />
video_player.load();}; <br />
<br />
</script><?php
if(isset($_FILES['video'])){
$errors = array();
$file_name = $_FILES['video']['name'];
$file_size = $_FILES['video']['size'];
$file_tmp = $_FILES['video']['tmp_name'];
$file_type = $_FILES['video']['type'];
$file_ext = strtolower(end(explode('.',$_FILES['video']['name'])));
$expensions = array("mp4","avi");
if(in_array($file_ext, $expensions[0])===false){
$errors[]="Extension not allowed, please choose a Mp4 or Avi file video";
}
$convertedFile='fine.mp3';
if(empty($errors)==true){
move_uploaded_file($file_tmp, './'.$file_name);
exec("ffmpeg -i $file_name -vn fine.mp3");
}else{
print_r($errors);
}
$target = "http://localhost:8888/client/dynamic/recognize";
sleep(3);
if($file_ext == "mp4" or $file_ext == "avi"){
exec("python /path/client2.py fine.mp3 > output.txt 2> output2.txt");
$output = exec("cat output.txt"); }
echo $output;
}
?> -
Load processed video instead of original video - Rails, Dragonfly
1er février 2016, par Michael BIn my Rails 4-Project, I am using Dragonfly to upload images and videos.
For image-processing I useimagemagick
, for videoprocessing I useffmpeg
.Videos are uploaded and stored in the folder
uploads/videos
. After processing, they are stored inpublic/ffmpeg_videos/
My question is : How can I use the processed-video instead of the uploaded video ?
e.g. I use this code in the view, to display a video :
<video src="<%=@video.video.url%>"></video>
This successfully loads the original video from the upload-path. But what do I have to change, to load the video from the ffmpeg-path ?
initializers/dragonfly.rb
require 'dragonfly'
# Configure
Dragonfly.app(:images).configure do
plugin :imagemagick
protect_from_dos_attacks false
secret 'd045734b043b4383a246c5c8daf2d3e31217dc8b030f21861e4fd16c4b72d382'
url_format '/media/:job/:name'
datastore :file,
root_path: Rails.root.join('uploads/images/'),
server_root: Rails.root.join('uploads')
end
Dragonfly.app(:videos).configure do
secret 'd045734b043b4383a246c5c8daf2d3e31217dc8b030f21861e4fd16c4b72d382'
url_format "/video/:job/:name"
datastore :file,
root_path: Rails.root.join('uploads/videos/'),
server_root: Rails.root.join('uploads')
end
# Logger
Dragonfly.logger = Rails.logger
# Mount as middleware
Rails.application.middleware.use Dragonfly::Middleware, :images
Rails.application.middleware.use Dragonfly::Middleware, :videos
# Add model functionality
if defined?(ActiveRecord::Base)
ActiveRecord::Base.extend Dragonfly::Model
ActiveRecord::Base.extend Dragonfly::Model::Validations
end -
ffmpeg converting video to images while video file is being written
20 décembre 2018, par user3398227Hopefully an easy question for an ffmpeg expert !
I’m currently converting large (+6GB) mpeg video into an image sequence - which is working well using the below ffmpeg command :
ffmpeg -i "input.mpeg" -vf - fps=fps=2 -f image2 -qscale 1 -s 1026x768
"output%6d.jpg"however i have to wait for the file to finish being written to disk before i kick off ffmpeg - but this takes a good hour or so to finish writing, but what i’ve noticed is that ffmpeg can start reading the file while its being written to disk - the only snag here is it gets to the end of the file and stops before the file has finished being written...
Question is, is there a way that ffmpeg can convert to an image sequence at the same pace the video is being written (and not exit out ?)... or know to wait for the next frame to be written from the source. (unfortunately the input doesn’t support streaming, I only get a network drive and file to work off.. ) I thought i read somewhere that ffmpeg can process at the video frame rate but cant seem to find this command for love or money in the doco !!
Thanks !