
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (62)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (5075)
-
How to get the video count of youtube_dl (1 of 256) in its output and hide ffmpeg console when converting the format ?
28 août 2020, par KristenI am creating a GUI program in Qt creator via Pyside2 and it's a program that lets you download Youtube music. My goal is to get the video count like x of 256 or x of 2 or 1 of 256 when downloading the playlist but I don't know how. I've come across two problems.


First problem : I don't know how to get this information from youtube_dl output


[youtube:playlist] Downloading playlist PLi0XaxnSihZSnD1TNm82Y43o92r6UNEfH - add --no-playlist to just download video -5EmnQp3V48
[youtube:playlist] PLi0XaxnSihZSnD1TNm82Y43o92r6UNEfH: Downloading webpage
[download] Downloading playlist: Dance Central Songs
[youtube:playlist] PLi0XaxnSihZSnD1TNm82Y43o92r6UNEfH: Downloading page #1
[youtube:playlist] PLi0XaxnSihZSnD1TNm82Y43o92r6UNEfH: Downloading page #2
[youtube:playlist] playlist Dance Central Songs: Downloading 251 videos
[download] Downloading video **1 of 251**
[youtube] bESGLojNYSo: Downloading webpage
[download] Destination: Lady Gaga - Poker Face (Official Music Video)-bESGLojNYSo.webm
[download] 100% of 3.50MiB in 00:01 
Finished
[ffmpeg] Destination: Lady Gaga - Poker Face (Official Music Video)-bESGLojNYSo.mp3
Deleting original file Lady Gaga - Poker Face (Official Music Video)-bESGLojNYSo.webm (pass -k to keep)
[download] Downloading video **2 of 251**
[youtube] E2tMV96xULk: Downloading webpage
14:03:36: C:\Python38\python.exe exited with code 0



Second problem : If my program is in .exe format then FFMPEG console appears and disappears immediately after it has completed the conversion but it's taking the user focus every time which gets annoying.


What I've tried for first problem is that I tried to get it manually but it did not work then I checked youtube_dl github download dictionary keys and there is not a key that can acquire that video count 1 of 256


print("Download keys:", download.keys())
Download keys: dict_keys(['status', 'downloaded_bytes', 'total_bytes', 'tmpfilename', 'filename', 'eta', 'speed', 'elapsed', '_eta_str', '_percent_str', '_speed_str', '_total_bytes_str'])



What I've tried for second problem is actually none. I checked C# versions and with C# you can hide that console or disable it but I haven't found a way to do that in Python yet. Goal here is disable ffmpeg console taking either the focus or hide/disable it or third option is to use another converter.


Youtube_dl code that is in Worker thread :


def run(self):
 self.main_window.progressBar.setValue(0)

 self.ydl_opts = {
 'format': 'bestaudio/best',
 'noplaylist': self.main_window.playlist,
 'source_address': '0.0.0.0',
 'ignoreerrors': True,
 'progress_hooks': [self.my_hook],
 'postprocessors': [{
 'key': 'FFmpegExtractAudio',
 'preferredcodec': 'mp3'
 }]
 }

 with youtube_dl.YoutubeDL(self.ydl_opts) as ydl:
 ydl.download([f'{self.main_window.downloadURL.text()}'])

def my_hook(self, download):
 if download["status"] == "finished":
 print("Finished")
 self.main_window.progressText.setText("Ready")
 if download["status"] == "downloading":
 self.updateText.emit("Downloading...")
 percent = download["_percent_str"]
 percent = percent.replace("%", "")
 self.updateProgress.emit(float(percent))



Edit : FFMPEG console appearing and disappearing for a moment is shown in this video here in dropbox :
ffmpeg console appearing and disappearing video


-
avformat/argo_asf : fix enforcement of chunk count
19 septembre 2020, par Zane van Iperen -
ffmpeg add watermark by output part count (watermark1.png for part 1, ...)
12 octobre 2020, par SteapyI have currently following code (not optimized yet !) :


converter.StartInfo.Arguments = @"-i video.mp4 -i watermark.png -filter_complex ""overlay = x = (main_w - overlay_w) / 2:y = (main_h - overlay_h) / 2"" output%03d.mp4";



This renders all my parts with the same "watermark.png" file as a watermark. But now i want to do something like this :


converter.StartInfo.Arguments = @"-i video.mp4 -i watermark%03d.png -filter_complex ""overlay = x = (main_w - overlay_w) / 2:y = (main_h - overlay_h) / 2"" output%03d.mp4";



"output000.mp4" has "watermark000.png" as a watermark,
"output001.mp4" has "watermark001.png" as a watermark,
"output002.mp4" has "watermark002.png" as a watermark, ...


I need it in only one line, as if i would type it in cmd and it should work in c# with UseShellExecute=false.


Any idea ?