Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (96)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

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

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (6969)

  • How to get a online video's duration without downloading the full video ?

    8 février 2017, par David Zhuang

    To get a video’s duration and resolution, I’ve got this function :

    def getvideosize(url, verbose=False):
    try:
       if url.startswith('http:') or url.startswith('https:'):
           ffprobe_command = ['ffprobe', '-icy', '0', '-loglevel', 'repeat+warning' if verbose else 'repeat+error', '-print_format', 'json', '-select_streams', 'v', '-show_streams', '-timeout', '60000000', '-user-agent', BILIGRAB_UA, url]
       else:
           ffprobe_command = ['ffprobe', '-loglevel', 'repeat+warning' if verbose else 'repeat+error', '-print_format', 'json', '-select_streams', 'v', '-show_streams', url]
       logcommand(ffprobe_command)
       ffprobe_process = subprocess.Popen(ffprobe_command, stdout=subprocess.PIPE)
       try:
           ffprobe_output = json.loads(ffprobe_process.communicate()[0].decode('utf-8', 'replace'))
       except KeyboardInterrupt:
           logging.warning('Cancelling getting video size, press Ctrl-C again to terminate.')
           ffprobe_process.terminate()
           return 0, 0
       width, height, widthxheight, duration = 0, 0, 0, 0
       for stream in dict.get(ffprobe_output, 'streams') or []:
           if dict.get(stream, 'duration') > duration:
               duration = dict.get(stream, 'duration')
           if dict.get(stream, 'width')*dict.get(stream, 'height') > widthxheight:
               width, height = dict.get(stream, 'width'), dict.get(stream, 'height')
       if duration == 0:
           duration = 1800
       return [[int(width), int(height)], int(float(duration))+1]
    except Exception as e:
       logorraise(e)
       return [[0, 0], 0]

    But some online videos comes without duration tag. Can we do something to get its duration ?

  • Downloading a video with full capacity of my PC with FFMPEG [closed]

    25 juin 2020, par akamai

    I'm trying to download a M3U8 video with FFmpeg.
    
ffmpeg -i "www.example.com/video.mp4" -c copy -bsf:a aac_adtstoasc output.mp4

    


    FFmpeg downloads very slowly compared to a direct download. I'm on a 1 Gigabit network and it take around 1 hour to download the entire video.

    


    I read the documentation and they mentioned about CPU Flag
But I don't know if that will solve my problem.

    


  • CocoaPods could not find compatible versions for pod "mobile-ffmpeg-full" : In Podfile : ?

    17 juillet 2020, par iOS

    enter image description here

    


    I'm getting above error when I try to add ffmpeg framework.

    


    pod 'mobile-ffmpeg-full', ' > 4.3.2'

    


    (OR)

    


    pod 'mobile-ffmpeg-full', '4.3.2'

    


    Frame work Git link : https://github.com/tanersener/mobile-ffmpeg