Recherche avancée

Médias (91)

Autres articles (79)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

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

Sur d’autres sites (5806)

  • Capture & save MJPG CCTV stream to file w. FFMPEG

    21 juin 2021, par GBano

    I've been trying to record an IP-cam stream (Foscam, mjpg) via http with ffmpeg.
Can't get the rtsp stream for some reason, but the http/mjpg works fine (VLC IDed it as mjpg).

    


    The stream URL looks like this :
http://192.168.1.123:456/videostream.cgi?user=USERNAME&pwd=PWD

    


    So I created the string (w.o line wrap) :
ffmpeg -i -loglevel debug http://192.168.1.123:456/videostream.cgi?user=USERNAME&pwd=PWD /home/user/Videos/camera.mp4

    


    Some examples I saw are using -c copy and map 0 options as well but I left this out since I defined source and destination clearly and this is just a video, no audio.
segment_time and segment_format I also left out for now (I'd like segments later though- when it's working).

    


    FFMPEG returns : "bash: /home/user/Videos/camera.mp4: No such file or directory"

    


    So I tried a random mjpg stream from the net (Insecam is a nice source for this...) : http://58.69.178.54:80/mjpg/video.mjpg

    


    Leading to :
ffmpeg copy -i -loglevel debug -hide_banner http://58.69.178.54:80/mjpg/video.mjpg /home/user/Videos/camera.mp4

    


    Returns : -loglevel: "No such file or directory" (the same with segment options included, copy excluded).

    


    Shouldn't FFMPEG create the destination file ?

    


    One example mixed FFMPEG with CVLC (Save continuous RTSP stream to 5-10 minute long mp4 files) so I just tried with cvlc.
cvlc http://58.69.178.54:80/mjpg/video.mjpg copy /home/user/Videos/camera.mp4
This opens the stream in a VLC window (despite that I use Cvlc) but does not create a destination file.

    


    I suspect I must have missed something simple & silly, but what ?

    


  • ffmpeg - RTSP stream with no audio to html5 video tag over mp4 fragmented stream

    17 mai 2021, par Play_it

    I am already trying to make a live video feed on my website and found this code but it does not work as nicely as i wanted to. I modified the code a bit to just process the video feed and not the screenshots.

    


    I have stuttering and also lags where the video continues playing but the video does not update.

    


    This is my mod :

    


    if(isset($_GET["type"]) && !empty($_GET["type"])) {
    header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
    header("Cache-Control: post-check=0, pre-check=0", false);
    header("Pragma: no-cache");
    header("Accept-Ranges: bytes");
    header("Connection: keep-alive");

    $rtsp = "rtsp://[some ip]:554/some/path";

    $ffmpeg_base = "ffmpeg -rtsp_transport tcp -probesize 32 -stimeout 5000000 -i \"{$rtsp}\" -loglevel quiet";
    $duration_limit = 600;
    $def_rate = 6;

    $type = $_GET["type"];
    switch($_GET["type"]) {
        case "mjpeg":
            $Ct = "multipart/x-mixed-replace;boundary=mjpegboundery";
            $ffmpeg_params = "-b:v 512k -s 426x240 -r 2";
            break;
        case "mp4":
            $Ct = "video/mp4";
            $ffmpeg_params = "-c copy -an -movflags +frag_keyframe+separate_moof+omit_tfhd_offset+empty_moov";
            break;
        case "webm":
            $Ct = "video/webm";
            $ffmpeg_params = "-c:v vp8 -b:v 256k -an -s 426x240 -r {$def_rate}";
            break;
        case "ogg":
            $Ct = "video/ogg";
            $ffmpeg_params = " -c:v libtheora -b:v 256k -an -s 426x240 -r {$def_rate}";
            break;
        default:
            exit;
    }
    header("Content-type: $Ct");
    passthru("{$ffmpeg_base} -t {$duration_limit} {$ffmpeg_params} -f $type pipe:");
}


    


    I dont know much about ffmpeg and have some difficulties to set the stream up.

    


    My approch would be to decode the stream and encode it as mp4 fragmented. Maybe you have a better and different solution ?

    


  • ffmpeg volume levels

    14 avril 2021, par josh joyer

    I AM USING WINDOWS

    


    I did recording camera,microphone and system sounds each separately with ffmpeg.

    


    ffmpeg -f dshow -i video="USB2.0 PC CAMERA" output.mkv


    


    Above code for camera recording.

    


    ffmpeg -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{5B4DB0B5-B645-4AFA-930D-4710AAF753DB}" output.wav


    


    And above for microphone.

    


    ffmpeg -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{ADECEC1D-C3CC-4BAE-8516-752251B8B63F}" output.mkv


    


    And above for system audio.

    


    I mixed system audio with microphone like below :

    


    ffmpeg -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{5B4DB0B5-B645-4AFA-930D-4710AAF753DB}" -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{ADECEC1D-C3CC-4BAE-8516-752251B8B63F}" -filter_complex amerge=inputs=2 stream.mp3


    


    BUT there is still issue to volume levels. How do I adjust sound volume levels
for each input or output file ?