
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (97)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (8088)
-
Slightly wrong color in MP4 videos written by PyAV
26 septembre 2024, par Yossi KreininI am writing MP4 video files with the following PyAV-based code (getting input frames represented as numpy arrays - the sort produced by imageio.imread - as input) :


class MP4:
 def __init__(self, fname, width, height, fps):
 self.output = av.open(fname, 'w', format='mp4')
 self.stream = self.output.add_stream('h264', str(fps))
 self.stream.width = width
 self.stream.height = height
 # these 2 lines can be removed and the problem still reproduces:
 self.stream.pix_fmt = 'yuv420p'
 self.stream.options = {'crf': '17'}
 def write_frame(self, pixels):
 frame = av.VideoFrame.from_ndarray(pixels, format='rgb24')
 packet = self.stream.encode(frame)
 self.output.mux(packet)
 def close(self):
 packet = self.stream.encode(None)
 self.output.mux(packet)
 self.output.close()



The colors in the output MP4 video are slightly different (apparently darker) than the colors in the input images :


Screen grab of an image viewer showing an input frame :




Screen grab of VLC playing the output MP4 video :




How can this problem be fixed ? I variously fiddled with the frame.colorspace attribute, stream options and VideoFrame.reformat but it changed nothing ; of course I could have been fiddling incorrectly.


As you can see, the input has simple flat color regions, so I doubt it's any sort of compression artifact, eg YUV420 dropping some of the chroma info or other such.


-
Why i get error when i try to run command play in python script of discord bot
30 mai 2022, par UNDERTAKER 86My code of music discord bot :


import ffmpeg
import asyncio
import discord
from discord.ext import commands
import os
import requests
import random
import json
from replit import db
import youtube_dl
from keep_alive import keep_alive

class music(commands.Cog):
 def __init__(self, client):
 self.client = client

 @commands.command()
 async def join(self, ctx):
 if ctx.author.voice is None:
 await ctx.send(f'{ctx.message.author.mention}, Ты не подключён к голосовому чату!')
 voice_channel = ctx.author.voice.channel
 if ctx.voice_client is None:
 await voice_channel.connect()
 else:
 await ctx.voice_client.move_to(voice_channel)
 
 @commands.command()
 async def leave(self, ctx):
 if ctx.author.voice is None:
 await ctx.send(f'{ctx.message.author.mention}, Ты не подключён к голосовому чату!')
 else:
 await ctx.voice_client.disconnect()
 await ctx.send(f'{ctx.message.author.mention}, Пока!')

 @commands.command()
 async def play(self, ctx, *, url):
 if ctx.author.voice is None:
 await ctx.send(f'{ctx.message.author.mention}, Ты не подключён к голосовому чату!')
 ctx.voice_client.stop()
 ffmpeg_options = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
 YDL_OPTIONS = {'format': 'bestaudio/best', 'noplaylist': 'True', 'simulate': 'True',
 'preferredquality': '32bits', 'preferredcodec': 'wav', 'key': 'FFmpegExtractAudio'}
 vc = ctx.voice_client

 with youtube_dl.YoutubeDL(YDL_OPTIONS) as ydl:
 if 'https://' in url:
 info = ydl.extract_info(url, download=False)
 else:
 info = ydl.extract_info(f'ytsearch:{url}', download=False)['entries'][0]
 url2 = info['formats'][0]['url']
 source = await discord.FFmpegOpusAudio.from_probe(url2, **ffmpeg_options)
 vc.play(source)

 @commands.command()
 async def pause(self, ctx):
 if ctx.author.voice is None:
 await ctx.send(f'{ctx.message.author.mention}, Ты не подключён к голосовому чату!')
 await ctx.voice_client.pause()
 await ctx.send(f'{ctx.message.author.mention}, Пауза')

 @commands.command()
 async def resume(self, ctx):
 if ctx.author.voice is None:
 await ctx.send(f'{ctx.message.author.mention}, Ты не подключён к голосовому чату!')
 await ctx.voice_client.resume()
 await ctx.send(f'{ctx.message.author.mention}, Играет')

# @commands.command()
 # async def stop(self, ctx):
 # await ctx.voice_client.stop()
 # ctx.send(f'{author.mention}, Остановлен')

# @commands.command()
 # async def repeat(self, ctx):
 # await ctx.voice_client.repeat()
 # ctx.send(f'{author.mention}, Повтор')

