Recherche avancée

Médias (91)

Autres articles (106)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (10507)

  • ffmpeg dont work in php shell_exec("ffmpeg -i $movie $pic &")

    26 septembre 2016, par josef

    I’m running the following script without any problems :

    <?php
    echo $video  = dirname(__FILE__)."\\MOVIES\\1.mp4";
    echo "<br />";
    echo $pic  = dirname(__FILE__)."\\PICTURES\\1.jpg";
    echo shell_exec("ffmpeg -i  $video  $pic &amp;");

    But when I run this one i get nothing :

    echo shell_exec("ffmpeg -i  C:\xampp\htdocs\Video-share-script\MOVIES\1.mp4  C:\xampp\htdocs\Video-share-script\PICTURES\1.jpg &amp;");

    the value of $video is C :\xampp\htdocs\Video-share-script\MOVIES\1.mp4
    and $pic is C :\xampp\htdocs\Video-share-script\PICTURES\1.jpg
    thank you

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

  • Google Analytics 4 (GA4) vs Universal Analytics (UA)

    24 janvier 2022, par Erin — Analytics Tips

    March 2022 Update : It’s official ! Google announced that Universal Analytics will no longer process any new data as of 1 July 2023. Google is now pushing Universal Analytics users to switch to the latest version of GA – Google Analytics 4. 

    Currently, Google Analytics 4 is unable to accept historical data from Universal Analytics. Users need to take action before July 2022, to ensure they have 12 months of data built up before the sunset of Universal Analytics

    So how do Universal Analytics and Google Analytics 4 compare ? And what alternative options do you have ? Let’s dive in. 

    In this blog, we’ll cover :

    What is Google Analytics 4 ? 

    In October 2020, Google launched Google Analytics 4, a completely redesigned analytics platform. This follows on from the previous version known as Universal Analytics (or UA).

    Amongst its touted benefits, GA4 promises a completely new way to model data and even the ability to predict future revenue. 

    However, the reception of GA4 has been largely negative. In fact, some users from the digital marketing community have said that GA4 is awful, unusable and so bad it can bring you to tears.

    Gill Andrews via Twitter

    Google Analytics 4 vs Universal Analytics

    There are some pretty big differences between Google Analytics 4 and Universal Analytics but for this blog, we’ll cover the top three.

    1. Redesigned user interface (UI)

    GA4 features a completely redesigned UI to Universal Analytics’ popular interface. This dramatic change has left many users in confusion and fuelled some users to declare that “most of the time you are going round in circles to find what you’re looking for.”

    Google Analytics 4 missing features
    Mike Huggard via Twitter

    2. Event-based tracking

    Google Analytics 4 also brings with it a new data model which is purely event-based. This event-based model moves away from the typical “pageview” metric that underpins Universal Analytics.

    3. Machine learning insights

    Google Analytics 4 promises to “predict the future behavior of your users” with their machine-learning-powered predictive metrics. This feature can “use shared aggregated and anonymous data to improve model quality”. Sounds powerful, right ?

    Unfortunately, it only works if at least 1,000 returning users triggered the relevant predictive condition over a seven-day period. Also, if the model isn’t sustained over a “period of time” then it won’t work. And according to Google, if “the model quality for your property falls below the minimum threshold, then Analytics will stop updating the corresponding predictions”.

    This means GA4’s machine learning insights probably won’t work for the majority of analytics users.

    Ultimately, GA4 is just not ready to replace Google’s Universal Analytics for most users. There are too many missing features.

    What’s missing in Google Analytics 4 ?

    Quite a lot. Even though it offers a completely new approach to analytics, there are a lot of key features and functions missing in GA4.

    Behavior Flow

    The Behavior Flow report in Universal Analytics helps to visualise the path users take from one page or Event to the next. It’s extremely useful when you’re looking for quick and clear insight. But it no longer exists in Google Analytics 4, and instead, two new overcomplicated reports have been introduced to replace it – funnel exploration report and path exploration report.

    The decision to remove this critical report will leave many users feeling disappointed and frustrated. 

    Limitations on custom dimensions

    You can create custom dimensions in Google Analytics 4 to capture advanced information. For example, if a user reads a blog post you can supplement that data with custom dimensions like author name or blog post length. But, you can only use up to 50, and for some that will make functionality like this almost pointless.

    Machine learning (ML) limitations

    Google Analytics 4 promises powerful ML insights to predict the likelihood of users converting based on their behaviors. The problem ? You need 1,000 returning users in one week. For most small-medium businesses this just isn’t possible.

    And if you do get this level of traffic in a week, there’s another hurdle. According to Google, if “the model quality for your property falls below the minimum threshold, then GA will stop updating the corresponding predictions.” To add insult to injury Google suggests that this might make all ML insights unavailable. But they can’t say for certain… 

    Views

    One cornerstone of Universal Analytics is the ability to configure views. Views allow you to set certain analytics environments for testing or cleaning up data by filtering out internal traffic, for example. 

    Views are great for quickly and easily filtering data. Preset views that contain just the information you want to see are the ideal analytics setup for smaller businesses, casual users, and do-it-yourself marketing departments.

    Via Reddit

    There are a few workarounds but they’re “messy [,] annoying and clunky,” says a disenfranchised Redditor.

    Another helpful Reddit user stumbled upon an unhelpful statement from Google. Google says that they “do not offer [the views] feature in Google Analytics 4 but are planning similar functionality in the future.” There’s no specific date yet though.

    Bounce rate

    Those that rely on bounce rate to understand their site’s performance will be disappointed to find out that bounce rate is also not available in GA4. Instead, Google is pushing a new metric known as “Engagement Rate”. With this metric, Google now uses their own formula to establish if a visitor is engaged with a site.

    Lack of integration

    Currently, GA4 isn’t ready to integrate with many core digital marketing tools and doesn’t accept non-Google data imports. This makes it difficult for users to analyse ROI and ROAS for campaigns measured in other tools. 

    Content Grouping

    Yet another key feature that Google has done away with is Content Grouping. However, as with some of the other missing features in GA4, there is a workaround, but it’s not simple for casual users to implement. In order to keep using Content Grouping, you’ll need to create event-scoped custom dimensions.

    Annotations 

    A key feature of Universal Analytics is the ability to add custom Annotations in views. Annotations are useful for marking dates that site changes were made for analysis in the future. However, Google has removed the Annotations feature and offered no alternative or workaround.

    Historical data imports are not available

    The new approach to data modelling in GA4 adds new functionality that UA can’t match. However, it also means that you can’t import historical UA data into GA4. 

    Google’s suggestion for this one ? Keep running UA with GA4 and duplicate events for your GA4 property. Now you will have two different implementations running alongside each other and doing slightly different things. Which doesn’t sound like a particularly streamlined solution, and adds another level of complexity.

    Should you switch to Google Analytics 4 ?

    So the burning question is, should you switch from Universal Analytics to Google Analytics 4 ? It really depends on whether you have the available resources and if you believe this tool is still right for your organisation. At the time of writing, GA4 is not ready for day-to-day use in most organisations.

    If you’re a casual user or someone looking for quick, clear insights then you will likely struggle with the switch to GA4. It appears that the new Google Analytics 4 has been designed for enterprise-scale businesses with large internal teams of analysts.

    Google Analytics 4 UX changes
    Micah Fisher-Kirshner via Twitter

    Unfortunately, for most casual users, business owners and do-it-yourself marketers there are complex workarounds and time-consuming implementations to handle. Ultimately, it’s up to you to decide if the effort to migrate and relearn GA is worth it.

    Right now is the best time to draw the line and make a decision to either switch to GA4 or look for a better alternative to Google Analytics.

    Google Analytics alternative

    Matomo is one of the best Google Analytics alternatives offering an easy to use design with enhanced insights on our Cloud, On-Premise and on Matomo for WordPress solutions. 

    Google Analytics 4 Switch to Matomo
    Mark Samber via Twitter

    Matomo is an open-source analytics solution that provides a comprehensive, user-friendly and compliance-focused alternative to both Google Analytics 4 and Universal Analytics.

    The key benefits of using Matomo include :

    Plus, unlike GA4, Matomo will accept your historical data from UA so you don’t have to start all over again. Check out our 7 step guide to migrating from Google Analytics to find out how.

    Getting started with Matomo is easy. Check out our live demo and start your free 21-day trial. No credit card required.

    In addition to the limitations and complexities of GA4, there are many other significant drawbacks to using Google Analytics.

    Google’s data ethics are a growing concern of many and it is often discussed in the mainstream media. In addition, GA is not GDPR compliant by default and has resulted in 200k+ data protection cases against websites using GA.

    What’s more, the data that Google Analytics actually provides its end-users is extrapolated from samples. GA’s data sampling model means that once you’ve collected a certain amount of data Google Analytics will make educated guesses rather than use up its server space collecting your actual data. 

    The reasons to switch from Google Analytics are rising each day. 

    Wrap up

    The now required update to GA4 will add new layers of complexity, which will leave many casual web analytics users and marketers wondering if there’s a better way. Luckily there is. Get clear insights quickly and easily with Matomo – start your 21-day free trial now.