Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (21)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

Sur d’autres sites (5416)

  • Linking ffmpeg's libswresample from MacOS X 10.9 with C++

    8 janvier 2014, par user2530102

    I am trying to link to ffmpeg's libswresample from a C++ application. I have installed ffmpeg through Homebrew on Mac OS X 10.9. A simple test application links if it's compiled as C, but not if it's compiled as C++. Here is the sample code :

    #include
    #include <libswresample></libswresample>swresample.h>

    int main()
    {
     swr_alloc();
     printf("Hello world\n");
     return 0;
    }

    When compiled as C with clang -I/usr/local/include -L/usr/local/lib -lswresample -o hello hello.c this creates the application as expected. When compiled with C++ using clang++ -I/usr/local/include -L/usr/local/lib -lswresample -o hello hello.cc it results in an error like the following :

    Undefined symbols for architecture x86_64:
     "swr_alloc()", referenced from:
         _main in hello-9jqOY4.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    But running nm -a /usr/local/lib/libswresample.dylib includes 000000000000d8a9 T _swr_alloc and file /usr/local/lib/libswresample.dylib shows /usr/local/lib/libswresample.dylib: Mach-O 64-bit dynamically linked shared library x86_64 which I assume is expected. I have the same issue compiling the example with gcc/g++, and I also have the same issue when compiling ffmpeg with either clang or gcc, which leads me to think that there is just something I don't know about linking that should be obvious, but I haven't found any references suggesting that it should be different linking a library in C++ vs. C, and linking other libraries (sox, for example) presents no difficulties with an identical setup.

    I have seen posts related to linking issues in Mac OS X 10.9 because of the change from libstdc++ to libc++, but adding -stdlib=libstdc++ or -stdlib=libc++ seems to make no difference. It also makes no difference to add -mmacosx-version-min=10.6 or 10.9.

    Any help is greatly appreciated.

  • Remove Static Pixels from a Video to Mimic a Green Screen Effect [closed]

    2 août 2021, par nKrkan

    I have a video that's 50 seconds in length, resolution of 480x480 and 16 frames per second.

    &#xA;

    There is a person talking in it, with the background being static I thought if there's a way
    &#xA;to remove those static pixels (background) and just extract the moving pixels (foreground)
    &#xA;and possibly mimic a green screen effect ?

    &#xA;

    I was thinking on writing a picture-by-picture comparison tool to do such thing but I don't
    &#xA;believe I'm up to the task, or maybe It's laziness.

    &#xA;

    And now I know, some of you will point out that the video has compression artifacts and that
    &#xA;might cause some problems but It doesn't have to be Studio quality stuff.

    &#xA;

    I tried the ffmpeg command from this question : Remove random background from video using ffmpeg or Python
    &#xA;And it does mask the person, but... I couldn't quite get it to work, apparently putting the
    &#xA;reference image in the input makes that image burned into the video, thus having no way to
    &#xA;remove it, but it did mask the background as black and the person as greenish, so still not a
    &#xA;viable way to do it.

    &#xA;

    Have also tried some Python projects I've found on the GitHub but none of them worked as
    &#xA;I expected.

    &#xA;

    So, what I thought to do is simply compare the first and the second frame of the video, check
    &#xA;all the pixels by comparing them with the two sources, and change those that stay within a
    &#xA;certain range of the initial pixel value.

    &#xA;

    I should point out I'm not very knowledgeable with mathematics and the majority of the
    &#xA;methods used in these type of things, but perhaps someone could point me to an interesting
    &#xA;source to read and learn, or by providing an alternative to the methods aforementioned above.

    &#xA;

  • FFmpeg - Rotating at angle

    23 septembre 2017, par connor

    I’ve been working through FFmpeg, but I have been unable to get a rotation to run from the examples they have on their site. I am trying to "wiggle" a video back and forth at a fixed point on the bottom - think a head moving left to right (and so on).

    I am attempting to do this with the filter "rotate" (https://ffmpeg.org/ffmpeg-filters.html#rotate). Attempting to use their examples, I get an error.

    This is what I have so far :

    ffmpeg -i vid1.mp4 -i vid2.mov -loop 1 -i image.png -filter_complex "\
       [2:v]alphaextract, scale=240x160[mask];\
       [0:v] scale=240x160, rotate=A*sin(2*PI/T*t) [ascaled];\
       [ascaled][mask]alphamerge[masked];\
       [1:v]scale=480x360[background];\
       [background][masked]overlay=120:20"\
       -c:a copy 65B6354F61B4AF02_HD_sq.MOV

    I am using "rotate" directly from an example in an attempt to get something to run at all.

    The error I get back is :

    [Parsed_rotate_3 @ 0x7ff4476045e0] [Eval @ 0x7fff5b3e3f00] Undefined constant or missing '(' in 'T*t)'
    [Parsed_rotate_3 @ 0x7ff4476045e0] Error occurred parsing angle expression 'A*sin(2*PI/T*t)'
    [Parsed_rotate_3 @ 0x7ff4476045e0] Failed to configure output pad on Parsed_rotate_3
    Error reinitializing filters!
    Failed to inject frame into filter network: Invalid argument
    Error while processing the decoded data for stream #1:0

    If I remove ’A’, ’T’, ’sin’, etc, rotate does actually work, but far from the desired behavior.

    Am I missing something to expose those params ?