Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (35)

  • 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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (6889)

  • Cannot find installation of real FFmpeg (which comes with ffprobe)

    29 mars 2023, par Asm Goni

    I was trying to fit a generator into a model and I got this error : 
AssertionError: Cannot find installation of real FFmpeg (which comes with ffprobe).

    



    I have looked over many of the solutions on GitHub and other questions on Stack Overflow but none of them worked for me.

    



    Here is one of the commands I ran :

    



    sudo add-apt-repository ppa:mc3man/trusty-media  
sudo apt-get update  
sudo apt-get install ffmpeg  
sudo apt-get install frei0r-plugins  


    



    pip list also indicates the presence of ffmpeg-1.4

    



    In addition, I tried force reinstalling and updating ffmpeg just in case any dependencies were not installed properly.

    



    I also set the skvideo's path for ffmpeg manually :

    



    skvideo.setFFmpegPath('/usr/local/lib/python3.6/dist-packages/ffmpeg/')


    



    This returns : /usr/local/lib/python3.6/dist-packages/skvideo/__init__.py:306: UserWarning: ffmpeg/ffprobe not found in path: /usr/local/lib/python3.6/dist-packages/ffmpeg/
  warnings.warn("ffmpeg/ffprobe not found in path: " + str(path), UserWarning)

    



    By the way, when I try installing, it also returns this error, I don't know what to do about this :

    



    Get:127 http://archive.ubuntu.com/ubuntu bionic/main amd64 vdpau-driver-all amd64 1.1.1-3ubuntu1 [4,674 B]
Fetched 60.4 MB in 7s (8,769 kB/s)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/w/wavpack/libwavpack1_5.1.0-2ubuntu1.1_amd64.deb  404  Not Found [IP: 91.189.88.149 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


    



    I ran apt-get update --fix-missing and that didn't make anything better.

    



    Is there a solution to this ?

    


  • dnn : add DCO_RGB color order to enum DNNColorOrder

    6 mai 2021, par Ting Fu
    dnn : add DCO_RGB color order to enum DNNColorOrder
    

    Adding DCO_RGB color order to DNNColorOrder, since tensorflow model
    needs this kind of color oder as input.

    Signed-off-by : Ting Fu <ting.fu@intel.com>

    • [DH] libavfilter/dnn/dnn_backend_tf.c
    • [DH] libavfilter/dnn/dnn_io_proc.c
    • [DH] libavfilter/dnn_interface.h
  • cv2/ffmpeg "grabFrame packet read max attempts exceeded" error after exactly reading certain number of frames

    26 juin, par banjaxing

    I am using OpenCV to extract frames from videos, run a segmentation AI model, and save the frames and masks to a folder. When I run my code to extract the frame from I encounter the error "grabFrame packet read max attempts exceeded" after processing a certain number of frames. This issue occurs consistently for the same videos across multiple environments.

    &#xA;

    Error message :

    &#xA;

    [ WARN:0@379.898] global cap_ffmpeg_impl.hpp:1541 grabFrame packet read max attempts exceeded, if your video have multiple streams (video, audio) try to increase attempt limit by setting environment variable OPENCV_FFMPEG_READ_ATTEMPTS (current value is 10000)&#xA;

    &#xA;

    Minimum Reproducible Example

    &#xA;

    import os&#xA;import cv2&#xA;&#xA;videofilename = "test.mp4"&#xA;capture = cv2.VideoCapture(videofilename)&#xA;frameNum = 0&#xA;&#xA;createfolder = os.getcwd() &#x2B; &#x27;/&#x27; &#x2B; videofilename.split(".")[0] &#x2B; &#x27;/&#x27;&#xA;if not os.path.exists(createfolder):&#xA;    os.makedirs(createfolder)&#xA;    os.makedirs(createfolder &#x2B; "/frames/")&#xA;&#xA;while True:&#xA;    success, frame = capture.read()&#xA;    if success is False:&#xA;        break&#xA;    frameNum &#x2B;= 1&#xA;    framedownloadname = videofilename.split(".")[0] &#x2B; &#x27;-fr&#x27; &#x2B; str(frameNum) &#x2B; &#x27;.jpg&#x27;&#xA;    framedownloadloc = createfolder &#x2B; &#x27;/frames/&#x27; &#x2B; framedownloadname&#xA;    print(framedownloadloc)&#xA;    cv2.imwrite(framedownloadloc, frame)&#xA;    img = cv2.imread(framedownloadloc)&#xA;    img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)&#xA;&#xA;capture.release()&#xA;

    &#xA;

    As suggested in error, I increased the OPENCV_FFMPEG_READ_ATTEMPTS env variable up to 10000. However, this seems to have little to no effect on the number of frames before the error appears.

    &#xA;