
Recherche avancée
Autres articles (111)
-
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (10857)
-
"fmpeg" has no attribute "input"
2 mai 2024, par Robin SinghI had previously built this youtube downloader but when I tested it recently ; it stopped working.


from pytube import YouTube
import ffmpeg
import os

raw = 'C:\ProgramData\ytChache'

path1 = 'C:\ProgramData\ytChache\Video\\'
path2 = 'C:\ProgramData\ytChache\Audio\\'

file_type = "mp4"

if os.path.exists(path1 and path2):
 boo = True
else:
 boo = False

while boo:

 url = str(input("Link : "))
 choice = int(input('Enter 1 for Only Audio and Enter 2 For Both Audio and Video \n: '))

 video = YouTube(url)
 Streams = video.streams

 if choice == 1:
 aud = Streams.filter(only_audio=True).first().download(path2)

 elif choice == 2:
 resol = str(input("Resolution : "))
 vid = Streams.filter(res=resol, file_extension=file_type).first().download(path1)
 aud = Streams.filter(only_audio=True).first().download(path2)

 file = video.title + '.mp4'
 # location = path1
 # location2 = path2
 rem = os.path.join(path1, file)
 rm = os.path.join(path2, file)

 video_stream = ffmpeg.input(path1, video.title + '.mp4')
 audio_stream = ffmpeg.input(path2, video.title + '.mp4')
 ffmpeg.output(audio_stream, video_stream, video.title + '.mp4').run()
 os.remove(rem)
 os.remove(rm)

 else:
 print('Invalid Selection')

if not boo:
 os.mkdir(raw)
 os.mkdir(path1)
 os.mkdir(path2)



so it gives an error saying :


Traceback (most recent call last):
 File "E:\dev files\YouTube Video Downloader\Video Downloader.py", line 39, in <module>
 video_stream = ffmpeg.input(path1 + video.title + '.mp4')
AttributeError: module 'ffmpeg' has no attribute 'input'
</module>


I can't figure out what happened. I think it may have something to do about the versions of ffmpeg or something ??


-
avcodec/hap : add "compressor" option to Hap encoder to disable secondary compression
8 novembre 2016, par Tom Butterworthavcodec/hap : add "compressor" option to Hap encoder to disable secondary compression
The secondary compression in Hap is optional, this change exposes that option to
the user as some use-cases favour higher bitrate files to reduce workload
decoding.
Adds "none" or "snappy" as options for "compressor". Selecting "none" disregards
"chunks" option : chunking is only of benefit decompressing Snappy.Reviewed-by : Martin Vignali <martin.vignali@gmail.com>
Signed-off-by : Tom Butterworth <bangnoise@gmail.com> -
yt_dlp gives a strange message : "Seek to desired resync point failed. Seeking to earliest point available instead." and "File ended prematurely"
16 septembre 2023, par nikita goncharovI have a discord bot (discord.py) in python and it can play music. Lastly it had trouble in playing the music, giving some random warnings but it mostly worked. But now it gives me this message :


[matroska,webm @ 000001570fe92d40] Seek to desired resync point failed. Seeking to earliest point available instead.



[matroska,webm @ 000001570fe92d40] File ended prematurely



and also this one


Warning: program compiled against libxml 211 using older 209



As I saw this is a very common warning but I still have no Idea how to fix it.


I will leave the code of the bot down bellow :


Ytdlp setup (I have renamed the librarie to be youtube_dl)


youtube_dl.utils.bug_reports_message = lambda: ''


ytdl_format_options = {
 'format': 'bestaudio/best',
 'outtmpl': '%(extractor)s-%(id)s-%(title)s.%(ext)s',
 'restrictfilenames': True,
 'noplaylist': True,
 'nocheckcertificate': True,
 'ignoreerrors': False,
 'logtostderr': True,
 'quiet': True,
 'no_warnings': False,
 'default_search': 'auto',
 'source_address': '0.0.0.0', # bind to ipv4 since ipv6 addresses cause issues sometimes
}

ffmpeg_options = {
 'options': '-vn',
}

ytdl = youtube_dl.YoutubeDL(ytdl_format_options)


class YTDLSource(discord.PCMVolumeTransformer):
 def __init__(self, source, *, data, volume=0.5):
 super().__init__(source, volume)

 self.data = data

 self.title = data.get('title')
 self.url = data.get('url')
 self.duration = data.get('duration')
 img = ""
 imgs = ['']
 for image in data.get("thumbnails"):
 img = image["url"]
 imgs.append(image["url"])
 self.image = img
 self.thumbnails = imgs



The play command :


# if message.author.voice_client is not None:
try:
 print(1)
 sessionChannel = message.author.voice.channel
except:
 embedAns = discord.Embed(color=discord.Color.from_rgb(255, 201, 115))
 # embedImg.set_image(url=player.image)
 # embedImg.type = "image"
 embedAns.add_field(name="Player", value=f'To play audio you must join a voice channel!',
 inline=True)
 embedAns.add_field(name="", value=f'*{message.author.name}*', inline=False)
 # embedImg.image.width = "800"
 await message.channel.send(embed=embedAns)
try:
 print(2)
 await message.author.voice.channel.connect(reconnect=False)
 print(2)
except:
 pass
"""embedAns = discord.Embed(color=discord.Color.from_rgb(102, 196, 250))
# embedImg.set_image(url=player.image)
# embedImg.type = "image"
embedAns.add_field(name="Player", value=f'Succesfuly joined voice channel to play music in {sessionChannel}! Loading in youtube song... Please wait...', inline=True)
embedAns.add_field(name="", value=f'*{message.author.name}*', inline=False)
# embedImg.image.width = "800"
await message.channel.send(embed=embedAns)"""
try:
 print(3)
 load = await message.channel.send(
 f'Succesfuly joined voice channel to play music in {sessionChannel}')
 print(4)
 url = matched.group(1)
 player = await YTDLSource.from_url(url, loop=client.loop, stream=True)
 # Embed = await YTDLSource.from_url(url, loop=client.loop, stream=False)
 sessionChannel.guild.voice_client.play(player, after=lambda e: print(
 f'Player error: {e}') if e else None)
 await load.delete()
 sec = player.duration % 60
 temp = player.duration // 60
 min = temp % 60
 hour = temp // 60
 if hour == 0:
 timeStr = f"{min:02d}:{sec:02d}"
 else:
 timeStr = f"{hour}:{min:02d}:{sec:02d}"
 # await message.reply()
 embedImg = discord.Embed(color=discord.Color.from_rgb(102, 196, 250))
 # embedImg.set_image(url=player.image)
 # embedImg.type = "image"
 embedImg.set_thumbnail(url=player.image)
 embedImg.add_field(name="Player", value=f'Now playing: **{player.title}** \n `{timeStr}`',
 inline=True)
 embedImg.add_field(name="", value=f'Requested by: {message.author.name}', inline=False)
 # embedImg.image.width = "800"
 await message.channel.send(embed=embedImg)
except Exception as ex:
 embedAns = discord.Embed(color=discord.Color.from_rgb(255, 119, 115))
 # embedImg.set_image(url=player.image)
 # embedImg.type = "image"
 # embedImg.set_thumbnail(url=player.image)
 embedAns.add_field(name="Player Error",
 value=f'Couldent play audio on {sessionChannel} \n`{ex}`', inline=True)
 embedAns.add_field(name="", value=f'Requested by: {message.author.name}', inline=False)