
Recherche avancée
Autres articles (48)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
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
Sur d’autres sites (5695)
-
Need help concatenating multiple 2 part .mp4s
9 septembre 2016, par Jay Ford7Basically, I have about 200 2-part videos that I would like to concatenate as 100 individual files.
All the files are labeled with the same file name but with part 1 and part 2 on the end, ie "Video Name Part 1...Video Name Part 2"
Through basic searching I understand how to combine two videos into one video manually with ffmpeg, but is there a way for ffmpeg to recognize the naming structure and do a batch concatenation ?
EDIT : I should’ve said I was on Windows !
Thanks !
-
400 Bad Request Error uploading paperclip videos
5 mars 2017, par jalen201Im trying to upload videos with paperclip. When i hit the submit button i receive.
RSolr::Error::Http - 400 Bad Request Error:
this is the migration
class AddAttachmentVideoToPins < ActiveRecord::Migration
def self.up
change_table :pins do |t|
t.attachment :video
end
end
def self.down
remove_attachment :pins, :video
end
endHeres the model
class Pin < ApplicationRecord
acts_as_votable
belongs_to :user
has_many :comments
searchable do
text :title, :boost => 5
text :description
end
has_attached_file :image, styles: {medium: "300x300>" }
validates_attachment_content_type :image, content_type: /\Aimage\/.*\z/
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/also i added these 4 gems, and installed ffmpeg with homebrew
gem 'paperclip', '~> 5.1'
gem 'aws-sdk', '~> 2.8'
gem 'paperclip-av-transcoder', '~> 0.6.4'
gem 'paperclip-ffmpeg', '~> 1.2'lastly this is my controller, i added :video as a strong parameter.
class PinsController < ApplicationController
before_action :find_pin, only: [:show,:edit,:update,:destroy, :upvote]
before_action :authenticate_user!, except: [:index,:show]
def index
@search = Pin.search do
fulltext params[:search]
end
@pins = @search.results
end
def new
@pin = current_user.pins.build
end
def show
@comments = Comment.where(pin_id: @pin).order('created_at DESC')
end
def edit
@lookup = User.all
end
def profile
@users = User.all
if User.find_by_username(params[:id])
@username = params[:id]
@user = User.find_by_username(params[:id])
else
redirect_to root_path
end
@user_pin = Pin.all.where('user_id = ?', User.find_by_username(params[:id]).id)
end
def update
if @pin.update(pin_params)
redirect_to @pin, notice: "Pin was succesfully updated"
else
render 'edit'
end
end
def destroy
@pin.destroy
redirect_to root_path
end
def upvote
@pin.upvote_by current_user
redirect_to :back
end
def create
@pin = current_user.pins.build (pin_params)
if @pin.save
redirect_to @pin , notice: "Succesfully created new pin"
else
render 'new'
end
end
private
def pin_params
params.require(:pin).permit(:title, :description, :image, :video)
end
def find_pin
@pin = Pin.find(params[:id])
end
endi added this in the view
<%= video_tag @pin.video.url(:medium), controls: true, style: "max-width: 100%;" %>
If anyone could help that would be greatly appreciated
-
Ruby gem to transcode video on the fly
28 novembre 2013, par ErickI am looking to create myself a little media server (read : little pet project for fun) at home.
Is there any gem that would allow me to transcode on the fly and stream ?
I know rvideo wraps ffmpeg but it's a one time thing. The only thing I could do is to transcode to a temp file and then stream that file. It doesn't sound like the idea solution.
Anyone has done this in the past ?
[edit] Looking to transcode anything (avi, xvid, divx, mkv, mpeg, flv) into mpeg4 to permit a normal html5 video player to do the job.