Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (104)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (9668)

  • Extract number of frames without using shell-True

    26 mars 2022, par petrush

    I have the following code that extract number of frames from video :

    


    filename = "test.mp4"
video_path = os.path.join(os.getcwd(), filename)
with open(video_path, "rb") as file:
    cmd = f'ffmpeg -i {video_path} -r 10 -q:v 3 -s 1x1 -f image2 -update 1 - >/dev/null'
    proc = sp.Popen(cmd, stdout=sp.PIPE, stderr=sp.PIPE, shell=True)
    (stdout, stderr) = proc.communicate()

    # i.e: 'frame= 2062 fps=966 q=3.0 Lsize=N/A time=00:10:34.46 bitrate=N/A dup=1049 drop=3563 speed= 297x'
    decoded = stderr.decode('utf-8')
    frame_count_line = decoded.splitlines()[-2]
    m = FRAME_COUNT_REGEX.search(frame_count_line)
    if m:
        print(int(m.groups()[0]))


    


    but because of security reasons I want to remove shell=True parameter.
Unfortunately after that the code above throws :

    


    FileNotFoundError: [Errno 2] No such file or directory


    


    Please help to fix it

    


  • avformat/mov_chan : factorize some layout map search functions

    1er avril 2024, par Marton Balint
    avformat/mov_chan : factorize some layout map search functions
    

    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] libavformat/mov_chan.c
  • oggdec : do not fall back on binary search in the generic code.

    28 juin 2013, par Anton Khirnov
    oggdec : do not fall back on binary search in the generic code.
    

    Binary search is already attempted in the format-specific seek function,
    so the fallback is only reached if binary search failed already.

    • [DBH] libavformat/oggdec.c
    • [DBH] tests/ref/seek/lavf-ogg