
Recherche avancée
Autres articles (39)
-
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 (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (4590)
-
Download SAMPLE-AES-CTR encrypted m3u8
16 septembre 2022, par KadirI searched but couldn't find a solution How can I download this video ?




#EXTM3U
#EXT-X-VERSION:6
#EXT-X-TARGETDURATION:9
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PROGRAM-DATE-TIME:2019-01-01T00:00:00.000Z
#EXT-X-DATERANGE:ID="pod_0",START-DATE="2019-01-01T00:00:00.000Z",DURATION=3.000000001,X-START-OFFSET="0.0"
#EXT-X-KEY:METHOD=SAMPLE-AES-CTR,KEYFORMAT="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",KEYFORMATVERSIONS="1",URI="data:text/plain;base64,AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEB5U5uPKPk0WpO7hIRwr3JI="
#EXT-X-KEY:METHOD=SAMPLE-AES-CTR,KEYFORMAT="com.microsoft.playready",KEYFORMATVERSIONS="1",URI="data:text/plain;charset=UTF-16;base64,xAEAAAEAAQC6ATwAVwBSAE0ASABFAEEARABFAFIAIAB4AG0AbABuAHMAPQAiAGgAdAB0AHAAOgAvAC8AcwBjAGgAZQBtAGEAcwAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0ALwBEAFIATQAvADIAMAAwADcALwAwADMALwBQAGwAYQB5AFIAZQBhAGQAeQBIAGUAYQBkAGUAcgAiACAAdgBlAHIAcwBpAG8AbgA9ACIANAAuADAALgAwAC4AMAAiAD4APABEAEEAVABBAD4APABQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsARQBZAEwARQBOAD4AMQA2ADwALwBLAEUAWQBMAEUATgA+ADwAQQBMAEcASQBEAD4AQQBFAFMAQwBUAFIAPAAvAEEATABHAEkARAA+ADwALwBQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsASQBEAD4ANAArAFoAVQBIAGoANwBLAEYAawAyAGsANwB1AEUAaABIAEMAdgBjAGsAZwA9AD0APAAvAEsASQBEAD4APAAvAEQAQQBUAEEAPgA8AC8AVwBSAE0ASABFAEEARABFAFIAPgA="
#EXT-X-KEY:METHOD=SAMPLE-AES-CTR,KEYFORMAT="PRMNAGRA",KEYFORMATVERSIONS="1",URI="data:text/plain;base64,eyJrZXktaWQiOiIxZTU0ZTZlMy1jYTNlLTRkMTYtYTRlZS1lMTIxMWMyYmRjOTIiLCJlbWkiOiJjdHIiLCJwcm0iOiJleUpqYjI1MFpXNTBTV1FpT2lKamRISWlMQ0pyWlhsSlpDSTZJakZsTlRSbE5tVXpMV05oTTJVdE5HUXhOaTFoTkdWbExXVXhNakV4WXpKaVpHTTVNaUo5In0="
#EXT-X-MAP:URI="b890e39d-85ff-425b-9a45-c3ca1f3dd423/10c8-BUMPER/02/2400K/map.mp4"
#EXTINF:3.000000001,
b890e39d-85ff-425b-9a45-c3ca1f3dd423/10c8-BUMPER/02/2400K/00/00/00_000.mp4
#EXT-X-DISCONTINUITY
#EXT-X-DATERANGE:ID="pod_1",START-DATE="2019-01-01T00:00:03.000Z",DURATION=2122.000000001,X-START-OFFSET="3.000000001"
#EXT-X-MAP:URI="a04e8798-c29c-4bb2-b6a6-52845167f3a8/3704-MAIN/02/4250K/map.mp4"
#EXTINF:8,
a04e8798-c29c-4bb2-b6a6-52845167f3a8/3704-MAIN/02/2400K/00/00/00_000.mp4
#EXTINF:8,
a04e8798-c29c-4bb2-b6a6-52845167f3a8/3704-MAIN/02/2400K/00/00/08_000.mp4
#EXTINF:8,
a04e8798-c29c-4bb2-b6a6-52845167f3a8/3704-MAIN/02/2400K/00/00/16_000.mp4



-
ydl erroring on download only getting partial download and an error on ydl.download([url])
11 septembre 2022, par newtbootbuilding an audio stream bot command for my custom discord bot but it keep throwing errors on
ydl.download([url])
and only fetches a partial download assuming it disconnects from server before finishing download i'm not sure how to fix this error or if its just a syntax thing

import discord
import aiohttp
import random
import youtube_dl
import os
from discord.ext import commands

@bot.command()
async def play(ctx, url : str):
 song_there = os.path.isfile("song.mp3")
 try:
 if song_there:
 os.remove("song.mp3")
 except PermissionError:
 await ctx.send("wait for current audion to finish or use the 'stop' command")
 return

 voiceChannel = discord.utils.get(ctx.guild.voice_channels, name='moosic')
 voice = discord.utils.get(bot.voice_clients, guild=ctx.guild)
 if voice is None or not voice.is_connected():
 await voiceChannel.connect()
 ydl_opts = {
 'format': 'bestaudio/best',
 'postprocessors': [{
 'key': 'FFmpegExtractAudio',
 'preferredcodec': 'mp3',
 'preferredquality': '192',
 }],
 }
 with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 ydl.download([url])
 for file in os.listdir("./"):
 if file.endswith(".mp3"):
 os.rename(file, "song.mp3")
 voice.play(discord.FFmpegPCMAudio("song.mp3"))



-
Download from YouTube as ".wav" instead of ".webm"
11 août 2022, par Bastian GerjolI am trying to extract an audio from a YouTube Video as an .wav file.
However, the script that I am running keeps giving me .webm files.
The code I am using is the following :


from __future__ import unicode_literals
import youtube_dl

ydl_opts = {
 'format': 'bestaudio/best',
 'postprocessors': [{
 'key': 'FFmpegExtractAudio',
 'preferredcodec': 'wav',
 'preferredquality': '192'
 }],
 'postprocessor_args': [
 '-ar', '16000'
 ],
 'prefer_ffmpeg': True,
 'keepvideo': True
}

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 ydl.download(['https://www.youtube.com/watch?v=2Xq7iJKzhR4'])



Is there a way to change the output and keep the highest possible audio quality ?


I tried setting
prefer_ffmpeg': True
toFalse
&keepvideo': True
toFalse
but that did not change anything.

I would appreciate suggestions and please keep in mind that I never used Python before.