Recherche avancée

Médias (91)

Autres articles (39)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire 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 (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (7562)

  • Merge remote-tracking branch ’cus/stable’

    10 février 2015, par Michael Niedermayer
    Merge remote-tracking branch ’cus/stable’
    

    * cus/stable :
    ffplay : factorize thread starting and stopping code into decoder
    ffplay : make eof part of videostate and signal it when opening a stream
    ffplay : update frame timer based on last updated clock time when toggling pause

    Merged-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] ffplay.c
  • Transcode video using celery and ffmpeg in django

    28 octobre 2015, par Robin

    I 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 and tasks.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 Laurie

    So 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 ?