Recherche avancée

Médias (1)

Mot : - Tags -/biographie

Autres articles (49)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (8593)

  • fftools/ffmpeg_opt : move opening output files into a new file

    13 octobre 2022, par Anton Khirnov
    fftools/ffmpeg_opt : move opening output files into a new file
    

    ffmpeg_opt.c currently contains code for
    - parsing the options provided on the command line
    - opening and initializing input files based on these options
    - opening and initializing output files based on these options

    The code dealing with each of these is for the most part disjoint, so it
    makes sense to move them to separate files. Beyond reducing the quite
    considerable size of ffmpeg_opt.c, this will also allow exposing muxer
    internals (currently private to ffmpeg_mux.c) to the initialization
    code, thus removing the awkward separation currently in place.

    • [DH] fftools/Makefile
    • [DH] fftools/ffmpeg.h
    • [DH] fftools/ffmpeg_mux_init.c
    • [DH] fftools/ffmpeg_opt.c
  • avcodec/h263dec : Move initializing qpel DSP context to mpeg4videodec.c

    1er novembre 2022, par Andreas Rheinhardt
    avcodec/h263dec : Move initializing qpel DSP context to mpeg4videodec.c
    

    The MPEG-4 decoder is the only decoder based upon H.263 that
    supports quarterpel motion vectors.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/h263dec.c
    • [DH] libavcodec/mpeg4videodec.c
  • Keep trying a command until it returns "True" and then execute another

    6 janvier 2023, par Tyrone Hirt

    I'm trying to make a script to check the processor usage for a specific process every 10 seconds, and when the usage is less than 2% I want another 2 commands to be executed.

    &#xA;

    The purpose is to know when the program has finished processing the requests, in order to release the execution of the other commands.

    &#xA;

    I created this script to check the processor usage by this application :

    &#xA;

    SET ProcessorUsage = wmic path Win32_PerfFormattedData_PerfProc_Process get Name,PercentProcessorTime | findstr /i /c:RenderQuery&#xA;&#xA;%ProcessorUsage%&#xA;

    &#xA;

    And these are the commands I want to be executed when the processor usage of the RenderQuery application is less than 2% :

    &#xA;

    for /f "delims=" %%X in (&#x27;dir /s/b/ad Proxy&#x27;) do for /f "delims=" %%Y in (&#x27;dir /s/b/a-d "%%X"&#x27;) do move "%%Y" ".\03. Proxy"&#xA;&#xA;for /f "delims=" %%i in (&#x27;dir /s/b/ad Proxy&#x27;) do rd "%%i"&#xA;

    &#xA;

    I tried to create a script that way here :

    &#xA;

    SET ProcessorUsage = wmic path Win32_PerfFormattedData_PerfProc_Process get Name,PercentProcessorTime | findstr /i /c:RenderQuery&#xA;:Loop&#xA;IF %ProcessorUsage% LSS 2 (&#xA;(for /f "delims=" %%X in (&#x27;dir /s/b/ad Proxy&#x27;) do for /f "delims=" %%Y in (&#x27;dir /s/b/a-d "%%X"&#x27;) do move "%%Y" ".\03. Proxy") &amp;&amp; (for /f "delims=" %%i in (&#x27;dir /s/b/ad Proxy&#x27;) do rd "%%i")&#xA;) ELSE (&#xA;sleep 10 &amp;&amp; goto Loop&#xA;)&#xA;

    &#xA;

    I also tried this way here :

    &#xA;

    SET ProcessorUsage = wmic path Win32_PerfFormattedData_PerfProc_Process get Name,PercentProcessorTime | findstr /i /c:RenderQuery&#xA;&#xA;:Loop&#xA;for %ProcessorUsage% LSS 2 do (&#xA;(for /f "delims=" %%X in (&#x27;dir /s/b/ad Proxy&#x27;) do for /f "delims=" %%Y in (&#x27;dir /s/b/a-d "%%X"&#x27;) do move "%%Y" ".\03. Proxy") &amp;&amp; (for /f "delims=" %%i in (&#x27;dir /s/b/ad Proxy&#x27;) do rd "%%i") || (sleep 10 &amp;&amp; goto Loop)&#xA;)&#xA;

    &#xA;

    With these scripts I tried to create the window that only blinks and closes right away...

    &#xA;

    What's the best way to do this ?

    &#xA;

    EDIT

    &#xA;

    Explaining in more detail : I work with video production, so I constantly need to render Proxy files, which are video files with low quality to be used during my video editing and replaced at the end of editing, this makes the much smoother video editing.

    &#xA;

    Having said that, I have a folder model, inside this folder model there is a folder where I always download the video files from the camera and in that folder there is always a .bat file that opens all the video files in the software that generates proxy files of the camera's video files.

    &#xA;

    This .bat file has this exact code :

    &#xA;

    start "" "C:\Users\User\Downloads\FFmpeg_Batch_AV_Converter_Portable_2.8.4_x64\FFBatch.exe" -f "%~dp0\"&#xA;

    &#xA;

    When this software opens, it automatically renders the proxy files and their output is always in a child folder of the original files folder, and the name of the folder is Proxy.

    &#xA;

    The issue is that I don't want them to be in several separate Proxy folders, so I created another .bat file that is in the parent folder of all video files, this script contains exactly these lines :

    &#xA;

    for /f "delims=" %%X in (&#x27;dir /s/b/ad Proxy&#x27;) do for /f "delims=" %%Y in (&#x27;dir /s/b/a-d "%%X"&#x27;) do move "%%Y" ".\03. Proxy"&#xA;&#xA;for /f "delims=" %%i in (&#x27;dir /s/b/ad Proxy&#x27;) do rd "%%i"&#xA;

    &#xA;

    That is, it only searches recursively for files that are inside folders named Proxy, then it moves these files to the folder 03. Proxy that is inside the parent folder.

    &#xA;

    The second line looks for all proxy folders (which are now empty) and deletes them.

    &#xA;

    The point is : I currently run the second script manually, as soon as the render finishes, and I would like it to run automatically.

    &#xA;

    Given this, I thought of adding a line in the first script, which opens the video files in the rendering program, this line would call the second script in the background, and the second script would be analyzing the CPU usage of this application every 10 seconds, and when the usage is less than 2% (in theory there is nothing else rendering, since it has a low CPU usage) it executes the lines that move the files and remove the folders.

    &#xA;

    I think there's a good change for this to work, because this software renders 4 videos at a time, and this means that there is no time between stopping rendering a video and starting another... the CPU usage is always very high until all the videos are finished, so I think this would be the best signal to release the other commands.

    &#xA;