Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (65)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (9195)

  • Undefined variable PHP uploader video

    23 avril 2022, par i0x4r

    I have a problem !
I found a code to upload a high quality video on my server

    


    using : ffmpeg, dropzone, php

    


    But it has a big problem !

    


    I want after the video upload to the server is completed, a phrase appears with the file name and path
But it does not do this work, and in the report it appears that Undefined variable
this :

    


    [23-Apr-2022 12:46:46 Asia/Riyadh] PHP Notice:  Undefined variable: location in /home/userme134/public_html/SUP/test8/upload.php on line 21
[23-Apr-2022 12:48:17 Asia/Riyadh] PHP Notice:  Undefined variable: location in /home/userme134/public_html/SUP/test8/upload.php on line 21
[23-Apr-2022 12:51:39 Asia/Riyadh] PHP Notice:  Undefined variable: location in /home/userme134/public_html/SUP/test8/upload.php on line 21
[23-Apr-2022 12:52:12 Asia/Riyadh] PHP Notice:  Undefined variable: location in /home/userme134/public_html/SUP/test8/upload.php on line 21


    


    index.php

    


    &#xA;&#xA; &#xA;  &#xA;  &#xA;  <code class="echappe-js">&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js&quot;&gt;&lt;/script&gt;&#xA;        &lt;script src=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js&quot;&gt;&lt;/script&gt;        &#xA;  &#xA;  &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.5.1/dropzone.js&quot;&gt;&lt;/script&gt;&#xA;  &#xA; &#xA; &#xA;  
    &#xA;
    &#xA;

    Video Uploader

    &#xA;
    &#xA; &#xA;

    &#xA;&#xA;

    &#xA; &#xA; &#xA; &#xA;
    &#xA;
    &#xA;

    &#xA;
    &#xA;
    &#xA;

    &#xA; &#xA;&#xA;&#xA;&lt;script&gt;&amp;#xA;&amp;#xA;$(document).ready(function(){&amp;#xA; &amp;#xA; Dropzone.options.dropzoneFrom = {&amp;#xA;  autoProcessQueue: true,&amp;#xA;  timeout: 300000,&amp;#xA;  acceptedFiles:&quot;video/*&quot;,&amp;#xA;  init: function(){&amp;#xA;&amp;#xA;   this.on(&quot;complete&quot;, function(){&amp;#xA;    if(this.getQueuedFiles().length == 0 &amp;amp;&amp;amp; this.getUploadingFiles().length == 0)&amp;#xA;    {&amp;#xA;     var _this = this;&amp;#xA;     _this.removeAllFiles();&amp;#xA;    }&amp;#xA;    viewResult();&amp;#xA;   });&amp;#xA;  },&amp;#xA; };&amp;#xA;&amp;#xA; function viewResult()&amp;#xA; {&amp;#xA;  $.ajax({&amp;#xA;   url:&quot;upload.php&quot;,&amp;#xA;   success:function(data){&amp;#xA;    $(&quot;#preview&quot;).html(data);&amp;#xA;   }&amp;#xA;  });&amp;#xA; }&amp;#xA;&amp;#xA; $(document).on(&amp;#x27;click&amp;#x27;, &amp;#x27;.remove_image&amp;#x27;, function(){&amp;#xA;  var name = $(this).attr(&amp;#x27;id&amp;#x27;);&amp;#xA;  $.ajax({&amp;#xA;   url:&quot;upload.php&quot;,&amp;#xA;   method:&quot;POST&quot;,&amp;#xA;   data:{name:name},&amp;#xA;   success:function(data)&amp;#xA;   {&amp;#xA;    list_image();&amp;#xA;   }&amp;#xA;  })&amp;#xA; });&amp;#xA; &amp;#xA;});&amp;#xA;&lt;/script&gt;&#xA;

    &#xA;

    upload.php

    &#xA;

    &lt;?php&#xA;&#xA;//upload.php&#xA;&#xA;$folder_name = &#x27;upload/&#x27;;&#xA;&#xA;if(!empty($_FILES))&#xA;{&#xA;&#xA; $temp_file = $_FILES[&#x27;file&#x27;][&#x27;tmp_name&#x27;];&#xA; $location = $folder_name . $_FILES[&#x27;file&#x27;][&#x27;name&#x27;];&#xA; move_uploaded_file($temp_file, $location);&#xA; $upload = $_FILES[&#x27;file&#x27;][&#x27;name&#x27;];&#xA; $uploadStr = str_replace(" ", "\ ",$upload);&#xA; $locationStr = str_replace(" ","\ ",$location);&#xA; $cmd  = "ffmpeg -y -i {$locationStr} -ss 00:00:15 -vframes 1 thumb/{$uploadStr}.png 2>&amp;1";&#xA; echo shell_exec($cmd);&#xA;}&#xA;&#xA;echo "Successfly Uploaded File is : ";&#xA;echo $location;&#xA;&#xA;?>&#xA;

    &#xA;

    enter image description here

    &#xA;

    I hope you can help me because I am tired of many useless attempts.

    &#xA;

  • ffmpeg conversion executable file output ".MOD : no files in such directory"

    11 octobre 2023, par Zezaps

    I installed ffmpeg using Homebrew in macOS 12.2. I have a folder of MOD files from an old camera that I need to convert to MOV or MP4 to edit them, I have a .bat file in my Windows machine that I can run on a folder that has MOD files to batch convert them to MP4 or MOV that I can easily tweak but I'm kinda clueless with how to do this on my new (and first) Mac, I came across this script that I managed to use once through the terminal but tried putting it in a executable file so I can easily run it and copy it in every folder that I need to for new projects. When I created the exec file I'm not sure if I did it correctly though.

    &#xA;

    for i in *.MOD;&#xA;  do name=`echo "$i" | cut -d&#x27;.&#x27; -f1`&#xA;  echo "$name"&#xA;  ffmpeg -i "$i" "${name}.MOV"&#xA;done&#xA;

    &#xA;

    This script is inside an exec file that I edited using TextEdit, it works sometimes if I go to the directory through the terminal and run it but if I run it double clicking it I get a ".MOD : Not such file or directory" even though I placed the exec on a folder that has multiple .MOD files.

    &#xA;

    Here is the full terminal output

    &#xA;

    Last login: Sat Apr 23 20:00:38 on ttys001&#xA;/Users/anwar/Movies/FILMS/ANWAR/BLUE/old/batmodmp4 ; exit;&#xA;anwar@MacBook-Pro-de-Anwar ~ % /Users/anwar/Movies/FILMS/ANWAR/BLUE/old/batmodmp4 ; exit;&#xA;*&#xA;ffmpeg version 5.0 Copyright (c) 2000-2022 the FFmpeg developers&#xA;  built with Apple clang version 13.0.0 (clang-1300.0.29.30)&#xA;  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/5.0 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-neon&#xA;  libavutil      57. 17.100 / 57. 17.100&#xA;  libavcodec     59. 18.100 / 59. 18.100&#xA;  libavformat    59. 16.100 / 59. 16.100&#xA;  libavdevice    59.  4.100 / 59.  4.100&#xA;  libavfilter     8. 24.100 /  8. 24.100&#xA;  libswscale      6.  4.100 /  6.  4.100&#xA;  libswresample   4.  3.100 /  4.  3.100&#xA;  libpostproc    56.  3.100 / 56.  3.100&#xA;*.MOD: No such file or directory&#xA;&#xA;Saving session...&#xA;...copying shared history...&#xA;...saving history...truncating history files...&#xA;...completed.&#xA;

    &#xA;

  • Grabbing a single image from a MS VS .NET 6.0 C# WPF process always returns the same image

    12 mai 2023, par Wolfgang Kurz

    I am trying to develop a MS VS .NET 6.0 C# WPF application to digitize my Super 8 cine films. To grab the frames of the film I want to use FFMPEG because Accord.NET6.0 DirectShow does not work under MS VS 2022 .&#xA;I use&#xA;FFmpeg 64-bit static Windows build from www.gyan.dev&#xA;Version : 2022-09-29-git-8089fe072e-full_build-www.gyan.dev

    &#xA;

    FFMPEG is invoked from a Process in ma application whicch sets the process FFMPEG start parameters. The webcam parameter is "USB Webcam" ( digital Celestron handheld microscope connected via USB - is DirectShow compatible )&#xA;The video resolution parameter "camRes" is "1280x960"

    &#xA;

    public void UpdateImage(string aString)&#xA;    {&#xA;        string startPath = "C:" &#x2B; MainWindow.bSl &#x2B; "ffmpeg" &#x2B; MainWindow.bSl &#x2B; "bin" &#x2B; MainWindow.bSl &#x2B; "ffmpeg.exe ";&#xA;&#xA;        MainWindow.aResult = "";&#xA;        System.Drawing.Bitmap result;&#xA;        ProcessStartInfo psi;&#xA;        psi = new ProcessStartInfo();&#xA;        psi.FileName = startPath;&#xA;        string targPath;&#xA;        psi.Arguments = "-f dshow -video_size" &#x2B; MainWindow.dQuote &#x2B; webCam &#x2B; MainWindow.dQuote &#x2B;&#xA;             " -framerate 10  -i video=" &#x2B; MainWindow.dQuote &#x2B; camRes &#x2B; MainWindow.dQuote &#x2B;&#xA;            " -frames:v 1 test%3d.bmp -update 1";&#xA;        string errors = "";&#xA;        string results = "";&#xA;        psi.CreateNoWindow = false;&#xA;        psi.RedirectStandardOutput = true;&#xA;        psi.RedirectStandardError = true;&#xA;        psi.WindowStyle = ProcessWindowStyle.Normal;&#xA;        psi.WorkingDirectory = "C:" &#x2B; MainWindow.bSl &#x2B; "ffmpeg" &#x2B; MainWindow.bSl &#x2B; "bin" &#x2B; MainWindow.bSl;&#xA;&#xA;        using (Process theProcess = new Process())&#xA;        {&#xA;            theProcess.StartInfo = psi;&#xA;            theProcess.Start();&#xA;&#xA;            theProcess.WaitForExit();&#xA;            while (theProcess.HasExited == false)&#xA;            {&#xA;                Thread.Sleep(50);&#xA;            }&#xA;            Thread.Sleep(50);&#xA;&#xA;            try&#xA;            {&#xA;                if (File.Exists(pathCI) == true)&#xA;                {&#xA;                    DefineImage.ffmpegRes = new Bitmap(pathCI);&#xA;                    MainWindow.actMWInstance.UpdateMessage(DateTime.Now &#x2B;&#xA;                        "- Old image disposed, new image grabbed");&#xA;                    File.Delete(pathCI);&#xA;                }&#xA;            }&#xA;            catch (System.Exception ex)&#xA;            {&#xA;                MainWindow.actMWInstance.UpdateMessage(DateTime.Now &#x2B; "Image grabbing failed");&#xA;            }&#xA;            theProcess.Close();&#xA;            theProcess.Dispose();&#xA;        }&#xA;&#xA;        if (aString.Length == 0)&#xA;        {&#xA;            File.Delete(pathCI);&#xA;            MainWindow.actMWInstance.DoMove("200", "0", true);&#xA;        }&#xA;        if (ffmpegRes != null)&#xA;        {&#xA;            BitmapSource aBMPSrc = BitmapConversion.ToWpfBitmap(ffmpegRes);&#xA;            IMGFrame.Source = aBMPSrc;&#xA;        }&#xA;        Show();&#xA;    }&#xA;

    &#xA;

    The attached screenshot shows the expected GUI content.&#xA;https://www.wkurz.com/wkurz/images/FFMPEGTEST.jpg

    &#xA;

    My problem now is, when I try to refresh the image in the DefineDialog window, I always get the same image although the film has been moved by one frame.

    &#xA;

    Is the first image cached by FFMPEG and always used again with the provided parameters.

    &#xA;

    How to force FFMPEG to replace the image with a new one.

    &#xA;


    &#xA;

    -----------------------------------------------------------------------+this is additional information to the question.&#xA;I have managed to grab the film frame but still get always the same image during a session :*

    &#xA;

    GUI of the WPF C# program

    &#xA;

    It is obvious that the cine film frame has been successfully grabbbed.&#xA;The next step should be to work at the image ( correct brightness contrast, gama and colors) and then store the evaluated correction values that have later to be applied to the frames during a batch process, which automatically transports the film, grabs the frames and corrects the colors and then stores the frames as consecutively numbered images which than can be used to generate a video with FFMPEG :

    &#xA;

    Now the problem I cannot overcome :

    &#xA;

    In the definition dialog there are 2 buttons ( Refresh and New Image). The intension is to reread / regrab a frame, if the current frame is not optimal to evaluate the correction values.

    &#xA;

    Whenever I click one of the buttons FFMPEG seems to grab an image, but FFMPEG provides always the same (identcial to the first already available image) to the caller ( a .NET C# Process in my proggram).

    &#xA;

    The output stream is a single jpg image ( test%04d.jpg ) in a specified target library . Here follows the generated output which seem to be OK according to my knowledge.

    &#xA;

    I want to ask all interested persons to look over this provided information - may be someone has an idea, what causes the fact, that FFMPEG 6.0 van Neumann always delivers the first image grabbed. in a session.&#xA;It seems that there is something cached and reused over and over again.

    &#xA;

    DefImg 147: UpdateImage started ( Lines starting with DefImg or DefineImage are test output statements provided by the C# program)&#xA;

    &#xA;

    DefineImage 155 11.05.2023 17:53:20 C :\ffmpeg\bin\ffmpeg.exe -y -nostdin -f dshow -an -video_size 1280x960 -framerate 10 -i video="USB Microscope" -filter:v "smartblur=luma_radius=0.9:luma_strength=0.7:luma_threshold=0" -frames:v 1 C :\FilmProjList\TEST\TEST%%04d.jpg -update 1&#xA;DefineImage 180 ffmpeg version 6.0-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers&#xA;built with gcc 12.2.0 (Rev10, Built by MSYS2 project)&#xA;configuration : —enable-gpl —enable-version3 —enable-static —disable-w32threads —disable-autodetect —enable-fontconfig —enable-iconv —enable-gnutls —enable-libxml2 —enable-gmp —enable-bzlib —enable-lzma —enable-libsnappy —enable-zlib —enable-librist —enable-libsrt —enable-libssh —enable-libzmq —enable-avisynth —enable-libbluray —enable-libcaca —enable-sdl2 —enable-libaribb24 —enable-libdav1d —enable-libdavs2 —enable-libuavs3d —enable-libzvbi —enable-librav1e —enable-libsvtav1 —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxavs2 —enable-libxvid —enable-libaom —enable-libjxl —enable-libopenjpeg —enable-libvpx —enable-mediafoundation —enable-libass —enable-frei0r —enable-libfreetype —enable-libfribidi —enable-liblensfun —enable-libvidstab —enable-libvmaf —enable-libzimg —enable-amf —enable-cuda-llvm —enable-cuvid —enable-ffnvcodec —enable-nvdec —enable-nvenc —enable-d3d11va —enable-dxva2 —enable-libvpl —enable-libshaderc —enable-vulkan —enable-libplacebo —enable-opencl —enable-libcdio —enable-libgme —enable-libmodplug —enable-libopenmpt —enable-libopencore-amrwb —enable-libmp3lame —enable-libshine —enable-libtheora —enable-libtwolame —enable-libvo-amrwbenc —enable-libilbc —enable-libgsm —enable-libopencore-amrnb —enable-libopus —enable-libspeex —enable-libvorbis —enable-ladspa —enable-libbs2b —enable-libflite —enable-libmysofa —enable-librubberband —enable-libsoxr —enable-chromaprint&#xA;libavutil 58. 2.100 / 58. 2.100&#xA;libavcodec 60. 3.100 / 60. 3.100&#xA;libavformat 60. 3.100 / 60. 3.100&#xA;libavdevice 60. 1.100 / 60. 1.100&#xA;libavfilter 9. 3.100 / 9. 3.100&#xA;libswscale 7. 1.100 / 7. 1.100&#xA;libswresample 4. 10.100 / 4. 10.100&#xA;libpostproc 57. 1.100 / 57. 1.100&#xA;Trailing option(s) found in the command : may be ignored.&#xA;Input #0, dshow, from 'video=USB Microscope' :&#xA;Duration : N/A, start : 5368.514437, bitrate : N/A&#xA;Stream #0:0 : Video : rawvideo (YUY2 / 0x32595559), yuyv422(tv, bt470bg/bt709/unknown), 1280x960, 10 fps, 10 tbr, 10000k tbn&#xA;Stream mapping :&#xA;Stream #0:0 -> #0:0 (rawvideo (native) -> mjpeg (native))&#xA;[swscaler @ 000001442fdcebc0] deprecated pixel format used, make sure you did set range correctly ( that I do not understand )&#xA;Last message repeated 3 times&#xA;[mjpeg @ 00000144278b0d80] removing common factors from framerate&#xA;Output #0, image2, to 'C :\FilmProjList\TEST\TEST%04d.jpg' :&#xA;Metadata :&#xA;encoder : Lavf60.3.100&#xA;Stream #0:0 : Video : mjpeg, yuvj422p(pc, bt470bg/bt709/unknown, progressive), 1280x960, q=2-31, 200 kb/s, 10 fps, 10 tbn&#xA;Metadata :&#xA;encoder : Lavc60.3.100 mjpeg&#xA;Side data :&#xA;cpb : bitrate max/min/avg : 0/0/200000 buffer size : 0 vbv_delay : N/A&#xA;frame= 0 fps=0.0 q=3.6 size= 0kB time=00:00:00.00 bitrate=N/A speed=N/A
    &#xA;frame= 1 fps=0.0 q=3.6 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x
    &#xA;video:45kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : unknown

    &#xA;

    DefineImage 248 11.05.2023 17:53:23 ( test output from, the C# program)&#xA;Das Programm "[11724] Cine2Video.exe" wurde mit Code 0 (0x0) beendet.

    &#xA;

    &#xA;

    &#xA;

    Mit freundlichen Grüßen / Best regards&#xA;Ute & Wolfgang Kurz&#xA;Domaine : https://uwkurz.de ; Homepage : https://www.uwkurz.de/home&#xA;Location : 9° 11' 27,75" East, 48° 43' 32,80" North&#xA;E-Mail : wolfgang@uwkurz.de , ute@uwkurz.de&#xA;Gesendet über Glasfaser von HOMENET.de

    &#xA;

    &#xA;