Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (96)

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

  • Participer à sa documentation

    10 avril 2011

    La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
    Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
    Pour ce faire, vous pouvez vous inscrire sur (...)

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

Sur d’autres sites (8251)

  • Read h264 stream from an IP camera

    13 juillet 2015, par João Neves

    Currently, I am trying to use opencv to read a video from my Canon VB-H710F camera.

    For this purpose I tried two different solutions :

    SOLUTION 1 : Read the stream from rtsp address

    VideoCapture cam ("rtsp://root:camera@10.0.4.127/stream/profile1=u");

    while(true)
     cam >> frame;

    In this case I am using opencv to directly read from a stream encoded with in H264 (profile1), however this yields the same problem reported here http://answers.opencv.org/question/34012/ip-camera-h264-error-while-decoding/
    As suggested in the previous question, I tried to disable FFMPEG support in opencv installation, which solved the h264 decoding errors but raised other problem.
    When accessing the stream with opencv, supported by gstreame, there is always a large delay associated.
    With this solution I achieve 15 FPS but I have a delay of 5 seconds, which is not acceptable considering that I need a real time application.

    SOLUTION 2 : Read the frames from http address
    while(true)

    startTime=System.currentTimeMillis() ;

           URL url = new URL("h t t p://[IP]/-wvhttp-01-/image.cgi");
           URLConnection con = url.openConnection();
           BufferedImage image = ImageIO.read(con.getInputStream());  
           showImage(image);
           estimatedTime=System.currentTimeMillis()-startTime;
           System.out.println(estimatedTime);
           Thread.sleep(5);
    }

    This strategy simply grabs the frame from the url that the camera provides. The code is in Java but the results are the same in C++ with the curl library.
    This solution avoids the delay of the first solution however it takes little more than 100 ms to grab each frame, which means that I can only achieve on average 10 FPS.

    I would like to know how can I read the video using c++ or another library developed in c++ ?

  • How to retransmit RTSP stream to media server Qt C++

    10 juillet 2021, par vishal dharankar

    I have an application where I receive a RTSP stream on a local IP address . This stream I want to retransmit to a media server which runs on public IP.

    


    Is it possible to forward such stream to next server without deciding and encoding this saving computations ?

    


    Can we use Gstreamer or any other similar library for this ?

    


    Sorry for not attaching any code since I am not sure where to start and what can be a specific library for this .

    


    Any pointers are helpful

    


  • ffmpeg , 2 network cards and multicast stream

    18 juin 2015, par dropbasket

    my knowledge of networks are very poor !!, am a newbie !! ;-)

    I have a small server streaming ffmpeg installed on nginx with 2 network interfaces

    p2p1 is used for WAN which provides http/ssh....

    p4p1 is used to receive multicast data from intranet.

    192.168.0.1 is public network gateway.

    192.168.1.1 is private network gateway (commented for not have internet exit this network)

    239.0.0.*/24 is multicast address.

    Linux distribution
    3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
    Distributor ID : Ubuntu
    Description: Ubuntu 14.04.2 LTS
    Release : 14.04
    Codename : trusty

    My network interfaces config

    auto lo
    iface lo inet loopback

    # NET1
    auto p2p1
    iface p2p1 inet static
           address 192.168.0.100
           netmask 255.255.255.0
           gateway 192.168.0.1

    # NET2
    auto p4p1
    iface p4p1 inet static
           address 192.168.1.100
           netmask 255.255.255.0
       ### gateway 192.168.1.1

    Now my route table

    root@srv:# route
    Tabla de rutas IP del núcleo
    Destino         Pasarela        Genmask         Indic Métric Ref    Uso Interfaz
    default         192.168.0.1     0.0.0.0         UG    0      0        0 p2p1
    192.168.0.0     *               255.255.255.0   U     0      0        0 p2p1
    192.168.1.0     *               255.255.255.0   U     0      0        0 p4p1

    I’m using udpxy on port 4022 for converting IPTV multicast to unicast HTTP

    udpxy -p 4022

    I execute this

    /usr/bin/ffmpeg -i "http://127.0.0.1:4022/rtp/239.0.0.76:8208" -map 0:0 -map 0:1 -c:v libx264 -vf scale=-1:720 -r 25 -profile:v high -level:v 4.0 -crf 18 -preset veryfast -maxrate 2000k -bufsize 2200k -c:a aac -ab 128k -strict -2 -ac 2 -f flv rtmp://127.0.0.1:11111/rtmp/channel1;


    ffmpeg version 2.7 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
     configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab
     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
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.100 /  1.  2.100
     libpostproc    53.  3.100 / 53.  3.100
    http://127.0.0.1:4022/rtp/239.0.0.76:8208: Invalid data found when processing input

    as I can solve this problem ??
    Thanks in advance