Recherche avancée

Médias (21)

Mot : - Tags -/Nine Inch Nails

Autres articles (54)

  • 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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (9672)

  • ffmpeg, how to allocate an array of int64_t ?

    16 janvier 2018, par siods333333

    I need to create an array of int64_t, continuously add to it, and expand it if I run out of space in it. Which functions should I use ? https://ffmpeg.org/doxygen/trunk/group__lavu__mem__funcs.html

    I expect it to contain 20-100 entries. Alignment doesn’t matter. No need to fill with zeroes, I’ll just store size separately.

    I’ll probably use malloc instead of av_malloc, I don’t care. I don’t get the difference.

  • Thread safety of FFmpeg when using av_lockmgr_register

    12 août 2013, par Stocastico

    My application uses FFmpeg to read video streams. So far, I ensured thread safety by defining my own global lock and looking for all the methods inside FFmpeg libraries which are not thread safe.
    This makes the code a bit messy, so while looking for better ideas I found this answer, but apparently I couldn't make use of the suggestions.
    I tried testing it in my own environment, but I always get critical heap error. Here's the test code

    class TestReader
    {
    public:
    TestReader( std::string sVid )
    {
      m_sVid = sVid;
      m_cVidPtr.reset( new VideoReader() );
    }

    ~TestReader()
    {}

    void operator() ()
    {
       readVideoThread();
    }

    private:
    int readVideoThread()
    {
      m_cVidPtr->init( m_sVid.c_str() );
      MPEGFrame::pointer cFramePtr;

      for ( int i=0; i< 500; i++ )
      {
        cFramePtr = m_cVidPtr->getNextFrame();
      }

      return 0;
    }
    boost::shared_ptr<videoreader> m_cVidPtr;
    std::string m_sVid;
    };

    /*****************************************************************************/
    int lockMgrCallback(void** cMutex, enum AVLockOp op)
    {
    if (nullptr == cMutex)
      return -1;

    switch(op)
    {
    case AV_LOCK_CREATE:
      {
        *cMutex = nullptr;
        boost::mutex* m = new boost::mutex();
        *cMutex = static_cast(m);
        break;
      }
    case AV_LOCK_OBTAIN:
      {
        boost::mutex* m =  static_cast(*cMutex);
        m->lock();
        break;
      }
    case AV_LOCK_RELEASE:
      {
        boost::mutex * m = static_cast(*cMutex);
        m->unlock();
        break;
      }
    case AV_LOCK_DESTROY:
      {
        boost::mutex * m = static_cast(*cMutex);
        delete m;
        break;
      }
    default:
      break;
    }
    return 0;
    }

    int testFFmpegMultiThread( std::string sVideo )
    {
    if ( ::av_lockmgr_register( &amp;lockMgrCallback ) )
    {
      std::cout &lt;&lt; "Could not initialize lock manager!" &lt;&lt; std::endl;
      return -1;
    }
    TestReader c1(sVideo);
    TestReader c2(sVideo);
    boost::thread t1( c1 );
    boost::thread t2( c2 );

    t1.join();
    t2.join();

    return 0;
    }
    </videoreader>

    The classes VideoReader and MPEGFrame are just wrappers and have always worked perfectly in single threaded scenarios, or in multi-threaded scenario managed using my own global lock.
    Am I missing something obvious ? Can anybody point me to some working code ? Thanks in advance

  • Encode uncompressed avi from webcam

    17 août 2013, par shaun

    I have to record videos for a project I'm doing. Two of these are USB cameras and another is a n IP overhead camera.All three are connected to a laptop computer. After recording the videos I need to be able to open them in an editor (not for editing particularly but for modeling stuff in them for which I need a timeline). I have chosen Sony Vegas Pro for my editor. I have been able to record the uncompressed avi using gstreamer with this command :

    gst-launch v4l2src device=/dev/video0 ! &#39;video/x-rawyuv,width=640,height=480,framerate=10/1&#39; ! mux. avimux name=mux ! filesink location=temp.avi

    I had to set the framerate to 10 because I was using two USB cameras and a framerate of 30 on both could not be accomodated in the bandwidth of the USB controller. I do not care about audio in my file so I don't grab audio. Similary, while encoding I wouldn't care about audio as well. This is raw uncompressed avi. I was not able to open this in Sony Vegas Pro. I believe I need to encode this uncompressed avi using a codec that will be opened by Sony Vegas Pro (I don't know which codecs Sony likes, so I'll probably try different ones until one of them opens).

    For encoding this video, I have several options : mencoder, ffmpeg, gstreamer. But I am not able to figure out how to use these tools to get what I want. Ideally, I would like just to sort of "insert" a codec with other settings remaining the same. I don't really care about the how much space the resulting video takes since the length of the videos are not going to be more than 3 minutes and I have space available, so lossless codecs also work. I believe Sony reads mpeg avi's so if I can get that, it'll be great.

    Thanks for reading and I appreciate all the help.