Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (58)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (13829)

  • How to send output stream from ffmpeg into a servlet

    12 mai 2016, par Antonio Mele

    I am trying to get the video stream from an ip camera in my network and redirect it to a servlet.

    Using this command to get the video and redirect the output to standard output

    avconv -f mjpeg -y -i 'http://USER:PASSWORD@192.168.1.5/video.cgi' -r 3 -loglevel 16 -c:v mjpeg -an -qscale 10 -f mp4 -

    Then I would like to call this from a java servlet using ProcessBuilder and sending the streaming to servlet output. So when I will open it from the browser I will get the video streaming.

    I am trying to do this to be able to encode the video as I prefer and to be able to call my web server from Internet to access any camera in my network and avoid to have a port forwarding or nat for every camera.

    If you have any suggestions for other solutions to expose my camera outside my local network having only my public ip (without having to configure my router) are well accepted :)

    thank you

  • Want to send webcam stream to wowza using ffmpeg

    20 octobre 2015, par Ivan Orozco

    I am new to both Wowza and to FFMPEG. I have been testing with ffmpeg and I am able to create local files with video and audio. For example :

    ffmpeg -f dshow -i video="HD Pro Webcam C920" myvideo.mpeg

    ffmpeg -rtbufsize 1500M -f dshow -i video="HD Pro Webcam C920":audio="Microphone (Parallels Audio Con" -pix_fmt yuv420p myvideoandaudio.mp4

    What I want to do is send the stream of my webcam to the Wowza server I have installed locally. I have searched several forums, including this one, and have tried multiple commands but still no luck. I would like to have someone point me in the right direction. Following Wowza’s instructions, I created a Stream File called mystream, which has a stream UI of udp ://0.0.0.0:10100. Also, the application connection settings say that the server’s IP is 10.160.XX.XXX and port 1935. I am using Windows, and the "Shared" version of the FFMPEG downloads. I even changed the XML file following the instructions here, trying to send user credentials (during installation, Wowza asked to create credentials if I was going to use streaming) :

    http://www.wowza.com/forums/content.php?233-How-to-secure-publishing-from-an-RTMP-encoder-that-does-not-support-authentication-(ModuleSecureURLParams)

    I have tried all the following commands :

    ffmpeg -rtbufsize 1500M -f dshow -i video="HD Pro Webcam C920" -f flv rtmp://localhost:1935/live/mystream
    -- failed to connect socket

    ffmpeg -rtbufsize 1500M -f dshow -i video="HD Pro Webcam C920" -f flv rtmp://localhost/live/mystream
    -- failed to read RTMP packet header

    ffmpeg -rtbufsize 1500M -f dshow -i video="HD Pro Webcam C920" -f flv rtmp://10.160.XX.XXX:1935/live/mystream
    -- failed to read RTMP packet header

    ffmpeg -rtbufsize 1500M -f dshow -i video="HD Pro Webcam C920" -f flv rtmp://10.160.XX.XXX/live/mystream
    -- failed to read RTMP packet header

    ffmpeg -rtbufsize 1500M -f dshow -i video="HD Pro Webcam C920" -f flv rtmp://127.0.0.1:1935/live/mystream
    -- failed to read RTMP packet header

    ffmpeg -rtbufsize 1500M -f dshow -i video="HD Pro Webcam C920" -f flv rtmp://127.0.0.1/live/mystream
    -- writeN, rtmp send error 10053

    ffmpeg -rtbufsize 1500M -f dshow -i video="HD Pro Webcam C920" -f flv -vcodec libx264 -acodec aac -strict -2 rtmp://10.160.XX.XXX:1935/live/ivanstream
    -- failed to read RTMP packet header

    ffmpeg -f dshow -i video="HD Pro Webcam C920" -vcodec libx264 -tune zerolatency -b:v 900k -pix_fmt yuv420p -f mpegts udp://0.0.0.0:10100
    -- conversion failed

    ffmpeg -f dshow -i video="HD Pro Webcam C920":audio="Microphone (Parallels Audio Con" -vcodec libx264 -preset ultrafast -tune zerolatency -r 10 -async 1 -acodec libmp3lame -ab 24k -ar 22050 -bsf:v h264_mp4toannexb -maxrate 750k -bufsize 3000k -f mpegts udp://0.0.0.0:10100
    -- conversion failed

    ffmpeg -f dshow -i video="HD Pro Webcam C920" -s 512x288 -vcodec libx264 -b:v 1024k -pix_fmt yuv420p -f flv rtmp://127.0.0.1:1935/live/mystream
    -- failed to read rtmp packet header

    ffmpeg -f dshow -i video="HD Pro Webcam C920" -c:v copy -c:a copy -f flv rtmp://10.160.XX.XXX:1935/live?doPublish=12345/mystream
    -- failed to read rtmp packet header

    ffmpeg -rtbufsize 1500M -f dshow -i video="HD Pro Webcam C920":audio="Microphone (Parallels Audio Con" -r 40 -vcodec libx264 -threads 0 -crf 0 -preset ultrafast -tune zerolatency -f flv rtmp://127.0.0.1:1935/live/mystream
    ffmpeg -rtbufsize 1500M -f dshow -i video="HD Pro Webcam C920":audio="Microphone (Parallels Audio Con" -r 40 -vcodec libx264 -threads 0 -crf 0 -preset ultrafast -tune zerolatency -f flv rtmp://10.160.XX.XXX:1935/live/mystream
    -- rtmp header error

    ffmpeg -y -f dshow -s 640x480 -r:v 15 -i video="HD Pro Webcam C920":audio="Microphone (Parallels Audio Con" -c:v libx264 -b:v -pix_fmt yuv420p -vb 450 -an -map 0:0 -f rtp rtp://127.0.0.1:10000 -flags +global_header -c:a libvo_aacenc -vn -map 0:1 -f rtp rtp://127.0.0.1:10002 > 10000.sdp
    --unable to find suitable output format yuv420p

    References :

    http://www.wowza.com/forums/showthread.php?25777-Live-Webcam-feed-to-WOWZA-Server-over-RTMP-with-H264-encoding

    http://www.factsandpeople.com/facts-mainmenu-5/23-other-software-technologies/258-preventing-real-time-buffer-error-causing-ffmpeg-to-drop-frames-in-screencast

    http://www.wowza.com/forums/content.php?233-How-to-secure-publishing-from-an-RTMP-encoder-that-does-not-support-authentication-(ModuleSecureURLParams)

    Thank you.

  • look for an mp4 file inside a directory and send it to different directory after converting to mp3 in php ?

    13 mai 2019, par flash

    I have a directory called incoming_folder in which there is an mp4 file.

    What I want to achieve through php code is to scan a incoming_folder directory, look for an mp4 file and send it to outgoing_folder after converting it into mp3. Technically outgoing_folder should have mp3 version of mp4 from incoming_folder

    Tried with the following code although its scanning the incoming_folder directory but no conversion is happening through ffmpeg.

    <?php
    $dir    = 'in_folder';  /* Place where mp4 file is present */
    $files1 = scandir($dir);
    print_r($files1);    /* It lists all the files in a directory including mp4 file*/

    $destination = 'out_folder';  /* Place where mp3 file need to be send after conversion from mp4 */

    foreach($files1 as $f)
    {
     $parts = pathinfo($f);

     switch($parts['extension'])
     {
       case 'mp4' :
         system('ffmpeg -i '.$f.' -map 0:2 -ac 1 '.$destination.DS. $parts['filename'].'.mp3', $result);

         if ($result) {
           // Do something with result if you want
           // log for example
         }
         break;

       case 'mp3' :
         // copy($f, $destination. DS . $parts['filename']. '.' . $parts['extension']);
         copy($f, $destination.DS.$parts['filename'].'.mp3');
         break;  
     }
    }
    ?>