Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (33)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

Sur d’autres sites (6480)

  • Fix x264 dependency Error when Pacman Update [closed]

    5 février 2020, par NIMA SEDAGHAT

    when i want to remove x264 my manjaro i get some errors :

    



    sudo pacman -R x264
[sudo] password for nima: 
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing x264 breaks dependency 'libx264.so=157-64' required by ffmpeg
:: removing x264 breaks dependency 'libx264.so=157-64' required by ffmpeg2.8
:: removing x264 breaks dependency 'x264' required by gst-plugins-ugly


    



    and when i update :

    



    sudo pacman -Syu
:: Synchronizing package databases...
 extra-alucryd is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 sublime-text is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing x264 (3:0.159.r2991.1771b55-1) breaks dependency 'libx264.so=157-64' required by ffmpeg
:: installing x264 (3:0.159.r2991.1771b55-1) breaks dependency 'libx264.so=157-64' required by ffmpeg2.8



    



    how i fix this problem ?

    


  • FFMPEG remote IP camera over RTSP h.264 format to HLS Localhost m3u8 format [closed]

    25 juillet, par macmeyers50

    I'm trying to convert the remote IP camera over RTSP to a localhost HLS format so that I can display it in a UI. I'm using a java library that only supports HLS over HTTP not remote IP camera.

    



    I'm under the impression FFMPEG can do this because I can write the HLS file just fine directly to my disc but when I change the target to something like http://localhost:8080/stream.m3u8 it cannot seem to connect to localhost.

    



    Below is my attempted FFMPEG command (IP/User/Pass left off) but I know that it can at least connect and read the RTSP camera fine.

    



    ffmpeg -i rtsp://[Username]:[Password]@[IP]/axis-media/media.amp?videocodec=h264 -rtsp_transport ffplay http://localhost:8080/media.m3u8


    



    The error I'm getting back is Connection to tcp ://localhost:8080 failed : Error number -138 occurred

    



    I thought that ffmpeg could handle hosting the file on localhost itself. FFServer is deprecated and removed but according to documentation it can still kick up a server just fine

    



    https://ffmpeg.org/index.html#ffserv

    


  • i am trying to make my ipcamera stream over webrtc usingnodejs and kurento media server

    5 mai 2023, par vishnu nair

    i am new at webrtc and rtsp, while trying to make a project on webrtc i came to a halt in my code and after weeks of online search adn usng chatgpt am still not able to resolve my problem. I want to stream my ipcamera to webrtc but the code is not working properly.am not above to start the stream.

    


    the code is given below

    


    const wrtc = require('wrtc');
const kurento = require('kurento-client');
const mqtt = require('mqtt');
const node_ffmpeg_stream = require('node-ffmpeg-stream');

const mqttonline_connection = require('../../mqttconnection/online_mqtt_connection');
const clientonline = mqttonline_connection.returnconnection();
const topiconline = mqttonline_connection.topic;

const RTSP_URL = 'rtsp://admin:password@192.168.0.100:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1';

async function startStreaming() {
  try {
    // Create Kurento client and pipeline
    const kurentoClient = await kurento('ws://localhost:8888/kurento');
    const pipeline = await kurentoClient.create('MediaPipeline');

    // Create WebRTC endpoint
    const webRtcEndpoint = await pipeline.create('WebRtcEndpoint');
    webRtcEndpoint.setMaxVideoRecvBandwidth(10000000); // Set max bandwidth to 10 Mbps

    // Create RTSP source and connect it to the WebRTC endpoint
    const rtspEndpoint = await pipeline.create('RtspEndpoint', {uri: RTSP_URL});
    rtspEndpoint.connect(webRtcEndpoint);

    // Start streaming
    webRtcEndpoint.gatherCandidates();

    // Subscribe to ICE candidate events and send them via MQTT
    webRtcEndpoint.on('OnIceCandidate', event => {
      const candidate = kurento.getComplexType('IceCandidate')(event.candidate);

      clientonline.publish('sdp', JSON.stringify(candidate));
    });

    // Subscribe to ICE connection state events and log them
    webRtcEndpoint.on('IceConnectionStateChanged', event => {
      console.log(`ICE connection state changed to ${event.state}`);
    });

    // Generate SDP offer and send it via MQTT
    const sdpOffer = await webRtcEndpoint.generateOffer();
    clientonline.publish('sdp', JSON.stringify(sdpOffer));

    // Start the RTSP source
    rtspEndpoint.play();

    // Listen for incoming SDP answers via MQTT and set them on the WebRTC endpoint
    clientonline.subscribe('answer');
    clientonline.on('message', (topic, message) => {
      if (topic === 'answer') {
        const sdpAnswer = JSON.parse(message);
        webRtcEndpoint.processAnswer(sdpAnswer);
      }
    });

    // Listen for incoming ICE candidates via MQTT and add them to the WebRTC endpoint
    clientonline.subscribe('candidate');
    clientonline.on('message', (topic, message) => {
      if (topic === 'candidate') {
        const candidate = JSON.parse(message);
        webRtcEndpoint.addIceCandidate(candidate);
      }
    });

    // Handle errors
    webRtcEndpoint.on('Error', error => {
      console.error('WebRTC endpoint error:', error);
    });
    rtspEndpoint.on('Error', error => {
      console.error('RTSP endpoint error:', error);
    });
    pipeline.on('Error', error => {
      console.error('Pipeline error:', error);
    });
  } catch (error) {
    console.error('Error starting streaming:', error);
  }
}

startStreaming();


    


    am getting the error as

    


      Error starting streaming: SyntaxError: Unknown type '[object Object]'
    at getConstructor (/home/user/Desktop/ghome/node_modules/kurento-client/lib/MediaObjectCreator.js:55:17)
    at createConstructor (/home/user/Desktop/ghome/node_modules/kurento-client/lib/MediaObjectCreator.js:74:21)
    at createMediaObject (/home/user/Desktop/ghome/node_modules/kurento-client/lib/MediaObjectCreator.js:140:23)
    at MediaObjectCreator.create (/home/user/Desktop/ghome/node_modules/kurento-client/lib/MediaObjectCreator.js:263:12)
    at startStreaming (/home/user/Desktop/ghome/extra/webrtc/mqttwrtc.js:25:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  type: {
    params: 'rtsp://admin:password@192.168.0.100:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1',
    type: 'RtspEndpoint'
  }
}