
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (48)
-
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. -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
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 : (...)
Sur d’autres sites (3371)
-
Killing python ffmpeg subprocess breaks cli output
27 septembre 2017, par JayLevI’m trying to execute a system command with subprocess and reading the output.
But if the command takes more than 10 seconds I want to kill the subprocess.
I’ve tried doing this in several ways.
My last try was inspired by this post : https://stackoverflow.com/a/3326559/969208
Example :
import os
import signal
from subprocess import Popen, PIPE
class Alarm(Exception):
pass
def alarm_handler(signum, frame):
raise Alarm
def pexec(args):
p = Popen(args, stdout=PIPE, stderr=PIPE)
signal.signal(signal.SIGALRM, alarm_handler)
signal.alarm(10)
stdout = stderr = ''
try:
stdout, stderr = p.communicate()
signal.alarm(0)
except Alarm:
try:
os.kill(p.pid, signal.SIGKILL)
except:
pass
return (stdout, stderr)The problem is : After the program exits no chars are shown in the cli until I hit return. And hitting return will not give me a new line.
I suppose this has something to do with the stdout and stderr pipe.
I’ve tried flushing and reading from the pipe (p.stdout.flush())
I’ve also tried with different Popen args, but might’ve missed something. Just thought I’d keep it simple here.
I’m running this on a Debian server.
Am I missing something here ?
EDIT :
It seems this is only the case when killing an ongoing ffmpeg process. If the ffmpeg process exits normally before 10 seconds, there is no problem at all.
I’ve tried executing a couple of different command that take longer than 10 seconds, one who prints output, one who doesn’t and a ffmpeg command to check the integrity of a file.
args = ['sleep', '12s'] # Works fine
args = ['ls', '-R', '/var'] # Works fine, prints lots for a long time
args = ['ffmpeg', '-v', '1', '-i', 'large_file.mov','-f', 'null', '-'] # Breaks cli outputI believe ffmpeg prints using \r and prints everything on the strerr pipe. Can this be the cause ? Any ideas how to fix it ?
-
Discord Bot Not Playing Audio When Using YouTube-dl and FFmpeg
5 novembre 2020, par John Henry 5I'm trying to get a bot to join a voice chat and then play the audio in a youtube url. This is the code I have :


@client.command() async def play(ctx):
 channel = ctx.message.author.voice.channel
 voice_client = await channel.connect()

 opts = {'format': 'bestaudio'}
 FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
 with youtube_dl.YoutubeDL(opts) as ydl:
 song_info = ydl.extract_info('video', download=False)
 URL = song_info['formats'][0]['url']
 voice_client.play(FFmpegPCMAudio(URL, **FFMPEG_OPTIONS))



No errors are thrown but it just says [youtube] video : Downloading webpage


-
Revision 74593c1eae : Directly split the block in partition search This patch allows the encoder to d
5 août 2014, par Pengchong JinChanged Paths :
Modify /vp9/encoder/vp9_encodeframe.c
Directly split the block in partition searchThis patch allows the encoder to directly split the block
in partition search, therefore skip searching NONE. It
computes a score which measures whether 16x16 motion vectors
from the first pass in the current block are consistent with
each others. If they are inconsistent and we have enough Q
to encode, split the block directly, and skip searching NONE.This feature is under flag CONFIG_FP_MB_STATS. In speed 2,
it further gives a speedup of 3-8% on sample yt clips as
compared to the previous version under the same flag. Overall,
the features under the flag will give 7-15% on typical yt
clips at up to 6000kbps data rate. The speedup at very high
data rate is not significant.For hard stdhd clips :
park_joy_1080p @ 15000kbps : 504541ms -> 506293ms (-0.35%)
pedestrian_area_1080p @ 2000kbps : 326610ms -> 290090ms (+11.2%)The compression performance using the features under the flag :
derf : -0.068%
yt : -0.189%
hd : -0.318%
stdhd :-0.183%To use the feature, set CONFIG_FP_MB_STATS and turn on
cpi->use_fp_mb_stats.Change-Id : Iad58a2966515c8861aa9eb211565b1864048d47f