
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (82)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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, parPré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 2011MediaSPIP 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 manuI’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.shand 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 AlejandroI 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):
 File "e:\Projects\TwitchMontage\VideoCompilation\src\create_video.py", line 32, in <module>
 clips = create_clips_from_list(list)
 File "e:\Projects\TwitchMontage\VideoCompilation\src\create_video.py", line 20, in create_clips_from_list
 clip = VideoFileClip(str(video_file_path))
 File "C:\Users\Alejandro\AppData\Local\Programs\Python\Python38\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 88, in __init__
 self.reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt,
 File "C:\Users\Alejandro\AppData\Local\Programs\Python\Python38\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 35, in __init__
 infos = ffmpeg_parse_infos(filename, print_infos, check_duration,
 File "C:\Users\Alejandro\AppData\Local\Programs\Python\Python38\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 289, in ffmpeg_parse_infos
 raise IOError(("MoviePy error: failed to read the duration of file %s.\n"
OSError: MoviePy error: failed to read the duration of file E:\Projects\TwitchMontage\VideoCompilation\VideoFiles\raw_clips\clip0.mp4
</module>


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 ?


Code is below :


import os
from moviepy.editor import VideoFileClip, concatenate_videoclips

PATH_TO_VALID_CLIPS = 'VideoCompilation/ClipData/valid_clips.txt'
PATH_TO_RAW_CLIPS = 'E:\Projects\TwitchMontage\VideoCompilation\VideoFiles\\raw_clips'
os.environ['IMAGEIO_FFMPEG_EXE'] = 'ffmpeg'

def read_valid_clips_list():
 #read valid clips
 file = open(PATH_TO_VALID_CLIPS, 'r')
 list = file.readlines()
 return list

def create_clips_from_list(list):
 clips = []
 for i, filename in enumerate(list):
 print(str(i) + '\n')
 video_file_path = os.path.abspath(os.path.join(PATH_TO_RAW_CLIPS, filename))
 print(video_file_path + '\n')
 clip = VideoFileClip(str(video_file_path))
 clips.append(clip)

 return clips

def create_draft(clips):
 draft = concatenate_videoclips(clips)
 draft.write_videofile("VideoCompilation/VideoFiles/videos/draft.mp4")
 return draft

list = read_valid_clips_list()
clips = create_clips_from_list(list)
draft = create_draft(clips)



EDIT :


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




-
Merge commit '435cd7bc99671bf561193421a50ac6e9d63c4266'
28 septembre 2017, par James AlmerMerge 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 parametersThis commit is a noop, see
ac6cb8ae5b1c56c4a3fceb635c60d05e447c4365
bff07715904cc02f04eb5c5e171b431eb00f0c3b
045e33ae3fee74e39b1321dddf727eacb1ecf541
758302e4bc14e93989e7feb1135ec3f807c3310d
148cc0bb890839bc2a9cda514c5e71acc39eb374
f0ecbb13cf1cf706a1350dad657219dc7b3c131e
92ab8374b1051dd632c3ccc326b6cb1d564f293fMerged-by : James Almer <jamrial@gmail.com>