Recherche avancée

Médias (1)

Mot : - Tags -/blender

Autres articles (67)

  • 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 des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (9064)

  • Remove characters from string using cmd.exe batch file and ffmpeg

    26 décembre 2023, par user2498772

    Here is the code...

    


    @echo off
:: set paths (no quotes)
set ffmpeg=F:\Video\Ffmpeg\ffmpeg.exe
set infolder=F:\Downloads
set outfolder=F:\Video\Finished



@echo.
@echo on
for %%f in (%infolder%\*.mp4) do "%ffmpeg%" -i "%%~dpnf.mp4" -c copy "%outfolder%\%%~nf.mp4"
@echo off
if errorlevel 1 pause
@echo.


    


    This code converts an mpeg-dash file to mp4.
An mpeg-dash is a streaming file format.

    


    The input and output file looks like this : "filename - DASH_V.mp4". (no quotes)

    


    I would like the output file to have the " - DASH_V" removed, so it looks like "filename.mp4". (no quotes)

    


    Any help would be appreciated. Could be a quick fix like changing "%% dpnf -13.0.mp4" to last command, but I am clueless on syntax as you can see.

    


    Tried a million things and got nowhere. Clueless on syntax.

    


  • FFPlay : How to manually select video quality during playing the mpd stream ?

    19 août 2023, par Brian_wu

    I used ffplay to play mpd stream and successed,

    


    Here the MPD file :

    


    &lt;?xml version="1.0" encoding="utf-8"?>&#xA;<mpd xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" mediapresentationduration="PT1M8.7S" maxsegmentduration="PT5.0S" minbuffertime="PT12.5S">&#xA;    <programinformation>&#xA;    </programinformation>&#xA;    <servicedescription>&#xA;    </servicedescription>&#xA;    <period start="PT0.0S">&#xA;        <adaptationset contenttype="video" startwithsap="1" segmentalignment="true" bitstreamswitching="true" framerate="24000/1001" maxwidth="1280" maxheight="720" par="16:9">&#xA;        <representation mimetype="video/mp4" codecs="avc1.4d401f" bandwidth="10237" width="480" height="270" sar="1:1">&#xA;            <segmenttemplate timescale="24000" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="1">&#xA;                <segmenttimeline>&#xA;                    <s t="0" d="150150" r="9"></s>&#xA;                    <s d="149149"></s>&#xA;                </segmenttimeline>&#xA;            </segmenttemplate>&#xA;        </representation>&#xA;        <representation mimetype="video/mp4" codecs="avc1.4d401f" bandwidth="60882" width="1280" height="720" sar="1:1">&#xA;            <segmenttemplate timescale="24000" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="1">&#xA;                <segmenttimeline>&#xA;                    <s t="0" d="150150" r="9"></s>&#xA;                    <s d="149149"></s>&#xA;                </segmenttimeline>&#xA;            </segmenttemplate>&#xA;        </representation>&#xA;    </adaptationset>&#xA;    <adaptationset contenttype="audio" startwithsap="1" segmentalignment="true" bitstreamswitching="true" lang="und">&#xA;        <representation mimetype="audio/mp4" codecs="mp4a.40.2" bandwidth="128000" audiosamplingrate="32000">&#xA;            <audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"></audiochannelconfiguration>&#xA;            <segmenttemplate timescale="32000" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="1">&#xA;                <segmenttimeline>&#xA;                    <s t="0" d="159744"></s>&#xA;                    <s d="160768" r="11"></s>&#xA;                    <s d="111915"></s>&#xA;                </segmenttimeline>&#xA;            </segmenttemplate>&#xA;        </representation>&#xA;        <representation mimetype="audio/mp4" codecs="mp4a.40.2" bandwidth="128000" audiosamplingrate="44100">&#xA;            <audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"></audiochannelconfiguration>&#xA;            <segmenttemplate timescale="44100" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="1">&#xA;                <segmenttimeline>&#xA;                    <s t="0" d="220160"></s>&#xA;                    <s d="221184" r="11"></s>&#xA;                    <s d="158713"></s>&#xA;                </segmenttimeline>&#xA;            </segmenttemplate>&#xA;        </representation>&#xA;    </adaptationset>&#xA;</period>&#xA;</mpd>

    &#xA;&#xA;

    this dash stream contains 2 vindeos(480P and 720P), and 2 audios.The videos always starts low quality(480P), I want to change the video resolution to the high quality(720P) during playing process, what should i do ?

    &#xA;

  • Screen capture (video screencast) with FFMPEG with very low FPS

    20 septembre 2023, par jesusda

    I recently changed PCs, I went from having an Intel Core i5 4460 with integrated graphics card to a Xeon E5 2678 v3 with AMD RADEON RX 550 graphics.

    &#xA;

    On paper, the new PC is on the order of 3 to 7 times more powerful than the old one and I can attest that this is the case in daily use, video and image editing etc. The advantage of having so many cores and threads available is palpable. In terms of games I haven't tried it because I'm not really a gamer and the few games I use are the typical free ones that come with Debian and some emulators that, honestly, already worked fine with the old PC.

    &#xA;

    However there is one task that brings me head over heels for its terrible performance : video screen capture.

    &#xA;

    With my old PC I was able to capture at over 60 fps at full screen while doing any task I needed to record.

    &#xA;

    Even with my lenovo thinkpad x230 I am able to capture screen at over 80fps with total fluency.

    &#xA;

    The command I have always used is :

    &#xA;

    ffmpeg  -f x11grab -draw_mouse 1 -framerate 60 -video_size 1920x1200 -i :0.0&#x2B;1680,0  -qscale 0 -pix_fmt yuv420p -c:v libx264 -preset medium -qp 0 -q:v 1 -s 1920x1200 -f matroska -threads 4 video.mkv&#xA;

    &#xA;

    notes :

    &#xA;

    -video_size 1920x1200 -i :0.0&#x2B;1680,0 y -s 1920x1200 are the dimensions and position of the region to capture (my right monitor).

    &#xA;

    Notice that I even used -preset medium and software encoding, so I got very good quality even with that parameter setting and without ever going below 60 fps.

    &#xA;

    What happens to me now ?

    &#xA;

    The equipment is unable to capture more than 20 fps which makes any video invalid, with frame drops and not even reach 30fps, which would be the minimum required.

    &#xA;

    In addition, it is quite noticeable the decrease in responsiveness of the PC as soon as I launch the command. That is, all that fluidity and smoothness that is appreciated when working normally, disappears and even moving a window from one side to another is rough and stumbling.

    &#xA;

    I have tried with different parameters of ffmpeg, to capture raw, without encoding.

    &#xA;

    I have tried saving the resulting video directly to RAM disk in order to avoid the possible bottleneck of writing to disk. It doesn't affect it at all.

    &#xA;

    So, does anyone have any suggestions as to at least where I can dig further to find a solution to the problem ?

    &#xA;

    Additional data, in case it helps :

    &#xA;

    $ → inxi&#xA;CPU: 12-Core Intel Xeon E5-2678 v3 (-MT MCP-)&#xA;speed/min/max: 1201/1200/3300 MHz Kernel: 5.10.0-0.bpo.4-amd64 x86_64&#xA;Up: 1d 6h 55m Mem: 6427.6/32012.4 MiB (20.1%)&#xA;Storage: 13.76 TiB (55.9% used) Procs: 433 Shell: bash 5.0.18 inxi: 3.0.32&#xA;&#xA;&#xA;$ → ffmpeg -v&#xA;ffmpeg version 4.1.6 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 8 (Debian 8.3.0-6)&#xA;  configuration: --disable-decoder=amrnb --disable-decoder=libopenjpeg --disable-libopencv --disable-outdev=sdl2 --disable-podpages --disable-sndio --disable-stripping --enable-libaom --enable-avfilter --enable-avresample --enable-gcrypt --disable-gnutls --enable-openssl --enable-gpl --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libkvazaar --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx265 --enable-libzimg --enable-libxvid --enable-libzvbi --enable-nonfree --enable-opencl --enable-opengl --enable-postproc --enable-pthreads --enable-shared --enable-version3 --enable-libwebp --incdir=/usr/include/x86_64-linux-gnu --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --toolchain=hardened --enable-frei0r --enable-chromaprint --enable-libx264 --enable-libiec61883 --enable-libdc1394 --enable-vaapi --enable-libmfx --enable-libvmaf --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu&#xA;  libavutil      56. 22.100 / 56. 22.100&#xA;  libavcodec     58. 35.100 / 58. 35.100&#xA;  libavformat    58. 20.100 / 58. 20.100&#xA;  libavdevice    58.  5.100 / 58.  5.100&#xA;  libavfilter     7. 40.101 /  7. 40.101&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  3.100 /  5.  3.100&#xA;  libswresample   3.  3.100 /  3.  3.100&#xA;  libpostproc    55.  3.100 / 55.  3.100&#xA;

    &#xA;

    I have the free amdgpu drivers (not amdgpu-pro), but I activated OpenCL just in case.

    &#xA;

    I followed this tutorial.

    &#xA;

    $ → glxinfo | grep OpenGL&#xA;OpenGL vendor string: AMD&#xA;OpenGL renderer string: Radeon RX550/550 Series (POLARIS12, DRM 3.40.0, 5.10.0-0.bpo.4-amd64, LLVM 11.0.1)&#xA;OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.3.4&#xA;OpenGL core profile shading language version string: 4.60&#xA;OpenGL core profile context flags: (none)&#xA;OpenGL core profile profile mask: core profile&#xA;OpenGL core profile extensions:&#xA;OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.4&#xA;OpenGL shading language version string: 4.60&#xA;OpenGL context flags: (none)&#xA;OpenGL profile mask: compatibility profile&#xA;OpenGL extensions:&#xA;OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.4&#xA;OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20&#xA;OpenGL ES profile extensions:&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;$ → clinfo&#xA;Number of platforms                               1&#xA;  Platform Name                                   Clover&#xA;  Platform Vendor                                 Mesa&#xA;  Platform Version                                OpenCL 1.1 Mesa 20.3.4&#xA;  Platform Profile                                FULL_PROFILE&#xA;  Platform Extensions                             cl_khr_icd&#xA;  Platform Extensions function suffix             MESA&#xA;&#xA;  Platform Name                                   Clover&#xA;Number of devices                                 1&#xA;  Device Name                                     Radeon RX550/550 Series (POLARIS12, DRM 3.40.0, 5.10.0-0.bpo.4-amd64, LLVM 11.0.1)&#xA;  Device Vendor                                   AMD&#xA;  Device Vendor ID                                0x1002&#xA;  Device Version                                  OpenCL 1.1 Mesa 20.3.4&#xA;  Driver Version                                  20.3.4&#xA;  Device OpenCL C Version                         OpenCL C 1.1&#xA;  Device Type                                     GPU&#xA;  Device Profile                                  FULL_PROFILE&#xA;  Device Available                                Yes&#xA;  Compiler Available                              Yes&#xA;  Max compute units                               8&#xA;  Max clock frequency                             1183MHz&#xA;  Max work item dimensions                        3&#xA;  Max work item sizes                             256x256x256&#xA;  Max work group size                             256&#xA;  Preferred work group size multiple              64&#xA;  Preferred / native vector sizes&#xA;    char                                                16 / 16&#xA;    short                                                8 / 8&#xA;    int                                                  4 / 4&#xA;    long                                                 2 / 2&#xA;    half                                                 0 / 0        (n/a)&#xA;    float                                                4 / 4&#xA;    double                                               2 / 2        (cl_khr_fp64)&#xA;  Half-precision Floating-point support           (n/a)&#xA;  Single-precision Floating-point support         (core)&#xA;    Denormals                                     No&#xA;    Infinity and NANs                             Yes&#xA;    Round to nearest                              Yes&#xA;    Round to zero                                 No&#xA;    Round to infinity                             No&#xA;    IEEE754-2008 fused multiply-add               No&#xA;    Support is emulated in software               No&#xA;    Correctly-rounded divide and sqrt operations  No&#xA;  Double-precision Floating-point support         (cl_khr_fp64)&#xA;    Denormals                                     Yes&#xA;    Infinity and NANs                             Yes&#xA;    Round to nearest                              Yes&#xA;    Round to zero                                 Yes&#xA;    Round to infinity                             Yes&#xA;    IEEE754-2008 fused multiply-add               Yes&#xA;    Support is emulated in software               No&#xA;  Address bits                                    64, Little-Endian&#xA;  Global memory size                              3221225472 (3GiB)&#xA;  Error Correction support                        No&#xA;  Max memory allocation                           1717986918 (1.6GiB)&#xA;  Unified memory for Host and Device              No&#xA;  Minimum alignment for any data type             128 bytes&#xA;  Alignment of base address                       32768 bits (4096 bytes)&#xA;  Global Memory cache type                        None&#xA;  Image support                                   No&#xA;  Local memory type                               Local&#xA;  Local memory size                               32768 (32KiB)&#xA;  Max number of constant args                     16&#xA;  Max constant buffer size                        67108864 (64MiB)&#xA;  Max size of kernel argument                     1024&#xA;  Queue properties&#xA;    Out-of-order execution                        No&#xA;    Profiling                                     Yes&#xA;  Profiling timer resolution                      0ns&#xA;  Execution capabilities&#xA;    Run OpenCL kernels                            Yes&#xA;    Run native kernels                            No&#xA;  Device Extensions cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp64&#xA;&#xA;NULL platform behavior&#xA;  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Clover&#xA;  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [MESA]&#xA;  clCreateContext(NULL, ...) [default]            Success [MESA]&#xA;  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)&#xA;    Platform Name                                 Clover&#xA;    Device Name                                   Radeon RX550/550 Series (POLARIS12, DRM 3.40.0, 5.10.0-0.bpo.4-amd64, LLVM 11.0.1)&#xA;  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform&#xA;  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)&#xA;    Platform Name                                 Clover&#xA;    Device Name                                   Radeon RX550/550 Series (POLARIS12, DRM 3.40.0, 5.10.0-0.bpo.4-amd64, LLVM 11.0.1)&#xA;  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform&#xA;  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform&#xA;  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)&#xA;    Platform Name                                 Clover&#xA;    Device Name                                   Radeon RX550/550 Series (POLARIS12, DRM 3.40.0, 5.10.0-0.bpo.4-amd64, LLVM 11.0.1)&#xA;&#xA;ICD loader properties&#xA;  ICD loader Name                                 OpenCL ICD Loader&#xA;  ICD loader Vendor                               OCL Icd free software&#xA;  ICD loader Version                              2.2.12&#xA;  ICD loader Profile                              OpenCL 2.2&#xA;

    &#xA;

    This would not be a tearing problem, as no tearing is visible when playing videos and the TearFree driver policy is enabled.

    &#xA;

    $ → xrandr --verbose | grep TearFree&#xA;    TearFree: on&#xA;    TearFree: on&#xA;    TearFree: on&#xA;

    &#xA;