Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (22)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • 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

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (7044)

  • Convert specific video file (.ps) to mp4 [closed]

    10 mai 2022, par marcin panek

    I have a problem with converting a file from one format to another, namely * .ps to * .mp4. The link to the sample file is : https://easyupload.io/6466tc This file starts in popular video players, but is very blurred. I wrote to the producer how to do it but got no answer. Link to what it looks like in the manufacturer's player : https://easyupload.io/36t9xi and here is a link to one of the popular public video players : https://easyupload.io/c3izx8 I tried to use OpenCV the same as ffmpeg but nothing helped. How can I solve it ? Thank you in advance for your help.

    


  • matplotlib funcanimation save issue

    20 avril 2015, par Richie Abraham

    I have been trying some animation recently using matplotlib animations. It has been going great, i create an ffmpeg writer and save it as a video file. However i face an issue whenever the function that FuncAnimation calls returns more than one object.

    Below is a small snippet of my code base. When I return both im0 and im1, the video file created only has im1 , although the plt.show command works as expected ( showing both the videos ). If i return just a single im0, then it works as expected. IT also works as expected if i return both im0 and im1 with alpha=0.5.

    Can anyone shed some light on what is happening underneath the hood ?

    fig, ax = plt.subplots(1)
    def animate(i):
       im0=ax.imshow(np.ma.masked_array(imgl[i][:,:,0], mask=get_blob(i)),cmap='cubehelix')

       im1=ax.imshow(imgl[(i-100)%len(imgl)][:,:,0],cmap='cubehelix')

       return [im1,im0]



    ani = animation.FuncAnimation(fig, animate, frames=200,
                                 interval=10, blit=True,repeat=False)
    ani.save('ps.mp4', writer=writer)
    plt.show()
  • How to stream frames from OpenCV C++ code to Video4Linux or ffmpeg ?

    6 juillet 2022, par usamazf

    I am experimenting with OpenCV to process frames from a video stream. The goal is to fetch a frame from a stream, process it and then put the processed frame to a new / fresh stream.

    


    I have been able to successfully read streams using OpenCV video capture functionality. But do not know how I can create an output stream with the processed frames.

    


    In order to do some basic tests, I created a stream from a local video file using ffmpeg like so :

    


    ffmpeg -i sample.mp4 -v 0 -vcodec mpeg4 -f mpegts \
        "udp://@127.0.0.1:23000?overrun_nonfatal=1&fifo_size=50000000"


    


    And in my C++ code using the VideoCapture functionality of the OpenCV library, I am able to capture the above created stream. A basic layout of what I am trying to achieve is attached below :

    


    cv::VideoCapture capture("udp://@127.0.0.1:23000?overrun_nonfatal=1&fifo_size=50000000", cv::CAP_FFMPEG);

cv::Mat frame;

while (true) 
{
    // use the above stream to capture a frame
    capture >> frame;
    
    // process the frame (not relevant here)
    ...

    // finally, after all the processing is done I 
    // want to put this frame on a new stream say at
    // udp://@127.0.0.1:25000, I don't know how to do
    // this, ideally would like to use Video4Linux but
    // solutions with ffmpeg are appreciated as well
}


    


    As you can see from comment in above code, I don't have any idea how I should even begin handling this, I tried searching for similar questions but all I could find was how to do VideoCapture using streams, nothing related to outputting to a stream.

    


    I am relatively new to this and this might seem like a very basic question to many of you, please do excuse me.