
Recherche avancée
Autres articles (98)
-
Activation de l’inscription des visiteurs
12 avril 2011, parIl est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...) -
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 (8868)
-
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.
-
FFMPEG with Gradle Experimental Android plugin
12 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/
So I 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 := libavformat libavcodec libswscale libavutil
include $(BUILD_SHARED_LIBRARY)
$(call import-module,ffmpeg-3.0.1/android/arm)Now I stuck here and trying to put these details in build.gradle files like showing in this documentation :
http://tools.android.com/tech-docs/new-build-system/gradle-experimentalfor example :
model {
repositories {
libs(PrebuiltLibraries) {
prebuilt {
headers.srcDir "path/to/headers"
binaries.withType(SharedLibraryBinary) {
sharedLibraryFile = file("lib/${targetPlatform.getName()}/prebuilt.so")
}
}
}
}
android.sources {
main {
jniLibs {
dependencies {
library "prebuilt"
}
}
}
}
}But not able transform exact Android.mk(src/main/jni) to this and apart from it I have one more Android.mk in my android/arm folder so how I can call this makefile or should I put that details also in my build.gradle like above.
I tried like this and using ndk-build command successfully generated jniLibs with .so files but I am getting libavcodec/avcodec.h : No such file or directory while building project.
android.sources {
main {
jni {
source {
srcDirs = ['src/main/myJni']
}
}
}
main {
jniLibs {
source {
srcDirs = ['src/main/libs']
}
}
}
} -
how to upload a video to google driver use paperclip or carriwave
14 janvier 2016, par bách trần nguyêni want to upload video to google driver.
code models
video modelclass Video < ActiveRecord::Base
has_attached_file :video,
:storage => :google_drive,
:google_drive_credentials => {:client_id => AppConfig.gg_drive.client_id,
:client_secret => AppConfig.gg_drive.client_secret,
:refresh_token => AppConfig.gg_drive.refresh_token,
:scope => AppConfig.gg_drive.scope,
:access_token => Token.cache_access_token_google_drive
},
:styles => {
:medium => {
:geometry => "640x480",
:format => 'mp4'
},
:thumb => { :geometry => "160x120", :format => 'jpeg', :time => 10}
},# hello 123
:processors => [:transcoder],
:google_drive_options => {
:path => proc { |style| "#{style}_#{id}_#{image.original_filename}" },
:public_folder_id => '0B0VNyOkzIwUZZFFGeVhycFk0dnc'
}
endin Gemfile
gem 'google-api-client'
gem 'paperclip'
gem 'paperclip-googledrive'
gem 'paperclip-av-transcoder'
gem "paperclip-ffmpeg"in controller
def create
if params[:videos]
params[:videos].each { |video| Video.create(video: video) }
end
endwhen i run , this display error
[AV] Running command : if command -v avprobe 2>/dev/null ; then echo "true" ; else echo "false" ; fi
[AV] Running command : if command -v ffmpeg 2>/dev/null ; then echo "true" ; else echo "false" ; fi
Av::UnableToDetect in AlbumsController#create
Unable to detect any supported librarypls. how to fix this errors