Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (48)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (9788)

  • Evolution #3770 : Logo des articles sur les listes

    4 mai 2017, par cedric -

    on doit normalement éviter d’utiliser image_recadre dans le back-office, car il dépend de la présence de gd2 qui n’est pas garantie (alors que image_reduire ou passe_partout fonctionnent avec n’importe quelle lib graphique).
    Mais on peut tricher avec un passe_partout + utilisation en background ou overflow:hidden

  • bash : receive single frames from ffmpeg pipe

    30 août 2014, par manu

    I’m trying to achieve single-frame handling in a pipe where the the j2c encoder "kdu_compress" (Kakadu) only accepts single files. To save harddrive space. I didn’t manage to pipe frames directly, so I’m trying to handle them via a bash script, by creating each picture, process it, and overwrite it with the next.

    Here is my approach. Thanks for your advice, I really want to climb this mountain, though I’m a bit fresh here thanks.


    Is it possible to pipe an ffmpeg output to a bash script and save the individual frame,
    do further commands with the file before the next frame is handled ?

    Best result so far is, that ALL frames are added into the intermediate file, without recognizing the end of a frame.

    I used this ffmpeg setting to pipe, example with .ppm :

    ffmpeg -y  -i "/path/to/source.mov" -an -c:v ppm -updatefirst 1 -f image2 - \
    | /path/to/receiver.sh

    and this script as a receiver.sh

    #!/bin/bash  

    while read a;
    do
       cat /dev/null > "/path/to/tempfile.ppm"; #to empty the file first
       cat $a >> "/path/to/tempfile.ppm";        #to fill one picture

       kdu_compress -i /path/to/tempfile.ppm -otherparams   #to process this intermediate

    done
    exit;

    Thank you very much.

  • Index error with MoviePy and OSError : MoviePy error : failed to read the duration of file

    24 août 2022, par Alejandro

    I made a small script to concatenate some clips. The names of the clips are stored in another text file that is read from.

    


    I get the error first that

    


    in ffmpeg_parse_infos
line = [l for l in lines if keyword in l][index]
IndexError: list index out of range


    


    then during that exception above, another occurs below

    


    Traceback (most recent call last):&#xA;  File "e:\Projects\TwitchMontage\VideoCompilation\src\create_video.py", line 32, in <module>&#xA;    clips = create_clips_from_list(list)&#xA;  File "e:\Projects\TwitchMontage\VideoCompilation\src\create_video.py", line 20, in create_clips_from_list&#xA;    clip = VideoFileClip(str(video_file_path))&#xA;  File "C:\Users\Alejandro\AppData\Local\Programs\Python\Python38\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 88, in __init__&#xA;    self.reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt,&#xA;  File "C:\Users\Alejandro\AppData\Local\Programs\Python\Python38\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 35, in __init__&#xA;    infos = ffmpeg_parse_infos(filename, print_infos, check_duration,&#xA;  File "C:\Users\Alejandro\AppData\Local\Programs\Python\Python38\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 289, in ffmpeg_parse_infos&#xA;    raise IOError(("MoviePy error: failed to read the duration of file %s.\n"&#xA;OSError: MoviePy error: failed to read the duration of file E:\Projects\TwitchMontage\VideoCompilation\VideoFiles\raw_clips\clip0.mp4&#xA;</module>

    &#xA;

    I suspect something is wrong with FFMPEG but I have no idea what to change to fix this. Is there any manipulation I can make to FFMPEG or the videos themselves to make them work with moviepy ?

    &#xA;

    Code is below :

    &#xA;

    import os&#xA;from moviepy.editor import VideoFileClip, concatenate_videoclips&#xA;&#xA;PATH_TO_VALID_CLIPS = &#x27;VideoCompilation/ClipData/valid_clips.txt&#x27;&#xA;PATH_TO_RAW_CLIPS = &#x27;E:\Projects\TwitchMontage\VideoCompilation\VideoFiles\\raw_clips&#x27;&#xA;os.environ[&#x27;IMAGEIO_FFMPEG_EXE&#x27;] = &#x27;ffmpeg&#x27;&#xA;&#xA;def read_valid_clips_list():&#xA;    #read valid clips&#xA;    file = open(PATH_TO_VALID_CLIPS, &#x27;r&#x27;)&#xA;    list = file.readlines()&#xA;    return list&#xA;&#xA;def create_clips_from_list(list):&#xA;    clips = []&#xA;    for i, filename in enumerate(list):&#xA;        print(str(i) &#x2B; &#x27;\n&#x27;)&#xA;        video_file_path = os.path.abspath(os.path.join(PATH_TO_RAW_CLIPS, filename))&#xA;        print(video_file_path &#x2B; &#x27;\n&#x27;)&#xA;        clip = VideoFileClip(str(video_file_path))&#xA;        clips.append(clip)&#xA;&#xA;    return clips&#xA;&#xA;def create_draft(clips):&#xA;    draft = concatenate_videoclips(clips)&#xA;    draft.write_videofile("VideoCompilation/VideoFiles/videos/draft.mp4")&#xA;    return draft&#xA;&#xA;list = read_valid_clips_list()&#xA;clips = create_clips_from_list(list)&#xA;draft = create_draft(clips)&#xA;

    &#xA;

    EDIT :

    &#xA;

    I discovered something strange. When I manually create the combined video, there are no errors but the video created is corrupted and unplayable.

    &#xA;

    sample code image

    &#xA;