Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (75)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • 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" (...)

Sur d’autres sites (4497)

  • Unrecognized option 'c copy'

    18 mars 2017, par Eser Comak

    I have been working on a script as a part of both learning process and creating handy tools. I am trying to loop over a list of video files to extract a certain part of each video on the list. By looking at example scripts and ffmpeg documentation I finally came up with this :

    import os
    import sys
    import subprocess as sp

    from moviepy.tools import subprocess_call

    def ffmpeg_extract_pandomim_subclip():

       with open('videolist.txt') as f:
           lines = f.readlines()
       lines = [x.strip() for x in lines]

       for video in lines:
           name, ext = os.path.splitext(video)
           targetname = "%s-pandomim%s" % (name, ext)
           t1 = "00:10:00"
           t2 = "00:15:00"
           cmd = ["ffmpeg",
                  "-i", "%s%s" % (name, ext),
                  "-ss", t1,
                  "-to", t2, "-c copy", targetname]

           subprocess_call(cmd)

    ffmpeg_extract_pandomim_subclip()

    I know this is not the ideal way to do it : I created a videolist.txt and listed all the video file names in that txt file, line by line,(T1-1.mp4, T1-2.mp4,... ) that share the same folder with the python script "new 1.py" and the actual videos which are T1-1.mp4, T1-2.mp4,...

    The error I am getting really confuses me because when I use -c copy from cmd it works just fine.

    The full error is :

    C:\Users\çomak\AppData\Local\Programs\Python\Python35-32\python.exe "C:/ffmpeg/bin/new 1.py"

    [MoviePy] Running:
    >>> ffmpeg -i T1-1.mp4 -ss 00:10:00 -to 00:15:00 -c copy T1-1-pandomim.mp4
    [MoviePy] This command returned an error !Traceback (most recent call last):
     File "C:/ffmpeg/bin/new 1.py", line 28, in <module>
       ffmpeg_extract_pandomim_subclip()
     File "C:/ffmpeg/bin/new 1.py", line 25, in ffmpeg_extract_pandomim_subclip
       subprocess_call(cmd)
     File "C:\Users\çomak\AppData\Local\Programs\Python\Python35-32\lib\site-packages\moviepy\tools.py", line 48, in subprocess_call
       raise IOError(err.decode('utf8'))
    OSError: ffmpeg version N-83975-g6c4665d Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 6.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
     libavutil      55. 48.100 / 55. 48.100
     libavcodec     57. 83.100 / 57. 83.100
     libavformat    57. 66.104 / 57. 66.104
     libavdevice    57.  3.100 / 57.  3.100
     libavfilter     6. 76.100 /  6. 76.100
     libswscale      4.  3.101 /  4.  3.101
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100
    Unrecognized option 'c copy'.
    Error splitting the argument list: Option not found


    Process finished with exit code 1
    </module>

    I am using Pycharm and if I remove the -c copy part it works, but the process is slow... With -c copy, it is much faster.

    I appreciate your time and effort to help me out !

  • ffmpeg and ffprobe Nested DelayedExpansion Variable

    4 février 2021, par hsgg4

    I am trying to get a '# of file processed' within my script but can't get there any only total # 'found' and also disable ffmpeg to just do the same pre-scan as an inventory or check of files with specific codecs.

    &#xA;

    The problem seems to be with the nested Disabled Delayed Expansion, but I've been learning batch for the last 3 months and searching and comparing/testing scripts for weeks each day but I can't seem to break through this.

    &#xA;

    And/or using Dbenham's Return.bat call. But I'm hessitant about return.bat as it seems such a large processing/time overhead to just accumulate a counter.

    &#xA;

    Script does the the following :

    &#xA;

      &#xA;
    1. Commented out : Logging function process which creates a directory a file for each run
    2. &#xA;

    3. Sets destination Root drive & folder : "SET drive=T :\4k.temp"
    4. &#xA;

    5. Sets the \bin directory and initial variables : FilesFound=0
    6. &#xA;

    7. Runs for loop to find all mkv & mp4 files
    8. &#xA;

    9. Inside Loop : Increments variable FilesFound+=1 and sets paths and filename
    10. &#xA;

    11. Nested for loop analyzes each file's properties to match 'codec_name' with the variable set near the top "Codec1=dts". If matched, sets SkipCodec=1&#xA;

      &#xA;Set EnableDelayedExpansion&#xA;

    12. &#xA;

    13. For each file if it's SkipCodec matched 1 it would (needed to nest mkdir underneath DisableDelayedExpansion) create a directory that matched it's current folder tree but on the destination root, set at the top.&#xA;

      &#xA;(call :EncoderCounts - Testing/attempted to learn how to user call function to 'carry' the variable over to the 'end results' section)

    14. &#xA;

    15. Processes the FFMpeg command or Sets FilesEncoded Counter&#xA;

      &#xA;Endlocal&#xA;

    16. &#xA;

    17. Echo's Results with variables
    18. &#xA;

    &#xA;

    Is anyone able to help me break through this barrier ??

    &#xA;

    setlocal&#xA;rem #######1-Destination Drive #############&#xA;SET drive=T:\4k.temp&#xA;    setlocal EnableExtensions EnableDelayedExpansion&#xA;    SET "Codec1=dts"&#xA;    SET "FINALCOMMAND="&#xA;    setlocal EnableExtensions DisableDelayedExpansion&#xA;        SET "ProgramFolder=C:\FFmpeg\bin"&#xA;        SET "ProbeOptions=-v quiet -select_streams a:0 -show_entries "stream^^=codec_name" -of json"&#xA;        SET "FilesFound=0" &amp; SET "FilesEncoded=0" &amp; SET "FullFileName=" &amp; SET "output="&#xA;        &#xA;        for /F "delims=" %%I in (&#x27;dir *.mkv *.mp4 /A-D-H /B /S 2^>nul&#x27;) do (&#xA;            @ECHO ================Next File: %%I =============&#xA;            SET "FullFileName=%%I" &amp;    SET "output=%drive%%%~pI%%~nxI"&#xA;            SET /A FilesFound&#x2B;=1 &amp; SET "AudioCodec=" &amp; SET "SkipCodecs="&#xA;            for /F "eol={ tokens=1,2 delims=,:[ ]{} " %%B in (&#x27;""%ProgramFolder%\ffprobe.exe" %ProbeOptions% "%%I""&#x27;) do (&#xA;                if "%%~B" == "codec_name" (&#xA;                    if not defined AudioCodec (&#xA;                        SET "AudioCodec=%%~C"&#xA;                    )&#xA;                    if "%%~C" == "%Codec1%" (set "SkipCodecs=1"&#xA;                    )&#xA;                )&#xA;            )&#xA;            setlocal EnableExtensions EnableDelayedExpansion&#xA;                if !SkipCodecs! == 1 (&#xA;                    setlocal EnableExtensions DisableDelayedExpansion&#xA;                        MKDIR "%drive%%%~pI" 2>null&#xA;                    endlocal&#xA;                    SET "FINALCOMMAND=ffmpeg -n -hide_banner -loglevel quiet -stats -i "!FullFileName!" -map 0:v -map 0:a:0 -c:v copy -c:a:0 ac3 -b:a:0 640k "!output!""&#xA;                        !FINALCOMMAND!&amp;SET /A FilesEncoded&#x2B;=1&#xA;                    ECHO #####COMPLETE############&#xA;                ) else ( ECHO #####NOT PROCESSING ############)&#xA;                ECHO[&#xA;            endlocal&#xA;        )&#xA;    if %FilesFound% == 1 ( SET "PluralS=" ) else set "PluralS=s"&#xA;&#xA;    @ECHO *********************************************************&#xA;    ECHO re-encoded %FilesEncoded% of %FilesFound% video file%PluralS%.&#xA;    endlocal&#xA;    GOTO :END&#xA;:END&#xA;endlocal&#xA;endlocal&#xA;exit /b&#xA;

    &#xA;

  • Piwik Analytics and becoming a Piwik Certified Professional

    10 juillet 2017, par Piwik Core Team — About

    Digital Analytics software

    Piwik Analytics is the leading open source digital analytics software, offering users around the world an opportunity to liberate their analytics. Most recently, they have introduced the Piwik Certified Professional certification exam which now allows users to become qualified in Piwik Analytics software on an individual level to gain a deeper understanding of Piwik. In this blog post I will guide you through the topics that are covered during the exam and provide you with advice on taking the official Piwik Certified Professional exam.

    Piwik Certified Professional Program.png

    Piwik certification exam

    Taking the exam will cost you a maximum investment of 60 minutes of your time, besides learning all materials of course. The exam consists of 55 multiple choice questions with four answers to choose from. The score needed to pass is 80% (44 questions answered correctly) and the cost is 50 USD total. An earned certificate is valid for 18 months, before these eighteen months are over a person should pass the exam again in order to retain the certified status.

    Learning topics

    The exam consists of two sections. The main section is focused on the Piwik Analytics software itself while the second part relates to digital analytics in general. All topics and content covered about Piwik Analytics is available through the official Piwik user guides. The second section tests your experience as a digital analyst, online marketer or any other function title in which you work with Piwik Analytics. In this case, the general digital analytics questions should be quite straightforward and easy to answer, and cover only a fraction of the total questions in the exam (around 10% with 5-7 general questions). An outline of all exam topics are listed below :

    • A Tour of Piwik
    • Track Goals and Measure Conversions
    • Event Tracking
    • Content Tracking
    • Ecommerce Analytics
    • Row Evolution – View and compare historical data
    • Segmentation – Compare segments of visitors
    • Visitors Maps – World, region, city
    • Real Time Visitor World Map
    • Real Time Analytics
    • The Visitor Profile
    • Site speed and Page speed
    • Site Search Tracking and Reporting
    • Transitions – Analyze the previous and following actions of your visitors for each page
    • Page Overlay
    • Custom Variables Analytics
    • Custom Dimensions
    • User ID
    • Annotating your data
    • Tracking Campaigns
    • URL Builder for Marketing Campaign Tracking

    The best way to prepare for the exam is read the entire Piwik user guides. You should definitely read the “Analytics Features” section since most questions of the Piwik Certified Professional – Digital Analytics exam that will be asked come from these sections. Furthermore you should be able to find your way around in Piwik at a basic level which means you know what the reports mean and where to find certain information. In addition, some basic knowledge regarding the settings is useful too. The exam is definitely not a technical implementation exam so no coding knowledge or any other deeply technical knowledge regarding Piwik is required.

    Finally, some general questions will be asked regarding digital analytics covering topics about KPI’s and the role of the analyst within an organization. While Piwik provides some links to articles by Avinash Kaushik covering these topics, you will not be able to learn these topics just by reading. When you have some experience with digital analytics you should be able to answer these general digital analytics questions with common sense and (even basic) experience as a digital analyst, analytics consultant, online marketer or any other related job whereby you work with Piwik.

    Taking the exam

    With 55 questions to be answered in 60 minutes the key to passing the exam is to keep moving. You have about 1 minute and 5 seconds to answer each question. This means that you should focus on the easiest questions first and return later to the questions that are a bit more challenging to answer. Keep an eye on the timer that will be displayed in the exam window. When the time expires or you click ‘Finish test’ your exam will end and be automatically submitted for review. Remember to first check all questions and answers before you click on the ‘Finish test’ button. If you click too soon and you still haven’t answered all questions, all unanswered questions will be marked as incorrect.

    During the test, no hard copy or online materials may be referenced. As you can imagine, it is almost impossible to check if users reference these kind of materials. However, be aware of the penalty system that is in place during the test. When a user leaves from the active test screen to another screen (i.e. a different browser tab) the screen turns red and provides a warning count when the user returns to the test screen again. You will have three warnings, after this your test will be submitted and graded as false. Furthermore, keep in mind you will have to do the test in one go and cannot pause and come back another time.

    Practice makes perfect

    Below I have included some example questions that could be asked during the exam. These questions do not necessarily represent how Piwik will test you on these topics.

    • What is the default report date that is selected by Piwik ?
    • Why would someone flatten a report in Piwik ?
    • Why would a user especially use the Page Overlay report ?
    • What are the three main Ecommerce interactions tracked with Piwik ?
    • What is an example of an anonymized IP address in Piwik ?

    Passing the Piwik Certified Professional – Digital Analytics exam

    Directly after submitting the exam you will receive a notification telling you whether or not you have passed the exam. If you pass, you will be able to download your personal certification right away. A report of your exam performance will also be available. This report lists the amount of correct answers and total questions by topic. The report with your exam performance is also available if you did not pass the exam. The certificate is valid for 18 months from the date of successful completion.

    Sometimes the difference between passing and failing can be a matter of how you interpret some of Piwik’s questions. There are several tricky questions included, so be sure to pay attention to detail on every question. If you fail, you may take the exam again. You will have to pay the 50 USD fee for each try, so do your best to pass it the first time.

    → Register to become a Piwik Certified Professional.

    We wish you the best of luck and happy analytics !