
Recherche avancée
Autres articles (86)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
MediaSPIP en mode privé (Intranet)
17 septembre 2013, parÀ partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...)
Sur d’autres sites (14789)
-
When streaming response in Flask file unplayable
21 décembre 2015, par nadermxI currently have a function that runs ffmpeg enconder on a flv stream from youtube.
def console(cmd, add_newlines=False):
p = Popen(cmd, shell=True, stdout=PIPE)
while True:
data = p.stdout.readline()
if add_newlines:
data += str('\n')
yield data
p.poll()
if isinstance(p.returncode, int):
if p.returncode > 0:
# return code was non zero, an error?
print 'error:', p.returncode
breakThis works fine when I run the ffmpeg command and have it output to a file. The file is playable.
mp3 = console('ffmpeg -i "%s" -acodec libmp3lame -ar 44100 -f mp3 test.mp3' % video_url, add_newlines=True)
But when I have ffmpeg output to stdout via
-
instead oftest.mp3
, and stream that response. The file streams fine, is the correct size. But does not play correctly. Sounds chopy, and when I check the properties of the file it doesn’t show the data of it as it does with test.mp3@app.route('/test.mp3')
def generate_large_mp3(path):
mp3 = console('ffmpeg -i "%s" -acodec libmp3lame -ar 44100 -f mp3 -' % video_url, add_newlines=True)
return Response(stream_with_context(mp3), mimetype="audio/mpeg3",
headers={"Content-Disposition":
"attachment;filename=test.mp3"})Is there something I am missing ?
-
How to stop ffmpeg process after it has finished processing in C# ?
7 janvier 2018, par alan samuelI am trying to stop the ffmpeg process once it has finished doing what I want it do, but I am not able to find a way.
Here is what I have done.
//Process for running ffmpeg
Process process = new Process();
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
process.StartInfo.FileName = ffmpegfile;
process.StartInfo.Arguments = commandtorun;
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = true;
process.Start();
process.WaitForExit();
process.Close();The problem is ffmpeg does not tell the process to stop after it has finished executing, so I cant use WaitForExit() call.
What i tried doing is
commandtorun = commandtorun+ " && exit";
to force ffmpeg to close after it finishes executing. Now this works when I try in cmd.
But when I do the same thing in C#, ffmpeg closes down as soon as the command is executed.
Is there any way to force ffmpeg or the process to close after the processing is done ?
-
How to do HTML 5 video with Flash-free fallback for IE 8
10 octobre 2013, par forthrinI need a simple and clean Flash-free, cross-browser solution for embedding video in a Web page. I came up with the solution below, and wish to hear if someone can improve it even further, including :
- Can the
method show a still image while buffering the video ?
- Can someone verify those conditional comments ?
downlevel-hidden
anddownlevel-revealed
got me a bit confused :)
Video converting as follows (using WMV for IE 8, WEBM for Firefox, and H264 for the rest) :
ffmpeg -i video.mov -b 3000k -vcodec wmv2 -acodec wmav2 -ab 320k -g 30 out.wmv
ffmpeg -i video.mov -b 3000k -vcodec libvpx -acodec libvorbis -ab 320k -g 30 out.webmMarkup (using conditional comments to create a fallback to IE 8 users) :
<video controls="true" autoplay="true" poster="video.jpg">
<source src="video.mov" type="video/quicktime"></source>
<source src="video.webm" type="video/webm"></source>
</video> - Can the