
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (57)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.
Sur d’autres sites (9831)
-
Python - youtube-dl.utils.DownloadError : ERROR : audio conversion failed : file : mp3 invalid argument
6 octobre 2022, par Cristinayoutube-dl.utils.DownloadError: ERROR: audio conversion failed: file: mp3 invalid argument



The above error appears with following parameters, running youtube-dl on Python 3.6 on Windows 7, FFmpeg and libmp3lame installed.



ydl_opts = { 
"format": "bestaudio/best",
"extractaudio": True,
"outtmpl": fetch_name + "%(ext)s",
"noplaylist": True,
"nocheckcertificate": True,
"postprocessors": [{
 "key": "FFmpegExtractAudio",
 "preferredcodec": "mp3",
 "preferredquality": "192",
}],
"progress_hooks": [hook]
}




fetch_name is for example
C:\Path\File
.[hook]
just displays download messages.
I've searched here and on internet but can't find this error.

-
convert youtube video to mp3
31 août 2015, par Try Mersiantoi want to convert video from youtube to mp3 format ,
i have try to get real path and i got url like this (http://r9---sn-npo7en7d.googlevideo.com/videoplayback?mm=31&mn=sn-npo7en7d&ratebypass=yes&mime=video/webm&source=youtube&pl=18&dur=0.000&sver=3&expire=1440995594&mt=1440973944&mv=m&ms=au&sparams=dur,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,ratebypass,source,upn,expire&signature=27B5A991402F61990D7D97C423D167C51B984E11.FA358ECCB3BAC29953749463A37659BB4ADDF4AB&fexp=9405997,9408214,9408511,9408710,9409069,9413318,9415365,9415485,9416023,9416105,9416126,9416524,9417097,9417126,9417707,9418153,9418409,9418448,9418700,9419239,9420020,9420056&ipbits=0&ip=128.199.181.252&key=yt5&lmt=1413466470642964&initcwndbps=15202500&itag=43&id=010d2b7ac9d709c1&upn=ZmvSS1PBRW0&signature=%20%27&title=%27Hardwell-feat-Chris-Jones---Young-Again-Official-Video-HD%27)i tried to convert it with ffmpeg command like ffmpeg -i the-url play.mp3 but it fail,
am i wrong when getting the URL or wrong when using ffmpeg command ?
anyone can help me ? ,
i cant using youtube-dl because i do this for my project
thanks -
Python, Youtube-video-downloader-merger Can i inproove this script run faster ?
31 janvier 2020, par robotiagaI created script which one downloading video and sound from Youtube, and after that merging sound and video with ffmpeg, i wondering is another way to make same result but in faster way ? Because this script takes about 7 min depends on Video quality and duration. My code bellow :
from pytube import YouTube
import sys
import ffmpeg
import os
class Downloader(YouTube):
def __init__(self, link):
self.link = YouTube(link)
self.hq = []
self.best_video = []
self.best_sound = []
def stream_objects(self):
q = [self.hq.append(x) for x in self.link.streams.all()]
self.best_video.append(str(self.hq[1]).split()[1].split('\"')[1])
self.best_sound.append(str(self.hq[-1]).split()[1].split('\"')[1])
return self.best_video, self.best_sound
def downloady(self):
vid = self.link.streams.get_by_itag(str(self.best_video).strip("['']"))
audio = self.link.streams.get_by_itag(str(self.best_sound).strip("['']"))
self.vid_title = (f"{vid.title}"+".mp4")
vid.download(filename='video')
audio.download(filename='audio')
print('Downloaded, Now Starting Merge \n\n\n\n\n')
print(f'{self.vid_title}'+'\n')
def merge(self):
ffmpeg.output(ffmpeg.input('video.mp4'), ffmpeg.input('audio.webm'), self.vid_title).run()
os.remove('video.mp4')
os.remove('audio.webm')
if __name__=='__main__':
a = Downloader(link = sys.argv[1])
a.stream_objects()
a.downloady()
a.merge()OKE UPDATE :
Now code looks like that..Second problem is slow downloading mp4 files from YouTube server, i have 10Gb/s internet. Good connection with YT servers, but why so poor downloading ? ? ? :)from pytube import YouTube
import sys
import ffmpeg
import os
import subprocess
class Downloader(YouTube):
def __init__(self, link):
self.link = YouTube(link)
self.hq = []
def stream_objects(self):
self.best = self.link.streams.filter(file_extension='mp4')
q = [self.hq.append(x) for x in self.best.all()]
self.best_vid_itag = str(self.best.all()[1]).split()[1].split('\"')[1]
self.best_audio_itag = str(self.best.all()[-1]).split()[1].split('\"')[1]
def downloader(self):
vid = self.link.streams.get_by_itag(self.best_vid_itag)
aud = self.link.streams.get_by_itag(self.best_audio_itag)
print('Donwloading Video file...\n')
vid.download(filename='video')
print('Video file downloaded... Now Trying download Audio file..\n')
aud.download(filename='audio')
print('Audio file downloaded... Now Trying to merge audio and video files...\n')
def merger(self):
lin = str(self.link.title).rstrip()
lin2 = (lin+'.mp4')
subprocess.run(f'ffmpeg -i video.mp4 -i audio.mp4 -c copy "{lin2}"', shell=True)
os.remove('video.mp4')
os.remove('audio.mp4')
print('Done....\n')
if __name__=='__main__':
a = Downloader(link = sys.argv[1])
a.stream_objects()
a.downloader()
a.merger()