
Recherche avancée
Autres articles (61)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (9664)
-
Send email once FFMPEG video conversion has completed (php)
14 juin 2012, par DinoI have a basic php script which converts an avi using ffmpeg :
<?php
if (exec("/usr/bin/ffmpeg -i testvideo.avi -sameq -ar 22050 convertvideo.mp4 2> logfile.log")){
echo "Success";
}else{
echo "Error";
}
?>now as an extension to this I would like to use php to check if the file is still being converted if not an email should be sent can anyone advise how I can achieve this ?
Also despite using the code above and the file being converted successfully, the output I always get is "Error", can anyone help with this as well ?
Thanks
-
How to start an FFmpeg process, create a pipe and write data from the parent process ?
3 mai 2021, par xlxsMy code is based on https://stackoverflow.com/a/32279430/5941827.


I run FFmpeg with the following params :


std::stringstream sstm;
sstm << "ffmpeg -loglevel error -y -f rawvideo -vcodec rawvideo -s " << std::to_string(width) << "x" << std::to_string(height) //
 << " -pix_fmt rgb24 -framerate " << std::to_string(fps) << " -i - -c:v libx264 -preset " << getPreset(encodeSpeed) << //
 " -crf " << std::to_string(crf) << " -shortest " << path;



(the variables are initialized in a class constructor correctly)


Then I open the pipe with
pPipe = popen(sstm.str().c_str(), "w")
.The problem is after Ifwrite
to it and callingfclose
, based on the contents I write sometimes less or more bytes reach FFmpeg, and I get

[rawvideo @ 000000000010c3df] Invalid buffer size, packet size 196606 < expected frame_size 196608
Error while decoding stream #0:0: Invalid argument



The saved output video usually has one frame more or less than the expected.
I have checked the array I'm sending trough the pipe with
fwrite
and it's size is correct.
It appears that based on the data I send some bytes don't get there, or more bytes than I send go through the pipe.

I have also tried two different FFmpeg versions, but with the same error message.


-
A very simple lightweight video editor
11 novembre 2011, par algorithmicCoderI want to make an editor that does the following :
1) takes an mp3 audio file
2) Takes a picture —a jpg file
3) Outputs a simple video format e.g. .mov which consists of the jpg file with the mp3 file in the background
4) Does NOTHING else
I want to use this as a project to learn just the basics of all this stuff however I do not want to code basic things by hand. Where do I start and what key steps do I take to accomplish this ?
I am decent with PHP and Java and do not mind learning Python for this. I actually would ideally want to write this in Python to gain experience.
Thanks !