
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 (86)
-
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 -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)
Sur d’autres sites (10134)
-
mov : Fix little endian audio detection
13 mars 2015, par Vittorio Giovaramov : Fix little endian audio detection
Set this field to TRUE if the audio component is to operate on
little-endian data, and FALSE otherwise.However TRUE and FALSE are not defined. Since this flag is just a boolean,
interpret all values except for 0 as little endian.Sample-Id : 64bit_FLOAT_Little_Endian.mov
-
Converting Videos In the Background ROR 3
2 octobre 2012, par DragonFire353I've searched around on google and have come up with only one site that explains how to do this : http://railsonedge.blogspot.com/2009/01/flash-video-tutorial-with-rails-ffmpeg.html?m=0 I'm already using paperclip and already have everything set up with it and like using it better than the way this site is doing it. Is there a way to convert videos in the background while keeping track of the state of it using paperclip ? My Video.rb currently :
class Video < ActiveRecord::Base
belongs_to :user
has_many :comments, dependent: :destroy
attr_accessible :video, :user_id, :video_file_name, :title, :public, :description, :views
has_attached_file :video, :styles => {
:video => { geometry: "800x480>", format: 'webm' },
:thumb => { geometry: "200x200>", format: 'png', time: 3 },
}, processors: [:ffmpeg], url: "/users/:user_id/videos/:id/:basename_:style.:extension"
#process_in_background :video #causes death
validates :video, presence: true
validates :description, presence: true, length: { minimum: 5, maximum: 100}
validates :title, presence: true, length: { minimum: 1, maximum: 15 }
validates_attachment_size :video, less_than: 1.gigabytes
validates_attachment :video, presence: true
default_scope order: 'created_at DESC'
Paperclip.interpolates :user_id do |attachment, style|attachment.instance.user_id
end
def self.search(search)
if search
find(:all, conditions: ["public = 't' AND title LIKE ?", "%#{search}%"], order: "created_at DESC")
else
find(:all, conditions: ["public = 't'"], order: "created_at DESC")
end
end
def self.admin_search(search)
if search
find(:all, conditions: ['title LIKE ?', "%#{search}%"], order: "created_at DESC")
else
find(:all, order: "created_at DESC")
end
end
end -
Flutter ffmpeg can't get width and height
26 août 2022, par user31929I'm trying to retrive some info like duration,width and height from videos i pick from the phone gallery. I'm using :


flutter_ffmpeg: ^0.4.2



this is the code i use :


Future getVideoInfo(String VideoPath) async {
 bool errorResult = false;
 FlutterFFprobe fFprobe = FlutterFFprobe();
 String? duration = "0";
 String? width = "0";
 String? height = "0";
 await fFprobe.getMediaInformation(VideoPath).then((info) {
 duration = info.getAllProperties()['duration'].toString();
 width = info.getAllProperties()['width'].toString();
 height = info.getAllProperties()['height'].toString();
 }, onError: (value) {
 errorResult = true;
 }).catchError((error) {
 errorResult = true;
 });

 if (errorResult == true) {
 Map resultmap = {"width": "0", "height": "0", "duration": "0"};
 return resultmap;
 }
 Map resultmap = {"width": width, "height": height, "duration": duration};
 return resultmap;
 }



According to documentation https://pub.dev/packages/flutter_ffmpeg i'm trying to retrive elements in that way :


info.getAllProperties()['width'].toString();



but i can retrive only duration, width and eight are always
null
. Values are in thegetAllProperties
dictionary because i can see "width=1920 and height=824" using the Vscode debugger.
There is only a difference beetween those voices and "duration" , they are grayed out by the Vscode debugger insted of duration that is "red".
Anyway, why i can't access width and eight even if they seems to be accessible ?