
Recherche avancée
Médias (2)
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (87)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
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
Sur d’autres sites (8772)
-
upload video on local host
20 avril 2017, par chan jackwhen i upload video on local host have error #Unable to detect any supported library#
@internal_information = InternalInformation.new(internal_information_params)
if @internal_information.update(internal_information_params)
respond_to do |format|
this is my code below
Model
class InternalInformation < ApplicationRecord
has_attached_file :video , styles: {
:medium => { :geometry => "640x480", :format => 'mp4' },
:thumb => { :geometry => "100x100#", :format => 'jpg', :time => 10 }
}, :processors => [:transcoder]
validates_attachment_content_type :video, content_type: /\Avideo\/.*\Z/
endController
def create
@internal_information = InternalInformation.new(internal_information_params)
respond_to do |format|
if @internal_information.save
format.html { redirect_to @internal_information, notice: 'Internal information was successfully created.' }
format.json { render :show, status: :created, location: @internal_information }
else
format.html { render :new }
format.json { render json: @internal_information.errors, status: :unprocessable_entity }
end
end
end
# PATCH/PUT /internal_informations/1
# PATCH/PUT /internal_informations/1.json
def update
respond_to do |format|
if @internal_information.update(internal_information_params)
format.html { redirect_to @internal_information, notice: 'Internal information was successfully updated.' }
format.json { render :show, status: :ok, location: @internal_information }
else
format.html { render :edit }
format.json { render json: @internal_information.errors, status: :unprocessable_entity }
end
end
endShow
<%= javascript_include_tag 'swfobject' %>
<p><%= notice %></p>
<p>
<strong>Title:</strong>
<%= @internal_information.Title %>
</p>
<p>
<%= video_player({:file => @internal_information.video.url(:medium), :image => @internal_information.video.url(:thumb)}) %>
</p>
<%= link_to 'Edit', edit_internal_information_path(@internal_information) %> |
<%= link_to 'Back', internal_informations_path %> -
ffmpeg can't concat movies from two different devices
29 mars 2017, par T4ng10rI’ve got bunch of movies from two different Panasonic devices. As long as I concat movies from only ONE device - final movie is smooth.
However, when I add movie clip from second device, right after final movie ends playing movies from first device it display audio and only still images from movie clip from other device.ffmpeg -f concat -i mylist.txt -c copy final_movie.MP4
Example ffprobe :
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'S6810001.MP4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.27.100
Duration: 00:00:10.62, start: 0.021333, bitrate: 1131 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 998 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 132 kb/s (default)
Metadata:
handler_name : SoundHandleSecond device movie clip :
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'a/T00004.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.27.100
Duration: 00:00:33.18, start: 0.000000, bitrate: 1190 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 929 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 256 kb/s (default)
Metadata:
handler_name : SoundHandler
Side data:
audio service type: mainWhy movie is still ? How to prepare it so it could be joined correctly ?
-
matplotlib ArtistAnimation returns a blank video
28 mars 2017, par MpaullI’m trying to produce an animation of a networkx graph changing over time. I’m using the networkx_draw utilities to create matplotlib figures of the graph, and matplotlib’s ArtistAnimation module to create an animation from the artists networkx produces. I’ve made a minimum reproduction of what I’m doing here :
import numpy as np
import networkx as nx
import matplotlib.animation as animation
import matplotlib.pyplot as plt
# Instantiate the graph model
G = nx.Graph()
G.add_edge(1, 2)
# Keep track of highest node ID
G.maxNode = 2
fig = plt.figure()
nx.draw(G)
ims = []
for timeStep in xrange(10):
G.add_edge(G.maxNode,G.maxNode+1)
G.maxNode += 1
pos = nx.drawing.spring_layout(G)
nodes = nx.drawing.draw_networkx_nodes(G, pos)
lines = nx.drawing.draw_networkx_edges(G, pos)
ims.append((nodes,lines,))
plt.pause(.2)
plt.cla()
im_ani = animation.ArtistAnimation(fig, ims, interval=200, repeat_delay=3000,blit=True)
im_ani.save('im.mp4', metadata={'artist':'Guido'})The process works fine while displaying the figures live, it produces exactly the animation I want. And it even produces a looping animation in a figure at the end of the script, again what I want, which would suggest that the animation process worked. However when I open the "im.mp4" file saved to disk, it is a blank white image which runs for the expected period of time, never showing any of the graph images which were showed live.
I’m using networkx version 1.11, and matplotlib version 2.0. I’m using ffmpeg for the animation, and am running on a Mac, OSX 10.12.3.
What am I doing incorrectly ?