Recherche avancée

Médias (91)

Autres articles (41)

  • 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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

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

Sur d’autres sites (4797)

  • Nginx + rtmp + ffmpeg best practice to publish multiple resolutions streaming from video file

    7 novembre 2019, par youssef hamdane

    I want to make livestream from video file to multiple resolutions (480,720) using nginx and rtmp, what is the best practice that I can do for that :

    1 - transcode video and store it with all resolutions that I need when user upload it using ffmpeg, and then publish every file directly

    example :

    rtmp {
       server {
           listen 1935;
           notify_method get;

           application live {
               live on;
               ffmpeg -re -i /path/video_720.mp4
              -re -i /path/video_480.mp4
              -map 0 vcodec libx264 -threads 0 -vprofile baseline -acodec aac -strict -2 -f flv rtmp://localhost:1935/show/${name}_720
              -map 0 vcodec libx264 -threads 0 -vprofile baseline -acodec aac -strict -2 -f flv rtmp://localhost:1935/show/${name}_480
           }

          application show {

               live on;

               hls on;
               hls_path /stream/live/hls;
               hls_nested on;
               record off;

               # Instruct clients to adjust resolution according to bandwidth

               hls_variant _720 BANDWIDTH=2048000; # High bitrate, HD 720p resolution
               hls_variant _480 BANDWIDTH=448000; # Medium bitrate, SD resolution

           }

       }
    }

    2 - keep original video and publish it on different resolutions with ffmpeg

    example :

    rtmp {
       server {
           listen 1935;
           notify_method get;

           application live {
               live on;    

               exec_pull ffmpeg -re -i http://server_ip/$app/$name -vcodec libx264 -threads 0 -vprofile baseline -acodec aac -strict -2 -b:v 1920k -b:a 128k -vf "scale=1280:trunc(ow/a/2)*2" -f flv rtmp://localhost:1935/show/${name}_720
               -vcodec libx264 -threads 0 -vprofile baseline -acodec aac -strict -2 -b:v 1024k -b:a 128k -vf "scale=854:trunc(ow/a/2)*2" -f flv rtmp://localhost:1935/show/${name}_480;
           }

          application show {

               live on;

               hls on;
               hls_path /home/stream/live/hls;
               hls_nested on;
               record off;

               # Instruct clients to adjust resolution according to bandwidth

               hls_variant _720 BANDWIDTH=2048000; # High bitrate, HD 720p resolution
               hls_variant _480 BANDWIDTH=448000; # Medium bitrate, SD resolution

           }

       }
    }
  • hevc transcoded video not playing in safari

    9 juin 2023, par zuccy

    I transcoded a video with ffmpeg to hevc using the below command.

    


    ffmpeg -i input.mp4 -c:v libx265 -crf 23 -preset medium -x265-params keyint=60 -c:a aac -b:a 128k -f hls -hls_time 10 -hls_segment_type fmp4 -hls_playlist_type vod -tag:v hvc1  -single_file 1 playlist.m3u8


    


    ffmpeg version : 5.0.1

    


    The output is playing fine in chrome but not in safari.

    


    I found from apple support community that fmp4 should work fine in safari. I tried with different tags, presets and x265 params but I can't make it work.

    


    I want the output to be hevc hls and it should be playable in safari and chrome. Any help is really appreciated.

    


  • HTML5 live streaming usin FFmpeg

    4 juin 2015, par user3149172

    I want to stream video from my IP camera (using RTSP) and use FFmpeg. I found example which looks like :

    ffmpeg -i rtsp://MY-IP/0 -y  -c:v libx264 -b:v 448k -vprofile baseline -preset medium -x264opts level=41 -threads 4 -s 1920x1080 -map 0:v -map 0:a:0  -c:a libfaac -b:a 160000 -ac 2 -hls_time 10-hls_list_size 6 -hls_wrap 18 -start_number 1 stream.m3u8

    and the html page :

       
           <video height="531" width="945" autoplay="autoplay" controls="controls">
               <source src="stream.m3u8"></source>
           </video>
       

    But there are the problems with mapping. While running the ffmpeg I get error :
    Stream map ’0:a:0’ matches no streams.