Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (48)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (7204)

  • ffmpeg error creating thumbnail different frame rate

    18 décembre 2012, par KJS

    When using this at the command line I get very bad images with only grey or stripes in them.
    It seems "the frame rate differs from container frame rate : 59.94 (60000/1001) -> 29.97 (30000/1001)".

    Is there any way I can fix this in the ffmpeg statement ?

    ffmpeg -ss 00:00:10 -i FILENAME.mp4 -vframes 1 FILENAME.jpg

    This is the output I get :

    FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC --enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
     libavutil     49.15. 0 / 49.15. 0
     libavcodec    52.20. 1 / 52.20. 1
     libavformat   52.31. 0 / 52.31. 0
     libavdevice   52. 1. 0 / 52. 1. 0
     libavfilter    0. 4. 0 /  0. 4. 0
     libswscale     0. 7. 1 /  0. 7. 1
     libpostproc   51. 2. 0 / 51. 2. 0
     built on Jun 13 2010 23:44:18, gcc: 4.1.2 20080704 (Red Hat 4.1.2-48)

    Seems stream 0 codec frame rate differs from container frame rate : 59.94 (60000/1001) -> 29.97 (30000/1001)

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'FILENAME.mp4':
     Duration: 00:03:36.36, start: 0.000000, bitrate: 1305 kb/s
       Stream #0.0(eng): Video: h264, yuv420p, 640x428, 29.97 tbr, 29.97 tbn, 59.94 tbc
       Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16
    Output #0, image2, to 'FILENAME.jpg':
       Stream #0.0(eng): Video: mjpeg, yuvj420p, 640x428, q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
    Stream mapping:
     Stream #0.0 -> #0.0
    Press [q] to stop encoding
    [h264 @ 0x307f6b0]brainfart cropping not supported, this could look slightly wrong ...
    [h264 @ 0x307f6b0]AVC: Consumed only 14978 bytes instead of 14984
    [h264 @ 0x307f6b0]AVC: Consumed only 1147 bytes instead of 1153
    [h264 @ 0x307f6b0]Missing reference picture
    [h264 @ 0x307f6b0]AVC: Consumed only 1947 bytes instead of 1953
    [h264 @ 0x307f6b0]Missing reference picture
    [h264 @ 0x307f6b0]AVC: Consumed only 1870 bytes instead of 1876
    [h264 @ 0x307f6b0]Missing reference picture
       Last message repeated 1 times
    [h264 @ 0x307f6b0]AVC: Consumed only 810 bytes instead of 816
    [h264 @ 0x307f6b0]Missing reference picture
       Last message repeated 1 times
    [h264 @ 0x307f6b0]AVC: Consumed only 955 bytes instead of 961
    [h264 @ 0x307f6b0]Missing reference picture
       Last message repeated 1 times
    [h264 @ 0x307f6b0]AVC: Consumed only 1036 bytes instead of 1042
    [h264 @ 0x307f6b0]Missing reference picture
       Last message repeated 1 times
    [h264 @ 0x307f6b0]AVC: Consumed only 998 bytes instead of 1004
    [h264 @ 0x307f6b0]Missing reference picture
    frame=    1 fps=  0 q=3.3 Lsize=      -0kB time=0.03 bitrate=  -5.3kbits/s
    video:14kB audio:0kB global headers:0kB muxing overhead -100.149568%
  • Extracting JPG Image From MP4 Video

    17 mars 2015, par michael hanon

    I am using the below method to extract an image from a uploaded video and placing the image into a folder.

       private string GeneratePreviewImageMP4(string FileName, HttpPostedFile file, string ProperPath)
    {
       string inputfile = System.IO.Path.Combine(Server.MapPath(ProperPath), file.FileName);
       string ext = System.IO.Path.GetExtension(FileName);
       string thumbpath = AppDomain.CurrentDomain.BaseDirectory + "Reports\\TrainingLibrary\\Videothumbnails\\";
       string thumbname = thumbpath + FileName.Replace(ext, "") + ".jpg";
       string thumbargs = "-i " + inputfile + " -ss 00:00:25.435 -qscale:v 2 -vframes 1 " + thumbname;
       Process thumbproc = new Process();
       thumbproc.StartInfo.FileName = "C:\\FFMPEG\\Bin\\ffmpeg.exe";
       thumbproc.StartInfo.Arguments = thumbargs;
       thumbproc.StartInfo.UseShellExecute = false;
       thumbproc.StartInfo.CreateNoWindow = false;
       thumbproc.StartInfo.RedirectStandardOutput = false;
       try
       {
           thumbproc.Start();
       }
       catch (Exception ex)
       {
           Response.Write(ex.Message);
       }
       thumbproc.WaitForExit();
       thumbproc.Close();

       return FileName.Replace(ext, ".jpg");

    }

    The issue, is that once the image is extracted, I get locked out of the folder. No body has admin rights to that folder. We have to restart the Server just to restore access to that folder.

    This is only at certain times, most of the time it works great, but one out of ten times there will be an issue.

    Anyone now why this is happening ? Does it play the video to extract the image, but does not stop the video ?

  • From time to time ffmpeg makes my computer unable to restart

    6 juin 2022, par principal-ideal-domain

    I'm doing very time consuming ffmpeg video editing. That's why I put my commands into a .bat file and run them over night. Usually that works fine but from time to time when I look at the next moring a see an error message of this kind :

    


    enter image description here

    


    From that state on I didn't find any good way to close the console. When I press the x in the top right corner, it freezes. When I try to kill it using the task manager nothing happens. Even explorer.exe can't be closed using the task manager. A shutdown won't do anything. During the last month I had this problem about three times and the only way I could close it was to long press the power button of the computer until it was turned off this hard way.

    


    Any ideas what to in such situations ? Or even better : Any ideas how to prevent those situations ? What is the reason for the error ? Do you understand the message ? By the way, when the computer is started again then at the next morining and I run the same bat file again everything works fine. So the same error does not repeat and the video is edited nicely.

    


    Edit : Now, about one week after posting this question the problem occurred many more times. It is very annoying. I guess it has to do with the external hard drive connected by USB. Sometimes it randomly interrupts the connection. That might be the reason for the behavior. However that be, I want to learn a solution how to deal with this in future. I don't want to always push the reset button of my computer. I want a proper way to shut it down.