
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (42)
-
MediaSPIP : Modification des droits de création d’objets et de publication définitive
11 novembre 2010, parPar défaut, MediaSPIP permet de créer 5 types d’objets.
Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (8102)
-
Transcode video using celery and ffmpeg in django
28 octobre 2015, par RobinI would like to transcode user uploaded videos using celery. I think first I should upload the video, and spawn a celery task for transcoding.
Maybe something like this in the tasks.py :
subprocess.call('ffmpeg -i path/.../original path/.../output')
Just completed First steps with celery, so confused how to do so in the
views.py
andtasks.py
. Also is it a good solution ? I would really appreciate your help and advice. Thank you.models.py :
class Video(models.Model):
user = models.ForeignKey(User)
title = models.CharField(max_length=100)
original = models.FileField(upload_to=get_upload_file_name)
mp4_480 = models.FileField(upload_to=get_upload_file_name, blank=True, null=True)
mp4_720 = models.FileField(upload_to=get_upload_file_name, blank=True, null=True)
privacy = models.CharField(max_length=1,choices=PRIVACY, default='F')
pub_date = models.DateTimeField(auto_now_add=True, auto_now=False)my incomplete views.py :
@login_required
def upload_video(request):
if request.method == 'POST':
form = VideoForm(request.POST, request.FILES)
if form.is_valid():
if form.cleaned_data:
user = request.user
#
#
# No IDEA WHAT TO DO NEXT
#
#
return HttpResponseRedirect('/')
else:
form = VideoForm()
return render(request, 'upload_video.html', {
'form':form
}) -
Processing files and then re-uploading with fog and carrierwave fails on production
2 mars 2015, par LaurieSo I’m trying to get use carrierwave and fog to upload a file to my server, processing that file using ffmpeg to cut it into multiple small files, then upload those to s3.
This works locally (no fog, just file storage), but breaks on production with this error :
NoMethodError: undefined method 'to_file' for #CarrierWave::Storage::Fog::File:0x0000000639a458>
And this trace :
/var/deploy/webapp/web_head/shared/bundle/ruby/2.2.0/gems/carrierwave-0.10.0/lib/carrierwave/storage/fog.rb 259:in `store'
…gems/carrierwave-0.10.0/lib/carrierwave/storage/fog.rb: 80:in `store!'
…s/carrierwave-0.10.0/lib/carrierwave/uploader/store.rb: 59:in `block in store!'
…rrierwave-0.10.0/lib/carrierwave/uploader/callbacks.rb: 17:in `with_callbacks'
…s/carrierwave-0.10.0/lib/carrierwave/uploader/store.rb: 58:in `store!'
…2.2.0/gems/carrierwave-0.10.0/lib/carrierwave/mount.rb: 375:in `store!'
…2.2.0/gems/carrierwave-0.10.0/lib/carrierwave/mount.rb: 207:in `store_audio!'
…/20150227144932/app/controllers/podcasts_controller.rb: 60:in `update'
…2.0/gems/actionview-4.2.0/lib/action_view/rendering.rb: 30:in `process'
…_language-2.0.5/lib/http_accept_language/middleware.rb: 14:in `call'
…red/bundle/ruby/2.2.0/gems/rack-1.6.0/lib/rack/etag.rb: 24:in `call'
…/ruby/2.2.0/gems/rack-1.6.0/lib/rack/conditionalget.rb: 38:in `call'
…red/bundle/ruby/2.2.0/gems/rack-1.6.0/lib/rack/head.rb: 13:in `call'
…/2.2.0/gems/rack-1.6.0/lib/rack/session/abstract/id.rb: 225:in `context'
…/2.2.0/gems/rack-1.6.0/lib/rack/session/abstract/id.rb: 220:in `call'So, I have two uploaders. The uploader for the small chopped up audio files just sets the storage to fog, that’s it.
After uploading the big audio file I run this processing function in the uploader (though the error doesn’t seem to come from here) :
def split
directory = File.dirname(current_path)
tmpfile = File.join(directory,'tmpfile.mp3')
File.rename(current_path,tmpfile)
File.chmod(0644,tmpfile)
sound = FFMPEG::Movie.new(tmpfile)
@model.length = Mp3Info.open(tmpfile).length.round
i=0
number_of_lines= @model.ordered_lines.length
lines = @model.ordered_lines
while icode>Any ideas ?
-
Can't install ffmpeg on target
6 mars 2015, par Quai ChunI followed the tutorial how to compile ffmpeg with libx264, but at make install I get this errors :
"make: Warning: File 'tests/fate/xvid.mak' has modification time 6294176 s in the future"
Nothing happens.
I tried to compile x264 again. All ok till ldconfig My error there :
ldconfig: /usr/lib/libOpenVG.so is not a symbolic link
Edit :
I uninstalled libx264, installed it again, it worked. Then I continued with ffmpeg. make was done with this warning :[...]
LD ffserver_g
CP ffserver
STRIP ffserver
make: warning: Clock skew detected. Your build may be incomplete.Then at make install : "
make: Warning: File 'tests/fate/xvid.mak' has modification time 6103926 s in the future
make: Warning: File 'tests/fate/xvid.mak' has modification time 6103925 s in the future
make: Warning: File 'tests/fate/xvid.mak' has modification time 6103924 s in the future
make: Warning: File 'tests/fate/xvid.mak' has modification time 6103922 s in the future
make: Warning: File 'tests/fate/xvid.mak' has modification time 6103920 s in the future
make: Warning: File 'tests/fate/xvid.mak' has modification time 6103919 s in the future
make: Warning: File 'tests/fate/xvid.mak' has modification time 6103913 s in the future
make: Warning: File 'tests/fate/xvid.mak' has modification time 6103911 s in the future
make: Warning: File 'tests/fate/xvid.mak' has modification time 6103910 s in the future
make: Warning: File 'tests/fate/xvid.mak' has modification time 6103908 s in the future
[..]