Recherche avancée

Médias (0)

Mot : - Tags -/publication

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (65)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • 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 ;

  • Supporting all media types

    13 avril 2011, par

    Unlike 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 (...)

Sur d’autres sites (12693)

  • How to show Images from a video as preview for playlist

    1er février 2017, par Guruprasad Rao

    You guys Have seen Youtube right. There while you are watching a video, You will also get related videos preview alongwith link. So how we can get it from video itself.. Is it possible to do so.. I am able to get the url from database and display it.. and when the link is clicked it will be played in a jquery player.. So before that a preview of that or you can say playlist of that will be available for user.

    I have updated my code with a link I found.. But still I am not able to get the Image from Video.. Is there anything wrong in my code.. Please correct me if I am wrong..

    Below is my front end code :

    <form runat="server">
       <div runat="server" style="height:100%;width:100%">
           <div>Latest Videos</div>

       </div>

       </form>

    and I am adding all my video links from backend on page load as shown below :

      try
       {
           con.Open();
           com = new SqlCommand("Select videourl, videoname from video order by [vid] desc",con);
           DbDataReader dr = com.ExecuteReader();
           DataTable dt = new DataTable();

           if (dr.HasRows)
           {

               int i = 0;
               dt.Load(dr);
               int rows = dt.Rows.Count;


               for (i = 0; i &lt; rows; i++)
               {
                   HtmlGenericControl d = new HtmlGenericControl("div");
                   HtmlGenericControl s = new HtmlGenericControl("span");
                   string[] link = new string[rows];
                   string[] name = new string[rows];                    

                   d.Attributes.Add("class", "plst");
                   s.Attributes.Add("class", "text");
                   link[i] = dt.Rows[i]["videourl"].ToString();
                   name[i] = dt.Rows[i]["videoname"].ToString();
                   string videothumb = link[i];
                   string svthto="**Path to save Image**";
                   string imgpath=GetVideoThumbnail(videothumb, svthto, 30);

                   sb.Append("<a i="i" href=" + " class=" + ">" + name[i] + "</a>");
                   s.InnerHtml = sb.ToString();
                   d.Controls.Add(s);
                   examples.Controls.Add(d);
                   sb.Clear();


               }
           }


       }
       catch(Exception ex)
       {
           ex.Message.ToString();
       }

    public string GetVideoThumbnail(string path, string saveThumbnailTo, int seconds)
    {
       string parameters = string.Format("-ss {0} -i {1} -f image2 -vframes 1 -y {2}", seconds, path, saveThumbnailTo);
       string pathToConvertor = "C:\\Program Files\\ffmpeg\\ffmpeg.exe";
       var processInfo = new ProcessStartInfo();
       processInfo.FileName = pathToConvertor;
       processInfo.Arguments = parameters;
       processInfo.CreateNoWindow = true;
       processInfo.UseShellExecute = false;

       File.Delete(saveThumbnailTo);

       using (var process = new Process())
       {
           process.StartInfo = processInfo;
           process.Start();
           process.WaitForExit();
       }

       if (File.Exists(saveThumbnailTo))
           return saveThumbnailTo;
       else
           return "File not Found";
    }

    and here is the image of what I am getting until now :
    Sample

    Please note : I am not concentrating on you tube videos. I am questioning regarding the videos which I store in server side folder. So if there is any jquery technique or any sort of technique to do this then please let me know. :)

  • Bug in ffmpeg resampling_audio.c

    31 juillet 2013, par sumodds

    I am trying to compile and run the resampling_audio.c in ffmpeg 1.2. It seems like there is a bug and the code segfaults. I debugged the code and it seems like it is crashing on

    /* convert to destination format */
    ret = swr_convert(swr_ctx, dst_data, dst_nb_samples, (const uint8_t **)src_data, src_nb_samples);
    if (ret &lt; 0) {
       fprintf(stderr, "Error while converting\n");
       goto end;
    }
    dst_bufsize = av_samples_get_buffer_size(&amp;dst_linesize, dst_nb_channels,
                                                ret, dst_sample_fmt, 1);

    The stack trace is

    #0  malloc_consolidate (av=0xb7f6f440) at malloc.c:4251
    #1  malloc_consolidate (av=0xb7f6f440) at malloc.c:4203
    #2  0xb7e4122f in _int_malloc (av=0xb7f6f440, bytes=8248) at malloc.c:3543
    #3  0xb7e42418 in _int_memalign (av=0xb7f6f440, alignment=32, bytes=8192) at malloc.c:4503
    #4  0xb7e446a0 in __GI___libc_memalign (alignment=32, bytes=8192) at malloc.c:3104
    #5  0xb7e45714 in __posix_memalign (memptr=memptr@entry=0xbfffed7c, alignment=alignment@entry=32, size=size@entry=8192) at malloc.c:5049
    #6  0x0805c0d8 in av_malloc (size=8192) at libavutil/mem.c:93
    #7  av_mallocz (size=size@entry=8192) at libavutil/mem.c:207
    #8  0x0804c35a in swri_realloc_audio (a=a@entry=0x807b860, count=2048, count@entry=1024) at libswresample/swresample.c:462
    #9  0x0804cc65 in swr_convert_internal (s=s@entry=0x807a180, out=out@entry=0x807ba28, out_count=out_count@entry=941, in=in@entry=0x807b7c8, in_count=in_count@entry=1024) at libswresample/swresample.c:624
    #10 0x0804da18 in memset (__len=<optimized out="out">, __dest=<optimized out="out">, __ch=<optimized out="out">) at /usr/include/i386-linux-gnu/bits/string3.h:85
    #11 fill_audiodata (out=<optimized out="out">, in_arg=<optimized out="out">) at libswresample/swresample.c:492
    #12 fill_audiodata (in_arg=0x8093360, out=0x807ba28) at libswresample/swresample.c:735
    #13 swr_convert (s=0x807a180, out_arg=0x8093360, out_count=941, in_arg=0x8092300, in_count=1024) at libswresample/swresample.c:773
    #14 0x0804bd5d in main (argc=2, argv=0xbffff2e4) at resampling_audio.c:194
    </optimized></optimized></optimized></optimized></optimized>
  • Revision 00d54aa331 : First pass clean up. One of a series of changes to clean up two pass allocation

    9 mai 2014, par Paul Wilkins

    Changed Paths :
     Modify /vp9/encoder/vp9_firstpass.c



    First pass clean up.

    One of a series of changes to clean up two pass
    allocation as precursor to support for multiple arf
    or boosted frames per GF/ARF group.

    This change pulls out the calculation of the total bits
    allocated to a GF/ARF group into a function, to aid
    readability and reduce the line count for define_gf_group().

    This change should have no material impact on output.

    Change-Id : I716fba08e26f9ddde3257e7d9b188453791883a3