Recherche avancée

Médias (0)

Mot : - Tags -/content

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (39)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (3628)

  • Getting [WinError 2] error while compressing video using FFmpeg in Django Rest Framework

    28 septembre 2022, par MdHassan413

    I want to resize the video and picture files. so I looked for it and found FFmpeg and now I'm getting errors while compressing. TemporaryUploadedFile don't have a path when we upload. so how can I do that ?

    


      

    • Error
    • 


    


    FileNotFoundError: [WinError 2] The system cannot find the file specified


    


      

    • Code
    • 


    


    import os
import subprocess
import ffmpeg

MEDIA_MAX_UPLOAD_SIZE = 5242880 

def check_media_size(media):
    media_size = media.size
    if media_size < MEDIA_MAX_UPLOAD_SIZE:
        return media_size

@api_view(["POST"])
def medias_upload(request):

    if request.method == 'POST':
        received_media=request.FILES.getlist('media')  
        allowed_mime_types = ['image/jpeg','image/png','image/gif','image/jpg','video/mp4','video/mkv','video/mov','video/avi']
        
        upload_data = []
        if received_media:
            for media in received_media:
                received_media_mime_type = mime_type_check(media)
                received_media_size = check_media_size(media)

                if received_media_mime_type in allowed_mime_types and received_media_size:
                    new_uuid = uuid.uuid4()
                    if str(received_media_mime_type).split('/',1)[0] == "image":
                       file_type = str(received_media_mime_type).split('/',1)[1]
                       converted_uuid = subprocess.run(f'ffmpeg -i {media} -acodec {file_type} temp_location/{new_uuid}')
                       upload_data.append(converted_uuid)

                    if str(received_media_mime_type).split('/',1)[0] == "video":
                        file_type = str(received_media_mime_type).split('/',1)[1]
                        converted_uuid = subprocess.run(f'ffmpeg -i {media} -acodec {file_type} temp_location/{new_uuid}')
                        upload_data.append(converted_uuid)

                else:
                    return Response({"response": False, "return_code":"Failed", "result": {}, "message": "Wrong MIME-TYPE or MAXIMUM file size allowed 5MB"},  status=status.HTTP_404_NOT_FOUND)
            return Response({"response": True, "return_code": "success", "result": {"media_uploaded_uuid":upload_data}, "message": success["success"]},  status=status.HTTP_200_OK)
        return Response({"response": False, "return_code":"Failed", "result": {}, "message": "No Data Found"},  status=status.HTTP_404_NOT_FOUND)


    


      

    • Q . Is there any better way to compress video and picture file size ?
    • 


    


  • Evolution #4468 : Unification des CSS pour les boutons et les icônes

    23 septembre 2020

    Alors, même en vidant entièrement le dossier tmp, j’ai :
    Fatal error : Uncaught Error : Call to undefined function ecrire_fichier_calcule_si_modifie() in C :\laragon\www\spip33\plugins-dist\compresseur\inc\compresseur.php:302 Stack trace : #0 C :\laragon\www\spip33\plugins-dist\compresseur\inc\compresseur_concatener.php(81) : compresseur_callback_prepare_css(’prive/themes/sp...’) #1 C :\laragon\www\spip33\plugins-dist\compresseur\inc\compresseur.php(206) : concatener_fichiers(Array, ’css’, Array) #2 C :\laragon\www\spip33\plugins-dist\compresseur\compresseur_fonctions.php(138) : compacte_head_files(’\r\n#3 C :\laragon\www\spip33\ecrire\public\sandbox.php(180) : compacte_head(’\r\npublic (Fermé)" href="https://core.spip.net/issues/4">#4 C :\laragon\www\spip33\ecrire\public\composer.php(243) : sandbox_filtrer_squelette(Array, ’\r\n#5 C :\laragon\www\spip33\ecrire\public\composer.php(93) : eval()’d code(117) : analyse_resultat_skel(’html_f4375c6230...’, Array, ’\r\n#6 C :\laragon\www\spip33\ecrire\public\parametrer.php(128) : html_f43 in C :\laragon\www\spip33\plugins-dist\compresseur\inc\compresseur.php on line 302

  • doc : Remove xhtml validator links.

    31 juillet 2019, par Fabian Greffrath
    doc : Remove xhtml validator links.
    

    Fix "privacy-breach-w3c-valid-html" lintian error.

    Don't ping an external site when loading documentation
    pages since this can be used to track user activity.

    These links are also broken, since they depend on the
    referer header, which browsers no longer send to insecure
    pages for similar privacy reasons. That aspect could be
    addressed by using https urls for the validator site.

    Signed-off-by : Ralph Giles <giles@thaumas.net>

    • [DH] doc/html/changelog.html
    • [DH] doc/html/developers.html
    • [DH] doc/html/documentation.html
    • [DH] doc/html/documentation_bugs.html
    • [DH] doc/html/documentation_example_code.html
    • [DH] doc/html/documentation_format_overview.html
    • [DH] doc/html/documentation_tools.html
    • [DH] doc/html/documentation_tools_flac.html
    • [DH] doc/html/documentation_tools_metaflac.html
    • [DH] doc/html/faq.html
    • [DH] doc/html/features.html
    • [DH] doc/html/format.html
    • [DH] doc/html/id.html
    • [DH] doc/html/index.html
    • [DH] doc/html/license.html
    • [DH] doc/html/ogg_mapping.html