Recherche avancée

Médias (1)

Mot : - Tags -/illustrator

Autres articles (82)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (10810)

  • 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;

  • Merge commit '435cd7bc99671bf561193421a50ac6e9d63c4266'

    28 septembre 2017, par James Almer
    Merge commit '435cd7bc99671bf561193421a50ac6e9d63c4266'
    

    * commit '435cd7bc99671bf561193421a50ac6e9d63c4266' :
    arm : vp9lpf : Use orrs instead of orr+cmp
    arm/aarch64 : vp9lpf : Calculate !hev directly
    aarch64 : vp9itxfm : Optimize 16x16 and 32x32 idct dc by unrolling
    arm : vp9itxfm : Optimize 16x16 and 32x32 idct dc by unrolling
    aarch64 : vp9mc : Calculate less unused data in the 4 pixel wide horizontal filter
    arm : vp9mc : Calculate less unused data in the 4 pixel wide horizontal filter
    aarch64 : vp9mc : Simplify the extmla macro parameters

    This commit is a noop, see
    ac6cb8ae5b1c56c4a3fceb635c60d05e447c4365
    bff07715904cc02f04eb5c5e171b431eb00f0c3b
    045e33ae3fee74e39b1321dddf727eacb1ecf541
    758302e4bc14e93989e7feb1135ec3f807c3310d
    148cc0bb890839bc2a9cda514c5e71acc39eb374
    f0ecbb13cf1cf706a1350dad657219dc7b3c131e
    92ab8374b1051dd632c3ccc326b6cb1d564f293f

    Merged-by : James Almer <jamrial@gmail.com>