Recherche avancée

Médias (1)

Mot : - Tags -/swfupload

Autres articles (111)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (6967)

  • Remapping multiple Mp4 videos into a single one with ffmpeg

    21 septembre 2016, par Josep Bosch

    I’m interested in remapping multiple (6) MP4 videos into a high resolution final video according to lookup tables I calculated. The idea is convert 6 independent videos in a 360º video according to an equirectangular projection.

    Equirectangular image example
    Example of equirectangular video here

    Is there a way to do this remapping with ffmpeg or any other linux program ?
    Right now I’m extracting all the frames from the videos, creating the equirectangular individual images and joining them again into a video. There must be a better way for this...

    UPDATE :

    Following Mulyva’s suggestion I first remap each individual video using the remap filter. Those parts of the panoramic video not covered are interpreted like chromakey pixels using :

    ffmpeg -i videos/camera1.MP4 -i camera0_map_x_radius5.pgm -i camera0_map_y_radius5.pgm -lavfi remap -qscale 1 out0.MP4

    Camera0

    Camera1

    Then I try to overlay them using the chomakey filter :

    ffmpeg -i out0.MP4 -i out1.MP4 -filter_complex "[1:v]chromakey=0x12da11:0.2:0.2[chromakey_res];[0:v][chromakey_res]overlay=eof_action=pass[out]" -map "[out]" out.mp4

    As you can see, the final result has an undesirable green shadow. Any idea of how to remove it ?

    Result

  • Extend plain background in a video

    3 juillet 2022, par Maiki

    Is there any easier way to achieve this ?, I'd like to make a .bat file that modify 148 videos that are 3840x2160

    


    They belong to the COLORFUL platform video set 1.8.0

    


    Every video has a system or console in the middle of it and it has a plain color as background. I want to keep the resolution, 3840x2160 but I need to displace the image a 15% to the right so it will be neccesary to fill the left area with the same color it's being use as color of the background.

    


    This is a snapshot from one of these videos :

    


    Snapshot of the original video

    


    The result should be something like this :

    


    Snapshot of the video I'd like to get

    


    So far I was trying lot of things with no success, I maybe did it harder than it is really. I did a first script that crop the video :

    


    for %%X in (*.mp4) do .\ffmpeg\bin\ffmpeg.exe -threads 4 -i "%%X" -filter:v "crop=2688:ih" -c:a copy -threads 4 "second_script\%%X"


    


    The new video will be stored in the second_script folder, then there is a second script that will use ffmpeg to export a picture from the video and magick.exe will help me to identify the color, after that it will use ffmpeg again to add an are of that color, but ... for some reason I don't know the color result is not the same

    


    for %%X in (*.mp4) do (
..\ffmpeg\bin\ffmpeg.exe -threads 4 -i "%%X" -vf "select=eq(n\,100)" -vframes 1 %%~nX.png

magick.exe .\%%~nX.png -format "%%[hex:u.p{0,0}]" info: > temp.txt

for /f "delims=" %%i in (temp.txt) do (
..\ffmpeg\bin\ffmpeg.exe -threads 4 -i "%%X" -filter_complex "[0]pad = w=3840 : h=ih: x=3840-2688 : y=0 : color=#%%i" -movflags +faststart  -c:a copy -threads 4 "final\%%X"
)

)


    


    What I get is something like this :

    


    Final result, it doesn't look like I expected

    


    Would there be any easy way to do this ? any recommendation is really appreciate

    


  • avcodec/h264_slice : don't sync default_ref[] between threads.

    18 juillet 2017, par Wan-Teh Chang
    avcodec/h264_slice : don't sync default_ref[] between threads.
    

    default_ref[] is unconditionally initialized in h264_initialise_ref_list()
    (called from ff_h264_build_ref_list(), called from h264_slice_init()).

    This fixes the following tsan warning when running fate-h264 :

    WARNING : ThreadSanitizer : data race (pid=31070)
    Write of size 8 at 0x7bbc000082a8 by thread T1 (mutexes : write M1628) :
    #0 memcpy /work/release-test/final/llvm.src/projects/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:655:5
    (ffmpeg+0x10de9d)
    #1 h264_initialise_ref_list ffmpeg/libavcodec/h264_refs.c:214:29 (ffmpeg+0x1186b3f)
    #2 ff_h264_build_ref_list ffmpeg/libavcodec/h264_refs.c:306 (ffmpeg+0x1186b3f)
    #3 h264_slice_init ffmpeg/libavcodec/h264_slice.c:1900:11 (ffmpeg+0x1191149)
    [..]
    Previous read of size 8 at 0x7bbc000082a8 by main thread (mutexes :
    write M1630) :
    #0 memcpy /work/release-test/final/llvm.src/projects/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:655:5
    (ffmpeg+0x10de9d)
    #1 ff_h264_update_thread_context ffmpeg/libavcodec/h264_slice.c:411:5 (ffmpeg+0x118b7dc)

    Signed-off-by : Wan-Teh Chang <wtc@google.com>
    Signed-off-by : Ronald S. Bultje <rsbultje@gmail.com>

    • [DH] libavcodec/h264_slice.c