
Recherche avancée
Autres articles (62)
-
L’agrémenter visuellement
10 avril 2011MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté. -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)
Sur d’autres sites (11750)
-
Why do I get different codecs on Windows and Linux with same code ?
27 janvier 2016, par user3277340I am using the API version of FFMPEG to generate a MP4 file from a series of images. I specify the output by calling
AVFormatContext *oc = NULL ;
avformat_alloc_output_context2 (&oc,NULL,"mp4",NULL) ;Running the exact same code on Windows and Linux I get different codecs assigned. On Windows, the value of oc->oformat->video_code is AV_CODEC_ID_H264 (28), but on Linux I get AV_CODEC_ID_MPEG4.
I tracked this down because on Windows my calls to avcodec_encode_video2(.,.,.,&got_packet) were always returning got_packet=0 so I never called av_interleaved_write_frame. I added a NULL AVFrame at the end to flush the video. But it was very small and did not contain the images I expected to see there.
But on Linux everything worked just fine. So I went ahead and manually changed the value of oc->oformat->video_code and I got the expected results.
My questions :
1) Why do I get different codec types on different platforms with the same code ? Is there a parameter I need to set to force MPEG4 ?
2) Is it "legal" to change this parameter after the call to avformat_alloc_output_context2 ? My concern is that "oc" has been properly initialized and, with the change, something may be inconsistent.
3) Is there a way to force the MPEG4 codec on any machine ?
Thanks.
-
avdevice/decklink : Add missing libraries when building with DeckLink support on Windows.
18 juillet 2015, par Chris Spencer -
Calling external applications from windows service [duplicate]
3 novembre 2016, par vvjThis question already has an answer here :
I have a windows service as part of my project which has to communicate with external applications to process the files. One of the external application I am using is
FFMPEG.exe
.My problem is when I call FFmpeg or other applications as the new process. After starting the process, it is getting idle. it will neither get execute successfully nor get an exit.
I am facing this problem with multiple external exe’s and it happens only while calling from the windows service. When I tried the same block of code from a windows forms application, it works perfectly. Below is the sample code I used. Could anyone tell me whats wrong with this.?
Process FFMPEGProcess = new Process();
FFMPEGProcess.StartInfo.FileName =@"ffmpeg.exe";
string strArgument = @" -i \\MachineName\video\file.mp4 -y -s 176x132 -r 0.2 \\MachineName\Image\File%4d.jpg";
FFMPEGProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
FFMPEGProcess.StartInfo.CreateNoWindow = true;
FFMPEGProcess.StartInfo.UseShellExecute = true;
FFMPEGProcess.StartInfo.Arguments = strArgument;
FFMPEGProcess.Start();
FFMPEGProcess.WaitForExit();