
Recherche avancée
Autres articles (111)
-
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
(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 (...) -
Installation en mode standalone
4 février 2011, parL’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
[mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)
Sur d’autres sites (11356)
-
Adding video with paperclip av-transcoder
16 avril 2016, par D.GravesOkay so I tried this awhile back and I couldn’t get it to work. So I started new and still struggling with this. I am able to upload images no problem. But for some reason I am getting errors when I try to upload videos. I have ffmpeg installed and the latest paperclip av-transcoder installed as well.
This is the error that I’m getting
This is my post model
class Post < ActiveRecord::Base
belongs_to :user
has_attached_file :video, styles: {
:medium => {
:geometry => "640x480",
:format => 'mp4'
},
:thumb => { :geometry => "160x120", :format => 'jpeg', :time => 10}
}, :processors => [:transcoder]
validates_attachment_content_type :video, content_type: /\Avideo\/.*\Z/
endThis is my post controller
def index
@posts = Post.all.order("created_at DESC")
end
def show
end
def new
@post = current_user.posts.build
end
def edit
end
def create
@post = current_user.posts.build(post_params)
if @post.save
redirect_to @post, notice: 'Post was successfully created.'
else
render :new
end
end
def update
if @post.update(post_params)
redirect_to @post, notice: 'Post was successfully updated.'
else
render :edit
end
end
def destroy
@post.destroy
redirect_to posts_url
end
private
# Use callbacks to share common setup or constraints between actions.
def set_post
@post = Post.find_by(id: params[:id])
end
def correct_user
@post = current_user.posts.find_by(id: params[:id])
redirect_to posts_path, notice: "Not authorized to edit this post" if @post.nil?
end
# Never trust parameters from the scary internet, only allow the white list through.
def post_params
params.require(:post).permit(:description, :image, :video)
end
def bscenes_params
params.require(:post).permit(:video)
end
endThis is the tag I am using on my show page
<%= video_tag bscene.video.url(:medium), controls: true, style: "max-width: 100%;" %>
I followed step by step the steps on this site
http://alloffices.io/posts/heroku-s3-paperclip-av-transcoder-for-video-uploadsDon’t know why Im getting the NamError. Any help at all would be a ton of help
When I take away the "bscene" from the tag and controller I then get this when I upload.
-
Include Shared library .so in android studio
15 avril 2016, par SpartanI extracted ffmpeg in ndk’s source folder then compiled it there only for that I followed this :http://www.roman10.net/2013/08/18/how-to-build-ffmpeg-with-ndk-r9/ and successfully generated android folder with arm/lib and arm/include files.
After that I created one Android.mk file in $NDK/sources/ffmpeg/android/arm and one Android.mk in my android project(src/main/jni folder).
My src/main/jni/Android.mk is like this :
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := tutorial01
LOCAL_SRC_FILES := tutorial01.c
LOCAL_LDLIBS := -llog -ljnigraphics -lz
LOCAL_SHARED_LIBRARIES := libavcodec
include $(BUILD_SHARED_LIBRARY)
$(call import-module,ffmpeg-3.0.1/android/arm)and $NDK/sources/ffmpeg/android/arm/Android.mk is :
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE:= libavcodec
LOCAL_SRC_FILES:= lib/libavcodec-57.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_SHARED_LIBRARY)I updated my build.gradle like this and successfully generated jniLibs with .so files but I am getting libavcodec/avcodec.h : No such file or directory while building project.
import org.apache.tools.ant.taskdefs.condition.Os
apply plugin: 'com.android.model.application'
model {
android {
compileSdkVersion = 23
buildToolsVersion = "23.0.2"
defaultConfig.with {
applicationId = "com.example.spartan.hello"
minSdkVersion.apiLevel = 18
targetSdkVersion.apiLevel = 23
versionCode = 1
versionName = "1.0"
}
}
android.buildTypes {
release {
minifyEnabled = false
proguardFiles.add(file('proguard-android.txt'))
}
}
android.sources {
main {
jni {
source {
srcDirs = []
}
}
}
main {
jniLibs {
source {
srcDirs = ['src/main/libs']
}
}
}
}
android.ndk {
moduleName = "tutorial01"
stl = 'gnustl_shared'
}
}
task ndkBuild(type: Exec) {
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
commandLine 'ndk-build.cmd', '-C', file('src/main').absolutePath
} else {
commandLine 'ndk-build', '-C', file('src/main').absolutePath
}
}
tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn ndkBuild
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
}and loading them in my activity like this :
static {
System.loadLibrary("tutorial01");
System.loadLibrary("avcodec-57");
}I am new to NDK so, Is it ok if we manually paste header files in jni folder ?
-
Video uploaded using paperclip on heroku showing no screen, only sound
21 avril 2016, par TijmenhI’m uploading a video to a Ruby on Rails application on a Heroku server. Locally it works fine, but on the Heroku server there is no screen showing, only sound.
The model :
class Video < ActiveRecord::Base
validates :user_id, :title, presence: true
has_attached_file :file, :styles => {
:poster => { :geometry => "640x480", :format => 'jpg' },
:large => { :geometry => "640x480", :format => 'mp4', }
}, :use_timestamp => false, :processors => [:transcoder]
validates_attachment_content_type :file, content_type: /\Avideo\/.*\Z/
belongs_to :user
endand the view to display the video :
<video width="640" height="480" controls="controls">
<source type="video/mp4">
Your browser does not support the video tag.
</source></video>Also I’m using the buildpack
https://github.com/shunjikonishi/heroku-buildpack-ffmpeg
besides the ruby buildpack on Heroku.I use the
gem 'paperclip-av-transcoder'
. I also tried the following gems :gem 'paperclip', '~> 4.3.1'
gem 'aws-sdk', '< 2.0'
gem 'paperclip-av-transcoder'
gem "paperclip-ffmpeg", "~> 1.2.0"But the same results.
I start to think it has something to do with the transcoder used on Heroku. If you download the file the video plays fine in a video player.
Any ideas ?