Recherche avancée

Médias (1)

Mot : - Tags -/swfupload

Autres articles (97)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (9304)

  • How to retrieve FFMPEG (called from OpenCV) Python decoding error

    15 décembre 2020, par user9784065

    While trying to read a video stream form an IP camera using :

    



    stream = cv2.VideoCapture(src)
(grabbed, frame) = stream.read()


    



    The grabbed returns True while sometimes the frames are corrupted (probably due to high CPU load). An internal Opencv error like the following is showing on the terminal :

    



    [h264 @ 0x25e99400] error while decoding MB 87 29, bytestream -5


    



    Is there a way to catch this error ? Please note that I tried the obvious try:except with cv2.error etc. In such case of corrupted frame it would be preferable to restart the connection to the camera.

    


  • atrac3 : fix error handling

    9 juillet 2013, par Luca Barbato
    atrac3 : fix error handling
    

    decode_tonal_components returns a proper AVERROR.

    Reported-by : Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/atrac3.c
  • RTSP stream to ffmpeg problems

    14 octobre 2022, par maeek

    I'm writing a web application for managing and viewing streams from ONVIF ip-cameras.
    &#xA;It's written in nodejs. The idea is to run a child process in node and pipe output to node, then send the buffer to client and render it on canvas. I have a working solution for sending data to client and rendering it on canvas using websockets but it only works on one of my cameras.

    &#xA;

    I own 2 IP cameras and both of them have rtsp server.
    &#xA;One of them(let's name it camX) kind of works with this ffmpeg command (sometimes it just stops, maybe due to packet losses) :

    &#xA;

    ffmpeg -rtsp_transport tcp -re -i  -f mjpeg pipe:1&#xA;

    &#xA;

    But the other one(camY) returns Nonmatching transport in server reply and exits.

    &#xA;

    I discovered that the camY transport is unicast but ffmpeg doesn't support this particular lower_transport as I read on ffmpeg forum.

    &#xA;

    So I started looking for a solution. My first idea was to use openRTSP which works fine with both streams.&#xA;I looked at the documentation and came up with this command :
    &#xA;openRTSP -4 -c  | ffmpeg -re -i pipe:0 -f mjpeg pipe:1
    &#xA;-4 parameter returns stream to pipe in mp4 format
    &#xA;And here's another problem I ran into, ffmpeg returns :

    &#xA;

    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x559a4b6ba900] moov atom not found  &#xA;pipe:0: Invalid data found when processing input&#xA;

    &#xA;

    Is there any way to make this work ?&#xA;I tried various solutions I found, but none of them worked.

    &#xA;

    EDIT

    &#xA;

    As @Gyan suggested I used -i parameter instead of -4 but it didn't solve my problem.

    &#xA;

    My command :

    &#xA;

    openRTSP -V -i -c -K  | ffmpeg -loglevel debug -re -i pipe:0 -f mjpeg pipe:1&#xA;  &#xA;Created receiver for "video/H264" subsession (client ports 49072-49073)&#xA;Setup "video/H264" subsession (client ports 49072-49073)&#xA;AVIFileSink::setWord(): SeekFile64 failed (err 29)&#xA;AVIFileSink::setWord(): SeekFile64 failed (err 29)&#xA;AVIFileSink::setWord(): SeekFile64 failed (err 29)&#xA;AVIFileSink::setWord(): SeekFile64 failed (err 29)&#xA;AVIFileSink::setWord(): SeekFile64 failed (err 29)&#xA;AVIFileSink::setWord(): SeekFile64 failed (err 29)&#xA;AVIFileSink::setWord(): SeekFile64 failed (err 29)&#xA;AVIFileSink::setWord(): SeekFile64 failed (err 29)&#xA;AVIFileSink::setWord(): SeekFile64 failed (err 29)&#xA;Outputting to the file: "stdout"&#xA;[avi @ 0x5612944268c0] Format avi probed with size=2048 and score=100&#xA;[avi @ 0x56129442f7a0] use odml:1&#xA;Started playing session&#xA;Receiving streamed data (signal with "kill -HUP 15028" or "kill -USR1 15028" to terminate)...&#xA;^C&#xA;[AVIOContext @ 0x56129442f640] Statistics: 16904 bytes read, 0 seeks&#xA;pipe:0: Invalid data found when processing input&#xA;

    &#xA;

    As you can see openRTSP command return err 29 but in meantime it outputs some data to pipe.
    &#xA;When I terminate the command ffmpeg shows that it read some data but couldn't process it.

    &#xA;

    Here's the function that produces that error :

    &#xA;

    void AVIFileSink::setWord(unsigned filePosn, unsigned size) {&#xA;  do {&#xA;    if (SeekFile64(fOutFid, filePosn, SEEK_SET) &lt; 0) break;&#xA;    addWord(size);&#xA;    if (SeekFile64(fOutFid, 0, SEEK_END) &lt; 0) break; // go back to where we were&#xA;&#xA;    return;&#xA;  } while (0);&#xA;&#xA;  // One of the SeekFile64()s failed, probable because we&#x27;re not a seekable file&#xA;  envir() &lt;&lt; "AVIFileSink::setWord(): SeekFile64 failed (err "&#xA;          &lt;&lt; envir().getErrno() &lt;&lt; ")\n";&#xA;}&#xA;

    &#xA;

    In my opinion it looks like it won't be able to seek file because it's a stream not a static file.
    &#xA;Any suggestion for a workaround ?

    &#xA;