Recherche avancée

Médias (0)

Mot : - Tags -/configuration

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

Autres articles (74)

  • Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur

    8 février 2011, par

    La visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
    Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
    Configuration de la boite multimédia
    Dès (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (6490)

  • ffmpeg Output file #0 does not contain any stream when trying to access 1 of 2 audio streams

    7 juillet 2019, par nulltorpedo
    ffmpeg -i input.mkv  -map 0:2 -c copy -strict -2  audio.mkv

    Hi I have the above command. The output shows that there are 2 audio streams. I want to copy just the ac3 audio (actually I want to convert it but even this copy does not work). I have truncated the output print where there is metadata

    NEW updated sample with full log which results in same message

    ffmpeg -i input.mka -map 0:0 -c:a libfdk_aac   aac_out.m4a
    ffmpeg version 2.7.1 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease)
     configuration: --prefix=/usr --incdir='${prefix}/include/ffmpeg' --arch=i686 --target-os=linux --cross-prefix=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --enable-version3 --enable-nonfree --enable-libfaac --enable-encoders --enable-pthreads --disable-bzlib --disable-protocol=rtp --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffserver --disable-ffplay --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-vaapi --disable-decoder=amrnb --disable-decoder=ac3 --disable-decoder=ac3_fixed --disable-encoder=zmbv --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ccache-gcc --enable-yasm --enable-libx264 --enable-encoder=libx264
     libavutil      54. 27.100 / 54. 27.100
     libavcodec     56. 41.100 / 56. 41.100
     libavformat    56. 36.100 / 56. 36.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 16.101 /  5. 16.101
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.100 /  1.  2.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, matroska,webm, from '/volume1/..../input.mka':
     Metadata:
       encoder         : libebml v1.3.9 + libmatroska v1.5.2
       creation_time   : 2019-07-07 06:19:20
     Duration: 02:29:21.98, start: 0.000000, bitrate: 640 kb/s
       Stream #0:0(eng): Audio: ac3, 48000 Hz, 5.1(side), 640 kb/s
       Metadata:
         BPS-eng         : 640000
         DURATION-eng    : 02:29:21.984000480
         NUMBER_OF_FRAMES-eng: 280062
         NUMBER_OF_BYTES-eng: 716958720
         _STATISTICS_WRITING_APP-eng: mkvmerge v35.0.0 ('All The Love In The World') 64-bit
         _STATISTICS_WRITING_DATE_UTC-eng: 2019-07-07 06:19:20
         _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Output #0, ipod, to 'aac_out.m4a':
     Metadata:
       encoder         : libebml v1.3.9 + libmatroska v1.5.2
    Output file #0 does not contain any stream
  • Anomalie #3625 (Nouveau) : Utilisation de classe "namespacée" en tant que filtre.

    16 décembre 2015, par Julien CITERNE

    Hello World,

    J’ai depuis longtemps déjà utilisé certaines méthodes de classes en tant que filtre. Quelque chose dans le style [(#REM|MaClasse::MaMethod)] et pour ça aucun soucis.

    Cependant, j’ai eu dernièrement besoin de recourir à une classe d’une librairie, cette classe possédant un namespace.
    L’appel "Classique" [(#REM|MaClasse::MaMethod)] me renvoie une erreur de squelette ( rien d’anormal selon moi ), mais l’appel à ma Classe via l’utilisation du namespace en fait de même : [(#REM|NameSpace\MaClasse::MaMethod)]

    J’ai pourtant remarqué dans cette fonction ( => https://core.spip.net/projects/spip/repository/entry/spip/ecrire/inc/filtres.php#L76 ) que l’utilisation des namespace devait être prise en charge.

    Seulement voilà, j’ai noté 2 soucis potentiels.

    1 ) - Dans la 1ère partie du test ( l.100 ), cette Regex preg_match("/^(\w*)::(\w*)$/", $f, $regs) ne match aucun backspace. Dès lors, impossible de détecter un namespace.
    2 ) - La seconde partie du test and is_callable(array($regs[1], $regs[2])) ne fonctionne qu’avec une classe sans namespace, ou $regs1 = MaClass et $regs2 = MaMethod

    Une correction possible serait de rajouter un test ( elseif, if, etc. ) pour ces cas là avec un contenu de test semblable ?

    preg_match("/^([a-zA-Z_\\\\]*?)\\\\?([a-zA-Z_]*)::([a-zA-Z_]*)$/", 'NameSpace\MaClass::MaMethod', $regs); // Nb le quadruple backspace est volontaire pour une utilisation en php<br />$className = $regs[1].'\\'.$regs[2]; // $regs[1] = NameSpace et $regs[2] = MaClass <br />is_callable(array(new $className(), $regs[3])); // true si la fonctione existe. Noter qu'on passe à is_callable une instance de la classe ? ( cf.http://php.net/manual/fr/function.is-callable.php )<br />

    Peut-être est-ce hors sujet ? Quoi qu’il en soit le débat ( et l’issue ) sont ouverts, je vous laisserais le soin de les fermer si ce n’est pas pertinent.

    Cordialement.

    Witi

  • Error with RTSP Stream in Node.js : Could not find codec parameters for stream 0 (Video : h264, none)

    7 août 2023, par theplaceofburak

    I have a Node.js application that uses the node-rtsp-stream package to stream an RTSP video from an IP camera. However, when I run the application, I encounter the following errors in the console after a few minutes :

    &#xA;

    [rtsp @ 000002402795dd80] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options&#xA;Input #0, rtsp, from &#x27;rtsp://fake_test:jksdfhskhdfsomethingfake@111.111.11.1111:50213/cam/realmonitor?channel=1&amp;subtype=1&#x27;(fake rtsp link used for privacy)&#x27;:&#xA;  Metadata:&#xA;    title           : Media Server&#xA;  Duration: N/A, bitrate: N/A&#xA;  Stream #0:0: Video: h264, none, 90k tbr, 90k tbn&#xA;Output #0, mpegts, to &#x27;pipe:&#x27;:&#xA;[out#0/mpegts @ 0000024027987b80] Output file does not contain any stream&#xA;Error opening output file -.&#xA;Error opening output files: Invalid argument&#xA;RTSP stream exited with error&#xA;

    &#xA;

    I am certain that the RTSP stream from the camera is in H.264 - MPEG-4 AVC format, and I can play it in VLC without any issues. However, when I try to stream it using the node-rtsp-stream package, I encounter these errors.

    &#xA;

    Here is my Node.js code :

    &#xA;

    const express = require(&#x27;express&#x27;);&#xA;const Stream = require(&#x27;node-rtsp-stream&#x27;);&#xA;&#xA;const app = express();&#xA;const port = 4000;&#xA;&#xA;&#xA;const stream = new Stream({&#xA;  name: &#x27;rtsp_server_name&#x27;,&#xA;  streamUrl: &#x27;rtsp://fake_test:jksdfhskhdfsomethingfake@111.111.11.1111:50213/cam/realmonitor?channel=1&amp;subtype=1&#x27;(fake rtsp link used for privacy),&#xA;  wsPort: 9999,&#xA;  ffmpegOptions: {&#xA;    &#x27;-stats&#x27;: &#x27;&#x27;, // an option with no necessary value uses a blank string&#xA;    &#x27;-r&#x27;: 30, // options with required values specify the value after the key&#xA;  },&#xA;});&#xA;&#xA;// Middleware to log each request&#xA;app.use((req, res, next) => {&#xA;  console.log(`${req.method} ${req.url}`);&#xA;  next();&#xA;});&#xA;&#xA;app.get(&#x27;/&#x27;, (req, res) => {&#xA;  res.send(&#x27;Hello World&#x27;);&#xA;});&#xA;&#xA;app.listen(port, () => {&#xA;  console.log(`Server running at http://localhost:${port}/`);&#xA;});&#xA;&#xA;// Event listener to check if the RTSP stream is ready&#xA;stream.on(&#x27;data&#x27;, (data) => {&#xA;  if (data.includes(&#x27;frame=&#x27;)) {&#xA;    console.log(&#x27;RTSP stream is ready and streaming.&#x27;);&#xA;  }&#xA;});&#xA;

    &#xA;

    I have tried increasing the values for 'analyzeduration' and 'probesize' options, but the errors persist. How can I resolve these errors and successfully stream the RTSP video in H.264 format using the node-rtsp-stream package ? Any help or guidance would be appreciated. Thank you !

    &#xA;