
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (41)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)
Sur d’autres sites (5326)
-
ffmpeg - transcode stream to play on flowplayer [on hold]
7 janvier 2016, par arlindi have a streaming link and im restreaming it via ffmpeg
-vcodec copy -c:a libmp3lame -ab 48k -ar 22050
so if i play in flowplayer (web PLayer) i just listen audio perfect and video has problems
"so i just see images instand of video" its slow and it blockWhen i play that video on vlc is working perfect and in video codec i see
H264 - MPEG-4 AVC (avc1) MPEG Audyo layer 3 (mp3)
so how to convert this stream so i can watch on web players like flowplayer or jw player
-
Python yt-dlp and ffmpeg error "merging of multiple formats but ffmpeg is not installed"
16 octobre 2024, par T Tea TieI am using the latest version of
yt-dlp
with Python 3.9.

I am trying to download a youtube video in mp4 format with outputname as the
youtubeid.mp4
and with best resolution not more than 4K.

This is my Python code :


ytid = '4cDqaLxrt6Q'
url = 'https://www.youtube.com/watch?v='+ytid
output_filename = ytid+".mp4"
 
with YoutubeDL({'format': 'bestvideo[height<=?4K]+bestaudio/best', 'output': output_filename}) as ydl:
 ydl.download(url)`#TODO debug FFmpeg and check if outputname is ok



I expected to have an
.mp4
file in my current working directory.

Then I installed the latest version of
FFmpeg
fromffmpeg-master-latest-win64-gpl.zip
and putffmpeg.exe
,ffplay.exe
andffprobe.exe
in Scripts python folder (whereyt-dlp.exe
is). I also installedffmpeg
usingpip install
.

The
Traceback
is :



[youtube] Extracting URL : https://www.youtube.com/watch?v=4cDqaLxrt6Q
[youtube] 4cDqaLxrt6Q : Downloading webpage
[youtube] 4cDqaLxrt6Q : Downloading android player API JSON
[youtube] 4cDqaLxrt6Q : Downloading MPD manifest
[youtube] 4cDqaLxrt6Q : Downloading MPD manifest
[info] 4cDqaLxrt6Q : Downloading 1 format(s) : 243+251
ERROR : You have requested merging of multiple formats but ffmpeg is not installed. Aborting due to —abort-on-error
Traceback (most recent call last) :


File "C :\Users\t\OneDrive\Documents\Python Scripts\project\main.py", line 88, in 
ydl.download(url)


File "C :\Users\t\anaconda3\lib\site-packages\yt_dlp\YoutubeDL.py", line 3353, in download
self.__download_wrapper(self.extract_info)(


File "C :\Users\t\anaconda3\lib\site-packages\yt_dlp\YoutubeDL.py", line 3328, in wrapper
res = func(*args, **kwargs)


File "C :\Users\t\anaconda3\lib\site-packages\yt_dlp\YoutubeDL.py", line 1486, in extract_info
return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)


File "C :\Users\t\anaconda3\lib\site-packages\yt_dlp\YoutubeDL.py", line 1497, in wrapper
return func(self, *args, **kwargs)


File "C :\Users\t\anaconda3\lib\site-packages\yt_dlp\YoutubeDL.py", line 1594, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)


File "C :\Users\t\anaconda3\lib\site-packages\yt_dlp\YoutubeDL.py", line 1653, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)


File "C :\Users\t\anaconda3\lib\site-packages\yt_dlp\YoutubeDL.py", line 2767, in process_video_result
self.process_info(new_info)


File "C :\Users\t\anaconda3\lib\site-packages\yt_dlp\YoutubeDL.py", line 3189, in process_info
self.report_error(f'msg. Aborting due to —abort-on-error')


File "C :\Users\t\anaconda3\lib\site-packages\yt_dlp\YoutubeDL.py", line 1007, in report_error
self.trouble(f'self._format_err("ERROR :", self.Styles.ERROR) message', *args, **kwargs)


File "C :\Users\t\anaconda3\lib\site-packages\yt_dlp\YoutubeDL.py", line 947, in trouble
raise DownloadError(message, exc_info)


DownloadError : ERROR : You have requested merging of multiple formats but ffmpeg is not installed. Aborting due to —abort-on-error




-
Learning Shell - creating a script with parameters that runs two separate cli apps
16 mai 2013, par GuilhermeNagatomoI want to learn shell script, so I'm trying to download a youtube video using youtube-dl then convert it to mp3 using ffmpeg.
I do it manually running
youtube-dl http://youtube.com/watch?v=...
then
ffmpeg -i downloadedFile -ab 256000 -ar 44100 audioFile.mp3
.I know that I need to pass two arguments to my script, one for the video url and another for the audio file to keep things as simple as possible, but I don't know how to start. Maybe grep the video id in the url and using it to know which file to use to convert into mp3 ? (since youtube-dl saves the video named by it's id)
Can someone recommend me an article or documentation that can help me ?