Recherche avancée

Médias (91)

Autres articles (76)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (5871)

  • aacpsy : use a different metric for the spread of a band

    2 juillet 2015, par Rostislav Pehlivanov
    aacpsy : use a different metric for the spread of a band
    

    This commit modifies 02dbed6 to use band->active_lines to better gauge how much information is contained within a single band and thus allow the perceptual noise subsitution to more accurately determine which bands to code as noise. The spread[w+g] used before this patch behaved more like a low-pass filter for PNS band_types, which could mistakingly mark some low frequency bands as noise.

    Reviewed-by : Claudio Freire <klaussfreire@gmail.com>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/aacpsy.c
  • Force a vbscript to open command prompt in 64bit instead of 32bit

    26 juin 2015, par Arvo Bowen

    I have been trying to get this script to work all day !

    Here are some facts about my situation...

    • I have a program named "ffmpeg.exe" in my "C :\Windows\System32\" folder.
    • I DO NOT have that program in my "C :\Windows\SysWOW64\" folder.

    Currently this is the script I have...

    Option Explicit

    Dim oFSO, oShell, sCommand
    Dim sFilePath, sTempFilePath

    Set oFSO = CreateObject("Scripting.FileSystemObject")

    sFilePath = "C:\test\in_video.mkv"
    sTempFilePath = "C:\test\out_video.mp4"

    sCommand = "%comspec% /k ffmpeg -n -i """ + sFilePath + """ -c:v copy -c:a copy """ + sTempFilePath + """"
    WScript.Echo sCommand
    Set oShell = WScript.CreateObject("WScript.Shell")
    oShell.Run sCommand, 1, True
    Set oShell = Nothing

    Set oFSO = Nothing

    If I run this script manually at a command prompt then it seems to work just fine. But if I let another app run it (for example in this case uTorrent), it runs the script as expected but when it tries to process the oShell.Run command it runs that in a 32bit environment ! Then I get this...
    does_not_exist

    If I try to open up a new command prompt (nothing special) i seems to default to a 64bit environment and then I can type "ffmpeg" and it shows me the help content as expected.

    So for some reason I can’t get the script to run applications (specifically CMD) in the 64bit environment. Anyone know how I can achieve this ?


    Update

    Seems that my script is in fact being ran in 32bit mode ! Even though the script title bar says "C :\Windows\System32\cscript.exe", which is a 64bit environment !!

    I used the following script to determine that it was running in a 32bit environment...

    Dim WshShell
    Dim WshProcEnv
    Dim system_architecture
    Dim process_architecture

    Set WshShell =  CreateObject("WScript.Shell")
    Set WshProcEnv = WshShell.Environment("Process")

    process_architecture= WshProcEnv("PROCESSOR_ARCHITECTURE")

    If process_architecture = "x86" Then    
       system_architecture= WshProcEnv("PROCESSOR_ARCHITEW6432")

       If system_architecture = ""  Then    
           system_architecture = "x86"
       End if    
    Else    
       system_architecture = process_architecture    
    End If

    WScript.Echo "Running as a " &amp; process_architecture &amp; " process on a " _
       &amp; system_architecture &amp; " system."
  • Not able to decode mp4 file using latest ffmpeg library : av_decode_video2

    8 février 2017, par suvirai

    I am writing a wrapper code around latest ffmpeg library. I am supplying MP4 files from local system. My problem is that I am unable to get any decoded frames when I use av_decode_video2(). The return value comes out to be negative. I have used av_read_frame() which returns 0. I googled about the problem I am facing but no where could I find the correct explanation. Please give me insight here. Pasting the pseudo code here.

       av_init_packet(avpkt);
       picture=av_frame_alloc();
       pFrameRGB=av_frame_alloc();
       codec = avcodec_find_decoder(CODEC_ID_H264);
       c= avcodec_alloc_context3(codec)
       avcodec_open2(decoderLibraryData->c, decoderLibraryData->codec, NULL)
       FormatContext = avformat_alloc_context();
       char *pUrl ="./1.MP4";

       iRet = avformat_open_input(atContext, pUrl, pFmt, NULL);

       if(FormatContext == NULL)
       {
           printf("could not assign any memory !!!!!!!!! \n");
       }

       avformat_find_stream_info(FormatContext, NULL);


       while(av_read_frame(FormatContext,avpkt) >= 0)
       {

         len = avcodec_decode_video2(c, picture, &amp;got_picture,avpkt);

         printf("CODEC MANAGER len %d Frame decompressed %d \n",len,got_picture);

         if (len &lt;= 0)
         {
           return ERROR;
         }
       }
    }



           if(lastHeight != 0 &amp;&amp; lastWidth != 0)
           {
               if(lastWidth != c->width || lastHeight != c->height )
               {
                   av_free(buffer);
                   buffer = NULL;
                   lastWidth = c->width;
                   lastHeight = c->height;

               }
           }
           else
           {
               lastWidth = c->width;
               lastHeight = c->height;
           }
           decodeFlag = 1;
           if(!buffer)
           {
               int numBytes;
               v_mutex_lock(globalCodecLock);
               switch(inPixFormat)
               {
               case RGB:


                   // Determine required buffer size and allocate buffer
                   numBytes=avpicture_get_size(PIX_FMT_RGB24, c->width, c->height);

                   buffer=(uint8_t *)av_malloc(numBytes*sizeof(uint8_t));
                   avpicture_fill((AVPicture *)pFrameRGB,buffer,PIX_FMT_RGB24,c->width, c->height);

                   if(cntxt)
                       sws_freeContext(cntxt);

                   cntxt = sws_getContext(c->width, c->height, c->pix_fmt,
                           c->width, c->height, PIX_FMT_RGB24, SWS_BICUBIC, NULL, NULL, NULL);

                   break;

               }
               v_mutex_unlock(globalCodecLock);
               if(cntxt == NULL)
               {
                   printf("sws_getContext error\n");
                   return ERROR;
               }
               }

           {
               sws_scale(cntxt, picture->data, picture->linesize, 0, c->height, pFrameRGB->data, pFrameRGB->linesize);
               if(rgbBuff)
               {


                   if(c->width &lt;= *width &amp;&amp; c->height &lt;= *height)
                   {                  
                       saveFrame(pFrameRGB, c->width, c->height, rgbBuff,inPixFormat);

                       *width = c->width;
                       *height = c->height;
                       rs = SUCCESS;
                       break;
                   }
                   else
                   {
                       rs = VA_LOWBUFFERSIZE;
                   }
               }
               else
               {
                   rs = VA_LOWBUFFERSIZE;
               }
           }
           if(width)
           {
               *width = c->width;
           }
           if(height)
           {
               *height = c->height;
           }
           if(rs == VA_LOWBUFFERSIZE)
           {
               break;
           }

    I am getting the return value of av_read_frame as 0 but av_decode_video2 returns value in negative. I am not able to get any clue here.