Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (20)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (7225)

  • Pipe opencv images to ffmpeg using python

    16 avril 2022, par jlarsch

    How can I pipe openCV images to ffmpeg (running ffmpeg as a subprocess) ?
(I am using spyder/anaconda)

    



    I am reading frames from a video file and do some processing on each frame.

    



    import cv2   
cap = cv2.VideoCapture(self.avi_path)
img = cap.read()
gray = cv2.cvtColor(img[1], cv2.COLOR_BGR2GRAY)
bgDiv=gray/vidMed #background division


    



    then, to pipe the processed frame to ffmpeg, I found this command in a related question :

    



    sys.stdout.write( bgDiv.tostring() )


    



    next, I am trying to run ffmpeg as a subprocess :

    



    cmd='ffmpeg.exe -f rawvideo -pix_fmt gray -s 2048x2048 -r 30 -i - -an -f avi -r 30 foo.avi'
sp.call(cmd,shell=True)


    



    (this also from the mentioned post)
However, this fills my IPython console with cryptic hieroglyphs and then crashes it. any advice ?

    



    ultimately, I would like to pipe out 4 streams and have ffmpeg encode those 4 streams in parallel.

    


  • Pipe opencv images to ffmpeg using python

    9 décembre 2015, par jlarsch

    How can I pipe openCV images to ffmpeg (running ffmpeg as a subprocess) ?
    (I am using spyder/anaconda)

    I am reading frames from a video file and do some processing on each frame.

    import cv2  
    cap = cv2.VideoCapture(self.avi_path)
    img = cap.read()
    gray = cv2.cvtColor(img[1], cv2.COLOR_BGR2GRAY)
    bgDiv=gray/vidMed #background division

    then, to pipe the processed frame to ffmpeg, I found this command in a related question :

    sys.stdout.write( bgDiv.tostring() )

    next, I am trying to run ffmpeg as a subprocess :

    cmd='ffmpeg.exe -f rawvideo -pix_fmt gray -s 2048x2048 -r 30 -i - -an -f avi -r 30 foo.avi'
    sp.call(cmd,shell=True)

    (this also from the mentioned post)
    However, this fills my IPython console with cryptic hieroglyphs and then crashes it. any advice ?

    ultimately, I would like to pipe out 4 streams and have ffmpeg encode those 4 streams in parallel.

  • python - tqdm progress bar on ffmpeg process with avs pipe

    9 octobre 2019, par MeSo2

    I am trying to implement a tqdm progress bar, but have no idea on how to do this when calling ffmpeg with check_output. (Most of the commands are set inside the avs file.)

    from subprocess import check_output
    check_output("ffmpeg -i \"temp_AVS.avs\" -c:v libx264 -b:v 25M -c:a aac 1.mp4", shell=True)

    I cam across this Can ffmpeg show a progress bar ? but nothing hints on how to best implement it with my code.

    I also found this related post How to link the ffmpeg transcoding process information into a vb6 GUI app ?, and it look like I just need to call for the ffmpeg output. But I am note sure how to do that.