
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (52)
-
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 (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)
Sur d’autres sites (8980)
-
Writing multithreaded video and audio packets with FFmpeg
27 février 2017, par Robert JonesI couldn’t find any information on the way
av_interleaved_write_frame
deals with video and audio packets.I have multiple audio and video packets coming from 2 threads. Each thread calls a
write_video_frame
orwrite_audio_frame
, locks a mutex, initialize an AVPacket and writes data to an .avi file.Initialization of AVCodecContext and AVFOrmatContext is ok.
— Edit 1 —
Audio and video are coming from an external source (microphone and camera) and are captured as raw data without any compression (even for video).
I use h264 to encode video and no compression for Audio (PCM).Audio captured is : 16bits, 44100khz, stereo
Video captured is 25FPS
Question :
1) Is it a problem if I write multiple video packets at once (let’s say 25 packets/sec) and just one audio packet/sec.
Answer : Apparently not, the function
av_interleaved_write_frame
should be able to manage that kind of data as soon as pts and dts is well managedThis means I call
av_interleaved_write_frame
25 times for video writing and just 1 for audio writing per second. Could this be a problem ? If it is how can I deal with this scenario ?2) How can I manage pts and dts in this case ? It seems to be a problem in my application since I cannot correctly render the .avi file. Can I use real time stamps for both video and audio ?
Answer : The best thing to do here is to use the timestamp given when capturing audio / video as pts and dts for this kind of application. So these are not exactly real time stamps (from wall clock) but media capture timestamps.
Thank you for your precious advices.
-
PHP/FFMPEG - why does my video conversion result in empty file ?
4 novembre 2018, par UtkanosI’m trying to convert a video that lives on my server from a .webm to a .mp4.
shell_exec('ffmpeg -i file.webm output.mp4');
However, this results in an empty mp4 (0 bytes - or, sometimes, and very weirdly, 28 bytes.) The input file exists, and is 45MB.
This answer recommended explicitly copying the input codec, but same result.
shell_exec('ffmpeg -i file.webm -vcodec copy -acodec-copy output.mp4');
What am I doing wrong ?
[ ===== EDIT ===== ]
After trying a few more things, inspired by the comments, I’m still having no joy converting to MP4.
It seems I’m running FFMPEG v.2.8.15. This seems quite a lot lower than the current release of 4 , however I only installed this a week or so ago so I’m not sure why this is the case and I don’t know how to update it (I’m on WHM Cpanel.)
Anyway, my problem is NOT to do with pathing, because the same command works fine if I change .mp4 to .webm - I get a successfully converted .webm file.
But when I run :
$foo = shell_exec('ffmpeg -i file.webm -vcodec copy -acodec copy output3.mp4 -report');
...I get this FFMPEG log output.
I’ve also tried :
shell_exec('ffmpeg -fflags +genpts -i file.webm -r 24 KKK.mp4 -report');
...from this answer, and
shell_exec(’ffmpeg -i file.webm -c:v copy III.mp4’) ;
...from this article.
Both result in the same problem, i.e. an 0-bytes .mp4 file.
-
Images to video in PHP with FFmpeg
14 mars 2013, par Boris KremenovicI got a terrible problem. I've been searching, and google-ing my whole day and can't find the answer to this problem..
I am trying to convert 5 pictures to video using FFmpeg in PHP. I have FFmpeg extension installed in my php.ini.
Trying running this command :
<?php
exec("ffmpeg -r 25 -qscale 2 -i %05d.jpg output.mp4");
?>but it gives me a blank page with no errors or something. Can anybody help me ?