
Recherche avancée
Autres articles (98)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (10854)
-
Passing python's file like object to ffmpeg via subprocess
3 juillet 2012, par 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> -
python multiprocessing and ffmpeg corrupts files
1er juillet 2012, par misterteI'm currently trying to convert several videos to three different outputs, all using ffmpeg : mp4, webm and jpeg. I also need to run this script in different directories and create within the directories webm, mp4 and jpeg subdirectories where the respective converted files are stored.
I am running the following script inside a directory with 8 .mov test files in it. Files work ok as .mov.
(It's a bit long, so here you can view it online)
The script creates all files and directories. I can also note that all Consumer processes take tasks and complete them. The problem is resulting .mp4 and .webm files are corrupted.
Here you can see an example output. It's a bit long, so I think it's best if I point out the part I think is relevant.
...
[h264 @ 0x121815a00]no frame!
Error while decoding stream #0.0
[h264 @ 0x121815a00]AVC: nal size -6554108
[h264 @ 0x121815a00]no frame!
Error while decoding stream #0.0
[h264 @ 0x121815a00]AVC: nal size 391580264
[h264 @ 0x121815a00]no frame!
...This does not happen if I run ffmpeg straight from the console.
ffmpeg -i movie.mov -b 500k -s 640x360 -padtop 60 -padbottom 60 movie_out.webm
I can even run it in parallel shells and the output will not be affected.
Can anyone see what the problem is ?
thnx !
A.
-
ffmpeg memery leak with av_read_frame
31 mai 2016, par LinkI use av_read_frame in two ways below :
1.
for(;;){
if (av_read_frame(pFormatCtx, packet) >= 0){
av_packet_unref(packet);
}
}2.
for(;;){
packet = av_packet_alloc();
if (av_read_frame(pFormatCtx, packet) >= 0){
av_packet_free(&packet);
}
}Noting to do but read file and call free methods with FFMPEG APIs.
Both have a memery leak problem.(1.72GB film file got 300MB memory increment)
Anyone got rosulation ?