Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (32)

  • 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

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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (6039)

  • I am getting this "Error : FFmpeg/avconv not found !"

    5 septembre 2024, par Fhabbulous

    I am trying to create a discord bot, however receive this error every time I try to run a youtube link.

    


    Error: FFmpeg/avconv not found!
    at Function.getInfo (C:\Users\-\discord-bot\node_modules\prism-media\src\core\FFmpeg.js:130:11)
    at Function.create (C:\Users\-\discord-bot\node_modules\prism-media\src\core\FFmpeg.js:143:38)
    at new FFmpeg (C:\Users\-\discord-bot\node_modules\prism-media\src\core\FFmpeg.js:44:27)
    at AudioPlayer.playUnknown (C:\Users\-\discord-bot\node_modules\discord.js\src\client\voice\player\BasePlayer.js:47:20)
    at VoiceConnection.play (C:\Users\-\discord-bot\node_modules\discord.js\src\client\voice\util\PlayInterface.js:71:28)
    at Object.play (C:\Users\-\discord-bot\commands\play.js:78:8)
    at Object.execute (C:\Users\-\discord-bot\commands\play.js:48:16)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14004) UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message
    at RequestHandler.execute (C:\Users\-\discord-bot\node_modules\discord.js\src\rest\RequestHandler.js:170:25)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:14004) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandl
ed promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:14004) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


    


    I installed ffmpeg with npm install -g ffmpeg-binaries to try and install it globally. I also added ffmpeg to PATH, but that did not seem to work.

    


    Anyway to fix it ?

    


  • Why am I getting FFMPEG "cannot set sample format 0x10000 2 (Invalid argument)" error ? [duplicate]

    30 mars 2020, par Embedded

    I’m trying to stream audio input from Seeed Studio 4-Mic-Array Respeaker on desired IP address and port on Raspberry Pi 4.

    Command that I’m using is :

    ffmpeg -re -f alsa -i hw:1,0 -ac 4 -ar 16000 -f rtp rtp://10.0.0.1:1234

    Error I’m getting is :

    cannot set sample format 0x10000 2 (Invalid argument)

    Result from arecord --dump-hw-params -D hw:1,0 command is :

    Recording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
    HW Params of device "hw:1,0":
    --------------------
    ACCESS:  MMAP_INTERLEAVED RW_INTERLEAVED
    FORMAT:  S32_LE
    SUBFORMAT:  STD
    SAMPLE_BITS: 32
    FRAME_BITS: 128
    CHANNELS: 4
    RATE: [8000 48000]
    PERIOD_TIME: (333 2048000]
    PERIOD_SIZE: [16 16384]
    PERIOD_BYTES: [256 262144]
    PERIODS: [2 2048]
    BUFFER_TIME: (666 4096000]
    BUFFER_SIZE: [32 32768]
    BUFFER_BYTES: [512 524288]
    TICK_TIME: ALL
    --------------------
    arecord: set_params:1299: Sample format non available
    Available formats:
    - S32_LE
  • OpenCV VideoWriter produces "can't find starting number" error

    5 avril 2020, par user3325139

    I am trying to write 16-bit grayscale video using the FFV1 codec and opencv.ImageWriter on Windows 10

    



    Here is my code :

    



    import numpy as np
import cv2, pdb

print(cv2.getBuildInformation())

def to8(img):
    return (img/256).astype('uint8')

cap = cv2.VideoCapture(0+cv2.CAP_DSHOW)
cap.set(cv2.CAP_PROP_FOURCC, cv2.VideoWriter_fourcc('Y','1','6',' '))
cap.set(cv2.CAP_PROP_CONVERT_RGB, False)

out = cv2.VideoWriter('out.avi', cv2.VideoWriter_fourcc('F','F','V','1'), cap.get(cv2.CAP_PROP_FPS), (int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)),int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))))

while True:
    ret, frame = cap.read()
    frame = cv2.normalize(frame,None,0,65535,cv2.NORM_MINMAX)

    cv2.imshow('Video',to8(frame))
    out.write(frame)

    if cv2.waitKey(1) & 0xFF == ord('q'):
        break
cap.release()
out.release()
cv2.destroyAllWindows()


    



    And here is my error :

    



    [ERROR:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap.cpp (415) cv::VideoWriter::open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): out.avi in function 'cv::icvExtractPattern'


    



    I am running this script from a command window with admin privileges. I've tried both making sure the output file does and does not exist before running.

    



    My OpenCV build information is here : https://pastebin.com/whtF6ixG

    



    Thanks !

    



    EDIT :
Based on Rotem's suggestion, instead of using VideoWriter I piped directly to FFMPEG using ffmpeg-python :

    



    import numpy as np
import cv2, pdb
import ffmpeg

def to8(img):
    return (img/256).astype('uint8')

cap = cv2.VideoCapture(0+cv2.CAP_DSHOW)
cap.set(cv2.CAP_PROP_FOURCC, cv2.VideoWriter_fourcc('Y','1','6',' '))
cap.set(cv2.CAP_PROP_CONVERT_RGB, False)

ff_proc = (
    ffmpeg
    .input('pipe:',format='rawvideo',pix_fmt='gray16le',s='%sx%s'%(int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)),int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))),r='60')
    .output('out3.avi',vcodec='ffv1',an=None)
    .run_async(pipe_stdin=True)
)

while True:
    ret, frame = cap.read()

    cv2.imshow('Video',to8(frame))
    ff_proc.stdin.write(frame)

    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

out.terminate()
cap.release()
cv2.destroyAllWindows()