
Recherche avancée
Autres articles (50)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (4922)
-
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


-
Overlay image zoom out and move
5 avril 2021, par Pier Giorgio MisleyI have a video with an image overlay. The picture is set nearly full screen for the first 10 seconds, and aftwerwards I need to zoom out the image to a smaller size and place it in the bottom left corner for the rest of the video.


At the moment I split the input image and overlay it twict to the video, without transitions, one for the "big" picture and one for the "small" picture and it works fine.
What I would like to make is a "zoom out and moove" effect to make it smoother from the big central picture to the small one.


This is my current complex filter :


-i "video.mp4" 
-i "img.jpg" 
-filter_complex "[1:v]split=2[img10][img20];[img10]scale=1469:856[img11];[img20]scale=293:171[img21];[0:v][img11]overlay=(main_w-overlay_w)/2:(main_h - overlay_h)/2:enable='between(t,0,10)',fade=out:st=9:d=1:alpha=1[vid];[vid][img21]overlay=10:(main_h-overlay_h-40):enable='gte(t,10)'" 
-crf 18 -c:a copy "out.mp4"



How can I make it as a single image overlay with zoom out + move effect ?


-
Evolution #4380 (Nouveau) : gif animé searching.gif
16 septembre 2019, par jluc -L’image searching.gif (https://core.spip.net/projects/spip/repository/changes/spip/prive/themes/spip/images/searching.gif , qu’on voit là : http://contrib.spip.net/prive/themes/spip/images/searching.gif ) apparaît notamment sur la barre de titre rose tyrien du message central lors d’une mise à jour de SPIP, et elle est assez moche : mal centrée dans la barre de titre, c’est un peu un pâté de pixel... comme un vieux gif animé.
Peut être y aurait le moyen d’une animation plus moderne, en svg éventuellement ?