Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (51)

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

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

Sur d’autres sites (7556)

  • poster adjustment after getting it from video

    30 juin 2016, par Jass

    I am capturing poster from this video https://www.youtube.com/watch?v=wg-kEWsL6Xc using following code. Video can be any, I am just giving example.

    shell_exec('ffmpeg -y  -itsoffset -4  -i "'.base_path().'/assets/videos/'.$file_name.'.mp4" -vcodec mjpeg -vframes 1 -an -f rawvideo -filter:v scale=1170:ih*1170/iw "'.base_path().'/assets/videos/thumbnail/'.$file_name.'.jpg"')

    Width = 1170px,

    Height= 300px (as it is background image so it does not matter)

    But I am facing adjustment problem. Following are my current views

    First : Head is cutting, here I am using css property background : url(’completepath’) center no-repeat ;
    enter image description here

    Second : Showing black portion on top of head. This is the original image that I am getting from ffmpeg code.

    enter image description here

    My Question : But I need image like in you tube, you can notice that in all videos we can see top portion of humans without being cutting even black portion is well adjusted.

    Currently I am downloading and testing with youtube videos but in actual job seekers will make their own videos using android/iphone or any camera and will upload on our site.

    so how i can overcome this issue means show image with proper human face and body ?

    thanks in advance.

  • FFMPEG Open several video files at the same time ? C++ [on hold]

    8 octobre 2017, par LemanRass

    I wrote a C++ plugin for playing videos using FFmpeg libraries. All works perfectly when playing a single video, but when I try to play at least 2 videos at the same time I have these errors :

    #01 pc 0000714d  /data/app/com.ffmpeg.sdk.videoplugin-
    1/lib/arm/libAndroidVideoPlugin.so (_ZN12FFmpegReader13ReadNextFrameEPvPc+404)
    #02 pc 00005a9f  /data/app/com.ffmpeg.sdk.videoplugin-
    1/lib/arm/libAndroidVideoPlugin.so (_ZN9Videofile17UpdateFramesCacheEv+118)
    #03 pc 000057d1  /data/app/com.ffmpeg.sdk.videoplugin-
    1/lib/arm/libAndroidVideoPlugin.so (_firstUpdateThread+80)

    It seems that when I open the second video it, replaces the first one.
    I came up with this idea when I opened 2 videos one by one (without any errors) then I started to play only the second one and as a result I didn’t get any errors. But when I tried to read frames from the first video, my app crashed with the error above.

    A bit about plugin`s structure :

    1. I created a class called FFmpegReader where methods work
      directly with ffmpeg (Opening file, ReadFrames and returning them as void*,
      Seek and Close).

    2. Then I created one more class which creates a FFmpegReader instance using
      the "new" operator inside its constructor, descriptor (unique id of the opened
      file), queue of cached frames (up to 100 at the same time) and
      methods to operate with FFmpegReader and framesCache.

    3. I created a main file where I created a vector of objects of class from
      the second point I described above. Also I declared 4 threads for each
      opened video file (4 opened videos is the max number of allowed opened
      videos at the same time). They call the method to update a cache of frames in
      its own video file using the video file descriptor. Finally I declared methods
      which will be called from the main app which is using this plugin to retrieve
      cached frames from cache.

    As you can see, I did everything to let it works separately with each new opened video. It seems the problem is inside of FFmpeg. There might be some restrictions I’m not aware of.

    ================UPDATE=================

    Sources of Main: https://pastebin.com/DfGH0BRZ
    Sources of Videofile class: https://pastebin.com/WjdS532B
    Sources of FFmpegReader class: https://pastebin.com/aPHpBvBv

    Hope it’s gonna help...

  • sudo checkinstall - installation failed

    12 janvier 2017, par Mathiem

    I’m trying to install ffmpeg on Raspbian by following these steps :

    cd ffmpeg
    ./configure --prefix=/usr
    time make -j 8
    cat RELEASE
    sudo checkinstall

    but when I do the sudo checkinstall step, it gave me an error :

    pi@raspberrypi ~/ffmpeg $ sudo checkinstall -y

    checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
              This software is released under the GNU GPL.



    *****************************************
    **** Debian package creation selected ***
    *****************************************

    This package will be built according to these values:

    0 -  Maintainer: [ root@raspberrypi ]
    1 -  Summary: [ Package created with checkinstall 1.6.2 ]
    2 -  Name:    [ ffmpeg ]
    3 -  Version: [  ]
    4 -  Release: [ 1 ]
    5 -  License: [ GPL ]
    6 -  Group:   [ checkinstall ]
    7 -  Architecture: [ armhf ]
    8 -  Source location: [ ffmpeg ]
    9 -  Alternate source location: [  ]
    10 - Requires: [  ]
    11 - Provides: [ ffmpeg ]
    12 - Conflicts: [  ]
    13 - Replaces: [  ]

    Enter a number to change any of them or press ENTER to continue:

    Installing with make install...

    ========================= Installation results ===========================
    INSTALL doc/ffmpeg.1
    INSTALL doc/ffprobe.1
    INSTALL doc/ffserver.1
    INSTALL doc/ffmpeg-all.1
    INSTALL doc/ffprobe-all.1
    INSTALL doc/ffserver-all.1
    INSTALL doc/ffmpeg-utils.1
    INSTALL doc/ffmpeg-scaler.1
    INSTALL doc/ffmpeg-resampler.1
    INSTALL doc/ffmpeg-codecs.1
    INSTALL doc/ffmpeg-bitstream-filters.1
    INSTALL doc/ffmpeg-formats.1
    INSTALL doc/ffmpeg-protocols.1
    INSTALL doc/ffmpeg-devices.1
    INSTALL doc/ffmpeg-filters.1
    INSTALL doc/libavutil.3
    INSTALL doc/libswscale.3
    INSTALL doc/libswresample.3
    INSTALL doc/libavcodec.3
    INSTALL doc/libavformat.3
    INSTALL doc/libavdevice.3
    INSTALL doc/libavfilter.3
    INSTALL doc/ffmpeg.1
    INSTALL doc/ffprobe.1
    INSTALL doc/ffserver.1
    INSTALL doc/ffmpeg-all.1
    INSTALL doc/ffprobe-all.1
    INSTALL doc/ffserver-all.1
    INSTALL doc/ffmpeg-utils.1
    INSTALL doc/ffmpeg-scaler.1
    INSTALL doc/ffmpeg-resampler.1
    INSTALL doc/ffmpeg-codecs.1
    INSTALL doc/ffmpeg-bitstream-filters.1
    INSTALL doc/ffmpeg-formats.1
    INSTALL doc/ffmpeg-protocols.1
    INSTALL doc/ffmpeg-devices.1
    INSTALL doc/ffmpeg-filters.1
    INSTALL doc/libavutil.3
    INSTALL doc/libswscale.3
    INSTALL doc/libswresample.3
    INSTALL doc/libavcodec.3
    INSTALL doc/libavformat.3
    INSTALL doc/libavdevice.3
    INSTALL doc/libavfilter.3
    INSTALL install-progs-yes
    INSTALL ffmpeg
    INSTALL ffprobe
    INSTALL ffserver
    mkdir: cannot create directory ‘/usr/share/ffmpeg’: No such file or directory
    Makefile:161: recipe for target 'install-data' failed
    make: *** [install-data] Error 1

    ****  Installation failed. Aborting package creation.

    Cleaning up...OK

    Bye.

    Can anyone help me ? What can I do ? I’m not gonna lie, I’m a noob and I don’t really know where to start, I tried 3-4 things but it didn’t work.

    Thanks !