# @commands.command()
 # async def loop(self, ctx):
 # await ctx.voice_client.loop()
 # ctx.send(f'{author.mention}, Повтор')

keep_alive()
def setup(client):
 client.add_cog(music(client))



But i get error when i write in discord command play :


[youtube] rUd2diUWDyI: Downloading webpage
[youtube] Downloading just video rUd2diUWDyI because of --no-playlist
[youtube] rUd2diUWDyI: Downloading webpage
[youtube] Downloading just video rUd2diUWDyI because of --no-playlist
Ignoring exception in command play:
Traceback (most recent call last):
 File "/home/runner/MBOT/venv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
 ret = await coro(*args, **kwargs)
 File "/home/runner/MBOT/music.py", line 51, in play
 source = await discord.FFmpegOpusAudio.from_probe(url2, **ffmpeg_options)
 File "/home/runner/MBOT/venv/lib/python3.8/site-packages/discord/player.py", line 387, in from_probe
 return cls(source, bitrate=bitrate, codec=codec, **kwargs)
 File "/home/runner/MBOT/venv/lib/python3.8/site-packages/discord/player.py", line 324, in __init__
 super().__init__(source, executable=executable, args=args, **subprocess_kwargs)
 File "/home/runner/MBOT/venv/lib/python3.8/site-packages/discord/player.py", line 138, in __init__
 self._process = self._spawn_process(args, **kwargs)
 File "/home/runner/MBOT/venv/lib/python3.8/site-packages/discord/player.py", line 147, in _spawn_process
 raise ClientException(executable + ' was not found.') from None
discord.errors.ClientException: ffmpeg was not found.



I try install ffmpeg in console python, but this dont helped me. Please, give me answer on my question. I use service replit.com to coding on python. Because i want to install this script on server. How i can solve this problem ?


-
FFMPEG command to mux video stream into HLS fMP4
16 décembre 2020, par LinuxVirginI have been trying to display my IP Cameras output onto a webpage to be viewed on a iThing (ipad or iphone)


Im diplaying the output below in a video tag like below


<video class="video-js vjs-default-skin" width="400" height="300" controls="controls">
 <source type="application/x-mpegURL" src="http://127.0.0.1/wordpress/prog_index.m3u8">
</source></video>



Im using ffmpeg to mux/convert (I may have my terminology wrong) the cameras http stream (not RTSP stream).


Ive tried multiple commands below and some commands work on a PC/Chrome but none of them work on a ipad/safari or chrome.


All the files are being generated in the correct locations on the webserver to allow them to be diplayed


ffmpeg -i http://username:password@192.168.102.92/ISAPI/Streaming/channels/102/httpPreview -force_key_frames "expr:gte(t,n_forced*2)" -sc_threshold 0 -s 640x480 -c:v libx264 -b:v 1536k -c:a copy -hls_time 6 -hls_playlist_type vod -hls_segment_type fmp4 -hls_segment_filename "fileSequence%d.m4s" -hls_wrap 3 prog_index.m3u8



ffmpeg -i http://username:password@192.168.102.92/ISAPI/Streaming/channels/102/httpPreview -force_key_frames "expr:gte(t,n_forced*2)" -sc_threshold 0 -s 640x480 -c:v libx264 -b:v 1536k -c:a copy -hls_time 6 -hls_playlist_type vod -hls_segment_type fmp4 -hls_segment_filename "fileSequence%d.m4s" -hls_list_size 10 prog_index.m3u8



ffmpeg -i http://username:password@192.168.102.92/ISAPI/Streaming/channels/102/httpPreview -force_key_frames "expr:gte(t,n_forced*2)" -sc_threshold 0 -s 640x480 -b:v 1536k -c:a copy -hls_time 6 -hls_segment_type fmp4 -hls_segment_filename "fileSequence%d.m4s" -hls_list_size 10 prog_index.m3u8



ffmpeg -i http://username:password@192.168.102.92/ISAPI/Streaming/channels/102/httpPreview -force_key_frames "expr:gte(t,n_forced*2)" -sc_threshold 0 -s 640x480 -b:v 1536k -c:a copy -hls_time 3 -hls_flags delete_segments -hls_segment_type fmp4 -hls_segment_filename "fileSequence%d.m4s" prog_index.m3u8



Can someone point out where Im going wrong, I think its the FFMPEG cmd ?