
Recherche avancée
Autres articles (53)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (10063)
-
Android NDK - ffmpeg header files not found by compiler
7 septembre 2015, par marktI am trying to use the ffmpeg libraries with Android NDK in the experimental plugin.
I am attempting to compile this example :
https://github.com/roman10/android-ffmpeg-tutorial/blob/master/android-ffmpeg-tutorial01/jni/tutorial01.cMy problem is that the header files are not being found by the compiler :
Error:(13, 32) libavcodec/avcodec.h: No such file or directory
I added flags to build.grade :
cppFlags += "-ilibavcodec -ilibavutil -ilibavformat -ilibswscale"
ldFlags += "-llibavcodec -llibavutil -llibavformat -llibswscale"Which seems to keep lint happy, but not the compiler. (Not sure if I have done this right ?)
I Have added the header files to the /jni folder :
And build.grade looks like this :
apply plugin: 'com.android.model.application'
model {
android {
compileSdkVersion = 23
buildToolsVersion = "23.0.1"
defaultConfig.with {
applicationId = "roman10.tutorial.android_ffmpeg_tutorial01"
minSdkVersion.apiLevel = 10
targetSdkVersion.apiLevel = 23
}
}
compileOptions.with {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
}
android.buildTypes {
release {
minifyEnabled = false
proguardFiles += file('proguard-rules.pro')
}
}
android.ndk {
moduleName = "tutorial01"
ldLibs += ["android","log","jnigraphics","z"]
cppFlags += "-ilibavcodec -ilibavutil -ilibavformat -ilibswscale"
ldFlags += "-llibavcodec -llibavutil -llibavformat -llibswscale"
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:23.0.1'
}Thanks.
-
Latency issue with CMU Sphinx 4
22 septembre 2015, par vijaymI have written the speech recognition application using CMU sphinx 4 and followed the details from this link. I have defined the Acoustic,Dictionary and Language Model as below
configuration.setAcousticModelPath("resource:/edu/cmu/sphinx/models/en-us/en-us");
configuration.setDictionaryPath("resource:/edu/cmu/sphinx/models/en-us/cmudict-en-us.dict");
configuration.setLanguageModelPath("resource:/edu/cmu/sphinx/models/en-us/en-us.lm.bin");With the above configuration the 20 minutes of wav file takes almost close to 20 minutes to do the transcription.Hence than I tried to pass the user defined config.xml. I did n’t find the configuration manager option to pass the user defined config.xml with the current version of Sphinx4.Then I had written own recognizer by extending the
AbstractSpeechRecognizer.java
class(It may be useless) and changed few parameters of config.xml and I tried it but still no improvement.I have downloaded video and audio across multiple source and converted into WAV file using FFMPEG
The command is as below
ffmpeg -i input.mp3 -acodec pcm_s16le -ac 1 -ar 16000 output.wav
Environment Details :
Java 8
Ubuntu 14.04
RAM 4GB
I5 Processor
What I would like to know is, what I am missing here and how to improve the performance ?
-
Rails Thumbnails for videos being uploaded to S3
20 octobre 2015, par DaniI have a rails application where I need to upload videos to an amazon s3 bucket alongwith their thumbnails. I am using ffmpeg to generate thumbnails and I am using carrierwave to handle video uploads. Here is my video uploader class
class VideoUploader < CarrierWave::Uploader::Base
include CarrierWave::Video
storage :fog
def store_dir
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end
def extension_white_list
%w(mp4 flv)
end
endThe video uploads fine and the column for video url is set in videos table but I want to generate thumbnail and upload it as well. I know I have to use ffmpeg here but don’t exactly know how to do it.
Any help will be appreciated.