
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 (47)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)
Sur d’autres sites (7413)
-
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.


-
FFMPEG - Download video in parts and concat, stutter at concat points
23 juillet 2022, par rnbwSmnMy goal is to download a video (or M3U8) in parts/chunks which I can later concat.


For context, I would like to download videos in an Android Service which may be stopped at any time, so I think chunking is the right approach.


After some time I got the "downloading the parts" right, using this. I would later put that in a function, and for now I chose the chunks to be 30 seconds long.


%offset% = 30 * %part%

ffmpeg -ss %offset% -t 30 -i INPUT_FILE -avoid_negative_ts 1 out%part%.mp4



The first line is just pseudocode, part is starting at 0.
This works fine, downloading 30 second long .mp4 files.


After that I tried merging them together into a single .mp4. For the tests I only downloaded the first few parts.


Concat command :


ffmpeg -safe 0 -f concat -i concat.txt -c copy final.mp4



This would be a very short concat.txt file :


file 'out0.mp4'
file 'out1.mp4'



The concat works but has one problem : At the point where both files are actually combined, so at 30 seconds, there is a small stutter in video and audio.


So what I think is going on is that I download parts that are 30s long, starting at multiples of 30s so there is a small overlap ? In the "Details" part of the Windows file properties it also shows a length of 31 seconds, so the video is even longer than I want.


I tried setting the duration of each part in the concat.txt, both to 30s and to 30s - 1 frame


23.98 fps -> 1/23.98 spf = 0.0417s



But with a duration of 30 as well as 29.9583, although it is better, there is still a small stutter.


file 'out0.mp4'
duration 29.9583
file 'out1.mp4'
duration 29.9583



I also tried with a different fileformat, .ts files, but the stutter was still there. I still think my timings are not quite right, but at this point I don't know where the problem is exactly. What do I need to change to remove the small stutter ?