
Recherche avancée
Autres articles (60)
-
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...) -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
Sur d’autres sites (7560)
-
use ffmpeg.exe in Webservice hosted on Android
24 novembre 2016, par ikazzazI want to use ffmpeg with a Webservice hosted on Android. I include the "ffmpeg.exe" in "myservice.war" package and deploy it on i-jetty server. Problem I get is that "ffmpeg.exe" is not found when calling the service that runs ffmpeg command !!
Any ideas why/how to solve this problem ? Thank you ! -
FFMPEG using wrong arguements when refering to image files
14 août 2013, par Chad MarmonI am creating a bat file that will use FFMPEG to convert Real Media files to .MP4 files. I am looping though the current folder and finding files with the .rm extension adding several pictures to the video files to create a slide show effect in the final product.
With this code here it works except it only shows one static image :
for %%a in ("*.rm") do ffmpeg -f image2 -r 1/5 -i "img00.jpg" -i "%%a" -c:v libx264 -r 30 -preset slow -crf 20 -c:a libvo_aacenc -b:a 48k -b:v 16k "newfiles\%%~na.mp4"
With this code it should show a series of photos. However it does not :
for %%a in ("*.rm") do ffmpeg -f image2 -r 1/5 -i "img%02d.jpg" -i "%%a" -c:v libx264 -r 30 -preset slow -crf 20 -c:a libvo_aacenc -b:a 48k -b:v 16k "newfiles\%%~na.mp4"
I get this error when I run the second piece of code :
Could find no file with with path 'imgC :\Data\RealtoMP\FFMPEG_JPG\ffmpegA48V16_AudOnly' and index in the range 0-4
imgC :\Data\RealtoMP\FFMPEG_JPG\ffmpegA48V16_AudOnly : No such file or directoryIt appears to me that it is somehow instead of getting the range argument like it should, it's injecting the path to the file that I am running. Any ideas of what is causing this ?
EDIT :
I fixed my problem by escaping the
%02
with another %. The result is%%02
for it to act correctly in the script. -
Thread safety of FFmpeg when using av_lockmgr_register
12 août 2013, par StocasticoMy application uses FFmpeg to read video streams. So far, I ensured thread safety by defining my own global lock and looking for all the methods inside FFmpeg libraries which are not thread safe.
This makes the code a bit messy, so while looking for better ideas I found this answer, but apparently I couldn't make use of the suggestions.
I tried testing it in my own environment, but I always get critical heap error. Here's the test codeclass TestReader
{
public:
TestReader( std::string sVid )
{
m_sVid = sVid;
m_cVidPtr.reset( new VideoReader() );
}
~TestReader()
{}
void operator() ()
{
readVideoThread();
}
private:
int readVideoThread()
{
m_cVidPtr->init( m_sVid.c_str() );
MPEGFrame::pointer cFramePtr;
for ( int i=0; i< 500; i++ )
{
cFramePtr = m_cVidPtr->getNextFrame();
}
return 0;
}
boost::shared_ptr<videoreader> m_cVidPtr;
std::string m_sVid;
};
/*****************************************************************************/
int lockMgrCallback(void** cMutex, enum AVLockOp op)
{
if (nullptr == cMutex)
return -1;
switch(op)
{
case AV_LOCK_CREATE:
{
*cMutex = nullptr;
boost::mutex* m = new boost::mutex();
*cMutex = static_cast(m);
break;
}
case AV_LOCK_OBTAIN:
{
boost::mutex* m = static_cast(*cMutex);
m->lock();
break;
}
case AV_LOCK_RELEASE:
{
boost::mutex * m = static_cast(*cMutex);
m->unlock();
break;
}
case AV_LOCK_DESTROY:
{
boost::mutex * m = static_cast(*cMutex);
delete m;
break;
}
default:
break;
}
return 0;
}
int testFFmpegMultiThread( std::string sVideo )
{
if ( ::av_lockmgr_register( &lockMgrCallback ) )
{
std::cout << "Could not initialize lock manager!" << std::endl;
return -1;
}
TestReader c1(sVideo);
TestReader c2(sVideo);
boost::thread t1( c1 );
boost::thread t2( c2 );
t1.join();
t2.join();
return 0;
}
</videoreader>The classes VideoReader and MPEGFrame are just wrappers and have always worked perfectly in single threaded scenarios, or in multi-threaded scenario managed using my own global lock.
Am I missing something obvious ? Can anybody point me to some working code ? Thanks in advance