
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (17)
-
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...) -
Emballe Médias : Mettre en ligne simplement des documents
29 octobre 2010, parLe plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (4013)
-
FFMPEG conversion (h.264) taking long time for short videos
15 février 2023, par SaraI am trying to record the video and upload into the aws s3 server. Vuejs as front end and php Laravel as backend, I was not using any conversion before saving it to s3. Due to this if any recording recorded from android cannot be played in apple device due to some codecs..
To over come this, I am using ffmpeg to encode in X264() format to make it play in apple and android device regardless on which device the recording is done.


1 min video taking 6-7 minutes using ffmpeg. I thought may be aws s3 taking time to save, i commented "saving to s3 bucket code" still very slow to save temp public folder in php.


please check the code if i am missing anything to make conversion quick. if any solution update answer with reference link or code snippet with reference to my code below.


public function video_upload(Request $request)
 {
 // Response Declaration 
 $response=array();
 $response_code = 200;
 $response['status'] = false;
 $response['data'] = [];
 // Validation
 // TODO: Specify mimes:mp4,webm,ogg etc 
 $validator = Validator::make(
 $request->all(), [
 'file' => 'required'
 ]
 );
 if ($validator->fails()) {
 $response['data']['validator'] = $validator->errors();
 return response()->json($response);
 }
 try{
 $file = $request->file('file');
 //convert
 $ffmpeg = FFMpeg\FFMpeg::create();
 $video = $ffmpeg->open($file);
 $format = new X264(); 
 //end convert
 $file_name = str_replace (' ', '-', Hash::make(time()));
 $file_name = preg_replace('/[^A-Za-z0-9\-]/', '',$file_name).'.mp4';
 
 $video->save($format, $file_name);
 $file_folder = 'uploads/video/';
 // Store the file to S3
 
 // $store = Storage::disk('s3')->put($file_folder.$file_name, file_get_contents($file));
 $store = Storage::disk('s3')->put($file_folder.$file_name, file_get_contents($file_name));
 if($store){
 // Replace old file if exist
 //delete the file from public folder
 $file = public_path($file_name);
 if (file_exists($file)) {
 unlink($file);
 }

 if(isset($request->old_file)){
 
 if(Storage::disk('s3')->exists($file_folder.basename($request->old_file))) {
 Storage::disk('s3')->delete($file_folder.basename($request->old_file));
 }
 }
 }
 $response['status'] = true;
 $response['data']= '/s3/'.$file_folder. $file_name;

 }catch (\Exception $e) {
 $response['data']['message']=$e->getMessage()."line".$e->getLine();
 $response_code = 400;
 }
 return response()->json($response, $response_code);
 }



Its blocking point for me. I cannot let user to wait 5-6 mins to upload 1 min video.


-
Combining audio file and image with ffmpeg in python
6 octobre 2018, par Liamtl ;dr : how to use a bash ffmpeg command in python
So I’m trying to take one JPEG image and an audio file as input and generate a video file of the same duration as the audio file (by stretching the still image for the whole duration).
So, I found these :
https://superuser.com/questions/1041816/combine-one-image-one-audio-file-to-make-one-video-using-ffmpegSo, I now have the code for the merging :
ffmpeg -loop 1 -i image.jpg -i audio.wav -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest out.mp4
Then I want to use that in python but unable to figure out how to port this to ffmpeg-python or ffpy.
I found this : Combining an audio file with video file in python
So, I tried the same thing as him :
cmd = 'ffmpeg -loop 1 -i image.jpg -i message.mp3 -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest out.mp4'
subprocess.check_output(cmd, shell=True)
subprocess.call(cmd, shell=True)But I got
"returned non-zero exit status 1"
. So what did I do wrong ? -
Issue #3 when compiling Xuggler for Raspberry pi with liboil
19 juillet 2014, par Ashish SharmaI am trying to compile Xuggler for Raspberry Pi(Running on Debian OS aka Raspbian),
I followed the ’Basic Build Instructions’ available here for compiling Xuggler.
After I successfully installed all the prerequisites and set the correct paths, I ran the following command :
ant run-tests
After sometime I am facing the following error and the ant build fails :
scroll at the end of log to see the issue
Incarcerated package configured: ../../../../../captive/liboil
Incarcerating package ../../../../../captive/liboil to fake DESTDIR=/home/pi/Downloads/xuggle-xuggler/build/native/armv6l-unknown-linux-gnueabihf/captive/stage
/bin/bash: -c: line 1: syntax error near unexpected token `;'
/bin/bash: -c: line 1: ` case armv6l-unknown-linux-gnueabihf in; *mingw*|*cygwin*) export as_cv_unaligned_access=yes ;; esac \'
make: *** [all-local] Error 1I tried correcting the mentioned shell script but to no avail,
Please help, following is the shell script code :
if [ "" = "1" ]; then
CROSS="--host ${HOST_OS}"
# needed for mingw32 cross-compile to work
case $HOST_OS in
*mingw*|*cygwin*)
export as_cv_unaligned_access=yes
;;
esac
else
CROSS=
fi