
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (100)
-
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. -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
L’agrémenter visuellement
10 avril 2011MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.
Sur d’autres sites (12458)
-
Way to bypass video upload when testing using Rspec
1er mars 2014, par JustinI'm testing a page on my app that shows videos. I'm trying to speed up the test by bypassing the video upload process or another way ??
Maybe I'm using FactoryGirl incorrectly for file uploads..
Using FactoryGirl, I'm creating the video with
FactoryGirl.define do
factory :video do
user_id 1
type "Live"
title "FooBar"
description "Foo bar is the description"
video { fixture_file_upload(Rails.root.join('spec', 'files', 'concert.mov'), 'video/mp4') }
end
endAnd in the request's spec I'm describing the videos as :
describe "videos page" do
let(:user) { FactoryGirl.create(:user) }
let!(:video1) { FactoryGirl.create(:video) }
before { visit user_video_path(user) }
it { should have_title(user.name) }
it { should have_content(user.name) }
describe "videos" do
it { should have_content(video1.description) }
end
endNow, everytime I run the test for this page it goes through the file upload process which takes more time. I'm also using FFmpeg
**video.rb (video model)**
validates :video, presence: true
has_attached_file :video, :styles => {
:medium => { :geometry => "640x480", :format => 'mp4' },
:thumb => { :geometry => "470x290#", :format => 'jpg', :time => 10 }
},
:processors => [:ffmpeg]What this does when I test the page is the CLI goes through the video upload process like it would if you were uploading the video and watching your local server.
-
How to make video (of any format) compatible to play in android's default player ?
24 janvier 2014, par AartiI want to play video urls from server in device's video player,but unable to play all videos
Testing on HTC Desire (4.1.1), Panasonic (4.1.3), Samsung G S2(2.3.6).I've already gone through following links
Sorry, this video cannot be played - streaming mp4 to android and
How to Play Streaming Audio/Video from a url ?
but did not found working solution.I understand few imp things from above,
- Video must be baseline H264 encoded for playing successfully on all devices
- For encoding any kind of video to H264, we need to integret ffmpeg
My questions are,
- How exactly I can convert any format of video to H264 baseline support ? Examples are appreciated.
- Is there any alternate way for FFMPEG ?
- How can I check if video is baseline H.264 ?
I have tried playing videos with both Intent ACTION_VIEW & MediaController, result was same for both.
Its very urgent. Any kind of help or hint appreciated. Thank You.
-
Raising and Rescuing Custom Exception
24 décembre 2013, par cmwI'm using Rails 3 with Carrierwave and FFMPEG to handle video uploads and encoding.
In my uploader, I'm using FFMPEG to grab the duration of the video from cache before storing it.
I'd like to raise a custom exception if the video's duration exceeds a specific length and then route the user accordingly. I've spent quite a bit of time trying to figure out how to create, raise and rescue my own custom exceptions in Rails – but, I've had no luck.
Some posts I've used to try to piece this together include this stack overflow post and this article on customized exception handling in Rails 3. I've had no luck yet.
I'm hoping someone can offer guidance on the proper approach to this. My mind is blown.
Below is what my uploader looks like :
class VideoUploader < CarrierWave::Uploader::Base
before :store, :ffmpeg
# Set storage type
storage :fog
# Override the directory where uploaded files will be stored.
def store_dir
"#{model.class.to_s.underscore}/videos/#{model.id}"
end
# Add a white list of extensions which are allowed to be uploaded.
def extension_white_list
%w(mov avi mp4 mkv wmv mpg)
end
def full_cache_path
"#{::Rails.root}/public/#{cache_dir}/#{cache_name}"
end
private
def ffmpeg(*args)
@model.video.cache_stored_file!
movie = FFMPEG::Movie.new("#{model.video.full_cache_path}")
if movie.duration > 600
raise "my custom exception will go here one day"
end
end
end