Recherche avancée

Médias (91)

Autres articles (111)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

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

Sur d’autres sites (10549)

  • Save .mp4 from YouTube output stream

    15 mai 2023, par walolinux

    I am currently running a Ffmpeg script in Raspbian which works fine. It captures video from an USB webcam and stream it to YouTube.

    


    ffmpeg -thread_queue_size 512 -f v4l2 -video_size 1920x1080 -i /dev/video0 -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict experimental -aspect 16:9 -vcodec h264 -preset veryfast -crf 25 -pix_fmt yuv420p -g 60 -vb 820k -maxrate 820k -bufsize 820k -profile:v baseline -r 30 -f flv rtmp://a.rtmp.youtube.com/live2/XXX-XXX-XXX


    


    But I also want to save the file into an mp4 file.

    


    I have tried adding a .mp4 file to the end, but it generates a corrupt file and the stream does not emit at 1x speed, it get slower to 0.4x

    


    ffmpeg -thread_queue_size 512 -f v4l2 -video_size 1920x1080 -i /dev/video0 -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict experimental -aspect 16:9 -vcodec h264 -preset veryfast -crf 25 -pix_fmt yuv420p -g 60 -vb 820k -maxrate 820k -bufsize 820k -profile:v baseline -r 30 -f flv rtmp://a.rtmp.youtube.com/live2/XXX-XXX-XXX output.mp4


    


    I have also tried without result :

    


    -vcodec copy -acodev copy output.mp4


    


    Any idea ? Thanks.

    


  • 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 ?

    


  • How to save (record) rtsp stream to the disk storage without artifacts and missing seconds ?

    20 septembre 2019, par Bogdan Rudnytskyi

    I need to save (record) rtsp stream to the disk storage.
    I am using nginx-module and ffmpeg for it.
    Here the config for enable recording :

    rtmp {
       live on;
       hls on;
       hls_fragment 5s;
       server {
           listen 1935;
           application cam1 {
               hls_path /tmp/cam1;
           }
           exec_static ffmpeg -rtsp_transport tcp -i rtsp://... -c copy -f flv rtmp://.../cam1/stream;
       }
    }

    Config is creating the flv files, each duration of 5 second.
    Then we need to merge all got files in one file by command :

    ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.flv

    After concated files we are got a problem. When previous 5 seconds end and start next 5 seconds we have artifacts and missing 0.5-1 second.

    Please, get me help with saving rtsp stream without artifacts and missing seconds.