
Advanced search
Other articles (31)
-
Creating farms of unique websites
13 April 2011, byMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things): implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 September 2013, byCertains 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;
-
Les autorisations surchargées par les plugins
27 April 2010, byMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
On other websites (5660)
-
RTMP stream monitoring in python
18 March 2015, by lasgunI don’t have experience with python, but I found this online:
https://gist.github.com/sinkers/d647a80fdb180b4cc3a6
Assuming it works with the current version of ffmpeg (ffprobe), I tried to just modify the code a bit, so it doesn’t log in to Amazon SNS to send a message. Just simply opening an audio file when the stream goes down, with the following command (I found it on this site) would do just fine:os.system("start /sound/xyz.mp3")
I tried to do this-and-that, but I can’t seem to succeed. I have 3.x installed.
I know it’s probably silly, but do I need to enter the relative, or absolute file locations? For ffprobe and the sound file, is it C:\... or what’s the correct format and path?
Any help to solve this would be greatly appreciated.
-
Which release of ffmpeg is used in the book "Understanding FFmpeg with source code: FFMPEG Fundamentals"?
28 September 2021, by user3344036Just bought the book "Understanding FFmpeg with source code: FFMPEG Fundamentals" from Amazon. I have downloaded ffmpeg release 4.4, but the code has been different from that in the book. Just wondering which release the author was using, can anyone help?


-
Passing python's file like object to ffmpeg via subprocess
3 July 2012, by tejinderssI have a django FileField, which i use to store wav files on the Amazon s3 server. I have set up the celery task to read that file and convert it to mp3 and store it to another FileField. Problem i am facing is that i am unable to pass the input file to ffmpeg as the file is not the physical file on the hard disk drive. To circumvent that, i used stdin to feed the input stream of the file with the django's filefield. Here is the example:
output_file = NamedTemporaryFile(suffix='.mp3')
subprocess.call(['ffmpeg', '-y', '-i', '-', output_file.name], stdin=recording_wav)where recording_wav file is: , which is actually stored on the amazon s3 server.
The error for the above subprocess call is:AttributeError: 'cStringIO.StringO' object has no attribute 'fileno'
How can i do this? Thanks in advance for the help.
Edit:
Full traceback:
[2012-07-03 04:09:50,336: ERROR/MainProcess] Task api.tasks.convert_audio[b7ab4192-2bff-4ea4-9421-b664c8d6ae2e] raised exception: AttributeError("'cStringIO.StringO' object has no attribute 'fileno'",)
Traceback (most recent call last):
File "/home/tejinder/envs/tmai/local/lib/python2.7/site-packages/celery/execute/trace.py", line 181, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/tejinder/projects/tmai/../tmai/apps/api/tasks.py", line 56, in convert_audio
subprocess.Popen(['ffmpeg', '-y', '-i', '-', output_file.name], stdin=recording_wav)
File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
errread, errwrite) = self._get_handles(stdin, stdout, stderr)
File "/usr/lib/python2.7/subprocess.py", line 1043, in _get_handles
p2cread = stdin.fileno()
File "/home/tejinder/envs/tmai/local/lib/python2.7/site-packages/django/core/files/utils.py", line 12, in <lambda>
fileno = property(lambda self: self.file.fileno)
File "/home/tejinder/envs/tmai/local/lib/python2.7/site-packages/django/core/files/utils.py", line 12, in <lambda>
fileno = property(lambda self: self.file.fileno)
AttributeError: 'cStringIO.StringO' object has no attribute 'fileno'
</lambda></lambda>