
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (51)
-
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
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 -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users.
Sur d’autres sites (7768)
-
FFmpeg with libx264 skipped many frames during re-encoding
18 mai 2019, par IgorI found a strange problem with FFmpeg 4.1.3 when I re-encode this video file with libx264 and I use bitrate 8000k mode.
ffmpeg -y -i src.mp4 -c:v libx264 -preset slow -b:v 8000k dst.mp4
Source video (28 seconds) shows 3 images.
After re-encoding I see only 2 images and 3rd image is missing. I tested in latest VLC player 3.0.6, MPC-HC, Media player in Windows 10.
If I use crf video encoding instead of bitrate everything is fine.
Source video : https://drive.google.com/open?id=1gK06QtN8IqQNwAZeJdg7lbQgX0tkjaOn
-
Video with drop frames with ffmpeg
28 mai 2018, par Gabe MataI am recording videos using ffmpeg in a production environment almost non-stop for 15 hours a day. Sometimes the videos are freezing for a few seconds.
I believe the hardware is adequate. It is an i7 with 16GB ram and windows 10. The videos are on average about 2:00 minute each.
This happens a few times a day 10 or so that I am awarded.
Here is a link to one of the videos that froze :
https://drive.google.com/open?id=1q6R2l1AkCko-uh2KZ6X8AChdGU5XBOy7
It freezes at 0:03 and then restarts at 0:16
Here is the ffmpeg command I am using :
ffmpeg -i "rtsp ://10.0.131.2/media/video1" -f segment -segment_time 9000 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -map 0 gabe.mp4
Can I decreases the quality of the videos so videos don’t randomly freeze ?
Would recording without audio help the videos not randomly freeze ?
Thanks,
Gabe
-
Uploading videos on rails website
16 mai 2017, par DinukapereraI am trying to let my users upload videos on my website(not deployed yet, testing locally). I have it set up in a manner where if the "user information" gets saved, it will take them to the "root_path", which is the homepage. If the user information is not saved, it will render the form again. Before I added the video upload feature, all the information got saved and everything worked well, but after adding the feature, it keeps rendering the same form over and over again since the information is not getting saved. How do I check what’s wrong ? The command line gives me this error :
The user information form partial :
`<%= simple_form_for @userinfo do |f| %>
<%= f.input :name, label: 'Full name', error: 'Full name is mandatory' %>
<%= f.input :username, label: 'Username', error: 'Username is mandatory, please specify one' %>
<%= f.input :school, label: 'Name of college' %>
<%= f.input :gpa, label: 'Enter GPA' %>
<%= f.input :email, label: 'Enter email address' %>
<%= f.input :number, label: 'Phone number' %>
<%= f.file_field :video %>
<%= f.button :submit %>
<% end %>`
My user controller (This is the user information controller, does not control user email and password. I’m using the devise gem for user sign in, sign out, and sign up) :`
class UsersController < ApplicationController
def index
end
def show
end
def new
@userinfo = User.new
end
def create
@userinfo = User.new(user_params)
if @userinfo.save
redirect_to root_path
else
render 'new'
end
end
def edit
end
def update
end
def destroy
end
private
def user_params
params.require(:user).permit(:name, :username, :email, :number, :school, :gpa, :major, :video)
end
end`
This is the user model (usermain is the model related to user password and email. The user information in the user model belongs to the usermain) : `
class User < ActiveRecord::Base
belongs_to :usermain
has_attached_file :video, styles: {:video_show => {:geometry => "640x480",:format => 'mp4'},:video_index => { :geometry => "160x120", :format => 'jpeg', :time => 10}}, :processors => [:transcoder]
validates_attachment_content_type :video, content_type: /\Avideo\/.*\Z/
end`
This is the migration file that creates the user information table :`
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :name
t.string :username
t.string :email
t.string :number
t.string :school
t.string :gpa
t.string :major
t.timestamps null: false
end
end
endThis is adding the "video" field to the above created user information table:
class AddAttachmentVideoToUsers < ActiveRecord::Migration
def self.up
change_table :users do |t|
t.attachment :video
end
end
def self.down
remove_attachment :users, :video
end
end`
I also have paperclip and ffmpeg installed. When I say installed, it’s literally just that. I’m not sure if I have to manipulate paperclip or ffmpeg in any way to make it work with the videos, I have just installed and did nothing else with them. I have been pulling my hair out for the past two days. Any help is appreciated.