
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (38)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
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 : (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (7054)
-
How can I download videos from reddit using praw
9 octobre 2023, par rabbibillclintonSo I want to download videos from reddit, I've seen projects on github but I'm very new to python and don't know how it works, if someone could explain I'd appreciate it, I found this project It works but it seperates audio and video and I want it all in one, I think you can combine those using ffmpeg but I don't know how that works either, also how do I configure some of this stuff like where the videos save and quality, here's my code.


from redvid import Downloader
import praw

reddit = praw.Reddit(client_id = "a", client_secret = "b", user_agent = "c")

subreddit = reddit.subreddit("learnpython")
hot = subreddit.hot(limit=5)

downloader = Downloader(max_q=True)

for submission in hot:
 downloader.url = submission.url
 reddit.download()



-
How to use ffmpeg-python library to download a Twitch VOD with a link retrieved using the streamlink library
28 octobre 2020, par Daniel NorfolkThis is the whole code, for easy reference :


import urllib.request
import streamlink
import ffmpeg
stream_url = streamlink.streams("https://www.twitch.tv/videos/783301562")['best'].url
print(stream_url)

try:
 urllib.request.urlretrieve(stream_url, "vod.m3u8")
except Exception as e:
 print(e)

stream = (
 ffmpeg
 .input('vod.m3u8')
 .output('output.mp4')
 .run
)
print(stream)



I am looking at a way of downloading Twitch VODs. I started with the link to a VOD : https://www.twitch.tv/videos/783301562 . I then used the code :


stream_url = streamlink.streams("https://www.twitch.tv/videos/783301562")['best'].url
print(stream_url)



This gave me a new link which, when I go to this link it downloaded a file with a '.m3u8' extension. This link is : https://dqrpb9wgowsf5.cloudfront.net/ab3654a5992fbfa52ccb_briziana_40240109614_1603789265/chunked/index-dvr.m3u8


From here, I first tried to put the link directly into the following code :


stream = (
 ffmpeg
 .input(stream_url)
 .output('output.mp4')
 .run
)
print(stream)



This didn't output any mp4 file but did give the output :




> 



I then added the following code to download the file, I also change the ffmpeg code to use the downloaded file rather then the url :


try:
 urllib.request.urlretrieve(stream_url, "vod.m3u8")
except Exception as e:
 print(e)

stream = (
 ffmpeg
 .input('vod.m3u8')
 .output('output.mp4')
 .run
)
print(stream)



This gave the same result, no mp4 file with the same output as above. Any help would be greatly appreciated !


-
Unable to download a file using youtube_dl
22 octobre 2020, par perkymasterI am trying to play music from a bot using ffmpeg and youtube_dl by making using of discord.py but it seems that I am unable to download the file


Here is my code :


voice = get(client.voice_clients, guild=ctx.guild)

ydl_opts={
 'format': 'bestaudio/best',
 'noplaylist': 'True',
 'postprocessors': [{
 'key': 'FFmpegExtractAudio',
 'preferredcodec':'mp3',
 'preferredquality':'192',
 }],
}

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 print("Downloading audio now \n")
 ydl.download([url])

for file in os.listdir("./"):
 if file.endswith(".mp3"):
 name=file
 print(f"Renamed File: {file}\n")
 os.rename(file, "song.mp3")

voice.play(discord.FFmpegPCMAudio('song.mp3'), after=lambda e: print(f"{name} has finished playing"))
voice.is_playing()
voice.source=discord.PCMVolumeTransformer(voice.source)
voice.source.volume= 0.7

nname = name.rsplit("-", 2)
await ctx.send(f"Playing {nname}")
print("Playing \n")



Nothing seems to happen, the bot is not playing any music.


I am new to this, can anyone help ?