Recherche avancée

Médias (91)

Autres articles (8)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à 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) (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

Sur d’autres sites (4053)

  • dnn : convert tf.pad to native model in python script, and load/execute it in the...

    29 juillet 2019, par Guo, Yejun
    dnn : convert tf.pad to native model in python script, and load/execute it in the c code.
    

    since tf.pad is enabled, the conv2d(valid) changes back to its original behavior.

    Signed-off-by : Guo, Yejun <yejun.guo@intel.com>
    Signed-off-by : Pedro Arthur <bygrandao@gmail.com>

    • [DH] libavfilter/dnn/dnn_backend_native.c
    • [DH] libavfilter/dnn/dnn_backend_native.h
    • [DH] tools/python/convert_from_tensorflow.py
  • dnn : change .model file format to put layer number at the end of file

    29 août 2019, par Guo, Yejun
    dnn : change .model file format to put layer number at the end of file
    

    currently, the layer number is at the beginning of the .model file,
    so we have to scan twice in python script, the first scan to get the
    layer number. Only one scan needed after put the layer number at the
    end of .model file.

    Signed-off-by : Guo, Yejun <yejun.guo@intel.com>
    Signed-off-by : Pedro Arthur <bygrandao@gmail.com>

    • [DH] libavfilter/dnn/dnn_backend_native.c
    • [DH] tools/python/convert_from_tensorflow.py
  • Celery to process task and modify the model fields

    15 juillet 2015, par Robin

    I would like to convert video into mp4 using ffmpeg and celery for the asynchronous task. When user uploads a video, it will be for the original_video and save it. After that I want celery to convert it into a different version for the mp4_720 field. However I am confused on how to apply that logic using celery.

    app.models.py :

    class Video(models.Model):
       title = models.CharField(max_length=75)
       pubdate = models.DateTimeField(default=timezone.now)
       original_video = models.FileField(upload_to=get_upload_file_name)
       mp4_720 = models.FileField(upload_to=get_upload_file_name, blank=True, null=True)
       converted = models.BooleanField(default=False)

    app.views.py :

    def upload_video(request):
       if request.POST:
           form = VideoForm(request.POST, request.FILES)
           if form.is_valid():
               video = form.save(commit=False)
               video.save()

               // Celery to convert the video
               convert_video.delay(video)

               return HttpResponseRedirect('/')
       else:
           form = VideoForm()
       return render(request, 'upload_video.html', {
           'form':form
       })

    app.tasks.py :

    @app.task
    def convert_video(video):

       // Convert the original video into required format and save it in the mp4_720 field using the following command:
       //subprocess.call('ffmpeg -i (path of the original_video) (video for mp4_720)')

       // Change the converted boolean field to True

       // Save

    Basically my question is how to save the converted video in mp4_720. Your help and guidance will be very much appreciated. Thank you.

    ** update **

    What I want that method to do is first convert the video.original_video and then save the converted video in the video.mp4_720 field. If all has been done correctly, change the video.converted to True. How do I define the method to do so ?