
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (46)
-
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (6825)
-
configure : pass windows-path to nvcc whenever cygpath is available
26 février 2019, par Timo Rothenpieler -
AttributeError : 'WindowsPath' object has no attribute 'endswith' with ffmpeg and path
20 janvier 2024, par TijmiI'm trying to cut a video to the length of an mp3 file but every time I run my code I get the following error :


Traceback (most recent call last):
 File "d:\programmeerstuff\python\reddit tts bot\try 1\main.py", line 36, in <module>
 main()
 File "d:\programmeerstuff\python\reddit tts bot\try 1\main.py", line 26, in main
 ev.finalvideo(
 File "d:\programmeerstuff\python\reddit tts bot\try 1\editvideo.py", line 75, in finalvideo
 video.cut_video_to_mp3_length()
 File "d:\programmeerstuff\python\reddit tts bot\try 1\editvideo.py", line 42, in cut_video_to_mp3_length
 background = mpe.VideoFileClip(self.backgroundvid)
 File "d:\programmeerstuff\python\reddit tts bot\try 1\venv\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 88, in __init__
 self.reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt,
 File "d:\programmeerstuff\python\reddit tts bot\try 1\venv\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 35, in __init__
 infos = ffmpeg_parse_infos(filename, print_infos, check_duration,
 File "d:\programmeerstuff\python\reddit tts bot\try 1\venv\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 244, in ffmpeg_parse_infos
 is_GIF = filename.endswith('.gif')
AttributeError: 'WindowsPath' object has no attribute 'endswith'
</module>


I'm using the following code :


class editvideo:
 def __init__(self, audname: str, outname: str, title: str):
 with open("config.toml", "r") as f:
 config = toml.load(f)

 self.background = config["settings"]["background"]
 self.pathbackground = Path("./assets/backgrounds/video/")
 self.backgroundvid = self.pathbackground.joinpath(f"{self.background}")#Path("./assets/backgrounds/video") / f"{self.background}.mp4"
 self.audname = audname
 self.outname = outname
 self.title = title
 self.path = Path(
 f"./assets/temp/{self.title})/"
 )
 self.backgroundvidtot = self.path.joinpath(f"{self.background}")
 self.backgroundvidmp3 = self.path.joinpath("tempbackground")

 def cut_video_to_mp3_length(self) -> None:
 AudioSegment.converter = r"C:\\PATH_Programs\\ffmpeg.exe"
 audio = AudioFileClip(self.audname)
 background = mpe.VideoFileClip(self.backgroundvid)
 print(background.duration)
 print(audio.duration)
 begintime = random.uniform(0, background.duration - audio.duration)
 print(begintime)
 ffmpeg_extract_subclip(
 self.backgroundvid,
 begintime,
 begintime + audio.duration,
 targetname=self.backgroundvidmp3,
 )
 audio.close()



it worked for quite some time but then I got an error with the paths in the
__init__
function which made me add the .joinpath function before that it was

self.backgroundvidtot = Path(f"./assets/temp/{self.title})"/f"{self.background}.mp4")



I always had problems with ffmpeg on my pc so maybe that has to do something with it.


Hopefully someone can help me,

Thanks in advance

-
Revision c129203f7e : Faster vp9_short_fdct8x8. Scalar path is about 1.4x faster (4% overall encoder
27 février 2013, par Christian DuvivierChanged Paths : Modify /vp9/common/vp9_idct.h Modify /vp9/common/vp9_rtcd_defs.sh Modify /vp9/encoder/vp9_dct.c Add /vp9/encoder/x86/vp9_dct_sse2.c Modify /vp9/vp9cx.mk Faster vp9_short_fdct8x8. Scalar path is about 1.4x faster (4% overall encoder speedup). SSE2 path is about 7x faster (13% (...)