Recherche avancée

Médias (0)

Mot : - Tags -/flash

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (14)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (4767)

  • Encoding of two full hd streams in Linux + GPU with Intel HD4000 / VA API / FFMPEG / OpenGL

    27 juin 2017, par qknight

    i want to encode/stream two full hd streams in realtime from my laptop to a remote location using linux/xorg on the host.

    VA API

    for this i’ve been playing with the VA API but the performance is pretty bad with 5.59 fps (see paste below).

    FFMPEG

    using ffmpeg with CPU encoding i get about 200 fps but then all cores of my Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz are busy and the fan turns on.

    future plans

    i want GPU support in encoding and later integrate this into a program which streams a virtual xorg ’screen’, see https://lastlog.de/wiki/index.php/Raspberry_PI_virtual_screen for more details on my plans.

    maybe h264 isn’t even what i want ? so if someone advices towards a different implementation, i’d welcome that.

    besides VA API there seems to be QuickSync but i didn’t experiment with that yet as it is not packaged on NixOS just yet.

    note : i need a library to have a smooth integration into the code.

    h264encode -w 1920 -h 1080 —profile MPSource frame is 1920x1080 and will code clip to 1920x1088 with crop
    

    INPUT:Try to encode H264...
    INPUT : Resolution : 1920x1080, 60 frames
    INPUT : FrameRate : 30
    INPUT : Bitrate : 14929920
    INPUT : Slieces : 1
    INPUT : IntraPeriod : 30
    INPUT : IDRPeriod : 60
    INPUT : IpPeriod : 1
    INPUT : Initial QP : 26
    INPUT : Min QP : 0
    INPUT : Source YUV : AUTO generated
    INPUT : Coded Clip : /tmp/test.264
    INPUT : Rec Clip : Not save reconstructed frame

    libva info : VA-API version 0.38.1
    libva info : va_getDriverName() returns 0
    libva info : Trying to open /run/opengl-driver/lib/dri/i965_drv_video.so
    libva info : Found init function __vaDriverInit_0_38
    libva info : va_openDriver() returns 0
    Use profile VAProfileH264Main
    Support rate control mode (0x12):CBR CQP
    RateControl mode : CQP
    Support VAConfigAttribEncPackedHeaders
    Support packed sequence headers
    Support packed picture headers
    Support packed slice headers
    Support packed misc headers
    Support 1 RefPicList0 and 1 RefPicList1
    Loading data into surface 15.....Complete surface loading
    \00000059(054456 bytes coded)

    PERFORMANCE : Frame Rate : 5.59 fps (60 frames, 10730 ms (178.83 ms per frame))
    PERFORMANCE : Compression ratio : 51:1
    PERFORMANCE : UploadPicture : 10467 ms (174.45, 97.55% percent)
    PERFORMANCE : vaBeginPicture : 0 ms (0.00, 0.00% percent)
    PERFORMANCE : vaRenderHeader : 1 ms (0.02, 0.01% percent)
    PERFORMANCE : vaEndPicture : 42 ms (0.70, 0.39% percent)
    PERFORMANCE : vaSyncSurface : 244 ms (4.07, 2.27% percent)
    PERFORMANCE : SavePicture : 7 ms (0.12, 0.07% percent)
    PERFORMANCE : Others : -31 ms (71582787.75, 40027653.91% percent)
    (Multithread enabled, the timing is only for reference)

    i’ve seen https://www.reddit.com/r/linux/comments/1qk1yu/is_there_currently_opensource_software_to_encode/ though but i’m not sure what do do with it.

  • How to escape all special characters for ffmpeg drawtext filter in java

    28 mars 2022, par ezwrighter

    Does anyone have a good recipe for escaping all of the special characters (',%,\, :,,) from a String in java, that will be used in an ffmpeg drawtext filter chain ? Trying to use replaceAll with different combinations of escaping has been an exercise in frustration !

    



    
String myTextString = "Bob's special\cool mix:stuff @ 40% off";
Runtime.getRuntime().exec(new String[] { "ffmpeg",...., "filter_complex", "drawtext=enable='between(t,0,10)':x=10:y=10:fontfile=Roboto-Black.ttf:text='" + myTextString + "':fontcolor=#a43ddb:fontsize=14", ... });


    



    ffmpeg drawtext filter : https://ffmpeg.org/ffmpeg-filters.html#drawtext-1

    


  • How to compile FFmpeg with bash on Windows 10 ?

    10 août 2017, par user2980183

    In the Creators Update (1703), the Windows 10 bash linux (WSL) can run native windows tools. So, under Windows 10, you can now compile FFmpeg with Visual Studio and the required linux utilities, natively, without having to install MinGW or other interop crap software.

    Here is how I tried to compile FFmpeg (using MSVC 2017 toolchain) :

    • I started the bash shell from "Developer Command Prompt for VS 2017" to set PATH variable to find the MSVC compiler/linker.

    • I installed the "make" tool with the following command : "sudo apt-get install make".

    • To call Windows program from the bash shell, I have to type the command with its .exe extension. So, I must adapt the "configure" and "compat/windows/makedef" files to add ".exe" at the end of "cl", "link" (no confusion possible with the /usr/bin/link), "dumpbin" and "lib" executables :

    configure

    cl_major_ver=$(cl 2>&1 | sed -n 's/.*Version \([[:digit:]]\{1,\}\)\..*/\1/p')
       if [ -z "$cl_major_ver" ] || [ $cl_major_ver -ge 18 ]; then
           cc_default="cl.exe"
       else
           cc_default="c99wrap cl"
       fi
       ld_default="link.exe"
       nm_default="dumpbin.exe -symbols"
       ar_default="lib.exe"

    compat/windows/makedef

    lib.exe -out:${libname} $@ >/dev/null

    arch=$(dumpbin.exe -headers ${libname} |
      tr '\t' ' ' |
      grep '^ \+.\+machine \+(.\+)' |
      head -1 |
      sed -e 's/^ \{1,\}.\{1,\} \{1,\}machine \{1,\}(\(...\)).*/\1/')

    dump=$(dumpbin.exe -linkermember:1 ${libname})

    I hope the FFmpeg build tool chain will be adapted in the future to support natively compiling on bash on Windows...

    • If you want to set an absolute path for YASM in the "configure", you have to use the following pattern /mnt/[letter_partition]/path/yasm.exe.

    ./configure --toolchain=msvc --yasmexe='/mnt/e/Home/Important/Development/Toolkit/Tools/yasm-1.3.0-win32.exe' [all other settings you need]

    • The make command should generate the lib as expected.

    • I tried to type make install but I get the following error :
      No rule to make the target "libavutil\x86\x86util.asm", needed for "libavutil/x86/cpuid.o".

    I don’t know what is wrong...

    As you can see, building FFmpeg on bash under Windows is not very developer friendly yet. Compiling FFmpeg in Windows should be as easy as Linux. Do you know if there is an easier way to proceed ? Do you know if this compilation scenario will be officially supported in next versions of FFmpeg (I don’t find any roadmap) ?

    Thanks.