Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (18)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)

    31 mai 2013, par

    Lorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
    Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
    Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
    Description des scripts
    Trois scripts Munin ont été développés :
    1. mediaspip_medias
    Un script de (...)

Sur d’autres sites (3422)

  • How to run vid.h264 in python 2.7

    22 mars 2017, par sks

    I want to play a video of .h264 format (output of a webcam) using a python script. Here is the code for that :

    import numpy as np
    import cv2

    cap = cv2.VideoCapture('cam1.h264')

    while(True):
       # Capture frame-by-frame
       ret, frame = cap.read()
       print 'p'
       if ret==True:
           print "g"
           # Our operations on the frame come here
           gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)

           # Display the resulting frame
           cv2.imshow('frame', gray)
           if cv2.waitKey(1) & 0xFF == ord('q'):
               break

    # When everything done, release the capture
    cap.release()
    cv2.destroyAllWindows()

    But it only prints p. It never goes inside the loop. Whereas when i play the same video using ffplay (ffmpeg) in command prompt this video runs fine. FFMPEG path is set in windows as well as it is present in the python27 folder.
    What am i doing wrong ?

  • tests/fate/hevc : add a periodic intra refresh decode test

    4 septembre 2024, par Anton Khirnov
    tests/fate/hevc : add a periodic intra refresh decode test
    

    Would trigger #10887 before it was fixed, sample cut from the one
    attached to the bug.

    • [DH] tests/fate/hevc.mak
    • [DH] tests/ref/fate/hevc-pir
  • ffmpeg batch reencode with subfolders

    25 janvier, par Alan

    I am trying to reencode a few hundred videos to X265 but there are many directories that have spaces in the filenames as do some of the files. I have looked at a bunch of scripts and am struggling to find one that works with the spaces and the different directory levels.

    



    This one works, as long as there is no sub directories :

    



    #!/bin/bash
for i in *.avi;
do 
    ffmpeg -i "$i" -c:v libx265 -c:a copy X265_"$i"
done


    



    I have been trying to work with this bash script, but it fails with the whitespaces I am guessing.

    



    #!/bin/bash
inputdir=$PWD
outputdir=$PWD
while IFS= read -r file ; do
  video=`basename "$file"`
  dir=`dirname "$file"`
 ffmpeg -fflags +genpts -i "$file" -c:v libx265 -c:a copy "$dir"/X265_"$video"
done < <(find "$inputdir" -name "*.avi" | head -100)


    



    On this thread it looks like a good solution for windows users, but not linux.
FFMPEG - Batch convert subfolders

    



    FOR /r %%i in (*.mp4) DO ffmpeg32 -i "%%~fi" -map 0:0 -map 0:1 -map 0:1 -c:v copy -c:a:0 aac -b:a 128k -ac 2 -strict -2 -cutoff 15000 -c:a:1 copy "%%~dpni(2)%%~xi"

    



    If you can point me to the right solution that is appropriate for bash, I would appreciate it.