
Recherche avancée
Autres articles (30)
-
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 (...) -
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 (...)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (6013)
-
Play AAC in SoundManager2 won't start
27 novembre 2012, par sasaI converted audio file MP4 to AAC and then want to play that file in SoundManager2. If I use some software for Windows for convert, everying is fine, audio is playing well. But, on server side when MP4 file is converted to AAC using ffmpeg, file is loaded in SM2, but playing is not started.
I use this command :
ffmpeg -i in.mp4 out.aac
Here is SoundManager2 log :
-- SoundManager 2: HTML5 support tests (/^(probably|maybe)$/i): mp3: true (preferring flash), mp4: true (preferring flash), ogg: true, wav: true -- soundmanager2.js:1156
-- SoundManager 2 V2.97a.20120916 (AS3/Flash 9) + HTML5 audio, high performance mode, custom (1ms) polling, wmode: transparent, flash debug mode, flashBlock mode -- soundmanager2.js:1156
soundManager::createMovie(): Trying to load /soundmanager/swf/soundmanager2_flash9_debug.swf soundmanager2.js:1156
soundManager::initMovie(): Waiting for ExternalInterface call from Flash... soundmanager2.js:1158
soundManager::externalInterfaceOK() (~0 ms) soundmanager2.js:1158
soundManager::init() soundmanager2.js:1158
soundManager: Attempting JS to Flash call... soundmanager2.js:1158
(Flash): SM2 SWF V2.97a.20120916 (AS3/Flash 9) soundmanager2.js:1158
Flash security sandbox type: remote soundmanager2.js:1158
(Flash): JS to/from Flash OK soundmanager2.js:1158
(Flash): Enabling polling, 1 ms interval soundmanager2.js:1158
-- SoundManager 2 loaded (OK) -- soundmanager2.js:1156
soundManager: Firing 1 onready() item soundmanager2.js:1158
threeSixtyPlayer.init() soundmanager2.js:1158
threeSixtyPlayer.init(): Found 1 relevant items. soundmanager2.js:1158
handleClick() soundmanager2.js:1158
soundManager.createSound(): ui360Sound0 (http://[private url]/out.aac?v=1350309261) soundmanager2.js:1156
soundManager.createSound(): Enabling usePolicyFile for data access soundmanager2.js:1158
SMSound() merged options: {
id: ui360Sound0,
url: http://[private url]/out.aac?v=1350309261,
onplay: { pl.removeClass(this._360data.oUIBox,this._360data.className); t... },
onstop: { pl.removeClass(this._360data.oUIBox,this._360data.className); t... },
onpause: { pl.removeClass(this._360data.oUIBox,this._360data.className); t... },
onresume: { pl.removeClass(this._360data.oUIBox,this._360data.className); t... },
onfinish: { var nextLink; pl.removeClass(this._360data.oUIBox,this._360data... },
onbufferchange: { if (this.isBuffering) { pl.addClass(this._360data.oUIBox,pl.css... },
whileloading: { if (this.paused) { self.updatePlaying.apply(this); } }... },
whileplaying: { self.updatePlaying.apply(this); this._360data.fps++; }... },
useWaveformData: false,
useEQData: false,
usePeakData: true,
autoLoad: false,
autoPlay: false,
loops: 1,
multiShot: true,
multiShotEvents: false,
pan: 0,
stream: true,
usePolicyFile: true,
volume: 50,
useMovieStar: false,
isMovieStar: false,
bufferTime: 3
} soundmanager2.js:1158
(Flash): SoundManager2_SMSound_AS3: Got duration: 0, autoPlay: false soundmanager2.js:1158
SMSound.play(): Attempting to load "ui360Sound0" soundmanager2.js:1156
SMSound.load(): http://[private url]/out.aac?v=1350309261 soundmanager2.js:1156
SMSound.play(): "ui360Sound0" is starting to play soundmanager2.js:1158
fanOut: ui360Sound0: http://[private url]/out.aac?v=1350309261 soundmanager2.js:1158
(Flash): start (ui360Sound0): 0 soundmanager2.js:1158
SMSound._onbufferchange(): 1 soundmanager2.js:1158
SMSound._onbufferchange(): 0 soundmanager2.js:1158
SMSound._onload(): "ui360Sound0" loaded.What can be a problem ?
-
Scroll playlist items into view. Cancel 'play next' timeout if user navigates previous/next etc.
2 février 2015, par scottschillerScroll playlist items into view. Cancel ’play next’ timeout if user navigates previous/next etc.
-
Play audio from ffmpegframegrabber
5 juillet 2013, par ShatayaFor an augmented reality app which should play videos, adjusted to the detected marker.
I can't use the android video view as it is not possible to rotate it.
Therefor I have imported the javacv and ffmpeg libraries.
So far I can successfully render my video with opengl es but I have problems with the audio playback.I extract the frames with FFmpegFrameGrabber :
grabber = new MyFFmpegFrameGrabber(Environment.getExternalStorageDirectory()+"/arvideo_"+fileName+".mp4");
Frame frame = grabber.grabFrame();
....
if(frame.samples != null) {
// I have my audio samples and then?
}I tried to playback the audio with the AudioTrack class.
int bufferSize = AudioTrack.getMinBufferSize(grabber.getSampleRate(),AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT);
track = new AudioTrack(AudioManager.STREAM_MUSIC, grabber.getSampleRate(), AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, bufferSize, AudioTrack.MODE_STREAM);
track.play();
// call track.write(....) ???I get only a static noise. I have read that the sample format is AV_SAMPLE_FMT_FLTP but android needs AV_SAMPLE_FMT_S16. That's why I tried to convert the samples with com.googlecode.javacv.cpp.swresample class. I think that I'm doing something wrong because I still have only noise.
swrcontext = com.googlecode.javacv.cpp.swresample.swr_alloc();
com.googlecode.javacv.cpp.swresample.swr_alloc_set_opts(swrcontext,AV_CH_LAYOUT_STEREO, avutil.AV_SAMPLE_FMT_FLTP, getSampleRate(), AV_CH_LAYOUT_STEREO, avutil.AV_SAMPLE_FMT_S16, getSampleRate(), 0, null);
com.googlecode.javacv.cpp.swresample.swr_init(swrcontext);
// ....
PointerPointer inData = samples_frame.data();
PointerPointer outData = samples_frame.data();
com.googlecode.javacv.cpp.swresample.swr_convert(swrcontext, outData, samples_frame.nb_samples(), inData, samples_frame.nb_samples());
samples_frame = new AVFrame(outData);I really have no idea anymore... I hope anybody can help me. Thanks.